/* =========================================
   CONVERSION KIT — CSS
   1. Floating CTA Bubble
   2. Post-Compas CTA Card
   3. Contact Form Section
   ========================================= */

/* =========================================
   1. FLOATING CTA BUBBLE
   ========================================= */

.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #0077b6, #00a8cc);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 6px 24px rgba(0, 119, 182, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: none;
}

.floating-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 10px 32px rgba(0, 119, 182, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.floating-cta-btn i,
.floating-cta-btn svg {
    width: 20px;
    height: 20px;
}

@keyframes floatingPulse {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(0, 119, 182, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 6px 32px rgba(0, 119, 182, 0.5), 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Expanded Panel */
.floating-cta-panel {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 119, 182, 0.1);
    box-shadow: 0 16px 48px rgba(0, 40, 80, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cta-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.floating-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0077b6, #00a8cc);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.floating-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-panel-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.floating-panel-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    text-decoration: none;
    color: #0a2540;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(0, 119, 182, 0.05);
}

.floating-panel-option:last-child {
    border-bottom: none;
}

.floating-panel-option:hover {
    background: rgba(0, 119, 182, 0.04);
}

.floating-panel-option strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 1px;
}

.floating-panel-option span {
    font-size: 0.75rem;
    color: #8ba3b5;
}

.panel-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.panel-option-icon.phone-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.panel-option-icon.form-icon {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.panel-option-icon.mail-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}


/* =========================================
   2. POST-COMPAS CTA CARD
   ========================================= */

.post-compas-cta {
    position: relative;
    padding: 0 0 40px;
    background: transparent;
    z-index: 2;
}

.cta-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 119, 182, 0.1);
    padding: 36px 40px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-card:hover {
    box-shadow: 0 12px 40px rgba(0, 119, 182, 0.08);
}

/* Animated glow accent */
.cta-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0077b6, #00b4d8, #48cae4, #00b4d8, #0077b6);
    background-size: 200% 100%;
    animation: none;
}

@keyframes ctaGlowSlide {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.cta-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 20px;
}

.cta-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.cta-icon-ring {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.2);
}

.cta-icon-ring i,
.cta-icon-ring svg {
    width: 24px;
    height: 24px;
}

.cta-text h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0a2540;
    margin: 0 0 6px;
}

.cta-text p {
    font-size: 0.92rem;
    color: #5a7d95;
    line-height: 1.6;
    margin: 0;
}

.cta-text strong {
    color: #0077b6;
}

.cta-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.cta-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-phone-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.cta-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.cta-form-btn {
    background: linear-gradient(135deg, #0077b6, #00a8cc);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25);
}

.cta-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.35);
}

.cta-trust-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 119, 182, 0.06);
}

.cta-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8ba3b5;
}

.cta-trust-row i,
.cta-trust-row svg {
    color: #0077b6;
}


/* =========================================
   3. CONTACT FORM SECTION
   ========================================= */

.contact-form-section {
    position: relative;
    padding: 110px 0 100px;
    /* Dark band with soft fades top & bottom — the transparent edges blend with the
       light page above/below regardless of its exact colour, so no hard seam. */
    background: linear-gradient(180deg,
        transparent 0%,
        #070f22 12%,
        #0a1730 55%,
        #0b1a37 88%,
        transparent 100%);
    overflow: hidden;
}
/* Subtle cyan glow behind the card — matches the Nos Outils mood */
.contact-form-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 44%, rgba(0, 180, 216, 0.10), transparent 72%);
    pointer-events: none;
}

/* Section header — inside the card */
.contact-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 36px;
}

.contact-section-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 14px;
}

.contact-section-header p {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    line-height: 1.7;
    margin: 0;
}

/* Match the Nos Outils accents : cyan shimmer title + dark-glass badge */
.contact-section-header h2 .shimmer {
    background: linear-gradient(120deg, #8fecff 0%, #00b4d8 48%, #5dd3e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.contact-section-header .section-badge {
    background: rgba(255, 255, 255, 0.10);
    color: #aee9ff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.contact-section-header .section-badge i,
.contact-section-header .section-badge svg { color: #8fecff; }

/* Dark glass card wrapper */
.contact-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 24px 64px -18px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 44px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 32px 80px -18px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 180, 216, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

/* Left: Info */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-detail-item:hover {
    border-color: rgba(0, 180, 216, 0.45);
    transform: translateX(4px);
    box-shadow: 0 22px 50px -16px rgba(0, 180, 216, 0.3), 0 0 0 1px rgba(0, 180, 216, 0.12);
}

.contact-arrow {
    width: 16px !important;
    height: 16px !important;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-detail-item:hover .contact-arrow {
    transform: translateX(3px);
    color: #aee9ff;
}

.detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.detail-icon--green {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.detail-icon--purple {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.contact-detail-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1px;
}

.contact-detail-item span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 119, 182, 0.06);
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3a5a6e;
    padding: 6px 12px;
    background: rgba(0, 119, 182, 0.04);
    border-radius: 50px;
    border: 1px solid rgba(0, 119, 182, 0.08);
}

.trust-badge-item i,
.trust-badge-item svg {
    color: #0077b6;
    flex-shrink: 0;
}

/* Right: Form */
.contact-form-col {
    position: relative;
}

.contact-form-glass {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group label .optional {
    font-weight: 400;
    text-transform: none;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    transition: all 0.25s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300b4d8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
/* Keep the dropdown list readable (dark text on the OS-default light list) */
.form-group select option {
    color: #0a2540;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 180, 216, 0.4);
    width: 100%;
    margin-top: 4px;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 180, 216, 0.55);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.form-disclaimer i,
.form-disclaimer svg {
    color: #00b4d8;
}

/* ── Form card inside the merged "Nous Joindre" section (dark glass over the video) ── */
.ff-form-card {
    max-width: 680px;
    margin: 0 auto 40px;
    padding: 30px 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 24px 64px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
/* backdrop-filter is disabled site-wide ≤1024px → use an opaque dark glass so the form stays readable */
@media (max-width: 1024px) {
    .ff-form-card {
        background: rgba(12, 20, 38, 0.72);
        padding: 24px 20px;
    }
}


/* =========================================
   RESPONSIVE
   ========================================= */

/* Post-Compas CTA */
@media (max-width: 768px) {
    .cta-card {
        padding: 28px 24px;
    }

    .cta-card-content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .cta-left {
        flex-direction: column;
        gap: 14px;
    }

    .cta-right {
        width: 100%;
        flex-direction: column;
    }

    .cta-action-btn {
        width: 100%;
    }

    .cta-trust-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cta-text h3 {
        font-size: 1.1rem;
    }
}

/* Contact Form */
@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-card {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .contact-form-section {
        padding: 80px 0 70px;
    }

    .contact-section-header h2 {
        font-size: 1.5rem;
    }

    .contact-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .contact-card:hover {
        transform: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-detail-item:hover {
        transform: none;
    }

    .trust-badge-item {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}

/* Floating CTA */
@media (max-width: 600px) {
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }

    .floating-cta-label {
        display: none;
    }

    .floating-cta-btn {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .floating-cta-panel {
        width: calc(100vw - 32px);
        right: 0;
    }
}