/**
 * Vista Pulse — Pages Contact + Devis (parité Symfony).
 * Chargé sur is_page(['contact', 'devis']).
 *
 * Architecture : containers + widgets natifs Elementor pour la structure et
 * la typographie. Ce fichier ne traite QUE les visuels que Elementor Free
 * ne sait pas faire :
 *   - Blobs animés en arrière-plan
 *   - Gradients de texte (background-clip)
 *   - Pill eyebrow (inline-block + padding)
 *   - Glow décoratif animé
 *   - Sticky split layout (Devis)
 *   - Overrides Fluent Forms pour matcher les thèmes dark de chaque page
 */

/* =========================================================================
   CONTACT — Hero blobs + decoration
   ========================================================================= */

.vp-contact-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.vp-contact-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.vp-contact-hero__blob {
    position: absolute;
    border-radius: 9999px;
    mix-blend-mode: screen;
    filter: blur(90px);
}

@media (min-width: 768px) {
    .vp-contact-hero__blob { filter: blur(120px); }
}

.vp-contact-hero__blob--rose {
    top: 0;
    left: 25%;
    width: 320px;
    height: 320px;
    background: rgba(244, 63, 94, 0.2);
    animation: vp-blob-1 12s ease-in-out infinite;
}

.vp-contact-hero__blob--yellow {
    bottom: 0;
    right: 25%;
    width: 320px;
    height: 320px;
    background: rgba(202, 138, 4, 0.2);
    animation: vp-blob-2 14s ease-in-out infinite;
}

.vp-contact-hero__blob--orange {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 384px;
    height: 384px;
    background: rgba(249, 115, 22, 0.12);
    animation: vp-pulse 5s ease-in-out infinite;
}

@media (min-width: 768px) {
    .vp-contact-hero__blob--rose,
    .vp-contact-hero__blob--yellow { width: 600px; height: 600px; }
    .vp-contact-hero__blob--orange { width: 800px; height: 800px; }
}

/* Le container intérieur (Elementor) doit passer au-dessus des blobs */
.vp-contact-hero > .elementor-widget-html,
.vp-contact-hero > .e-con-inner > .elementor-widget-html { z-index: 0; }

.vp-contact-hero__inner {
    position: relative;
    z-index: 1;
}

@keyframes vp-blob-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -50px) scale(1.1); }
    66%      { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes vp-blob-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-50px, 30px) scale(1.05); }
    66%      { transform: translate(40px, -40px) scale(1.1); }
}

@keyframes vp-pulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 0.8; }
}

/* Pill eyebrow — span inline dans HTML widget */
.vp-contact-hero__pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FDA4AF;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: 'Inter', sans-serif;
}

/* Gradient sur le 2e ligne du H1 (span inline) */
.vp-contact-hero__title-gradient {
    display: inline-block;
    background: linear-gradient(90deg, #FECDD3 0%, #FED7AA 50%, #FEF08A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* =========================================================================
   CONTACT — Body
   ========================================================================= */

.vp-contact-body__title-highlight {
    color: #EAB308;
}

/* =========================================================================
   CONTACT — Cards (HTML widget contenant icon + title + desc)
   ========================================================================= */
.vp-contact-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.25s ease;
    height: 100%;
}

.vp-contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vp-contact-card__title {
    margin: 0 0 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.vp-contact-card__desc {
    margin: 0;
    color: #71717A;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Icon block — utilisé dans cards Contact + Studio Devis */
.vp-icon-block {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.vp-icon-block svg {
    width: 1.25rem;
    height: 1.25rem;
}

.vp-icon-block--yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #EAB308;
}

.vp-icon-block--cyan {
    background: rgba(0, 168, 232, 0.2);
    color: var(--vp-primary);
}

.vp-icon-block--orange {
    background: rgba(232, 163, 23, 0.2);
    color: var(--vp-secondary);
}

/* =========================================================================
   CONTACT — Social list (HTML widget)
   ========================================================================= */
.vp-contact-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.vp-contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: #A1A1AA;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.vp-contact-social-link:hover {
    background: #EAB308;
    color: #FFFFFF;
    transform: scale(1.1);
}

.vp-contact-social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.vp-contact-body__right {
    position: relative;
}

.vp-contact-body__glow {
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    width: 8rem;
    height: 8rem;
    background: rgba(234, 179, 8, 0.2);
    border-radius: 9999px;
    filter: blur(40px);
    animation: vp-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Le form-card doit être au-dessus du glow */
.vp-form-card {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* =========================================================================
   DEVIS — sticky split layout
   ========================================================================= */

.vp-devis {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Sticky sidebar uniquement à partir de tablette landscape / desktop */
@media (min-width: 1024px) {
    .vp-devis__left {
        position: sticky;
        top: 0;
        align-self: flex-start;
    }
}

.vp-devis__left {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.vp-devis__left-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.vp-devis__blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    max-width: 80vw;
    max-height: 80vw;
    background: rgba(0, 168, 232, 0.2);
    border-radius: 9999px;
    filter: blur(120px);
    transform: translate(50%, -50%);
    animation: vp-pulse 5s ease-in-out infinite;
}

.vp-devis__blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    max-width: 70vw;
    max-height: 70vw;
    background: rgba(232, 163, 23, 0.1);
    border-radius: 9999px;
    filter: blur(100px);
    transform: translate(-50%, 50%);
}

.vp-devis__left-content {
    position: relative;
    z-index: 1;
}

.vp-devis__left-footer {
    position: relative;
    z-index: 1;
}

.vp-devis__logo-dot {
    color: var(--vp-primary);
}

.vp-devis__title-gradient {
    display: inline-block;
    background: linear-gradient(90deg, var(--vp-primary) 0%, #C084FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Élargir la limite de largeur description (Elementor text-editor laisse full) */
.vp-devis__desc > .elementor-widget-container,
.vp-devis__desc.elementor-element {
    max-width: 28rem;
}

/* Info card Devis — HTML widget contenant 2 rows email + studio */
.vp-devis__info-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 28rem;
}

.vp-devis__info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vp-devis__info-row + .vp-devis__info-row {
    margin-top: 1.5rem;
}

.vp-devis__info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.vp-devis__info-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.vp-devis__info-icon--primary {
    background: rgba(0, 168, 232, 0.2);
    color: var(--vp-primary);
}

.vp-devis__info-icon--secondary {
    background: rgba(232, 163, 23, 0.2);
    color: var(--vp-secondary);
}

.vp-devis__info-text {
    min-width: 0;
}

.vp-devis__info-label {
    margin: 0 0 0.125rem;
    color: #9CA3AF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', sans-serif;
}

.vp-devis__info-value {
    margin: 0;
    display: block;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
    font-family: 'Inter', sans-serif;
}

a.vp-devis__info-value:hover {
    color: var(--vp-primary);
}

/* =========================================================================
   FLUENT FORMS — overrides pour matcher les thèmes dark Contact & Devis
   ========================================================================= */

/* --- CONTACT (theme yellow / glass card) --- */
.vp-form-card .fluentform input[type="text"],
.vp-form-card .fluentform input[type="email"],
.vp-form-card .fluentform input[type="tel"],
.vp-form-card .fluentform input[type="number"],
.vp-form-card .fluentform input[type="url"],
.vp-form-card .fluentform select,
.vp-form-card .fluentform textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #FFFFFF;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vp-form-card .fluentform input::placeholder,
.vp-form-card .fluentform textarea::placeholder {
    color: #52525B;
}

.vp-form-card .fluentform input:focus,
.vp-form-card .fluentform select:focus,
.vp-form-card .fluentform textarea:focus {
    outline: none;
    border-color: #EAB308;
    box-shadow: 0 0 0 1px #EAB308;
}

.vp-form-card .fluentform .ff-el-input--label label,
.vp-form-card .fluentform label.ff-el-input--label,
.vp-form-card .fluentform label {
    color: #EAB308;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.vp-form-card .fluentform .ff-el-group {
    margin-bottom: 1.5rem;
}

.vp-form-card .fluentform .ff-btn,
.vp-form-card .fluentform button[type="submit"] {
    width: 100%;
    background: linear-gradient(90deg, #EAB308 0%, #CA8A04 100%);
    color: #000000;
    border: 0;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vp-form-card .fluentform .ff-btn:hover,
.vp-form-card .fluentform button[type="submit"]:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px -10px rgba(234, 179, 8, 0.4);
}

/* --- DEVIS (theme cyan / dark right pane) --- */
.vp-devis__form .fluentform input[type="text"],
.vp-devis__form .fluentform input[type="email"],
.vp-devis__form .fluentform input[type="tel"],
.vp-devis__form .fluentform input[type="number"],
.vp-devis__form .fluentform input[type="url"],
.vp-devis__form .fluentform select,
.vp-devis__form .fluentform textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #FFFFFF;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vp-devis__form .fluentform input::placeholder,
.vp-devis__form .fluentform textarea::placeholder {
    color: #4B5563;
}

.vp-devis__form .fluentform input:focus,
.vp-devis__form .fluentform select:focus,
.vp-devis__form .fluentform textarea:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 1px var(--vp-primary);
}

.vp-devis__form .fluentform label {
    color: #D1D5DB;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.vp-devis__form .fluentform .ff-section-break-header,
.vp-devis__form .fluentform .ff_section_break_header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1.5rem;
    color: var(--vp-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.vp-devis__form .fluentform .ff-el-group {
    margin-bottom: 1.5rem;
}

/* Checkboxes & radios custom — pills cliquables */
.vp-devis__form .fluentform .ff-el-form-check input[type="checkbox"],
.vp-devis__form .fluentform .ff-el-form-check input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vp-devis__form .fluentform .ff-el-form-check label {
    display: block;
    cursor: pointer;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    text-transform: none;
    letter-spacing: 0;
}

.vp-devis__form .fluentform .ff-el-form-check label:hover {
    border-color: rgba(0, 168, 232, 0.5);
}

.vp-devis__form .fluentform .ff-el-form-check input:checked + label,
.vp-devis__form .fluentform .ff-el-form-check label:has(input:checked) {
    background: rgba(0, 168, 232, 0.2);
    border-color: var(--vp-primary);
    color: #FFFFFF;
}

.vp-devis__form .fluentform .ff-btn,
.vp-devis__form .fluentform button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--vp-primary);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 20px 35px -15px rgba(0, 168, 232, 0.35);
}

.vp-devis__form .fluentform .ff-btn:hover,
.vp-devis__form .fluentform button[type="submit"]:hover {
    background: var(--vp-deep);
    transform: scale(1.02);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .vp-contact-hero__blob,
    .vp-devis__blob-1,
    .vp-devis__blob-2,
    .vp-contact-body__glow {
        animation: none !important;
    }
    .vp-form-card .fluentform button[type="submit"]:hover,
    .vp-devis__form .fluentform button[type="submit"]:hover {
        transform: none !important;
    }
}
