/**
 * Premium Design - Blocs Couleurs & Pictos
 */

/* ========================================
   SYSTÈME DE COULEURS AVANCÉ
======================================== */

:root {
    /* Gradients Primaires */
    --gradient-primary: linear-gradient(135deg, #FF385C 0%, #FF6B88 100%);
    --gradient-secondary: linear-gradient(135deg, #00A699 0%, #00D4AA 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-orange: linear-gradient(135deg, #FFB400 0%, #FF8A00 100%);
    --gradient-blue: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --gradient-green: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-pink: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    
    /* Background Patterns */
    --pattern-dots: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
    --pattern-grid: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    
    /* Shadows Avancées */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hard: 0 12px 40px rgba(0, 0, 0, 0.18);
    --shadow-colored: 0 8px 32px rgba(255, 56, 92, 0.2);
}

/* ========================================
   HERO AVEC PATTERN & COULEURS
======================================== */

.twm-search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #F093FB 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.twm-search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pattern-dots);
    background-size: 20px 20px;
    opacity: 0.15;
}

.twm-search-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ========================================
   CARDS PREMIUM AVEC COULEURS
======================================== */

.twm-meal-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.twm-meal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 56, 92, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.twm-meal-card:hover::before {
    opacity: 1;
}

/* ========================================
   BLOCS COLORÉS
======================================== */

/* Info Box Colorés */
.twm-info-box {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-soft);
}

.twm-info-box-primary {
    background: linear-gradient(135deg, #FFF1F3 0%, #FFE4E8 100%);
    border-left: 4px solid #FF385C;
}

.twm-info-box-success {
    background: linear-gradient(135deg, #F0FFF4 0%, #DCFCE7 100%);
    border-left: 4px solid #10B981;
}

.twm-info-box-warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-left: 4px solid #FFB400;
}

.twm-info-box-info {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-left: 4px solid #0EA5E9;
}

.twm-info-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.twm-info-box-primary .twm-info-box-icon {
    background: var(--gradient-primary);
    color: white;
}

.twm-info-box-success .twm-info-box-icon {
    background: var(--gradient-green);
    color: white;
}

.twm-info-box-warning .twm-info-box-icon {
    background: var(--gradient-orange);
    color: white;
}

.twm-info-box-info .twm-info-box-icon {
    background: var(--gradient-blue);
    color: white;
}

/* ========================================
   SECTIONS AVEC BACKGROUNDS
======================================== */

.twm-section-colored {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.twm-section-primary {
    background: linear-gradient(135deg, #FFF1F3 0%, #FFE4E8 100%);
}

.twm-section-secondary {
    background: linear-gradient(135deg, #F0FFF4 0%, #DCFCE7 100%);
}

.twm-section-tertiary {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}

.twm-section-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #F093FB 100%);
    color: white;
}

.twm-section-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pattern-dots);
    background-size: 30px 30px;
    opacity: 0.1;
}

/* ========================================
   PICTOS & ICÔNES PARTOUT
======================================== */

/* Icon Boxes - Grandes icônes avec descriptions */
.twm-icon-box {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.twm-icon-box:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hard);
}

.twm-icon-box-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 56, 92, 0.3);
    transition: all 0.3s ease;
}

.twm-icon-box:hover .twm-icon-box-icon {
    transform: scale(1.1) rotate(5deg);
}

.twm-icon-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.twm-icon-box p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Feature List avec Icônes Colorées */
.twm-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.twm-feature-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.twm-feature-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.twm-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.twm-feature-icon-1 { background: linear-gradient(135deg, #FF385C 0%, #FF6B88 100%); color: white; }
.twm-feature-icon-2 { background: linear-gradient(135deg, #00A699 0%, #00D4AA 100%); color: white; }
.twm-feature-icon-3 { background: linear-gradient(135deg, #FFB400 0%, #FF8A00 100%); color: white; }
.twm-feature-icon-4 { background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%); color: white; }
.twm-feature-icon-5 { background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%); color: white; }
.twm-feature-icon-6 { background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%); color: white; }

.twm-feature-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

.twm-feature-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ========================================
   STATISTICS AVEC COULEURS
======================================== */

.twm-stats-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 60px 40px;
    color: white;
}

.twm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.twm-stat-item {
    text-align: center;
}

.twm-stat-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, white 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.twm-stat-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

.twm-stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.8;
}

/* ========================================
   CATEGORY CARDS COLORÉES
======================================== */

.twm-category-card-colored {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.twm-category-card-colored::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    transition: all 0.3s ease;
}

.twm-category-card-colored:hover::before {
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.6) 100%);
}

.twm-category-card-colored:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: var(--shadow-hard);
}

.twm-category-card-colored.color-french {
    background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
}

.twm-category-card-colored.color-italian {
    background: linear-gradient(135deg, #00A699 0%, #00695C 100%);
}

.twm-category-card-colored.color-japanese {
    background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
}

.twm-category-card-colored.color-mediterranean {
    background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 100%);
}

.twm-category-content {
    position: relative;
    z-index: 1;
    color: white;
}

.twm-category-emoji {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.twm-category-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.twm-category-content p {
    font-size: 14px;
    opacity: 0.95;
}

/* ========================================
   TIMELINE / STEPS COLORÉS
======================================== */

.twm-steps {
    display: flex;
    justify-content: space-between;
    margin: 60px 0;
    position: relative;
}

.twm-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #FF385C 0%, #00A699 50%, #0EA5E9 100%);
    z-index: 0;
}

.twm-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.twm-step-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 4px solid white;
}

.twm-step:nth-child(1) .twm-step-circle { background: var(--gradient-primary); }
.twm-step:nth-child(2) .twm-step-circle { background: var(--gradient-secondary); }
.twm-step:nth-child(3) .twm-step-circle { background: var(--gradient-blue); }
.twm-step:nth-child(4) .twm-step-circle { background: var(--gradient-green); }

.twm-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.twm-step p {
    font-size: 14px;
    color: #666;
}

/* ========================================
   PICTOS DANS LES MÉTADONNÉES
======================================== */

.twm-meal-meta-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.twm-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 1.5px solid #E8E8E8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    transition: all 0.3s ease;
}

.twm-meta-tag:hover {
    border-color: #FF385C;
    background: #FFF1F3;
    transform: scale(1.05);
}

.twm-meta-tag i {
    font-size: 14px;
    color: #FF385C;
}

/* Types spécifiques avec couleurs */
.twm-meta-location { border-color: #0EA5E9; }
.twm-meta-location:hover { background: #F0F9FF; border-color: #0EA5E9; }
.twm-meta-location i { color: #0EA5E9; }

.twm-meta-guests { border-color: #8B5CF6; }
.twm-meta-guests:hover { background: #F5F3FF; border-color: #8B5CF6; }
.twm-meta-guests i { color: #8B5CF6; }

.twm-meta-duration { border-color: #00A699; }
.twm-meta-duration:hover { background: #F0FFF4; border-color: #00A699; }
.twm-meta-duration i { color: #00A699; }

/* ========================================
   BOUTONS AVEC GRADIENTS
======================================== */

.twm-btn-gradient-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.twm-btn-gradient-primary:hover {
    box-shadow: 0 8px 28px rgba(255, 56, 92, 0.4);
    transform: translateY(-3px);
}

.twm-btn-gradient-primary:active {
    transform: translateY(-1px);
}

.twm-btn-gradient-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 166, 153, 0.3);
}

.twm-btn-gradient-secondary:hover {
    box-shadow: 0 8px 28px rgba(0, 166, 153, 0.4);
}

/* ========================================
   TAGS / LABELS COLORÉS
======================================== */

.twm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.twm-tag-cuisine {
    background: linear-gradient(135deg, #FFF1F3 0%, #FFE4E8 100%);
    color: #BE123C;
}

.twm-tag-type {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    color: #075985;
}

.twm-tag-dietary {
    background: linear-gradient(135deg, #F0FFF4 0%, #DCFCE7 100%);
    color: #166534;
}

/* ========================================
   CARDS AVEC PATTERN
======================================== */

.twm-card-pattern {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.twm-card-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: var(--pattern-dots);
    background-size: 15px 15px;
    opacity: 0.05;
}

/* ========================================
   COUNTERS ANIMÉS
======================================== */

.twm-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-weight: 600;
}

.twm-counter-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.twm-counter-number {
    font-size: 18px;
    color: #222;
}

/* ========================================
   PROGRESS RINGS (Cercles de progression)
======================================== */

.twm-progress-ring {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto;
}

.twm-progress-ring svg {
    transform: rotate(-90deg);
}

.twm-progress-ring-circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.twm-progress-ring-bg {
    stroke: #EEEEEE;
}

.twm-progress-ring-fill {
    stroke: url(#gradient);
    stroke-dasharray: 339;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s ease;
}

.twm-progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

/* ========================================
   FLOATING ACTION BUTTON
======================================== */

.twm-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(255, 56, 92, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 998;
}

.twm-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(255, 56, 92, 0.5);
}

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

@media (max-width: 768px) {
    .twm-steps {
        flex-direction: column;
        gap: 32px;
    }
    
    .twm-steps::before {
        display: none;
    }
    
    .twm-feature-list {
        grid-template-columns: 1fr;
    }
    
    .twm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .twm-stat-number {
        font-size: 40px;
    }
}
