/**
 * Festicash BIS2026 - Design minimaliste
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap');

:root {
    --bg-color: #f4f1ea;
    --text-color: #0d0d0d;
    --accent-color: #ff5e1f;
    --font-main: 'Fredoka', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-color);
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container Principal */
.container {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    position: relative;
}

/* Colonne Gauche */
.content-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    padding-bottom: 2rem;
    padding-right: 2rem;
    position: relative;
}

.logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 50;
}

/* Typographie */
h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: auto;
    padding-top: 2rem;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.highlight {
    color: var(--accent-color);
}

/* Footer Info */
.footer-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 1.2s ease-out 0.4s backwards;
}

/* Countdown */
.countdown-info {
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.countdown-numbers {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.countdown-numbers span {
    color: var(--accent-color);
    font-weight: 700;
}

/* Boutons */
.buttons-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reservation-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
    margin: 0;
    width: 100%;
}

.btn-reservation,
.btn-website {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
}

.btn-reservation {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

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

.btn-reservation:hover,
.btn-website:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Stand Info */
.stand-info {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* BIS Info */
.bis-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bis-logo {
    height: 2.5rem;
    width: auto;
    display: block;
}

.bis-info p {
    font-size: 0.9rem;
    line-height: 1.1;
    font-weight: 600;
}

/* Event Dates */
.event-dates {
    font-size: 0.8rem;
    opacity: 0.6;
    font-weight: 500;
}

/* Bottomsheet */
.bottomsheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottomsheet-overlay.active {
    display: block;
    opacity: 1;
}

.bottomsheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    width: 100%;
    max-width: 600px;
    z-index: 1001;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bottomsheet.active {
    transform: translateX(-50%) translateY(0);
}

.bottomsheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.bottomsheet-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.bottomsheet-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.bottomsheet-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.bottomsheet-content {
    width: 100%;
    overflow-y: auto;
    padding: 2rem;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Formulaire de réservation */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 2px solid var(--text-color);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

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

.date-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.date-tab {
    flex: 1;
    padding: 12px;
    background: var(--bg-color);
    border: 2px solid var(--text-color);
    border-radius: 12px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.date-tab.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 10px;
    background: var(--bg-color);
    border: 2px solid var(--text-color);
    border-radius: 12px;
    font-family: var(--font-main);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.time-slot.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-submit {
    padding: 16px 32px;
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Colonne Droite */
.visual-right {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    z-index: 1;
}

.hand-img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(10px 10px 20px rgba(0,0,0,0.05));
    animation: fadeInUp 1.2s ease-out;
    margin-right: -5%;
}

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

/* Responsive */
@media (max-width: 900px) {
    body {
        height: 100vh;
        display: flex;
        align-items: stretch;
    }

    .container {
        flex-direction: column;
        padding: 1.5rem;
        height: 100vh;
        position: relative;
    }

    .content-left {
        width: 100%;
        text-align: center;
        align-items: center;
        padding-bottom: 0;
        padding-right: 0;
        flex: 0 0 auto;
        justify-content: flex-start;
        z-index: 100;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-top: 1rem;
    }

    .header-logo {
        z-index: 999 !important;
        position: relative !important;
        background: var(--bg-color) !important;
        padding: 1rem;
        margin: -1rem -1rem 0 -1rem;
        display: block !important;
        width: calc(100% + 2rem);
        text-align: center;
    }

    .logo {
        max-width: 180px !important;
        z-index: 999 !important;
        position: relative !important;
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    h1 {
        background: var(--bg-color);
        padding: 1rem;
        margin: -1rem;
        z-index: 150;
        position: relative;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        margin-bottom: 10rem;
        z-index: 150;
        position: relative;
        background: var(--bg-color);
        padding: 1rem;
    }

    .buttons-group {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .btn-reservation,
    .btn-website {
        align-self: center;
        z-index: 200;
        pointer-events: auto;
        position: relative;
        width: 100%;
        text-align: center;
        padding: 16px 40px;
        font-size: 1rem;
    }

    .visual-right {
        position: fixed !important;
        bottom: 0 !important;
        left: 0;
        right: 0;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        justify-content: center;
        align-items: flex-end;
        z-index: 1;
        pointer-events: none;
    }

    .hand-img {
        width: 100% !important;
        height: auto !important;
        max-height: 50vh;
        object-fit: contain !important;
        object-position: bottom center !important;
        margin-right: 0 !important;
    }

    .stand-info {
        font-size: 2.5rem;
    }

    .bis-logo {
        height: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        padding-top: 0.5rem;
    }

    .logo {
        max-width: 150px;
        margin-bottom: 1rem;
    }

    .footer-info {
        gap: 0.8rem;
        margin-top: 1.5rem;
        margin-bottom: 8rem;
    }

    .stand-info {
        font-size: 2rem;
    }

    .bis-logo {
        height: 1.5rem;
    }

    .bis-info p {
        font-size: 0.7rem;
    }

    .countdown-numbers {
        font-size: 1.1rem;
    }

    .btn-reservation,
    .btn-website {
        font-size: 1rem;
        padding: 16px 36px;
    }

    .event-dates {
        font-size: 0.7rem;
    }

    .hand-img {
        max-height: 40vh !important;
    }

    .bottomsheet {
        max-width: 100%;
        left: 0;
        transform: translateY(100%);
        max-height: 85vh;
    }

    .bottomsheet.active {
        transform: translateY(0);
    }

    .bottomsheet-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .bottomsheet-title {
        font-size: 1.4rem;
    }

    .bottomsheet-content {
        padding: 1.5rem;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .date-tabs {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .booking-form {
        padding-bottom: 2rem;
    }

    .btn-submit {
        padding: 18px 40px;
        font-size: 1.05rem;
    }

    .form-input {
        padding: 14px 18px;
        font-size: 1rem;
    }
}
