/* ========================================
   SPRINT MARQUE - Custom Styles
   Palette: Bleu Électrique + Fond Sombre (Style PDF)
   ======================================== */

/* Variables CSS */
:root {
    --primary-color: #0000FF; /* Bleu électrique pur */
    --primary-dark: #0000CC; /* Bleu électrique foncé */
    --electric-blue: #2B2BFF; /* Bleu électrique avec teinte */
    --dark-bg: #1a1a1a; /* Fond sombre principal */
    --dark-bg-secondary: #2d2d2d; /* Fond sombre secondaire */
    --dark-bg-card: #2a2a2a; /* Fond cartes sombres */

    --accent-yellow: #FFD700; /* Jaune pour formule Pro */
    --accent-purple: #8B00FF; /* Violet pour formule Premium */
    --accent-purple-dark: #7000CC; /* Violet foncé pour hover */

    --blue-gradient: linear-gradient(135deg, #0000FF 0%, #2B2BFF 50%, #0000CC 100%);
    --purple-gradient: linear-gradient(135deg, #0000FF 0%, #8B00FF 50%, #FF00FF 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);

    --text-dark: #1a1a1a;
    --text-light: #ffffff; /* Texte blanc sur fond sombre */
    --text-gray: #cccccc; /* Texte gris clair */
    --gray-light: #f5f5f5;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-link {
    @apply text-gray-700 font-medium transition-colors duration-300;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link-mobile {
    @apply text-gray-700 font-medium py-2 transition-colors duration-300;
}

.nav-link-mobile:hover {
    color: var(--primary-color);
}

.btn-nav-cta {
    background: var(--gold-gradient);
    background-size: 200% 100%;
    @apply text-gray-900 font-semibold px-6 py-2 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg;
    animation: shimmer 3s infinite;
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn-hero {
    background: var(--gold-gradient);
    background-size: 200% 100%;
    @apply inline-flex items-center px-8 py-4 text-gray-900 font-bold text-lg rounded-xl transition-all duration-300 transform hover:scale-105 hover:shadow-2xl;
    animation: shimmer 3s infinite;
}

.btn-hero-secondary {
    @apply inline-flex items-center px-8 py-4 bg-white/10 hover:bg-white/20 backdrop-blur-sm text-white font-bold text-lg rounded-xl border-2 border-white/30 hover:border-white/50 transition-all duration-300;
}

.btn-primary {
    background: var(--gold-gradient);
    background-size: 200% 100%;
    @apply inline-block px-6 py-3 text-gray-900 font-semibold rounded-lg transition-all duration-300 transform hover:scale-105 hover:shadow-xl;
}

.btn-pricing {
    background: var(--blue-gradient);
    @apply w-full py-4 text-white font-bold text-lg rounded-lg transition-all duration-500 transform hover:scale-105 hover:shadow-2xl;
}

.btn-pricing.premium {
    background: var(--gold-gradient);
    background-size: 200% 100%;
    @apply text-gray-900;
    animation: shimmer 3s infinite;
}

.btn-submit {
    background: var(--gold-gradient);
    background-size: 200% 100%;
    @apply w-full flex items-center justify-center px-8 py-4 text-gray-900 font-bold text-lg rounded-xl transition-all duration-300 transform hover:scale-105 hover:shadow-2xl relative overflow-hidden;
}

.btn-submit .btn-text {
    @apply relative z-10;
}

.btn-submit .btn-icon {
    @apply w-6 h-6 ml-3 relative z-10;
}

.btn-submit:disabled {
    @apply opacity-50 cursor-not-allowed;
}

/* Loading state */
.btn-loading .btn-text,
.btn-loading .btn-icon {
    @apply opacity-0;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   CARDS & SECTIONS - AMÉLIORÉES
   ======================================== */

/* Decision Cards - Version élégante */
.decision-card {
    @apply bg-white rounded-2xl p-8 shadow-xl hover:shadow-2xl transition-all duration-500 border border-gray-100 relative overflow-hidden;
    transform-origin: center;
}

.decision-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    animation: shimmer 3s infinite;
}

.decision-card:hover::before {
    transform: scaleX(1);
}

.decision-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--secondary-color);
}

.decision-number {
    display: inline-flex;
    align-items: center;
    justify-center;
    width: 64px;
    height: 64px;
    background: var(--blue-gradient);
    color: white;
    font-weight: 800;
    font-size: 28px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    position: relative;
}

.decision-number::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: var(--gold-gradient);
    -webkit-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;
}

.decision-card:hover .decision-number::after {
    opacity: 1;
}

/* Livrable Cards */
.livrable-card {
    @apply bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 hover:shadow-xl transition-all duration-300 border-2 border-blue-200/50;
}

.livrable-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--blue-gradient);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}

/* Pricing Cards - Version élégante avec boutons en bas */
.pricing-card {
    @apply bg-white rounded-3xl shadow-2xl hover:shadow-3xl transition-all duration-500 border-2 border-gray-200 relative overflow-hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
}

.pricing-card-header {
    @apply text-center pt-8 pb-6 px-6;
}

.pricing-card-body {
    @apply px-6 pb-6 flex-grow;
}

.pricing-card-footer {
    @apply p-6 mt-auto;
}

.pricing-card.premium {
    border: 3px solid;
    border-image: var(--gold-gradient) 1;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
}

.pricing-card.premium:hover {
    transform: scale(1.08) translateY(-8px);
}

.badge-premium {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold-gradient);
    background-size: 200% 100%;
    color: #1a1a1a;
    padding: 0.5rem 1.5rem;
    border-bottom-left-radius: 1rem;
    border-top-right-radius: 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    animation: shimmer 3s infinite;
}

/* ========================================
   TIMELINE (PROCESSUS) - Version corrigée
   ======================================== */

.timeline-item {
    @apply relative mb-24 md:mb-32;
}

.timeline-item:last-child {
    @apply mb-0;
}

.timeline-content {
    @apply bg-white rounded-2xl p-8 md:p-10 shadow-xl relative border-2 border-gray-100;
    transition: all 0.5s ease;
}

.timeline-content:hover {
    @apply shadow-2xl;
    border-color: var(--secondary-color);
    transform: translateX(8px);
}

.timeline-content.left {
    @apply md:mr-auto md:ml-0 md:w-[calc(50%-4rem)];
}

.timeline-content.right {
    @apply md:ml-auto md:mr-0 md:w-[calc(50%-4rem)];
}

.timeline-content.right:hover {
    transform: translateX(-8px);
}

.timeline-number {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gold-gradient);
    background-size: 200% 100%;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 28px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    z-index: 20;
    animation: shimmer 3s infinite;
}

/* Position pour mobile */
.timeline-number {
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
}

/* Position pour desktop */
@media (min-width: 768px) {
    .timeline-content.left .timeline-number {
        left: auto;
        right: -32px;
        top: 50%;
        transform: translateY(-50%);
    }

    .timeline-content.right .timeline-number {
        right: auto;
        left: -32px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Ligne verticale centrale pour desktop */
@media (min-width: 768px) {
    .timeline-item::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: -32px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
        z-index: 1;
    }

    .timeline-item:last-child::after {
        display: none;
    }

    /* Point de connexion sur la ligne */
    .timeline-item::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 16px;
        height: 16px;
        background: white;
        border: 3px solid var(--primary-color);
        border-radius: 50%;
        z-index: 10;
    }
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-input {
    @apply w-full px-4 py-3 bg-white/90 text-gray-800 border-2 border-white/30 rounded-lg transition-all duration-300 placeholder-gray-400;
}

.form-input:focus {
    @apply shadow-lg bg-white;
    border-color: var(--secondary-color);
    outline: none;
}

.form-input.error {
    @apply border-red-500 bg-red-50/90;
}

.error-message {
    @apply text-red-300 text-sm mt-1 flex items-center;
}

.error-message::before {
    content: "⚠";
    @apply mr-1;
}

/* Success/Error Messages */
.alert-success {
    @apply bg-green-100 border-l-4 border-green-500 text-green-700 p-4 rounded-r-lg mb-4;
}

.alert-error {
    @apply bg-red-100 border-l-4 border-red-500 text-red-700 p-4 rounded-r-lg mb-4;
}

/* Sélection de texte dans les inputs */
input::selection,
textarea::selection {
    background: var(--electric-blue);
    color: white;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Fade in up animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Counter animation */
.counter {
    @apply inline-block;
}

/* ========================================
   UTILITIES
   ======================================== */

.container {
    @apply max-w-7xl;
}

section {
    @apply scroll-mt-20;
}

a,
button {
    @apply transition-all duration-300;
}

/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus {
    @apply outline-none ring-2 ring-offset-2;
    ring-color: var(--secondary-color);
}

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

@media (max-width: 768px) {
    #hero h1 {
        @apply text-4xl;
    }

    h2 {
        @apply text-3xl;
    }

    section {
        @apply py-16;
    }

    #mobile-menu {
        @apply transition-all duration-300;
    }

    .decision-card {
        @apply p-6;
    }

    .decision-number {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .pricing-card {
        min-height: auto;
    }

    .pricing-card.premium {
        transform: scale(1);
    }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #0000FF !important;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2B2BFF !important;
}

::-webkit-scrollbar-thumb:active {
    background: #0000FF !important;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   LOGO GLITCH EFFECT - Subtil et Corporate
   ======================================== */

.logo-glitch {
    position: relative;
    display: inline-block;
}

.logo-glitch::before,
.logo-glitch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0;
}

.logo-glitch:hover::before {
    animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    opacity: 0.8;
    z-index: -1;
}

.logo-glitch:hover::after {
    animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    opacity: 0.8;
    z-index: -2;
}

@keyframes glitch-1 {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px) translateY(1px);
    }
    40% {
        transform: translateX(-2px) translateY(-1px);
    }
    60% {
        transform: translateX(2px) translateY(1px);
    }
    80% {
        transform: translateX(1px) translateY(-1px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes glitch-2 {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(2px) translateY(1px);
    }
    40% {
        transform: translateX(2px) translateY(-1px);
    }
    60% {
        transform: translateX(-2px) translateY(1px);
    }
    80% {
        transform: translateX(-1px) translateY(-1px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Version alternative: Glitch subtil mais visible */
.logo-glitch-subtle {
    animation: subtle-glitch 3s ease-in-out infinite;
}

@keyframes subtle-glitch {
    0%, 100% {
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    5% {
        transform: translateX(-3px) scale(1.02);
        filter: brightness(1.2);
    }
    10% {
        transform: translateX(3px) scale(0.98);
        filter: brightness(0.9);
    }
    15% {
        transform: translateX(-2px) scale(1.01);
    }
    20% {
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateX(0) scale(1.03);
        filter: brightness(1.1);
    }
    55% {
        transform: translateX(2px) scale(0.99);
    }
    60% {
        transform: translateX(-2px) scale(1.01);
    }
    65% {
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
}

/* ========================================
   MISC
   ======================================== */

body {
    overflow-x: hidden;
}

img {
    @apply max-w-full h-auto;
}

::selection {
    background: var(--secondary-color);
    color: white;
}

::-moz-selection {
    background: var(--secondary-color);
    color: white;
}
