/* === Spline 3D Hero Container (for generated sites) === */
.spline-hero-container {
    position: absolute;
    top: -5%;
    left: -10%;
    width: 120%;
    height: 75%;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease-out;
    pointer-events: none;
    overflow: hidden;
    mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, black 15%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, black 15%, transparent 65%);
}

.spline-hero-container.spline-active {
    opacity: 0.7;
}

/* === Hero Layout === */

/* Top: Badge + Title */
.hero-top {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: var(--space-4);
}

.hero-top .hero-title {
    margin-bottom: 0;
}

/* Center: Spline Bot Stage (Full Width) */
.hero-bot-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: -1rem auto 0;
    min-height: 400px;
}

.hero-bot-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    pointer-events: none;
    will-change: transform;
}

.hero-bot-stage spline-viewer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 0.35;
}

.hero-bot-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.2) 0%, rgba(92, 35, 217, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: botGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes botGlow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Reduce orbs when bot is present */
.hero:has(.hero-bot-stage) .orb {
    opacity: 0.1;
}

/* === Floating Browser Window Cards (3D) === */
.hero-bot-wrapper {
    perspective: 1200px;
}

.hero-bot-wrapper .browser-card {
    position: absolute;
    z-index: 10;
    width: 310px;
    /* Enlarge browser cards from 220px to 310px */
    height: auto;
    flex: none;
    background: rgba(12, 10, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    /* Adjusted border-radius */
    overflow: hidden;
    pointer-events: auto;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s ease,
        box-shadow 0.45s ease;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.45),
        /* Adjusted box-shadow */
        0 3px 12px rgba(139, 92, 246, 0.1);
    /* Adjusted box-shadow */
}

.hero-bot-wrapper .browser-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(139, 92, 246, 0.25);
    animation-play-state: paused;
}

/* Card positions + unique 3D rotations — tilted toward center */
.browser-card-1 {
    top: 12%;
    left: 3%;
    animation: cardFloat1 7s ease-in-out infinite alternate;
}

.browser-card-1:hover {
    transform: translateY(-10px) rotateX(0deg) rotateY(0deg) scale(1.04) !important;
}

.browser-card-2 {
    top: 8%;
    right: 3%;
    animation: cardFloat2 7s ease-in-out infinite alternate;
    animation-delay: -1.8s;
}

.browser-card-2:hover {
    transform: translateY(-10px) rotateX(0deg) rotateY(0deg) scale(1.04) !important;
}

.browser-card-3 {
    bottom: 18%;
    left: 5%;
    animation: cardFloat3 7s ease-in-out infinite alternate;
    animation-delay: -3.5s;
}

.browser-card-3:hover {
    transform: translateY(-10px) rotateX(0deg) rotateY(0deg) scale(1.04) !important;
}

.browser-card-4 {
    bottom: 13%;
    right: 5%;
    animation: cardFloat4 7s ease-in-out infinite alternate;
    animation-delay: -5s;
}

.browser-card-4:hover {
    transform: translateY(-10px) rotateX(0deg) rotateY(0deg) scale(1.04) !important;
}

/* Per-card 3D float animations — each tilts toward center */
@keyframes cardFloat1 {
    0% {
        transform: translateY(0) rotateY(8deg) rotateX(-3deg);
    }

    100% {
        transform: translateY(-14px) rotateY(5deg) rotateX(-1deg);
    }
}

@keyframes cardFloat2 {
    0% {
        transform: translateY(0) rotateY(-8deg) rotateX(-3deg);
    }

    100% {
        transform: translateY(-14px) rotateY(-5deg) rotateX(-1deg);
    }
}

@keyframes cardFloat3 {
    0% {
        transform: translateY(0) rotateY(6deg) rotateX(4deg);
    }

    100% {
        transform: translateY(-14px) rotateY(3deg) rotateX(2deg);
    }
}

@keyframes cardFloat4 {
    0% {
        transform: translateY(0) rotateY(-6deg) rotateX(4deg);
    }

    100% {
        transform: translateY(-14px) rotateY(-3deg) rotateX(2deg);
    }
}

/* Browser Card Header (title bar with dots) */
.hero-bot-wrapper .browser-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-bot-wrapper .browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.hero-bot-wrapper .dot-red {
    background: #ff5f57;
}

.hero-bot-wrapper .dot-yellow {
    background: #febc2e;
}

.hero-bot-wrapper .dot-green {
    background: #28c840;
}

.hero-bot-wrapper .browser-card-title {
    margin-left: 8px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.02em;
}

/* Browser Card Body */
.hero-bot-wrapper .browser-card-body {
    padding: 16px 14px 18px;
    text-align: center;
}

.hero-bot-wrapper .browser-card-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary, #8b5cf6);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.hero-bot-wrapper .browser-card-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* CTA Section */
.hero-cta-section {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-3) 0 var(--space-4);
}

.hero-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.hero-bottom-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.hero-bottom-guarantee svg {
    color: var(--accent-primary, #8b5cf6);
    flex-shrink: 0;
}

.hero-bottom-guarantee strong {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile */
@media (max-width: 768px) {

    .hero-bot-stage {
        /* Fixed small robot in bottom-right corner */
        position: fixed;
        width: 120px;
        height: 120px;
        right: 10px;
        bottom: 20px;
        left: auto;
        top: auto;
        opacity: 1;
        z-index: 60;
        pointer-events: auto;
        animation: mobileRobotBob 3s ease-in-out infinite;
    }

    .hero-bot-stage spline-viewer {
        opacity: 0.7;
        pointer-events: auto;
    }

    .hero-bot-glow {
        width: 100px;
        height: 100px;
        opacity: 0.4;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        position: absolute;
    }

    /* On mobile, stack cards in a compact grid */
    .hero-bot-wrapper {
        perspective: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
        padding: 0 var(--space-3);
    }

    .hero-bot-wrapper .browser-card {
        position: static;
        width: auto;
        animation: none;
        transform: none;
    }

    /* Compact cards: reduce height */
    .hero-bot-wrapper .browser-card-header {
        padding: 5px 10px;
    }

    .hero-bot-wrapper .browser-dot {
        width: 6px;
        height: 6px;
    }

    .hero-bot-wrapper .browser-card-title {
        font-size: 0.6rem;
    }

    .hero-bot-wrapper .browser-card-body {
        padding: 8px 10px 10px;
    }

    .hero-bot-wrapper .browser-card-value {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .hero-bot-wrapper .browser-card-label {
        font-size: 0.6rem;
    }

    .hero-cta-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
}

@keyframes mobileRobotBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.spline-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spline-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary, #8b5cf6);
    border-radius: 50%;
    animation: spline-spin 0.8s linear infinite;
}

@keyframes spline-spin {
    to {
        transform: rotate(360deg);
    }
}

/* When Spline is active, reduce orb opacity */
.hero-bg:has(.spline-active) .orb {
    opacity: 0.08;
    transition: opacity 1s ease-out;
}

.offer {
    position: relative;
}

.offer-card {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.offer-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.offer-decoration::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
}

/* === Process Section === */
#processus {
    z-index: 10;
    background-color: var(--bg-primary);
    /* Override content-visibility: auto — breaks GSAP ScrollTrigger pin calculations */
    content-visibility: visible;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    max-width: 700px;
    margin: 0 auto;
}

.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 70px;
    width: 1px;
    height: calc(100% + var(--space-6));
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

/* Process step transitions */
.process-step .step-number {
    transition: box-shadow 0.3s ease;
}

/* === Portfolio Section === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.portfolio-item:hover .portfolio-preview {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
}

.portfolio-category {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* Real portfolio items with gradient backgrounds */
.portfolio-real {
    display: block;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}

.portfolio-real .portfolio-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    transition: transform var(--duration-slow) var(--ease-out);
}

.portfolio-real .portfolio-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--duration-slow) var(--ease-out);
}

.portfolio-real:hover .portfolio-gradient,
.portfolio-real:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-real .portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    z-index: 2;
}

.portfolio-real:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-real .portfolio-overlay svg {
    width: 32px;
    height: 32px;
    color: white;
}

.portfolio-real .portfolio-overlay span {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: white;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.portfolio-real .portfolio-info {
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding-top: var(--space-16);
    transition: opacity var(--duration-normal) var(--ease-out);
}

.portfolio-real:hover .portfolio-info {
    opacity: 0;
}

/* === Testimonials Section === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === CTA Section === */
.cta {
    position: relative;
    padding: var(--space-32) 0;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
}

/* === Stats Section === */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

/* === Rive Fallback CSS Animated Icons === */
/* Applied when no .riv file is configured */

.feature-icon.animated-icon-lightning svg {
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px var(--accent-primary));
}

.feature-card:hover .animated-icon-lightning svg {
    animation: iconPulse 0.6s ease-in-out infinite, iconBounce 0.4s ease-out;
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.feature-icon.animated-icon-responsive svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .animated-icon-responsive svg {
    transform: rotateY(180deg) scale(1.1);
}

.feature-icon.animated-icon-seo svg {
    animation: iconSpin 12s linear infinite;
}

.feature-card:hover .animated-icon-seo svg {
    animation: iconSpin 3s linear infinite;
    filter: drop-shadow(0 0 6px var(--accent-primary));
}

.feature-icon.animated-icon-secure svg {
    transition: all 0.3s ease;
}

.feature-card:hover .animated-icon-secure svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(34, 211, 138, 0.6));
    color: rgb(34, 211, 138);
}

/* Shared icon keyframes */
@keyframes iconPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

@keyframes iconBounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }

    50% {
        transform: translateY(0);
    }

    70% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Rive canvas container */
.feature-icon canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.feature-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.feature-description {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ============================================
   Brief Form Section Styles
   ============================================ */

.brief-section {
    position: relative;
    padding: var(--space-32) 0;
}

.brief-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.brief-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.brief-orb-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
}

/* Brief Form Card */
.brief-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-10);
}

@media (max-width: 640px) {
    .brief-form {
        padding: var(--space-6);
    }
}

/* Progress Bar */
.form-progress {
    margin-bottom: var(--space-10);
}

.progress-bar {
    height: 4px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-out);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.4;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.progress-step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
}

.progress-step.active .progress-step-number {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--glow-primary);
}

.progress-step.completed .progress-step-number {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.progress-step-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

@media (max-width: 480px) {
    .progress-step-label {
        display: none;
    }
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step-header {
    margin-bottom: var(--space-8);
    text-align: center;
}

.form-step-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.form-step-title svg {
    color: var(--accent-primary);
}

.form-step-description {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Labels */
.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-label .required {
    color: var(--accent-primary);
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-12);
}

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

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* Checkbox/Radio Group */
.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

.form-checkbox:hover {
    border-color: var(--border-medium);
}

.form-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-full);
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
}

.form-checkbox input:checked+.checkbox-mark {
    background: var(--gradient-primary);
    border-color: var(--accent-primary);
}

.form-checkbox input:checked+.checkbox-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.form-checkbox input:checked~.checkbox-label {
    color: var(--text-primary);
}

/* Color Picker Grid */
.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

@media (max-width: 480px) {
    .color-picker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.color-option {
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-option .color-swatch {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    border: 3px solid transparent;
    transition: all var(--duration-fast) var(--ease-out);
    margin-bottom: var(--space-2);
}

.color-option:hover .color-swatch {
    transform: scale(1.05);
}

.color-option input:checked+.color-swatch {
    border-color: var(--text-primary);
    box-shadow: var(--glow-primary);
}

.color-name {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-align: center;
}

/* Custom Color Picker */
.color-option-custom {
    position: relative;
}

.color-option-custom input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.color-swatch-custom {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-medium) !important;
    transition: all var(--duration-fast) var(--ease-out);
}

.color-swatch-custom svg {
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.color-option-custom:hover .color-swatch-custom {
    border-style: solid !important;
    border-color: var(--accent-primary) !important;
}

/* Style Picker Grid */
.style-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .style-picker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.style-option {
    cursor: pointer;
}

.style-option input {
    display: none;
}

.style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6) var(--space-4);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.style-option:hover .style-card {
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

.style-option input:checked+.style-card {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: var(--glow-primary);
}

.style-icon {
    font-size: 2rem;
    margin-bottom: var(--space-2);
}

.style-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.style-desc {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* File Upload Zone */
.file-upload-zone {
    position: relative;
    padding: var(--space-8);
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.05);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    pointer-events: none;
}

.file-upload-content svg {
    margin: 0 auto var(--space-4);
    color: var(--text-muted);
}

.file-upload-text {
    display: block;
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.file-upload-link {
    color: var(--accent-primary);
    font-weight: var(--font-medium);
}

.file-upload-hint {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* File Previews */
.file-preview {
    margin-top: var(--space-4);
}

.file-preview:empty {
    display: none;
}

.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.file-preview-grid:empty {
    display: none;
}

.file-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.file-preview-item:hover .remove-file {
    opacity: 1;
}

/* Form Summary */
.form-summary {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 1px solid var(--border-medium);
    padding-top: var(--space-4);
    margin-top: var(--space-2);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.summary-price {
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

.summary-included {
    color: var(--accent-primary);
    font-weight: var(--font-medium);
}

.summary-extra {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-style: italic;
}

.summary-total {
    font-size: var(--text-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-divider {
    height: 1px;
    background: var(--border-medium);
    margin: var(--space-2) 0;
}

.summary-row.subtotal {
    padding-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.summary-row.tva {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.summary-note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-4);
}

/* Form Navigation */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
}

.btn-submit {
    margin-left: auto;
}

/* Success Message */
.brief-success {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-12);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    text-align: center;
    animation: scaleIn var(--duration-slow) var(--ease-spring);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
}

.success-icon svg {
    color: white;
}

.success-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.success-text {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.success-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.timeline-icon {
    font-size: 1.5rem;
}

/* Process Note Box in Summary */
.summary-process {
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
}

.process-note-box {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--accent-primary);
}

.process-note-box svg {
    flex-shrink: 0;
    color: var(--accent-primary);
    margin-top: 2px;
}

.process-note-box strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.process-note-box p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--leading-relaxed);
}

.process-note-box p strong {
    display: inline;
    color: var(--accent-primary);
}

/* ============================================
   Transparency Section Styles
   ============================================ */

.transparency-section {
    padding: var(--space-16) 0;
}

.transparency-card {
    display: flex;
    gap: var(--space-8);
    padding: var(--space-10);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 1px solid var(--border-accent);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .transparency-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-8);
    }
}

.transparency-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--glow-primary);
}

@media (max-width: 768px) {
    .transparency-icon {
        margin: 0 auto;
    }
}

.transparency-icon svg {
    color: white;
}

.transparency-content {
    flex: 1;
}

.transparency-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.transparency-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.transparency-text strong {
    color: var(--text-primary);
}

.transparency-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.transparency-benefit {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .transparency-benefit {
        justify-content: center;
    }
}

.transparency-benefit svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.transparency-benefit strong {
    color: var(--text-primary);
}

.transparency-note {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    margin: 0;
}

.transparency-note strong {
    color: var(--accent-primary);
}

/* === About / Qui suis-je Section === */
.about-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* About Section Decorative Elements */
.about-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.about-decor-code {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-primary);
    opacity: 0.15;
    font-weight: bold;
}

.about-decor-1 {
    top: 15%;
    left: 5%;
}

.about-decor-2 {
    bottom: 20%;
    right: 8%;
}

.about-decor-plus {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent-secondary);
    opacity: 0.12;
}

.about-decor-3 {
    top: 25%;
    right: 15%;
}

.about-decor-4 {
    bottom: 35%;
    left: 10%;
}

.about-decor-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.1;
}

.about-decor-5 {
    top: 10%;
    right: 20%;
}

.about-decor-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.2;
}

.about-decor-6 {
    top: 40%;
    left: 3%;
}

.about-decor-7 {
    bottom: 15%;
    right: 5%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }

    .about-decor {
        display: none;
    }
}

.about-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4);
}

/* Outer glow ring animation */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            var(--accent-primary),
            var(--accent-secondary),
            var(--accent-blue),
            var(--accent-primary));
    opacity: 0.4;
    filter: blur(20px);
    animation: rotateGlow 8s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.about-image {
    position: relative;
    z-index: 1;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    /* Zoom on face - adjust position as needed */
    object-position: center 20%;
    border: 3px solid var(--accent-primary);
    box-shadow:
        0 0 40px rgba(124, 77, 255, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 60px rgba(124, 77, 255, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Image goes slightly behind text */
.about-image-behind {
    margin-right: -60px;
}

.about-image-behind .about-image {
    width: 380px;
    height: 380px;
}

/* Credit positioned along the bottom curve of the image */
.about-photo-credit {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-style: italic;
    background: var(--bg-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    z-index: 2;
    white-space: nowrap;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.about-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin: 0;
    line-height: var(--leading-tight);
}

.about-bio {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.about-bio strong {
    color: var(--text-primary);
}

.about-highlight {
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: var(--space-2);
}

@media (max-width: 768px) {
    .about-image {
        width: 220px;
        height: 220px;
    }

    .about-image-wrapper::before {
        width: 250px;
        height: 250px;
    }

    .about-image-behind {
        margin-right: 0;
    }

    .about-image-behind .about-image {
        width: 220px;
        height: 220px;
    }

    .about-title {
        font-size: var(--text-2xl);
    }

    .about-highlight {
        border-left: none;
        border-top: 3px solid var(--accent-primary);
        border-radius: var(--radius-md);
    }
}

/* ============================================
   Form Enhancements Styles
   ============================================ */

/* === Domain Option === */
.domain-option {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.domain-checkbox {
    padding: var(--space-4);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.domain-checkbox:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(92, 35, 217, 0.1);
}

.domain-price {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-left: var(--space-2);
}

.domain-input-wrapper {
    padding-left: var(--space-6);
    animation: slideDown 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Template Picker === */
.template-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .template-picker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .template-picker-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.template-option {
    cursor: pointer;
}

.template-option input {
    display: none;
}

.template-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-glass);
}

.template-option input:checked+.template-card {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(92, 35, 217, 0.3);
}

.template-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.template-preview {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: top;
}

.template-info {
    padding: var(--space-2);
    text-align: center;
}

.template-name {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.template-desc {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.template-card-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.template-none-icon {
    font-size: 2rem;
    margin-bottom: var(--space-2);
}

/* === Theme Picker === */
.theme-picker {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.theme-option {
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}

.theme-option input {
    display: none;
}

.theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: var(--bg-glass);
}

.theme-option input:checked+.theme-card {
    border-color: var(--accent-primary);
    background: rgba(92, 35, 217, 0.1);
}

.theme-card:hover {
    border-color: var(--border-medium);
}

.theme-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.theme-icon-light {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #f59e0b;
}

.theme-icon-dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #94a3b8;
}

.theme-icon-auto {
    background: linear-gradient(135deg, #f1f5f9 50%, #1e293b 50%);
    color: #64748b;
}

.theme-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

/* === Custom Colors Section === */
.custom-colors-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.custom-colors-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.custom-color-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.custom-color-hex {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.custom-color-remove {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.custom-color-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-add-color {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-glass);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-color:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(92, 35, 217, 0.1);
}

/* === Real-time Validation === */
.form-input.valid,
.form-textarea.valid,
.form-select.valid {
    border-color: #10b981;
}

.form-input.valid+.validation-icon,
.form-textarea.valid+.validation-icon,
.form-select.valid+.validation-icon {
    display: flex;
}

.validation-icon {
    display: none;
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: #10b981;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: translateY(-50%) scale(0);
    }

    70% {
        transform: translateY(-50%) scale(1.2);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.form-group-with-validation {
    position: relative;
}

.form-group-with-validation .form-input,
.form-group-with-validation .form-textarea,
.form-group-with-validation .form-select {
    padding-right: var(--space-10);
}

/* ============================================
   FAQ Section - Premium Design
   ============================================ */
.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    counter-reset: faq-counter;
}

@media (min-width: 768px) {
    .faq-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
        align-items: start;
    }
}

.faq-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    counter-increment: faq-counter;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.faq-item:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item[open] {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow:
        0 0 0 1px rgba(16, 185, 129, 0.3),
        0 20px 50px -15px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.faq-item[open]::before {
    opacity: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-5);
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::before {
    content: counter(faq-counter, decimal-leading-zero);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.faq-item:hover .faq-question::before,
.faq-item[open] .faq-question::before {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-primary);
}

.faq-question span {
    flex: 1;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: 1.35;
    transition: color 0.3s ease;
}

@media (max-width: 640px) {
    .faq-question {
        padding: var(--space-5) var(--space-5);
        gap: var(--space-3);
    }

    .faq-question::before {
        width: 36px;
        height: 36px;
        font-size: var(--text-xs);
    }

    .faq-question span {
        font-size: var(--text-base);
    }
}

.faq-item:hover .faq-question span {
    color: var(--accent-primary);
}

.faq-item[open] .faq-question span {
    color: var(--text-primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover .faq-icon {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: white;
    background: var(--accent-primary);
}

.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    padding-left: calc(var(--space-5) + 36px + var(--space-3));
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-sm);
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .faq-answer {
        padding: 0 var(--space-5) var(--space-5);
        padding-left: var(--space-5);
    }
}

.faq-answer p {
    margin-bottom: var(--space-4);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-5);
}

.faq-answer li {
    margin-bottom: var(--space-2);
    position: relative;
}

.faq-answer ul li::marker {
    color: var(--accent-primary);
}

.faq-answer ol li::marker {
    color: var(--accent-primary);
    font-weight: var(--font-semibold);
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

/* FAQ animation - smoother */
.faq-item[open] .faq-answer {
    animation: faqSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes faqSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Success Modal Popup
   ============================================ */
.success-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.success-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.success-modal {
    position: relative;
    max-width: 700px;
    width: 100%;
    margin: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Responsive modal */
@media (max-width: 768px) {
    .success-modal-overlay {
        padding: var(--space-4);
    }

    .success-modal {
        max-width: 100%;
        padding: var(--space-8);
        border-radius: var(--radius-xl);
        margin: var(--space-4) 0;
    }
}

@media (max-width: 480px) {
    .success-modal {
        padding: var(--space-6);
    }
}

/* Animation only when modal is active */
.success-modal-overlay.active .success-modal {
    animation: modalEnter 0.4s ease forwards;
    animation-delay: 0.1s;
}

@keyframes modalEnter {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.success-modal .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-full);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
}

.success-modal .success-icon svg {
    color: #10b981;
}

.success-modal .success-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-modal .success-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

.success-steps {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    text-align: left;
}

.success-steps h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
    text-align: center;
}

.success-modal .success-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.success-modal .timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.timeline-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: white;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.timeline-content strong {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.timeline-content span {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.success-cta {
    text-align: center;
}

.success-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.success-note svg {
    flex-shrink: 0;
    color: var(--accent-secondary);
}

.success-cta .btn {
    width: 100%;
}

/* ============================================
   Form Tab Switcher Styles
   ============================================ */
.form-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    max-width: 400px;
    margin: var(--space-8) auto;
}

.form-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.form-tab:hover {
    color: var(--text-primary);
}

.form-tab.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.form-tab svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.form-tab.active svg {
    color: var(--accent-primary);
}

.form-tab[data-tab="refonte"].active svg {
    animation: rotate 1s ease-out;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Tab Panel */
.form-tab-panels {
    position: relative;
}

.form-tab-panel {
    animation: fadeSlideIn var(--duration-normal) var(--ease-out);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Refonte form specific */
.refonte-form-content {
    padding: var(--space-2);
}

@media (max-width: 640px) {
    .form-tabs {
        max-width: 100%;
    }

    .form-tab {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-xs);
    }

    .form-tab svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================