/* ============================================
   SALON COWORK - V1
   Palette: Bleu #1B3A5C, Beige #C4B8A5, Blanc #F7F5F0, Or #B8956A
   ============================================ */

:root {
    --navy: #0F2440;
    --blue: #1a2744;
    --beige: #C4B8A5;
    --off-white: #F7F5F0;
    --gold: #c9a86c;
    --white: #FFFFFF;
    --text-gray: #5A6B7D;
    --success: #4CAF50;
    --error: #E53935;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a2744;
    color: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background-color: var(--blue);
    padding: 0 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 68px;
}

.logo {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    color: rgba(247, 245, 240, 0.65);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

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

.nav-link::after {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--beige);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 149, 106, 0.4);
}

.btn-secondary {
    background-color: var(--navy);
    color: var(--off-white);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--navy);
}

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

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-nav {
    padding: 9px 20px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    background-color: transparent;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 108, 0.45);
    border-radius: 30px;
    transition: all 0.25s ease;
}

.btn-nav:hover {
    background-color: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-letters {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48vw;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
    color: rgba(201, 168, 108, 0.09);
    white-space: nowrap;
    line-height: 0.85;
    letter-spacing: -0.02em;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.hero-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 18px 18px 14px;
    width: min(400px, 88vw);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55);
}

.hero-card-label {
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 14px;
    font-family: 'Inter', sans-serif;
}

.hero-card-photo {
    line-height: 0;
    overflow: hidden;
}

.hero-card-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.hero-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #999;
    font-family: 'Inter', sans-serif;
}

.hero-arch {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-arch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 110px;
    border: 1px solid rgba(201, 168, 108, 0.35);
    border-bottom: none;
    border-radius: 220px 220px 0 0;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    padding-top: 18px;
    transition: all 0.3s ease;
}

.hero-arch-link:hover {
    background-color: rgba(201, 168, 108, 0.08);
    border-color: var(--gold);
    color: #fff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   SCROLL CARDS
   ============================================ */
.scroll-card {
    margin: 0 2vw 16px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.9s ease;
    will-change: transform, opacity;
}

.scroll-card--hero {
    margin-top: 20px;
    margin-bottom: 16px;
}

/* État initial ajouté par JS uniquement */
.scroll-card.js-hidden {
    opacity: 0;
    transform: translateY(110px) scale(0.91);
}

.scroll-card--hero.js-hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
}

.scroll-card.in-view {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
.section {
    padding: 80px 5%;
}

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

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

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

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

/* ============================================
   TARIFS / PRICING
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 36, 64, 0.1);
}

.pricing-card.popular {
    border-color: var(--gold);
    transform: scale(1.05);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold);
    color: var(--navy);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin: 1rem 0;
}

.pricing-price.popular-price {
    color: var(--gold);
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(196, 184, 165, 0.3);
}

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

/* ============================================
   POSTES / CATALOGUE
   ============================================ */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--navy);
    background-color: var(--white);
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--navy);
    color: var(--off-white);
}

.postes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.poste-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(196, 184, 165, 0.4);
    transition: all 0.4s ease;
}

.poste-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(15, 36, 64, 0.12);
    border-color: var(--gold);
}

.poste-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.poste-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poste-card:hover .poste-image img {
    transform: scale(1.05);
}

.poste-badge-dispo {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--success);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.poste-badge-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--navy);
    color: var(--off-white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.poste-info {
    padding: 1.5rem;
}

.poste-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.poste-type {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.poste-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.poste-features li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.poste-features li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
}

.poste-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(196, 184, 165, 0.3);
}

.poste-prix {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
}

/* ============================================
   PAGE DÉTAIL POSTE + RÉSERVATION
   ============================================ */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 36, 64, 0.15);
}

.detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.detail-info h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.detail-info .type {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.detail-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.equipements-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.equipement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: var(--off-white);
    border-radius: 8px;
    font-size: 0.9rem;
}

.equipement-icon {
    color: var(--gold);
    font-size: 1.1rem;
}

/* Formulaire réservation */
.reservation-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(196, 184, 165, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(196, 184, 165, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--navy);
    background-color: var(--off-white);
    transition: border-color 0.3s ease;
}

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

.creneaux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.creneau-option {
    padding: 12px;
    border: 2px solid rgba(196, 184, 165, 0.5);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.creneau-option:hover,
.creneau-option.selected {
    border-color: var(--gold);
    background-color: rgba(184, 149, 106, 0.1);
}

.creneau-option.selected {
    background-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
}

.creneau-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.creneau-price {
    font-size: 0.8rem;
    opacity: 0.8;
}

.recap-prix {
    background-color: var(--navy);
    color: var(--off-white);
    padding: 1.2rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.recap-prix-label {
    font-size: 0.9rem;
}

.recap-prix-montant {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

/* Stripe Card Element */
#card-element {
    padding: 12px;
    border: 2px solid rgba(196, 184, 165, 0.5);
    border-radius: 8px;
    background-color: var(--off-white);
}

#card-errors {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ============================================
   PAGE CONFIRMATION
   ============================================ */
.confirmation-hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    padding: 60px 5%;
    text-align: center;
    color: var(--off-white);
}

.confirmation-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.confirmation-hero .check {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirmation-card {
    max-width: 500px;
    margin: -40px auto 0;
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(15, 36, 64, 0.15);
    text-align: center;
    position: relative;
    z-index: 2;
}

.qr-container {
    background-color: var(--off-white);
    padding: 2rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 2px solid var(--navy);
}

.qr-container img {
    max-width: 200px;
    height: auto;
}

.qr-label {
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.confirmation-details {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: var(--off-white);
    border-radius: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(196, 184, 165, 0.3);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: var(--navy);
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.salto-note {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(184, 149, 106, 0.1);
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--navy);
    color: var(--beige);
    padding: 60px 5% 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--beige);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--beige);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(196, 184, 165, 0.2);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }

/* Spinner de chargement */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--off-white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Alertes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background-color: rgba(229, 57, 53, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.pricing-swipe-hint {
    display: none;
}

/* ============================================
   STEPS GRID (4 étapes)
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
        grid-template-columns: 1fr auto auto;
        gap: 0.5rem;
    }

    .nav,
    .nav-right {
        display: none;
    }

    .nav-link-mobile-cta {
        display: flex;
        align-items: center;
        color: var(--gold);
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
    }

    .hero {
        min-height: auto;
        padding: 40px 5% 120px;
    }

    .hero-arch-link {
        width: 160px;
        height: 80px;
        border-radius: 160px 160px 0 0;
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        padding-top: 12px;
    }

    .hero-card-photo img {
        height: 220px;
    }

    .section {
        padding: 50px 5%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .postes-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .pricing-card {
        padding: 1.2rem 1rem;
        border-radius: 12px;
    }

    .pricing-card.popular {
        transform: scale(1);
        border-color: var(--gold);
    }

    .pricing-name {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .pricing-price {
        font-size: 2rem;
        margin: 0.4rem 0;
    }

    .pricing-period {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .pricing-features {
        display: none;
    }

    .pricing-swipe-hint {
        display: none;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .creneaux-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .creneau-option {
        padding: 8px 6px;
    }

    .creneau-name {
        font-size: 0.82rem;
    }

    .creneau-price {
        font-size: 0.72rem;
    }

    .equipements-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .equipement-item {
        padding: 7px 10px;
        font-size: 0.82rem;
    }

    .detail-image img {
        height: 220px;
    }

    .detail-info h1 {
        font-size: 1.5rem;
    }

    .reservation-form {
        padding: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn {
        width: 100%;
    }
}

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

    .creneaux-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card-photo img {
        height: 180px;
    }
}

/* Mobile nav toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
}

.nav-link-mobile-cta {
    display: none;
}


@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}
