/* Styles pour le Hero - Badge et H1 avec effet visuel */
#hero-badge {
    background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#hero-h1 .highlight-word {
    display: inline-block;
    background-color: #111827;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transform: rotate(2deg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

#hero-h1 .highlight-word:hover {
    transform: rotate(2deg) scale(1.05);
}

/* Animation pour le défilement des logos partenaires */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.logos-slide:hover {
    animation-play-state: paused;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   RESPONSIVE GLOBAL - MOBILE, TABLETTE, DESKTOP
   ============================================ */

/* Masquer la scrollbar sur mobile pour la barre de progression */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ajustements pour mobile (< 640px) */
@media (max-width: 639px) {
    /* Navigation */
    nav {
        padding: 0.5rem 0;
    }
    
    nav .h-20 {
        height: 4rem;
    }
    
    /* Hero Section */
    .pt-32 {
        padding-top: 6rem;
    }
    
    /* Titres */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Boutons */
    .neomorphic-button-primary,
    .neomorphic-button-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }
    
    /* Formulaire */
    .neomorphic-container {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .neomorphic-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Barre de progression - scroll horizontal */
    #progress-bar-container .flex {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    
    .progress-step {
        min-width: 60px !important;
    }
    
    .progress-step .w-10 {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
    
    .progress-step span {
        font-size: 0.625rem;
    }
    
    /* Grilles */
    .grid {
        gap: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Footer */
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Cards */
    .neomorphic-card {
        padding: 1rem;
    }
    
    /* Espacement des boutons de navigation */
    .flex.justify-between.gap-4 {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .flex.justify-between.gap-4 button {
        width: 100%;
    }
}

/* Ajustements pour tablette (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
    /* Navigation */
    nav .h-20 {
        height: 5rem;
    }
    
    /* Hero Section */
    .pt-32 {
        padding-top: 7rem;
    }
    
    /* Titres */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Formulaire */
    .neomorphic-container {
        padding: 1.5rem;
    }
    
    /* Barre de progression */
    .progress-step {
        min-width: 65px !important;
    }
    
    /* Grilles - 2 colonnes max sur tablette */
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-1.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-1.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustements pour desktop (> 1024px) */
@media (min-width: 1024px) {
    /* Navigation */
    nav .h-20 {
        height: 5rem;
    }
    
    /* Espacement des sections */
    section {
        padding: 5rem 0;
    }
}

/* Amélioration du menu mobile */
@media (max-width: 767px) {
    #mobile-menu {
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }
    
    #mobile-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* Amélioration des images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Amélioration des tableaux sur mobile */
@media (max-width: 639px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Styles pour le tableau de comparaison des offres */
table.neomorphic-card {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table.neomorphic-card thead th {
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

table.neomorphic-card tbody tr {
    transition: background-color 0.2s ease;
}

table.neomorphic-card tbody tr:hover {
    background-color: #f9fafb;
}

table.neomorphic-card tbody td {
    vertical-align: top;
    padding: 1rem;
}

/* Responsive pour le tableau de comparaison */
@media (max-width: 1023px) {
    table.neomorphic-card {
        font-size: 0.875rem;
    }
    
    table.neomorphic-card thead th,
    table.neomorphic-card tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    table.neomorphic-card thead th {
        font-size: 0.7rem;
    }
}

@media (max-width: 767px) {
    table.neomorphic-card {
        font-size: 0.8rem;
    }
    
    table.neomorphic-card thead th,
    table.neomorphic-card tbody td {
        padding: 0.5rem 0.25rem;
        min-width: 120px;
    }
    
    table.neomorphic-card thead th {
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }
    
    /* Masquer certaines colonnes sur très petit écran si nécessaire */
    table.neomorphic-card tbody td:nth-child(3),
    table.neomorphic-card thead th:nth-child(3) {
        min-width: 150px;
    }
}

/* Amélioration des modales et popups */
@media (max-width: 639px) {
    .modal,
    .popup {
        width: 95%;
        margin: 1rem auto;
        padding: 1rem;
    }
}

/* Amélioration du chat widget sur mobile */
@media (max-width: 639px) {
    #chat-widget {
        bottom: 1rem;
        right: 1rem;
    }
    
    #chat-window {
        width: calc(100vw - 2rem);
        height: calc(100vh - 8rem);
        max-width: none;
        max-height: none;
    }
}

/* Styles personnalisés supplémentaires */
.faq-answer {
    transition: all 0.3s ease;
}

.faq-question svg {
    transition: transform 0.3s ease;
}

/* Animations pour le formulaire multi-étapes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.progress-step.active .w-10 {
    background-color: #dc2626;
    color: white;
}

.progress-step.active span {
    color: #111827;
    font-weight: 600;
}

/* Styles Néomorphisme pour le formulaire */
.neomorphic-container {
    background: #e5e7eb;
    box-shadow: 
        20px 20px 60px #c4c6c9,
        -20px -20px 60px #ffffff,
        inset 0 0 0 rgba(0, 0, 0, 0);
}

.neomorphic-input {
    background: #e5e7eb;
    border: none;
    box-shadow: 
        inset 8px 8px 16px #c4c6c9,
        inset -8px -8px 16px #ffffff;
    color: #374151;
    transition: all 0.3s ease;
}

.neomorphic-input:focus {
    outline: none;
    box-shadow: 
        inset 4px 4px 8px #c4c6c9,
        inset -4px -4px 8px #ffffff,
        0 0 0 3px rgba(220, 38, 38, 0.2);
    background: #f3f4f6;
}

.neomorphic-input::placeholder {
    color: #9ca3af;
}

.neomorphic-box {
    background: #e5e7eb;
    box-shadow: 
        inset 6px 6px 12px #c4c6c9,
        inset -6px -6px 12px #ffffff;
}

.neomorphic-button-primary {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    box-shadow: 
        8px 8px 16px #991b1b,
        -8px -8px 16px #ef4444,
        inset 0 0 0 rgba(0, 0, 0, 0);
    border: none;
}

.neomorphic-button-primary:hover {
    box-shadow: 
        4px 4px 8px #991b1b,
        -4px -4px 8px #ef4444,
        inset 0 0 0 rgba(0, 0, 0, 0);
    transform: translateY(2px);
}

.neomorphic-button-primary:active {
    box-shadow: 
        inset 4px 4px 8px #991b1b,
        inset -4px -4px 8px #ef4444;
    transform: translateY(4px);
}

.neomorphic-button-secondary {
    background: #e5e7eb;
    box-shadow: 
        8px 8px 16px #c4c6c9,
        -8px -8px 16px #ffffff;
    border: none;
}

.neomorphic-button-secondary:hover {
    box-shadow: 
        4px 4px 8px #c4c6c9,
        -4px -4px 8px #ffffff;
    transform: translateY(2px);
}

.neomorphic-button-secondary:active {
    box-shadow: 
        inset 4px 4px 8px #c4c6c9,
        inset -4px -4px 8px #ffffff;
    transform: translateY(4px);
}

.neomorphic-step-active {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    box-shadow: 
    6px 6px 12px #c4c6c9,
    -6px -6px 12px #ffffff;
}

.neomorphic-step-inactive {
    background: #e5e7eb;
    box-shadow: 
        6px 6px 12px #c4c6c9,
        -6px -6px 12px #ffffff;
}

.neomorphic-progress-bar {
    background: #e5e7eb;
    box-shadow: 
        inset 4px 4px 8px #c4c6c9,
        inset -4px -4px 8px #ffffff;
}

.neomorphic-progress-fill {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    box-shadow: 
        0 0 10px rgba(220, 38, 38, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    width: 0%;
}

.neomorphic-checkbox {
    width: 20px;
    height: 20px;
    appearance: none;
    background: #e5e7eb;
    border: none;
    border-radius: 6px;
    box-shadow: 
        inset 4px 4px 8px #c4c6c9,
        inset -4px -4px 8px #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.neomorphic-checkbox:checked {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    box-shadow: 
        4px 4px 8px #991b1b,
        -4px -4px 8px #ef4444,
        inset 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.neomorphic-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.neomorphic-checkbox-label:hover {
    background: #e5e7eb;
    box-shadow: 
        inset 2px 2px 4px #c4c6c9,
        inset -2px -2px 4px #ffffff;
}

/* Animation de chargement */
.loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #e5e7eb;
    border-top: 8px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 
        8px 8px 16px #c4c6c9,
        -8px -8px 16px #ffffff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: #dc2626;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
    box-shadow: 
        4px 4px 8px #c4c6c9,
        -4px -4px 8px #ffffff;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.neomorphic-progress-container {
    background: #e5e7eb;
    box-shadow: 
        inset 4px 4px 8px #c4c6c9,
        inset -4px -4px 8px #ffffff;
}

.neomorphic-progress-bar-fill {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    box-shadow: 
        0 0 15px rgba(220, 38, 38, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.neomorphic-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Animation pour la bannière de cookies */
#cookie-banner {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#cookie-banner:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

/* Top Banner */
/* Animation pour la top banner */
@keyframes scrollBanner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Animations pour les messages spéciaux */
@keyframes flashPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes limitedShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

@keyframes packBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Styles pour les différents types de messages */
#top-banner .message-flash {
    animation: flashPulse 1.5s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

#top-banner .message-limited {
    animation: limitedShake 2s ease-in-out infinite;
    font-weight: 700;
    color: #fef3c7;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

#top-banner .message-pack {
    animation: packBounce 2.5s ease-in-out infinite;
    font-weight: 700;
    color: #dbeafe;
    text-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

#top-banner .message-normal {
    font-weight: 500;
}

/* Ajustements pour mobile */
@media (max-width: 640px) {
    #top-banner {
        padding: 0.5rem 0.75rem;
    }
    
    #top-banner-messages {
        font-size: 0.75rem;
    }
    
    #top-banner-messages svg {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    #top-banner .message-flash,
    #top-banner .message-limited,
    #top-banner .message-pack {
        font-size: 0.75rem;
    }
}

#top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#top-banner.hidden {
    display: none;
}

/* Ajuster la navbar pour qu'elle soit sous la top banner */
#main-navbar {
    position: fixed;
    top: 0;
    transition: top 0.3s ease-out;
}

/* Animations pour le logo et le nom Kymance sur mobile */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.9;
    }
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(220, 38, 38, 0.6), 0 0 25px rgba(220, 38, 38, 0.4);
    }
}

/* Animation du logo sur mobile */
@media (max-width: 767px) {
    .mobile-logo-icon {
        animation: logoPulse 2s ease-in-out infinite, logoRotate 3s ease-in-out infinite;
        transform-origin: center;
    }
    
    .mobile-logo-text {
        animation: textSlideIn 0.8s ease-out, textGlow 2.5s ease-in-out infinite;
        animation-delay: 0.2s, 1s;
    }
    
    /* Animation au hover */
    .mobile-logo-container:hover .mobile-logo-icon {
        animation: logoPulse 0.6s ease-in-out infinite, logoRotate 1s ease-in-out infinite;
    }
    
    .mobile-logo-container:hover .mobile-logo-text {
        animation: textGlow 1s ease-in-out infinite;
        color: #dc2626;
        transition: color 0.3s ease;
    }
}

/* Cartes néomorphiques pour les résultats */
.neomorphic-card {
    background: #e5e7eb;
    box-shadow: 
        12px 12px 24px #c4c6c9,
        -12px -12px 24px #ffffff;
    transition: all 0.3s ease;
}

.neomorphic-card:hover {
    box-shadow: 
        8px 8px 16px #c4c6c9,
        -8px -8px 16px #ffffff;
    transform: translateY(-4px);
}

.neomorphic-card-featured {
    box-shadow: 
        12px 12px 24px #c4c6c9,
        -12px -12px 24px #ffffff,
        0 0 0 3px rgba(220, 38, 38, 0.3);
}

.neomorphic-badge {
    box-shadow: 
        4px 4px 8px rgba(153, 27, 27, 0.4),
        -4px -4px 8px rgba(239, 68, 68, 0.4);
}

