/*
Theme Name: OceanWP Child
Theme URI: https://djamilfenelon.fr
Description: Child theme OceanWP pour le site de Djamil FENELON
Author: Djamil FENELON
Template: oceanwp
Version: 1.0
*/

.tj-contact-form .form-legal-notice {
    margin-top: 24px !important;
}

.tj-about-section {
    padding: 56px 0;
    background-color: var(--tj-theme-accent-2);
    border-top: 1px solid rgba(135, 80, 247, 0.18);
    border-bottom: 1px solid rgba(135, 80, 247, 0.18);
}

.tj-about-section h4 {
    margin-bottom: 14px;
    background: var(--tj-theme-primary);
    background: linear-gradient(to right, var(--tj-theme-primary), var(--tj-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tj-about-section p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.tj-btn-outline {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid var(--tj-theme-primary);
    color: var(--tj-theme-primary);
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.tj-btn-outline:hover,
.tj-btn-outline:focus {
    background: var(--tj-theme-primary);
    color: var(--tj-white);
    text-decoration: none;
}

.contact-booking {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(135, 80, 247, 0.18);
    width: 100%;
}

.contact-booking .booking-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 14px;
}

@media (max-width: 575px) {
    .contact-booking .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 18px 24px;
        font-size: 16px;
        font-weight: 700;
        background: var(--tj-theme-primary);
        color: var(--tj-white);
        border-color: var(--tj-theme-primary);
        -webkit-text-fill-color: var(--tj-white);
        margin-top: 4px;
    }

    .contact-booking {
        margin-top: 32px;
        padding-top: 24px;
    }
}

/* Correctif Cal.com : le déclencheur du widget est un bouton, pas un lien externe. */
.contact-booking button.tj-btn-outline,
.contact-booking .cal-inline-trigger {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.contact-booking button.tj-btn-outline:hover,
.contact-booking button.tj-btn-outline:focus-visible,
.contact-booking .cal-inline-trigger:hover,
.contact-booking .cal-inline-trigger:focus-visible {
    background: var(--tj-theme-primary);
    color: var(--tj-white);
    outline: none;
}

/* Arrivée du site sans écran Loading : le contenu est disponible immédiatement. */
html body.loaded {
    overflow: auto !important;
    height: auto !important;
}

.preloader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (prefers-reduced-motion: no-preference) {
    html.site-enter-ready .tj-header-area.header-absolute {
        animation: df-header-entry 620ms cubic-bezier(.2, .85, .24, 1) both;
    }

    html.site-enter-ready #intro {
        animation: df-page-entry 520ms ease-out both;
    }

    html.site-enter-ready #intro::after {
        content: "";
        position: absolute;
        inset: -22% -12% auto -12%;
        height: 72%;
        pointer-events: none;
        z-index: -1;
        opacity: 0;
        background:
            radial-gradient(circle at 18% 18%, rgba(135, 80, 247, .40), transparent 34%),
            radial-gradient(circle at 78% 10%, rgba(45, 212, 255, .22), transparent 28%),
            linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .08) 48%, transparent 74%);
        filter: blur(26px);
        transform: translate3d(-4%, -6%, 0) scale(.96);
        animation: df-aurora-sweep 1050ms cubic-bezier(.2, .85, .24, 1) 80ms both;
    }

    html.site-enter-ready #intro .hero-content-box {
        animation: df-content-entry 720ms cubic-bezier(.2, .85, .24, 1) 80ms both;
    }

    html.site-enter-ready #intro .hero-image-box {
        animation: df-visual-entry 820ms cubic-bezier(.16, 1, .3, 1) 120ms both;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.site-enter-ready .tj-header-area.header-absolute,
    html.site-enter-ready #intro,
    html.site-enter-ready #intro::after,
    html.site-enter-ready #intro .hero-content-box,
    html.site-enter-ready #intro .hero-image-box {
        animation: none !important;
        transform: none !important;
    }
}

@keyframes df-page-entry {
    from {
        opacity: .72;
        filter: saturate(.85) brightness(.82);
    }
    to {
        opacity: 1;
        filter: saturate(1) brightness(1);
    }
}

@keyframes df-header-entry {
    from {
        opacity: 0;
        transform: translate3d(0, -18px, 0);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes df-content-entry {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(.985);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes df-visual-entry {
    from {
        opacity: 0;
        transform: translate3d(24px, 16px, 0) scale(.96);
        filter: blur(10px) saturate(.82);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0) saturate(1);
    }
}

@keyframes df-aurora-sweep {
    0% {
        opacity: 0;
        transform: translate3d(-7%, -8%, 0) scale(.94);
    }
    38% {
        opacity: .92;
    }
    100% {
        opacity: .36;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
