/* ================================
   ORGAMIA - Style 2026
   OKLCH Colors + Modern Aesthetics
   ================================ */

/* === CSS Variables === */
:root {
    /* OKLCH Colors - Modern color space 2026 */
    --bg-dark: oklch(28% 0.02 260);
    --bg-darker: oklch(24% 0.02 260);
    --surface: oklch(32% 0.02 260);
    --surface-light: oklch(38% 0.02 260);
    
    /* Palette de couleurs 2026 - Élégante et professionnelle */
    --accent-primary: oklch(45% 0.15 250);      /* Bleu profond élégant */
    --accent-primary-hover: oklch(40% 0.15 250);
    --accent-secondary: oklch(55% 0.12 180);    /* Turquoise doux */
    --accent-tertiary: oklch(60% 0.18 60);      /* Violet doux */
    
    --text-primary: oklch(92% 0.01 260);
    --text-secondary: oklch(75% 0.02 260);
    --text-muted: oklch(60% 0.02 260);
    
    /* Pack colors - Palette harmonieuse */
    --pack-essentiel: oklch(55% 0.12 180);      /* Turquoise */
    --pack-gestion: oklch(45% 0.15 250);        /* Bleu profond */
    --pack-premium: oklch(60% 0.18 60);         /* Violet doux */
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

h1, h2, h3, h4 {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* === Utility Classes === */
.gradient-text {
    color: var(--accent-primary);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 16px oklch(45% 0.15 250 / 0.4);
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px oklch(45% 0.15 250 / 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--surface-light);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--accent-primary);
}

.btn-pack {
    width: 100%;
    justify-content: center;
    background: var(--surface-light);
    color: var(--text-primary);
}

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--surface-light);
    box-shadow: 0 2px 12px oklch(0% 0 0 / 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: var(--bg-dark);
    box-shadow: 0 4px 20px oklch(0% 0 0 / 0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 85px;
    width: auto;
    display: block;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.btn-nav {
    background: var(--accent-primary);
    color: white !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
}

.btn-nav:hover {
    background: var(--accent-primary-hover);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-dark);
    background-image: url('https://images.pexels.com/photos/8367809/pexels-photo-8367809.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: oklch(28% 0.02 260 / 0.75);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 700px;
    padding: 0 var(--space-md);
    animation: fadeInUp 0.8s ease-out;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

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

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.floating-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1s; margin-left: 40px; margin-top: 20px; }
.card-3 { animation-delay: 2s; margin-left: 20px; margin-top: 20px; }

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

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* === Services Section === */
.services {
    padding: var(--space-2xl) 0;
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px oklch(0% 0 0 / 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(45% 0.15 250 / 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === Pricing Section === */
.pricing {
    padding: var(--space-2xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    align-items: start;
}

.pack-card {
    position: relative;
    padding: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

.pack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.pack-essentiel::before {
    background: var(--pack-essentiel);
}

.pack-gestion::before {
    background: var(--pack-gestion);
}

.pack-premium::before {
    background: var(--pack-premium);
}

.pack-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px oklch(0% 0 0 / 0.4);
}

.pack-card.featured {
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.pack-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.pack-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.featured .pack-badge {
    background: var(--accent-primary);
    color: white;
}

.pack-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.pack-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    border-radius: var(--radius-lg);
}

.pack-essentiel .pack-icon {
    background: oklch(55% 0.12 180 / 0.2);
    color: var(--pack-essentiel);
}

.pack-gestion .pack-icon {
    background: oklch(45% 0.15 250 / 0.2);
    color: var(--pack-gestion);
}

.pack-premium .pack-icon {
    background: oklch(60% 0.18 60 / 0.2);
    color: var(--pack-premium);
}

.pack-icon i {
    font-size: 1.75rem;
}

.pack-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.pack-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pack-price .price {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 700;
}

.pack-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
}

.pack-price .period {
    color: var(--text-muted);
    font-size: 1rem;
}

.pack-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--surface-light);
}

.pack-features {
    margin-bottom: var(--space-md);
}

.pack-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pack-features li i {
    color: var(--accent-primary);
    font-size: 0.875rem;
}

.pack-pricing {
    background: var(--bg-dark);
    margin: 0 calc(var(--space-lg) * -1);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: 0.95rem;
}

.pricing-row .amount {
    font-weight: 700;
    color: var(--accent-primary);
}

/* === Options Section === */
.options {
    padding: var(--space-2xl) 0;
    background: var(--bg-darker);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.option-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.option-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.option-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(55% 0.12 180 / 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.option-icon i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

.option-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.option-price {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.option-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.option-content ul {
    margin-top: var(--space-sm);
}

.option-content li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

.option-content li i {
    font-size: 0.75rem;
    color: var(--accent-primary);
}

/* === Majorations Section === */
.majorations {
    padding: var(--space-2xl) 0;
}

.majorations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.majoration-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.majoration-item:hover {
    border-color: var(--accent-tertiary);
}

.majoration-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(60% 0.18 60 / 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.majoration-icon i {
    font-size: 1.25rem;
    color: var(--accent-tertiary);
}

.majoration-info h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.majoration-rate {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-tertiary);
}

/* === Contact Section === */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--bg-darker);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-details {
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
}

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

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.contact-form-wrapper {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-sm);
    background: var(--bg-dark);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px oklch(45% 0.15 250 / 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-dark);
}

.success-message,
.error-message {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.success-message {
    background: oklch(45% 0.15 250 / 0.1);
    border: 1px solid var(--accent-primary);
}

.success-message i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.success-message p {
    color: var(--text-secondary);
}

.error-message {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: oklch(65% 0.2 25 / 0.1);
    border: 1px solid oklch(65% 0.2 25);
    color: oklch(75% 0.15 25);
    padding: var(--space-sm);
    text-align: left;
}

/* === Footer === */
.footer {
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid var(--surface-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--surface-light);
}

.footer-brand .logo {
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* === Scroll Animations === */
@supports (animation-timeline: scroll()) {
    .service-card,
    .pack-card,
    .option-card,
    .majoration-item {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }
    
    @keyframes reveal {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* === Responsive === */
@media (min-width: 1024px) {
    .hero-visual {
        display: block;
    }
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: oklch(28% 0.02 260);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-md);
        border-bottom: 1px solid var(--surface-light);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pack-card.featured {
        transform: none;
    }
    
    .option-card {
        flex-direction: column;
        text-align: center;
    }
    
    .option-icon {
        margin: 0 auto;
    }
}
