/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Thèmes de couleur */
:root[data-theme="blue-modern"] {
    --primary-color: #3B82F6;
    --primary-dark: #1E40AF;
    --secondary-color: #60A5FA;
    --accent-color: #93C5FD;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #EFF6FF;
}

:root[data-theme="green-nature"] {
    --primary-color: #10B981;
    --primary-dark: #047857;
    --secondary-color: #34D399;
    --accent-color: #6EE7B7;
    --bg-secondary: #F0FDF4;
    --bg-tertiary: #DCFCE7;
}

:root[data-theme="purple-creative"] {
    --primary-color: #8B5CF6;
    --primary-dark: #5B21B6;
    --secondary-color: #A78BFA;
    --accent-color: #C4B5FD;
    --bg-secondary: #FAF5FF;
    --bg-tertiary: #F3E8FF;
}

:root[data-theme="orange-warm"] {
    --primary-color: #F97316;
    --primary-dark: #C2410C;
    --secondary-color: #FB923C;
    --accent-color: #FDBA74;
    --bg-secondary: #FFF7ED;
    --bg-tertiary: #FFEDD5;
}

:root[data-theme="neutral-elegant"] {
    --primary-color: #374151;
    --primary-dark: #111827;
    --secondary-color: #6B7280;
    --accent-color: #9CA3AF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
}

:root[data-theme="red-passion"] {
    --primary-color: #DC2626;
    --primary-dark: #991B1B;
    --secondary-color: #F87171;
    --accent-color: #FCA5A5;
    --bg-secondary: #FEF2F2;
    --bg-tertiary: #FEE2E2;
}

:root[data-theme="pink-creative"] {
    --primary-color: #EC4899;
    --primary-dark: #BE185D;
    --secondary-color: #F472B6;
    --accent-color: #F9A8D4;
    --bg-secondary: #FDF2F8;
    --bg-tertiary: #FCE7F3;
}

:root[data-theme="teal-fresh"] {
    --primary-color: #0D9488;
    --primary-dark: #134E4A;
    --secondary-color: #2DD4BF;
    --accent-color: #7DD3FC;
    --bg-secondary: #F0FDFA;
    --bg-tertiary: #CCFBF1;
}

:root[data-theme="yellow-energy"] {
    --primary-color: #EAB308;
    --primary-dark: #A16207;
    --secondary-color: #FDE047;
    --accent-color: #FEF08A;
    --bg-secondary: #FEFCE8;
    --bg-tertiary: #FEF3C7;
}

/* Backgrounds spéciaux pour chaque thème du hero */
:root[data-theme="blue-modern"] .hero {
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 50%, #1E3A8A 100%);
}

:root[data-theme="green-nature"] .hero {
    background: linear-gradient(135deg, #10B981 0%, #047857 50%, #065F46 100%);
}

:root[data-theme="purple-creative"] .hero {
    background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 50%, #4C1D95 100%);
}

:root[data-theme="orange-warm"] .hero {
    background: linear-gradient(135deg, #F97316 0%, #C2410C 50%, #9A3412 100%);
}

:root[data-theme="neutral-elegant"] .hero {
    background: linear-gradient(135deg, #374151 0%, #111827 50%, #000000 100%);
}

:root[data-theme="red-passion"] .hero {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 50%, #7F1D1D 100%);
}

:root[data-theme="pink-creative"] .hero {
    background: linear-gradient(135deg, #EC4899 0%, #BE185D 50%, #9D174D 100%);
}

:root[data-theme="teal-fresh"] .hero {
    background: linear-gradient(135deg, #0D9488 0%, #134E4A 50%, #0F2027 100%);
}

:root[data-theme="yellow-energy"] .hero {
    background: linear-gradient(135deg, #EAB308 0%, #A16207 50%, #78350F 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: var(--transition);
}

/* Transition simple et progressive pour les changements de thème */
* {
    transition: background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease, background 0.8s ease;
}

/* Transitions spécifiques pour le hero */
.hero {
    transition: background 1s ease;
}

/* Transitions pour les éléments clés */
.navbar,
.cta-button,
.btn-primary,
.option-card,
.service-card,
.wizard-section,
.services {
    transition: background-color 0.8s ease, border-color 0.8s ease, color 0.8s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.element-2 {
    width: 100px;
    height: 100px;
    bottom: 0;
    left: 0;
    animation-delay: 2s;
}

.element-3 {
    width: 90px;
    height: 90px;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Services Section */
.services {
    padding: 3rem 0 2rem 0;
    background: var(--bg-secondary);
}

.services h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card.clickable {
    cursor: pointer;
}

.service-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
}

.advantage-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.advantage-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Wizard Section */
.wizard-section {
    padding: 4rem 0 3rem 0;
    background: var(--bg-primary);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.wizard-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    min-height: 500px;
    position: relative;
}

.progress-bar {
    background: var(--bg-secondary);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.step-indicator {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step-indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-indicator.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.wizard-form {
    padding: 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease;
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.step.active {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.options-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-card, .checkbox-card {
    position: relative;
    cursor: pointer;
}

.option-card input, .checkbox-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.card-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.card-content:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.option-card input:checked + .card-content,
.checkbox-card input:checked + .card-content {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-content i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.card-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.card-content .number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

/* Success Section */
.success-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
}

.success-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.success-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.next-steps {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.next-steps h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.next-steps ul {
    list-style: none;
}

.next-steps li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.next-steps li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Nouvelles styles pour le formulaire simplifié */

/* Section du formulaire */
.form-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden; /* Empêche le débordement */
    width: 100%;
    box-sizing: border-box;
}

/* Style spécifique pour la section nombre de produits */
#productCountSection {
    margin: 1.5rem 0;
    padding: 1.25rem;
}

#productCountSection .options-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
    overflow: hidden;
}

.form-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4 i {
    color: var(--primary-color);
}

.help-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Grille pour les options mini */
.options-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.option-card.mini {
    padding: 1rem;
    min-height: auto;
}

.option-card.mini .card-content {
    padding: 0.75rem;
    min-height: 80px;
}

.option-card.mini .card-content .number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.option-card.mini .card-content p {
    font-size: 0.75rem;
}

/* Color themes compacts */
.color-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Retour à 120px pour plus de flexibilité */
    gap: 0.75rem;
}

.color-theme {
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.color-theme input {
    display: none;
}

.theme-preview {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 100px; /* Hauteur fixe pour tous les thèmes */
    justify-content: center;
}

.color-theme:hover .theme-preview {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02); /* Utiliser scale au lieu de translateY pour éviter la coupure */
    z-index: 10; /* Assurer que l'élément passe au-dessus */
}

.color-theme input:checked + .theme-preview {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-md);
    position: relative;
}

.color-theme input:checked + .theme-preview::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.color-dots {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.color-dots span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-preview span {
    font-size: 0.75rem; /* Réduction de la taille pour que "Orange Chaleureux" tienne mieux */
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2; /* Améliorer l'espacement des lignes */
    text-align: center;
    word-wrap: break-word; /* Permettre la coupure des mots si nécessaire */
}

/* Animation pour la sélection des thèmes */
.color-theme input[type="radio"]:checked + .theme-preview::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Styles pour les notifications de thème */
.theme-notification {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

.theme-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-notification i {
    font-size: 16px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Amélioration des transitions pour les thèmes de couleur */
.hero,
.services,
.wizard-section,
.navbar,
.cta-button,
.btn-primary,
.option-card,
.service-card {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* Styles pour les contrôles de thème */
.theme-controls {
    margin-top: 1rem;
    text-align: center;
}

.btn-reset-theme {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-reset-theme:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-reset-theme i {
    font-size: 0.75rem;
}

/* Responsive pour le carrousel */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 20px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .floating-elements {
        width: 200px;
        height: 200px;
    }
    
    .element {
        font-size: 1.5rem;
    }
    
    .element-1 {
        width: 60px;
        height: 60px;
    }
    
    .element-2 {
        width: 70px;
        height: 70px;
    }
    
    .element-3 {
        width: 65px;
        height: 65px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .advantage-item {
        padding: 1.5rem;
    }
    
    .advantage-item h3 {
        font-size: 1.1rem;
    }
    
    .advantage-item p {
        font-size: 0.9rem;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .options-grid.small {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Responsive pour les sections de formulaire */
    .form-section {
        margin: 1.5rem 0;
        padding: 1.25rem;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    #productCountSection {
        margin: 1.25rem 0;
        padding: 1rem;
    }
    
    #productCountSection .options-grid.small {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    .form-section h4 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .color-themes {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur tablette */
        gap: 0.75rem;
    }
    
    .theme-preview {
        height: 95px; /* Légèrement plus petit sur tablette */
        padding: 0.6rem;
    }
    
    .theme-preview span {
        font-size: 0.7rem;
        line-height: 1.1;
    }
    
    .color-dots span {
        width: 14px;
        height: 14px;
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-form {
        padding: 1.5rem;
    }
    
    .progress-bar {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .step-indicator {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .wizard-navigation {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .wizard-navigation .btn-primary,
    .wizard-navigation .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .wizard-container {
        margin: 0 10px;
        min-height: 450px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Services plus compacts sur mobile */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-card ul {
        font-size: 0.85rem;
    }
    
    .service-card ul li {
        margin-bottom: 0.25rem;
    }
    
    .popular-badge {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
        top: -8px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .services h2,
    .wizard-section h2 {
        font-size: 1.75rem;
    }
    
    .why-choose-us h2 {
        font-size: 1.75rem;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile au lieu de 1 */
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .advantage-item {
        padding: 1rem; /* Padding réduit pour mobile */
    }
    
    .advantage-icon {
        width: 45px; /* Plus petit sur mobile */
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .advantage-item h3 {
        font-size: 0.95rem; /* Plus petit pour tenir sur 2 colonnes */
        margin-bottom: 0.5rem;
    }
    
    .advantage-item p {
        font-size: 0.8rem; /* Plus petit pour éviter le débordement */
        line-height: 1.4;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .options-grid.small {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Responsive pour les sections de formulaire sur mobile */
    .form-section {
        margin: 1rem 0;
        padding: 1rem;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    #productCountSection {
        margin: 1rem 0;
        padding: 0.875rem;
    }
    
    #productCountSection .options-grid.small {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    #productCountSection .option-card.mini {
        padding: 0.75rem;
        min-height: auto;
    }
    
    #productCountSection .option-card.mini .card-content {
        padding: 0.5rem;
        min-height: 60px;
    }
    
    #productCountSection .option-card.mini .card-content .number {
        font-size: 0.9rem;
        margin-bottom: 0.125rem;
    }
    
    #productCountSection .option-card.mini .card-content p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .form-section h4 {
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .color-themes {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
        gap: 0.6rem;
        margin: 1rem 0;
    }
    
    .theme-preview {
        height: 90px; /* Plus compact sur mobile */
        padding: 0.5rem;
        gap: 0.4rem;
    }
    
    .theme-preview span {
        font-size: 0.65rem;
        line-height: 1.1;
        word-break: break-word;
        hyphens: auto;
    }
    
    .color-dots {
        gap: 0.2rem;
        margin-bottom: 0.3rem;
    }
    
    .color-dots span {
        width: 12px;
        height: 12px;
    }
    
    .color-theme input:checked + .theme-preview::after {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
        top: 4px;
        right: 4px;
    }
    
    .step h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .wizard-container {
        margin: 0 5px;
        min-height: 400px;
    }
    
    .wizard-form {
        padding: 1rem;
    }
    
    .progress-bar {
        padding: 0.75rem;
    }
    
    .card-content {
        padding: 0.75rem;
        min-height: 80px;
    }
    
    .card-content i {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .card-content h4 {
        font-size: 0.9rem;
    }
    
    .card-content p {
        font-size: 0.75rem;
    }
    
    .wizard-section {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .step-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* Optimisation pour très petits écrans */
@media (max-width: 360px) {
    .wizard-section h2 {
        font-size: 1.5rem;
    }
    
    .why-choose-us h2 {
        font-size: 1.5rem;
    }
    
    .advantages-grid {
        gap: 0.75rem; /* Espacement réduit */
    }
    
    .advantage-item {
        padding: 0.75rem; /* Padding encore plus réduit */
    }
    
    .advantage-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .advantage-item h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .advantage-item p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .wizard-container {
        margin: 0 3px;
    }
    
    .wizard-form {
        padding: 0.75rem;
    }
    
    .progress-bar {
        padding: 0.5rem;
    }
    
    .step-indicator {
        width: 25px;
        height: 25px;
        font-size: 0.65rem;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .options-grid.small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-themes {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur très petit écran */
        gap: 0.4rem;
        margin: 0.75rem 0;
    }
    
    .theme-preview {
        height: 85px; /* Encore plus compact */
        padding: 0.4rem;
        gap: 0.3rem;
    }
    
    .theme-preview span {
        font-size: 0.6rem;
        line-height: 1.0;
        word-break: break-word;
        hyphens: auto;
    }
    
    .color-dots {
        gap: 0.15rem;
        margin-bottom: 0.25rem;
    }
    
    .color-dots span {
        width: 10px;
        height: 10px;
    }
    
    .color-theme input:checked + .theme-preview::after {
        width: 14px;
        height: 14px;
        font-size: 0.65rem;
        top: 3px;
        right: 3px;
    }
    
    .card-content {
        padding: 0.5rem;
        min-height: 70px;
    }
    
    .card-content h4 {
        font-size: 0.85rem;
    }
    
    .card-content p {
        font-size: 0.7rem;
    }
    
    .wizard-navigation .btn-primary,
    .wizard-navigation .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Optimisation pour écrans larges */
@media (min-width: 1200px) {
    .options-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: none;
    }
    
    .options-grid.small {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .color-themes {
        grid-template-columns: repeat(4, 1fr); /* 4 colonnes pour écrans larges - meilleur équilibre */
        gap: 1rem;
    }
    
    .theme-preview {
        height: 110px; /* Plus grand sur écrans larges */
        padding: 1rem;
    }
    
    .theme-preview span {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .color-dots span {
        width: 18px;
        height: 18px;
    }
    
    .wizard-container {
        max-width: 1000px;
    }
}

/* Animations et effets spéciaux */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation pour le formulaire */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Services très compacts sur très petits écrans */
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .service-card ul {
        font-size: 0.8rem;
    }
    
    .service-card ul li {
        margin-bottom: 0.2rem;
    }
    
    .popular-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
/* Grille spéciale pour 2 options (étape 1) */
.step[data-step="1"] .options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: none;
}

/* Color pickers modernes avec Pickr - Design responsive */
.modern-color-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
    max-width: 100%;
    overflow: hidden; /* Empêche le scroll horizontal */
}

.picker-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0; /* Important pour éviter l'overflow */
    width: 100%; /* Assure la largeur */
}

.picker-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.picker-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 0; /* Important pour le responsive */
    max-width: 100%; /* Empêche le débordement */
    box-sizing: border-box;
}

.picker-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-picker-button {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,0.1);
    cursor: pointer;
    background: #6366f1;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Empêche la compression */
}

.color-picker-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.color-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; /* Important pour l'ellipsis */
    flex: 1; /* Prend l'espace restant */
}

/* Prévisualisation simplifiée */
.color-live-preview {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.color-live-preview h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.simple-preview {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.color-sample {
    width: 120px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}


/* Responsive pour tablettes */
@media (max-width: 768px) {
    .modern-color-pickers {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 1.25rem 0;
        overflow: hidden; /* Force le containment */
        width: 100%;
    }
    
    .picker-container {
        padding: 0.6rem;
        gap: 0.6rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .color-picker-button {
        width: 45px;
        height: 45px;
    }
    
    .color-name {
        font-size: 0.85rem;
        min-width: 0;
        word-break: break-word;
    }
    
    .simple-preview {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .color-sample {
        width: 200px;
        height: 50px;
        font-size: 0.9rem;
    }
}

/* Responsive pour mobiles */
@media (max-width: 480px) {
    .modern-color-pickers {
        gap: 1rem;
        margin: 1rem 0;
        padding: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .picker-container {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .color-picker-button {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .color-name {
        font-size: 0.9rem;
        white-space: normal;
        text-align: center;
        word-break: break-word;
        line-height: 1.3;
    }
    
    .color-live-preview {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        width: 100%;
        overflow: hidden;
    }
    
    .color-live-preview h5 {
        font-size: 0.95rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .simple-preview {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .color-sample {
        width: 100%;
        max-width: 250px;
        height: 45px;
        font-size: 0.85rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .picker-container {
        padding: 0.75rem;
    }
    
    .color-picker-button {
        width: 50px;
        height: 50px;
    }
    
    .color-name {
        font-size: 0.8rem;
    }
    
    .color-sample {
        height: 40px;
        font-size: 0.8rem;
    }
    
    /* Section produits sur très petits écrans */
    #productCountSection {
        margin: 0.75rem 0;
        padding: 0.75rem;
    }
    
    #productCountSection .options-grid.small {
        grid-template-columns: 1fr 1fr;
        gap: 0.375rem;
    }
    
    #productCountSection .option-card.mini {
        padding: 0.5rem;
    }
    
    #productCountSection .option-card.mini .card-content {
        padding: 0.375rem;
        min-height: 50px;
    }
    
    #productCountSection .option-card.mini .card-content .number {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    #productCountSection .option-card.mini .card-content p {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .form-section {
        margin: 0.75rem 0;
        padding: 0.75rem;
    }
    
    .form-section h4 {
        font-size: 0.9rem;
    }
    
    .help-text {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}


