/* Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
}

.logo-icon {
    font-size: 24px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
}

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

@media (max-width: 900px) {
    .nav {
        display: none;
    }
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-price {
    margin-bottom: 30px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    font-size: 20px;
    color: var(--gray);
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.badge span {
    color: var(--secondary);
    font-weight: 600;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 400px;
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 50px;
}

/* Machines */
.machines {
    background: var(--light);
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.machine-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.machine-card.featured {
    border: 2px solid var(--primary);
}

.machine-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.machine-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.machine-image img {
    max-height: 160px;
}

.machine-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.machine-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
}

.machine-features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.machine-features li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.machine-features li:last-child {
    border-bottom: none;
}

.machine-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .machines-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Tarifs */
.tarifs-table {
    overflow-x: auto;
    margin-bottom: 40px;
}

.tarifs-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tarifs-table th,
.tarifs-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.tarifs-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.tarifs-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.tarifs-table tr:last-child td {
    border-bottom: none;
}

.tarifs-table tr:hover {
    background: var(--light);
}

.tarifs-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.info-card h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--gray);
}

@media (max-width: 700px) {
    .tarifs-info {
        grid-template-columns: 1fr;
    }
}

/* How it works */
.how-it-works {
    background: var(--light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--gray);
}

@media (max-width: 700px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
}

.stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.author {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

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

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

.faq-item {
    background: var(--light);
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--gray);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

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

.cta .btn-primary:hover {
    background: var(--light);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--gray);
    transition: color 0.2s;
}

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

.footer-copy {
    color: var(--gray);
    font-size: 14px;
}

/* Reservation Page Styles */
.page-header {
    padding: 100px 0 40px;
    background: var(--light);
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--gray);
}

.reservation-form {
    padding: 60px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.form-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.machine-select {
    display: grid;
    gap: 10px;
}

.machine-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.machine-option:hover {
    border-color: var(--primary);
}

.machine-option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.machine-option input {
    display: none;
}

.machine-option-info {
    flex: 1;
}

.machine-option-info strong {
    display: block;
    margin-bottom: 4px;
}

.machine-option-info span {
    font-size: 13px;
    color: var(--gray);
}

.machine-option-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Order Summary */
.order-summary {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.summary-line.total {
    border-top: 2px solid var(--dark);
    margin-top: 15px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
}

.summary-caution {
    background: #fef3c7;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 13px;
}

.summary-caution strong {
    display: block;
    margin-bottom: 5px;
}

#payment-element {
    margin: 20px 0;
}

#payment-message {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    margin-top: 15px;
}

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

    .order-summary {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Success Page */
.success-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 500px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: var(--secondary);
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.success-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.order-details {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: left;
    margin: 25px 0;
}

.order-details p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Delivery Options */
.delivery-options {
    display: grid;
    gap: 10px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: var(--primary);
}

.delivery-option.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.delivery-option input {
    display: none;
}

.delivery-option-info {
    flex: 1;
}

.delivery-option-info strong {
    display: block;
    margin-bottom: 4px;
}

.delivery-option-info span {
    font-size: 13px;
    color: var(--gray);
}

.delivery-option-price {
    font-weight: 600;
    color: var(--secondary);
}

/* Calendar */
.calendar-container {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light);
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--primary);
}

.calendar-header span {
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-name {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    background: var(--light);
}

.calendar-day {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: #eff6ff;
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.selected {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.calendar-day.in-range {
    background: #dbeafe;
}

.calendar-day.start-date,
.calendar-day.end-date {
    background: var(--primary);
    color: var(--white);
}

.date-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.date-input {
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.date-input label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.date-input strong {
    font-size: 15px;
}
