/**
 * ═══════════════════════════════════════════════════════════════
 * HERO ADDRESS FORM - KIDZUP DESIGN SYSTEM
 * Version 2.0 - Intégré au design global
 * Style: Clean, moderne, joyeux
 * ═══════════════════════════════════════════════════════════════
 * @package Kidzup
 * @version 2.0
 */

/* =================================
   VARIABLES KIDZUP
================================= */
:root {
    /* Héritage du design system principal */
    --hero-primary: #0cc0df;
    --hero-primary-light: #5FDBF0;
    --hero-primary-dark: #0AA3BE;
    --hero-primary-alpha: rgba(12, 192, 223, 0.1);
    
    --hero-secondary: #FF6B9D;
    --hero-secondary-light: #FFB5CF;
    --hero-secondary-alpha: rgba(255, 107, 157, 0.1);
    
    --hero-accent: #FFA726;
    --hero-accent-light: #FFCC80;
    --hero-accent-alpha: rgba(255, 167, 38, 0.1);
    
    --hero-success: #66BB6A;
    --hero-warning: #FFCA28;
    --hero-danger: #EF5350;
    --hero-info: #42A5F5;
    
    --hero-text: #1A2332;
    --hero-text-secondary: #546576;
    --hero-text-tertiary: #8B9AAF;
    
    --hero-bg: #FFFFFF;
    --hero-bg-light: #F7F9FC;
    --hero-bg-dark: #EFF3F8;
    
    --hero-border: #E1E8ED;
    --hero-border-light: #EFF3F8;
    
    /* Gradients modernes Kidzup */
    --hero-gradient-primary: linear-gradient(135deg, #0cc0df 0%, #5FDBF0 100%);
    --hero-gradient-secondary: linear-gradient(135deg, #FF6B9D 0%, #FFB5CF 100%);
    --hero-gradient-accent: linear-gradient(135deg, #FFA726 0%, #FFCC80 100%);
    --hero-gradient-success: linear-gradient(135deg, #66BB6A 0%, #81C784 100%);
    --hero-gradient-bg: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
    
    /* Shadows harmonisées */
    --hero-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --hero-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --hero-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --hero-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    --hero-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.08);
    --hero-shadow-primary: 0 8px 24px rgba(12, 192, 223, 0.2);
    
    /* Radius modernes */
    --hero-radius-sm: 8px;
    --hero-radius: 12px;
    --hero-radius-lg: 16px;
    --hero-radius-xl: 24px;
    --hero-radius-full: 9999px;
    
    /* Transitions fluides */
    --hero-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =================================
   CONTAINER & LAYOUT
================================= */
.kidzup-hero-form-container {
    min-height: 100vh;
    background: var(--hero-gradient-bg);
    padding-bottom: 3rem;
    font-family: 'Circular-Std', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Bouton retour élégant */
.kidzup-hero-form-container .btn-link {
    color: var(--hero-text-secondary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--hero-radius);
    transition: var(--hero-transition);
}

.kidzup-hero-form-container .btn-link:hover {
    background: var(--hero-bg-dark);
    color: var(--hero-primary);
    transform: translateX(-4px);
}

/* =================================
   PROGRESS HEADER & STEPPER
================================= */
.hero-progress-header {
    background: white;
    border: 1px solid var(--hero-border-light);
    border-radius: var(--hero-radius-lg);
    padding: 2rem 0;
    margin-bottom: 1.5rem;
    box-shadow: var(--hero-shadow-sm);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Ligne de progression moderne */
.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: var(--hero-border);
    border-radius: var(--hero-radius-full);
    z-index: 0;
}

.stepper-wrapper::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    height: 3px;
    width: calc((100% - 10%) * var(--progress, 0) / 5);
    background: var(--hero-gradient-primary);
    border-radius: var(--hero-radius-full);
    z-index: 1;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(12, 192, 223, 0.4);
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    cursor: pointer;
    transition: var(--hero-transition);
    z-index: 2;
}

.step-counter {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--hero-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hero-text-tertiary);
    position: relative;
    transition: var(--hero-transition-spring);
    box-shadow: var(--hero-shadow-sm);
}

.stepper-item.active .step-counter {
    background: var(--hero-gradient-primary);
    border-color: var(--hero-primary);
    color: white;
    transform: scale(1.15);
    box-shadow: var(--hero-shadow-primary);
}

.stepper-item.completed .step-counter {
    background: var(--hero-gradient-success);
    border-color: var(--hero-success);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.3);
}

.stepper-item.completed .step-counter::before {
    content: '✓';
    font-size: 2rem;
    font-weight: 700;
}

.stepper-item.completed .step-counter i {
    display: none;
}

.step-name {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hero-text-tertiary);
    text-align: center;
    transition: var(--hero-transition);
    letter-spacing: -0.02em;
}

.stepper-item.active .step-name {
    color: var(--hero-primary);
    font-weight: 700;
}

.stepper-item.completed .step-name {
    color: var(--hero-success);
}

.stepper-item:hover:not(.active) .step-counter {
    transform: translateY(-6px) scale(1.05);
    border-color: var(--hero-primary-light);
}

/* =================================
   FORM MAIN CONTENT
================================= */
.hero-form {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.hero-form-content {
    background: white;
    border-radius: var(--hero-radius-lg);
    box-shadow: var(--hero-shadow-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--hero-border-light);
    margin-bottom: 1.5rem;
}

.form-step {
    display: none;
    padding: 3rem 3.5rem;
    animation: fadeSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.step-content {
    max-width: 100%;
}

.step-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--hero-bg-dark);
}

.step-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--hero-text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    letter-spacing: -0.04em;
}

.step-icon {
    font-size: 2.75rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.step-subtitle {
    font-size: 1.125rem;
    color: var(--hero-text-secondary);
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* =================================
   FORM GRID
================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.hero-input-wrapper.full-width {
    grid-column: 1 / -1;
}

.hero-input-wrapper.half-width {
    grid-column: span 1;
}

/* =================================
   LABELS & INPUTS MODERNES
================================= */
.hero-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    font-weight: 700;
    color: var(--hero-text);
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

.label-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label-badge {
    font-size: 0.6875rem;
    padding: 0.3rem 0.875rem;
    border-radius: var(--hero-radius-full);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.label-badge.required {
    background: var(--hero-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.25);
}

.label-badge:not(.required) {
    background: var(--hero-bg-dark);
    color: var(--hero-text-secondary);
}

.char-counter {
    font-size: 0.8125rem;
    color: var(--hero-text-tertiary);
    font-weight: 600;
}

.char-counter .char-count {
    font-weight: 800;
    color: var(--hero-primary);
}

/* Input avec icône élégante */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--hero-text-tertiary);
    pointer-events: none;
    z-index: 1;
    transition: var(--hero-transition);
    font-size: 1.125rem;
}

.input-with-icon:focus-within .input-icon {
    color: var(--hero-primary);
    transform: scale(1.1);
}

/* Base Input Styles - Ultra modernes */
.hero-input,
.hero-select,
.hero-textarea {
    width: 100%;
    padding: 1.125rem 1.5rem 1.125rem 3.75rem;
    border: 2px solid var(--hero-border);
    border-radius: var(--hero-radius);
    font-size: 1rem;
    color: var(--hero-text);
    background: var(--hero-bg);
    transition: var(--hero-transition);
    outline: none;
    font-family: 'Circular-Std', -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero-input:hover:not(:focus),
.hero-select:hover:not(:focus),
.hero-textarea:hover:not(:focus) {
    border-color: var(--hero-primary-light);
    background: var(--hero-bg-light);
}

.hero-input:focus,
.hero-select:focus,
.hero-textarea:focus {
    border-color: var(--hero-primary);
    background: white;
    box-shadow: 0 0 0 4px var(--hero-primary-alpha), var(--hero-shadow-md);
    transform: translateY(-1px);
}

.hero-input::placeholder,
.hero-textarea::placeholder {
    color: var(--hero-text-tertiary);
    font-weight: 400;
}

/* Validation States élégants */
.hero-input.valid {
    border-color: var(--hero-success);
    background: rgba(102, 187, 106, 0.03);
    padding-right: 3.5rem;
}

.hero-input.invalid {
    border-color: var(--hero-danger);
    background: rgba(239, 83, 80, 0.03);
    padding-right: 3.5rem;
}

.validation-indicator {
    position: absolute;
    right: 1.25rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--hero-shadow-sm);
}

.hero-input.valid ~ .validation-indicator {
    display: flex;
    background: var(--hero-success);
    color: white;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-input.valid ~ .validation-indicator::before {
    content: '✓';
}

.hero-input.invalid ~ .validation-indicator {
    display: flex;
    background: var(--hero-danger);
    color: white;
    animation: shake 0.4s ease;
}

.hero-input.invalid ~ .validation-indicator::before {
    content: '✕';
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Textarea */
.hero-textarea {
    padding: 1.125rem 1.5rem;
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

/* Select moderne */
.hero-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%238B9AAF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 1.25rem center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    padding-right: 3.5rem;
}

.hero-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%230cc0df' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}

/* Field Feedback */
.field-feedback {
    margin-top: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 1.25rem;
    opacity: 0;
    transition: var(--hero-transition);
}

.hero-input.valid ~ .field-feedback,
.hero-input.invalid ~ .field-feedback {
    opacity: 1;
}

.hero-input.valid ~ .field-feedback {
    color: var(--hero-success);
}

.hero-input.invalid ~ .field-feedback {
    color: var(--hero-danger);
}

.field-hint {
    margin-top: 0.625rem;
    font-size: 0.875rem;
    color: var(--hero-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 500;
}

.field-hint i {
    color: var(--hero-primary);
    font-size: 1rem;
}

/* =================================
   AUTOCOMPLETE MODERNE
================================= */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--hero-primary);
    border-top: none;
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
    max-height: 320px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: var(--hero-shadow-lg);
    margin-top: -2px;
}

.autocomplete-results.active {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.autocomplete-item {
    padding: 1.125rem 1.5rem;
    cursor: pointer;
    transition: var(--hero-transition);
    border-bottom: 1px solid var(--hero-border-light);
    font-weight: 500;
    color: var(--hero-text);
}

.autocomplete-item:hover {
    background: var(--hero-primary-alpha);
    padding-left: 2rem;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-loader {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hero-primary);
}

/* =================================
   GPS DISPLAY JOYEUX
================================= */
.gps-display {
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, var(--hero-primary-alpha) 0%, var(--hero-accent-alpha) 100%);
    border: 2px dashed var(--hero-primary);
    border-radius: var(--hero-radius);
    text-align: center;
}

.gps-coords {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
    font-weight: 700;
    color: var(--hero-primary);
    font-size: 1.125rem;
}

.gps-coords i {
    font-size: 1.75rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* =================================
   MAP PREVIEW MODERNE
================================= */
.map-preview-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: var(--hero-radius-lg);
    overflow: hidden;
    box-shadow: var(--hero-shadow-md);
    border: 1px solid var(--hero-border-light);
}

.mini-map {
    width: 100%;
    height: 100%;
    background: var(--hero-bg-dark);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.92) 0%, rgba(255, 107, 157, 0.92) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.map-overlay i {
    margin-bottom: 1.25rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.map-overlay p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* =================================
   SOCIAL INPUTS ÉLÉGANTS
================================= */
.social-inputs-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.375rem;
    margin-right: 0.625rem;
}

.social-icon.facebook {
    color: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =================================
   DROPZONE IMAGES - Moderne Kidzup
================================= */
.hero-dropzone-container {
    margin-bottom: 3rem;
}

.hero-dropzone {
    position: relative;
    border: 3px dashed var(--hero-border);
    border-radius: var(--hero-radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--hero-transition-spring);
    background: var(--hero-bg-light);
}

.hero-dropzone:hover {
    border-color: var(--hero-primary);
    background: var(--hero-primary-alpha);
    transform: translateY(-4px);
    box-shadow: var(--hero-shadow-primary);
}

.hero-dropzone.drag-over {
    border-color: var(--hero-primary);
    background: var(--hero-gradient-primary);
    border-style: solid;
    transform: scale(1.02);
}

.hero-dropzone.drag-over .dropzone-content {
    color: white;
}

.dropzone-icon {
    font-size: 4.5rem;
    color: var(--hero-primary);
    margin-bottom: 1.25rem;
    animation: float 3s ease-in-out infinite;
}

.dropzone-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--hero-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.dropzone-text {
    font-size: 1.0625rem;
    color: var(--hero-text-secondary);
    margin-bottom: 0.625rem;
    font-weight: 500;
}

.dropzone-text .text-primary {
    color: var(--hero-primary);
    font-weight: 700;
}

.dropzone-hint {
    font-size: 0.875rem;
    color: var(--hero-text-tertiary);
    font-weight: 500;
}

.dropzone-preview {
    position: relative;
}

.dropzone-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--hero-radius-lg);
    box-shadow: var(--hero-shadow-md);
}

.preview-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.625rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--hero-transition-spring);
    backdrop-filter: blur(8px);
}

.btn-icon:hover {
    background: var(--hero-danger);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

/* =================================
   GALLERY UPLOADER MODERNE
================================= */
.gallery-uploader {
    margin-top: 2.5rem;
}

.gallery-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--hero-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.gallery-subtitle {
    font-size: 0.9375rem;
    color: var(--hero-text-secondary);
    margin-bottom: 1.75rem;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--hero-radius);
    overflow: hidden;
    box-shadow: var(--hero-shadow-sm);
    transition: var(--hero-transition-spring);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--hero-shadow-lg);
}

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

.gallery-add-btn {
    aspect-ratio: 1;
    border: 3px dashed var(--hero-border);
    border-radius: var(--hero-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--hero-transition-spring);
    background: var(--hero-bg-light);
    color: var(--hero-text-tertiary);
    font-weight: 700;
    gap: 0.75rem;
}

.gallery-add-btn:hover {
    border-color: var(--hero-primary);
    background: var(--hero-primary-alpha);
    color: var(--hero-primary);
    transform: translateY(-4px);
    box-shadow: var(--hero-shadow-md);
}

.gallery-add-btn i {
    font-size: 2.5rem;
}

/* =================================
   AGE SELECTOR - Joyeux & Coloré
================================= */
.age-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.age-chip {
    cursor: pointer;
}

.age-chip input {
    display: none;
}

.chip-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border: 2px solid var(--hero-border);
    border-radius: var(--hero-radius-full);
    background: white;
    transition: var(--hero-transition-spring);
    font-weight: 700;
    color: var(--hero-text-secondary);
    font-size: 0.9375rem;
    box-shadow: var(--hero-shadow-xs);
}

.age-chip:hover .chip-content {
    border-color: var(--hero-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--hero-shadow-md);
}

.age-chip input:checked + .chip-content {
    border-color: var(--hero-primary);
    background: var(--hero-gradient-primary);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--hero-shadow-primary);
}

.chip-icon {
    font-size: 1.75rem;
}

/* =================================
   SERVICES GRID - Cartes modernes
================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
}

.service-toggle {
    cursor: pointer;
}

.service-toggle input {
    display: none;
}

.toggle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 1.75rem 1.25rem;
    border: 2px solid var(--hero-border);
    border-radius: var(--hero-radius);
    background: white;
    transition: var(--hero-transition-spring);
    font-weight: 700;
    color: var(--hero-text-secondary);
    text-align: center;
    box-shadow: var(--hero-shadow-xs);
}

.toggle-content i {
    font-size: 2.25rem;
}

.service-toggle:hover .toggle-content {
    border-color: var(--hero-primary-light);
    transform: translateY(-4px);
    box-shadow: var(--hero-shadow-md);
}

.service-toggle input:checked + .toggle-content {
    border-color: var(--hero-success);
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.08) 0%, rgba(129, 199, 132, 0.08) 100%);
    color: var(--hero-success);
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(102, 187, 106, 0.25);
}

.service-toggle input:checked + .toggle-content i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* =================================
   SUMMARY CARD - Récapitulatif élégant
================================= */
.summary-card {
    background: linear-gradient(135deg, var(--hero-bg-light) 0%, white 100%);
    border: 2px solid var(--hero-border-light);
    border-radius: var(--hero-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--hero-shadow-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--hero-border-light);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 700;
    color: var(--hero-text-secondary);
    font-size: 0.9375rem;
}

.summary-value {
    font-weight: 800;
    color: var(--hero-text);
    font-size: 1rem;
}

/* =================================
   TERMS & MODERATION - Confiance
================================= */
.terms-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--hero-bg-light);
    border-radius: var(--hero-radius);
    border: 1px solid var(--hero-border-light);
}

.hero-checkbox {
    display: flex;
    align-items: start;
    gap: 1.125rem;
    cursor: pointer;
}

.hero-checkbox input[type="checkbox"] {
    width: 26px;
    height: 26px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--hero-primary);
    border-radius: var(--hero-radius-sm);
}

.checkbox-label {
    color: var(--hero-text);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

.checkbox-label a {
    color: var(--hero-primary);
    text-decoration: underline;
    font-weight: 700;
    transition: var(--hero-transition);
}

.checkbox-label a:hover {
    color: var(--hero-primary-dark);
}

.moderation-notice {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
    border-radius: var(--hero-radius);
    border-left: 5px solid var(--hero-warning);
    box-shadow: var(--hero-shadow-sm);
}

.moderation-notice i {
    font-size: 2.25rem;
    color: var(--hero-warning);
}

.moderation-notice strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #8B6914;
    font-size: 1.125rem;
    font-weight: 800;
}

.moderation-notice p {
    margin: 0;
    color: #A17922;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 500;
}

/* =================================
   FORM FOOTER - Actions claires
================================= */
.hero-form-footer {
    background: white;
    border: 1px solid var(--hero-border-light);
    border-radius: var(--hero-radius-lg);
    padding: 1rem 1.75rem;
    margin-top: 0;
    box-shadow: var(--hero-shadow-sm);
}

.footer-content {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.step-indicator {
    font-weight: 800;
    color: var(--hero-text);
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.autosave-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--hero-success);
    opacity: 0;
    transition: var(--hero-transition);
    font-weight: 600;
}

.autosave-indicator.active {
    opacity: 1;
    animation: fadeInUp 0.3s ease;
}

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

.autosave-indicator i {
    font-size: 1.125rem;
}

/* =================================
   BUTTONS - Modernes & Joyeux
================================= */
.btn-hero {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--hero-radius);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hero-transition-spring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--hero-shadow-sm);
    letter-spacing: -0.01em;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--hero-shadow-md);
}

.btn-hero:active {
    transform: translateY(-1px);
}

.btn-hero.btn-primary {
    background: var(--hero-gradient-primary);
    color: white;
}

.btn-hero.btn-primary:hover {
    box-shadow: var(--hero-shadow-primary);
}

.btn-hero.btn-secondary {
    background: var(--hero-bg-dark);
    color: var(--hero-text-secondary);
}

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

.btn-hero.btn-success {
    background: var(--hero-gradient-success);
    color: white;
}

.btn-hero.btn-success:hover {
    box-shadow: 0 8px 24px rgba(102, 187, 106, 0.3);
}

.btn-hero:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =================================
   TOAST NOTIFICATIONS - Élégants
================================= */
.hero-toast-container {
    position: fixed;
    top: 120px;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-toast {
    min-width: 340px;
    padding: 1.25rem 1.75rem;
    background: white;
    border-radius: var(--hero-radius);
    box-shadow: var(--hero-shadow-xl);
    display: flex;
    align-items: center;
    gap: 1.125rem;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--hero-border-light);
}

@keyframes slideInRight {
    from {
        transform: translateX(420px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-toast.success {
    border-left: 5px solid var(--hero-success);
}

.hero-toast.error {
    border-left: 5px solid var(--hero-danger);
}

.hero-toast.warning {
    border-left: 5px solid var(--hero-warning);
}

.toast-icon {
    font-size: 1.75rem;
}

.hero-toast.success .toast-icon {
    color: var(--hero-success);
}

.hero-toast.error .toast-icon {
    color: var(--hero-danger);
}

.hero-toast.warning .toast-icon {
    color: var(--hero-warning);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    margin-bottom: 0.375rem;
    color: var(--hero-text);
    font-size: 1rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--hero-text-secondary);
    font-weight: 500;
    line-height: 1.5;
}

/* =================================
   DRAFT MODAL - Modal de Brouillon
================================= */
.hero-draft-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-draft-modal {
    background: white;
    border-radius: var(--hero-radius-xl);
    box-shadow: var(--hero-shadow-xl);
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--hero-border-light);
}

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

.draft-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--hero-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--hero-shadow-primary);
    animation: pulse 2s ease-in-out infinite;
}

.draft-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--hero-text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.draft-modal-message {
    font-size: 1.0625rem;
    color: var(--hero-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.draft-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.btn-draft {
    padding: 1rem 1.75rem;
    border: none;
    border-radius: var(--hero-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--hero-transition-spring);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--hero-shadow-sm);
    letter-spacing: -0.01em;
}

.btn-draft:hover {
    transform: translateY(-2px);
    box-shadow: var(--hero-shadow-md);
}

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

.btn-draft-restore {
    background: var(--hero-gradient-primary);
    color: white;
    font-weight: 800;
}

.btn-draft-restore:hover {
    box-shadow: var(--hero-shadow-primary);
}

.btn-draft-delete {
    background: linear-gradient(135deg, var(--hero-danger) 0%, #dc2626 100%);
    color: white;
}

.btn-draft-delete:hover {
    box-shadow: 0 8px 24px rgba(239, 83, 80, 0.3);
}

.btn-draft-cancel {
    background: var(--hero-bg-dark);
    color: var(--hero-text-secondary);
    box-shadow: none;
    border: 2px solid var(--hero-border);
}

.btn-draft-cancel:hover {
    background: var(--hero-bg-light);
    color: var(--hero-text);
    border-color: var(--hero-border);
}

/* =================================
   RESPONSIVE DESIGN
================================= */
@media (max-width: 768px) {
    .hero-progress-header {
        padding: 1.5rem 0;
    }
    
    .stepper-wrapper {
        padding: 0 1rem;
        gap: 0.25rem;
    }
    
    .step-name {
        font-size: 0.6875rem;
        margin-top: 0.625rem;
    }
    
    .step-counter {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
    
    .form-step {
        padding: 2rem 1.5rem;
    }
    
    .step-header {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }
    
    .step-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-subtitle {
        font-size: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-input-wrapper.half-width {
        grid-column: 1 / -1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .hero-toast-container {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1rem;
    }
    
    .hero-toast {
        min-width: auto;
    }
    
    .hero-form-footer {
        padding: 1rem 1.25rem;
        margin-top: 1.5rem;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    /* Draft Modal responsive */
    .hero-draft-modal {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .draft-modal-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    .draft-modal-title {
        font-size: 1.5rem;
    }
    
    .draft-modal-message {
        font-size: 1rem;
    }
}

/* =================================
   ANIMATIONS SUPPLÉMENTAIRES
================================= */

/* Loading shimmer pour skeleton screens */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, 
        var(--hero-bg-dark) 25%, 
        var(--hero-bg-light) 50%, 
        var(--hero-bg-dark) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Glow effect pour éléments actifs */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--hero-primary-alpha);
    }
    50% {
        box-shadow: 0 0 25px rgba(12, 192, 223, 0.4);
    }
}

.glow-animation {
    animation: glow 2.5s ease-in-out infinite;
}

/* Success checkmark animation */
@keyframes drawCheck {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.success-checkmark {
    stroke-dasharray: 100;
    animation: drawCheck 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Scroll reveal animations */
@keyframes revealFromBottom {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    animation: revealFromBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* =================================
   PRINT STYLES
================================= */
@media print {
    .hero-progress-header,
    .hero-form-footer,
    .hero-toast-container {
        display: none;
    }
    
    .form-step {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* =================================
   ÉTAPE 0: SÉLECTION TYPE DE CONTENU
================================= */

.content-type-selector {
    padding: 3rem 0;
}

.content-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-type-card {
    position: relative;
    background: white;
    border: 2px solid var(--hero-border-light);
    border-radius: var(--hero-radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: var(--hero-transition-spring);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
}

.content-type-card:hover {
    transform: translateY(-4px);
    border-color: var(--hero-primary);
    box-shadow: var(--hero-shadow-md);
}

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

.content-type-card input[type="radio"]:checked + .card-content {
    border-color: var(--hero-primary);
}

.content-type-card input[type="radio"]:checked ~ .card-checkmark {
    opacity: 1;
    transform: scale(1);
}

.content-type-card.selected {
    border-color: var(--hero-primary);
    background: linear-gradient(135deg, var(--hero-primary-alpha) 0%, white 100%);
    box-shadow: var(--hero-shadow-md);
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: var(--hero-transition-spring);
}

.content-type-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Couleurs spécifiques par type */
.type-adresse .card-icon {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFB5CF 100%);
    color: white;
}

.type-evenement .card-icon {
    background: linear-gradient(135deg, #0cc0df 0%, #5FDBF0 100%);
    color: white;
}

.type-stage .card-icon {
    background: linear-gradient(135deg, #FFA726 0%, #FFCC80 100%);
    color: white;
}

.type-anniversaire .card-icon {
    background: linear-gradient(135deg, #E91E63 0%, #F48FB1 100%);
    color: white;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--hero-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--hero-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.card-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--hero-text-tertiary);
    gap: 0.5rem;
}

.card-features li i {
    color: var(--hero-primary);
    font-size: 0.75rem;
}

.card-checkmark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--hero-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0);
    transition: var(--hero-transition-spring);
}

.content-type-selector-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.content-type-selector-intro h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hero-text);
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.content-type-selector-intro p {
    font-size: 1.0625rem;
    color: var(--hero-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.type-selector-footer {
    margin-top: 2.5rem;
    text-align: center;
}

.type-selector-footer .btn-hero {
    min-width: 240px;
}

@media (max-width: 768px) {
    .content-type-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-type-card {
        min-height: 240px;
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .content-type-selector-intro h2 {
        font-size: 1.5rem;
    }
}
