/* Fetay Jaune - Custom Theme
   This file is NOT overwritten by CaribPanel regeneration */

:root {
    /* Couleurs principales - Tons nature/tropical pour Fetay Jaune */
    --ocean: #2C5F2D;           /* Vert forêt */
    --ocean-light: #4A7C59;     /* Vert nature clair */
    --coral: #F4A261;           /* Jaune doré (fetay jaune) */
    --coral-light: #F9C74F;     /* Jaune soleil */
    --sand: #FFF8E7;            /* Crème clair */
    
    /* Remplacer les noirs par des verts profonds */
    --dark: #1B3A1B;            /* Vert nuit profond */
    --dark2: #2C4A2C;           /* Vert forêt profond */
    --gray: #5A7A5A;            /* Gris verdâtre */
    --light-gray: #f5f9f5;
    --white: #fff;
    
    /* Shadows avec teinte verte */
    --shadow: 0 8px 32px rgba(27, 58, 27, .12);
    --shadow-lg: 0 16px 48px rgba(27, 58, 27, .18);
}

/* ========================================
   Booking Calendar Styles
   ======================================== */

.bc-wrapper {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.bc-header {
    background: linear-gradient(135deg, var(--ocean), var(--ocean-light));
    color: var(--white);
    padding: 24px;
    text-align: center;
}

.bc-header h3 {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.bc-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.bc-calendar {
    padding: 20px;
}

.bc-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bc-nav button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark);
}

.bc-nav button:hover {
    background: var(--ocean);
    color: var(--white);
}

.bc-month-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
}

.bc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.bc-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    padding: 8px 0;
}

.bc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.bc-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.bc-day.empty {
    background: transparent;
}

.bc-day.past {
    color: #ccc;
    cursor: not-allowed;
}

.bc-day.available {
    background: rgba(44, 95, 45, 0.1);
    color: var(--ocean);
    cursor: pointer;
}

.bc-day.available:hover {
    background: var(--ocean);
    color: var(--white);
}

.bc-day.unavailable {
    background: var(--light-gray);
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

.bc-day.checkin,
.bc-day.checkout {
    background: var(--ocean) !important;
    color: var(--white) !important;
    font-weight: 600;
}

.bc-day.in-range {
    background: rgba(44, 95, 45, 0.25);
    color: var(--ocean);
}

.bc-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
    font-size: 0.75rem;
    color: var(--gray);
}

.bc-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bc-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.bc-dot.available {
    background: rgba(44, 95, 45, 0.4);
}

.bc-dot.unavailable {
    background: var(--light-gray);
}

.bc-selection {
    padding: 20px;
    background: var(--sand);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.bc-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.bc-date-field {
    text-align: center;
}

.bc-date-field label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 4px;
}

.bc-date-field span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.bc-date-separator {
    color: var(--gray);
    font-size: 1.2rem;
}

.bc-validation {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
}

.bc-validation svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.bc-validation.valid {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.bc-validation.invalid {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.bc-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bc-submit:hover:not(:disabled) {
    background: var(--coral-light);
    transform: translateY(-2px);
}

.bc-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal */
.bc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
}

.bc-modal.active {
    opacity: 1;
}

.bc-modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.bc-modal.active .bc-modal-content {
    transform: translateY(0);
}

.bc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light-gray);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.2s;
}

.bc-modal-close:hover {
    background: var(--coral);
    color: var(--white);
}

.bc-modal-content h3 {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.bc-modal-dates {
    color: var(--gray);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.bc-modal-dates strong {
    color: var(--ocean);
}

.bc-form-group {
    margin-bottom: 16px;
}

.bc-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.bc-form-group input,
.bc-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.bc-form-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--ocean);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.bc-form-submit:hover:not(:disabled) {
    background: var(--ocean-light);
}

.bc-form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bc-form-result {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}

.bc-form-result svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    margin-bottom: 12px;
}

.bc-form-result.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.bc-form-result.success h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.bc-form-result.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* ========================================
   Language Selector Styles
   ======================================== */

.lang-selector {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.lang-selector button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-selector button:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.lang-selector button.active {
    background: var(--white);
    color: var(--ocean);
    border-color: var(--white);
}

.navbar.scrolled .lang-selector {
    border-left-color: rgba(0,0,0,0.1);
}

.navbar.scrolled .lang-selector button {
    border-color: rgba(0,0,0,0.2);
    color: var(--gray);
}

.navbar.scrolled .lang-selector button:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.navbar.scrolled .lang-selector button.active {
    background: var(--ocean);
    color: var(--white);
    border-color: var(--ocean);
}

@media (max-width: 768px) {
    .navbar {
        top: 68px;
    }

    .demo-banner {
        padding: 8px 16px;
        flex-wrap: wrap;
        gap: 6px;
        font-size: .78rem;
    }

    .demo-banner span {
        flex: 1 1 100%;
        text-align: center;
    }

    .demo-banner a {
        flex: 1 1 100%;
        justify-content: center;
    }

    .lang-selector {
        position: static;
        margin-left: 8px;
        padding-left: 8px;
        border-left: 1px solid rgba(255,255,255,0.2);
    }

    .lang-selector button {
        padding: 4px 8px;
        font-size: 11px;
    }

    .lang-selector button.active {
        background: var(--ocean);
        color: var(--white);
        border-color: var(--ocean);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .bc-wrapper {
        border-radius: 12px;
    }
    
    .bc-header {
        padding: 20px 16px;
    }
    
    .bc-calendar {
        padding: 16px;
    }
    
    .bc-day {
        font-size: 0.8rem;
    }
    
    .bc-modal-content {
        padding: 24px 20px;
    }
}
