/**
 * EzWebPro - Templates n8n
 * Palette: Bleu corporate avec accent orange/gradient
 */

/* ===================================
   VARIABLES & RESET
   =================================== */
:root {
    /* Couleurs */
    --color-primary: #0A1A2E;
    --color-primary-light: #1E4D7B;
    --color-accent: #FF6B35;
    --color-accent-hover: #E55A2B;
    --color-accent-light: #FF8B5E;
    --color-accent-glow: rgba(255, 107, 53, 0.15);
    --color-blue: #0080FF;
    --color-blue-glow: rgba(0, 128, 255, 0.15);
    --color-text: #1a202c;
    --color-text-light: #64748B;
    --color-text-inverse: #F8FAFC;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #0A1A2E;
    --color-border: #E2E8F0;
    --color-success: #10B981;
    
    /* Typographie */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Autres */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(10, 26, 46, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 26, 46, 0.1);
    --shadow-lg: 0 10px 40px rgba(10, 26, 46, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ===================================
   LAYOUT
   =================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-2xl) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-text-inverse);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.7);
}

.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section__subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo--text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo__mark {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-heading);
}

.logo__mark--pro {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav__link {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

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

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.lang-switch {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.lang-switch:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Mobile menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav__list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-md);
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__link {
        display: block;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--color-border);
    }
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn--primary:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
}

.btn--secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn--outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-light:hover {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: white;
}

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn--block {
    width: 100%;
}

/* ===================================
   HERO
   =================================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 100px;
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero__title {
    color: white;
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ===================================
   HOW IT WORKS
   =================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step {
    text-align: center;
    padding: var(--space-lg);
}

.step__number {
    width: 60px;
    height: 60px;
    background: var(--color-accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.step__title {
    margin-bottom: var(--space-xs);
}

.step__desc {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ===================================
   TEMPLATE GRID
   =================================== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.template-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.template-card__header {
    padding: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.template-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-blue-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    flex-shrink: 0;
}

.template-card__meta {
    flex: 1;
}

.template-card__category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    font-weight: 600;
}

.template-card__name {
    font-size: 1.125rem;
    margin: 0.25rem 0 0;
    color: var(--color-primary);
}

.template-card__badge {
    background: var(--color-accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-card__body {
    padding: 0 var(--space-md) var(--space-md);
    flex: 1;
}

.template-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

.template-card__footer {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg-alt);
}

.template-card__price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.template-card__price span {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* ===================================
   UPSELL SECTION
   =================================== */
.upsell-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .upsell-grid {
        grid-template-columns: 1fr;
    }
}

.upsell-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 2px solid var(--color-border);
    transition: var(--transition);
}

.upsell-card:hover {
    border-color: var(--color-accent);
}

.upsell-card--featured {
    border-color: var(--color-accent);
    position: relative;
}

.upsell-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.upsell-card__icon {
    width: 56px;
    height: 56px;
    background: var(--color-accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.upsell-card__title {
    margin-bottom: var(--space-xs);
}

.upsell-card__desc {
    margin-bottom: var(--space-md);
}

.upsell-card__price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

/* ===================================
   FAQ
   =================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
    width: 100%;
    text-align: left;
    padding: var(--space-md) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.faq-item__question:hover {
    color: var(--color-accent);
}

.faq-item__icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer p {
    padding-bottom: var(--space-md);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.footer__brand .logo {
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}

.footer__division {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__division a {
    color: var(--color-accent);
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer__copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    transition: var(--transition);
}

.footer__social a:hover {
    background: var(--color-accent);
    color: white;
}

/* ===================================
   UTILITIES
   =================================== */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
