/**
 * Pranazen Booking Styles
 *
 * Styles pour les éléments de réservation (Cal.com)
 * Architecture: BEM + Mobile-First
 */

/* ==========================================================================
   Variables CSS
   ========================================================================== */

:root {
    --pranazen-primary: #a4c73b;
    --pranazen-primary-dark: #8db32a;
    --pranazen-secondary: #3e777e;
    --pranazen-text: #333;
    --pranazen-text-light: #666;
    --pranazen-border: #e0e0e0;
    --pranazen-bg-light: #f9f9f9;
    --pranazen-white: #fff;
    --pranazen-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --pranazen-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --pranazen-radius: 8px;
    --pranazen-transition: all 0.3s ease;
}

/* ==========================================================================
   Cal.com Booking Element
   ========================================================================== */

.pranazen-calcom-booking {
    margin: 40px 0;
    padding: 0;
}

/* Header
   ========================================================================== */

.pranazen-calcom-booking__header {
    text-align: center;
    margin-bottom: 30px;
}

.pranazen-calcom-booking__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pranazen-text);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.pranazen-calcom-booking__description {
    font-size: 16px;
    color: var(--pranazen-text-light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.pranazen-calcom-booking__description p {
    margin: 0 0 10px 0;
}

.pranazen-calcom-booking__description p:last-child {
    margin-bottom: 0;
}

/* Calendar Container
   ========================================================================== */

.pranazen-calcom-booking__calendar {
    margin: 0 auto;
    max-width: 100%;
}

/* Elated button mode: let the wrapper inherit text-align from parent so the
   inline-block <a.eltdf-btn> follows the alignment enforced by
   .wpb_wrapper:has(.eltdf-btn.pranazen-btn) { text-align: center } in
   wp-content/themes/superfood-child/tpl/formation/css/pranazen-formation-style.css

   Higher-specificity selectors are required to beat
   ".vc_section.pranazen-section div { text-align: left !important }"
   defined in pranazen-formation-style.css. */
.pranazen-calcom-booking--elated,
.pranazen-calcom-booking--elated .pranazen-calcom-booking__calendar,
.pranazen-section .pranazen-calcom-booking--elated,
.vc_section.pranazen-section .pranazen-calcom-booking--elated,
.pranazen-section .pranazen-calcom-booking--elated .pranazen-calcom-booking__calendar,
.vc_section.pranazen-section .pranazen-calcom-booking--elated .pranazen-calcom-booking__calendar {
    text-align: inherit !important;
}

/* Inline Calendar
   ========================================================================== */

.pranazen-calcom-booking__inline {
    background: var(--pranazen-white);
    border-radius: var(--pranazen-radius);
    box-shadow: var(--pranazen-shadow);
    padding: 20px;
    min-height: 600px;
}

/* Popup Button
   ========================================================================== */

.pranazen-calcom-booking__button {
    display: inline-block;
    background: var(--pranazen-primary);
    color: var(--pranazen-white);
    font-size: 18px;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: var(--pranazen-radius);
    cursor: pointer;
    transition: var(--pranazen-transition);
    box-shadow: var(--pranazen-shadow);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.pranazen-calcom-booking__button:hover {
    background: var(--pranazen-primary-dark);
    box-shadow: var(--pranazen-shadow-hover);
    transform: translateY(-2px);
}

.pranazen-calcom-booking__button:active {
    transform: translateY(0);
}

/* Footer
   ========================================================================== */

.pranazen-calcom-booking__footer {
    margin-top: 20px;
    text-align: center;
}

.pranazen-calcom-booking__privacy {
    font-size: 14px;
    color: var(--pranazen-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Responsive Design (Mobile-First)
   ========================================================================== */

/* Tablet */
@media (min-width: 768px) {
    .pranazen-calcom-booking {
        margin: 60px 0;
    }

    .pranazen-calcom-booking__header {
        margin-bottom: 40px;
    }

    .pranazen-calcom-booking__title {
        font-size: 36px;
    }

    .pranazen-calcom-booking__description {
        font-size: 18px;
    }

    .pranazen-calcom-booking__inline {
        padding: 30px;
    }

    .pranazen-calcom-booking__button {
        width: auto;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .pranazen-calcom-booking {
        margin: 80px 0;
    }

    .pranazen-calcom-booking__title {
        font-size: 42px;
    }

    .pranazen-calcom-booking__inline {
        padding: 40px;
    }
}

/* ==========================================================================
   Cal.com Embed Overrides
   ========================================================================== */

/* Style le iframe Cal.com */
.pranazen-calcom-booking iframe {
    border: none;
    width: 100%;
    min-height: 600px;
}

/* Override du style du bouton généré par Cal.com */
#calcom-embed-link {
    display: inline-block !important;
    background: var(--pranazen-primary) !important;
    color: var(--pranazen-white) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 16px 40px !important;
    border: none !important;
    border-radius: var(--pranazen-radius) !important;
    cursor: pointer !important;
    transition: var(--pranazen-transition) !important;
    box-shadow: var(--pranazen-shadow) !important;
    text-decoration: none !important;
}

#calcom-embed-link:hover {
    background: var(--pranazen-primary-dark) !important;
    box-shadow: var(--pranazen-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.pranazen-calcom-booking__inline::before {
    content: "Chargement du calendrier...";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: var(--pranazen-text-light);
    font-size: 16px;
}

.pranazen-calcom-booking__inline.cal-loaded::before {
    display: none;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.pranazen-calcom-booking__button:focus,
#calcom-embed-link:focus {
    outline: 3px solid var(--pranazen-primary);
    outline-offset: 2px;
}

/* Préférence mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .pranazen-calcom-booking__button,
    #calcom-embed-link {
        transition: none !important;
    }

    .pranazen-calcom-booking__button:hover,
    #calcom-embed-link:hover {
        transform: none !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .pranazen-calcom-booking__button,
    .pranazen-calcom-booking__inline {
        display: none;
    }

    .pranazen-calcom-booking__footer::after {
        content: "Pour réserver une séance : https://www.pranazen.eu/seance-decouverte";
        display: block;
        margin-top: 20px;
        font-size: 14px;
    }
}
