/* contact.css - Refonte complète */

/* =============================================
   HERO SECTION - Contact
   ============================================= */

.contact-hero {
    background-image: url("../assets/images/contact-cover.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
    min-height: auto;
}

.contact-hero .hero-overlay {
    width: 55%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 70%, transparent 100%);
}

.contact-hero .text-accent {
    color: #e21e26;
}

.contact-hero .hero-text-content {
    background: transparent;
}

/* Breadcrumb */
.hero-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.hero-breadcrumb a {
    color: #e21e26;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-breadcrumb a:hover {
    text-decoration: underline;
}

.hero-breadcrumb .sep {
    margin: 0 6px;
    color: #999;
}

.hero-breadcrumb .current {
    color: #0A192F;
    font-weight: 600;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .contact-hero .hero-overlay {
        width: 100%;
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.85) 60%,
                rgba(255, 255, 255, 0.3) 100%);
    }

    .contact-hero .hero-text-content {
        padding: 20px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 12px;
    }
}

/* =============================================
   SECTION TITLES
   ============================================= */

.section-title-contact {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0A192F;
    position: relative;
}

.section-title-contact::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e21e26;
    margin: 12px auto 0;
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   CONTACT FORM SECTION
   ============================================= */

.contact-form-section {
    padding: 60px 20px;
    background: #fff;
}

.contact-form-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left: Form */
.contact-form-left {
    flex: 1.2;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.contact-form-left h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 28px;
    line-height: 1.3;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group-full {
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: flex;
}

.required-star {
    color: #e21e26;
    font-weight: 700;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: 'Barlow', sans-serif;
    color: #333;
    background: #f9f9fc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e21e26;
    box-shadow: 0 0 0 3px rgba(226, 30, 38, 0.1);
    background: #fff;
}

.form-group select {
    appearance: none;
    -webkit-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='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

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

/* RGPD */
.rgpd-group {
    margin-top: 4px;
}

.rgpd-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem !important;
    color: #666 !important;
    line-height: 1.5;
    cursor: pointer;
}

.rgpd-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #e21e26;
}

.rgpd-link {
    color: #e21e26;
    text-decoration: underline;
}

/* Submit */
.form-actions {
    margin-top: 8px;
}

.btn-submit {
    padding: 14px 36px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-submit-full {
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
}

/* Right: Info Cards */
.contact-form-right {
    flex: 0.8;
    min-width: 0;
}

.contact-info-grid-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card-side {
    background: #f4f5f8;
    border-radius: 10px;
    padding: 22px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card-side:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.info-card-icon {
    width: 44px;
    height: 44px;
    background: #0A192F;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-card-icon.accent {
    background: #e21e26;
}

.info-card-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 4px;
}

.info-card-text p {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* =============================================
   VOUS SOUHAITEZ...
   ============================================= */

.vous-souhaitez {
    padding: 70px 0;
    background-color: #f9f9fc;
}

.souhait-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.souhait-card {
    background: #fff;
    padding: 28px 22px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.souhait-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.souhait-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0A192F, #1E3A8A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.souhait-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 10px;
}

.souhait-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.souhait-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e21e26;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.souhait-link:hover {
    gap: 10px;
}

/* =============================================
   NOTRE ENGAGEMENT DE RÉPONSE
   ============================================= */

.engagement-section {
    padding: 70px 0;
    background-color: #fff;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.engagement-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
    background: #f4f5f8;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s, box-shadow 0.3s;
}

.engagement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.engagement-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e21e26, #c41e3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.engagement-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 6px;
}

.engagement-text p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

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

@media (max-width: 1024px) {
    .contact-form-container {
        flex-direction: column;
    }

    .contact-form-left,
    .contact-form-right {
        flex: none;
        width: 100%;
    }

    .souhait-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .engagement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title-contact {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-info-grid-side {
        grid-template-columns: 1fr;
    }

    .souhait-grid {
        grid-template-columns: 1fr;
    }

    .engagement-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   DYNAMIC INTERACTIONS & STATES
   ============================================= */

/* Disabled Submit Button State */
.btn-submit.btn-disabled,
.btn-submit:disabled {
    background: #d2d2db !important;
    color: #888896 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.8;
}

.btn-submit.btn-disabled i,
.btn-submit:disabled i {
    opacity: 0.5;
}

/* Validation styling feedback */
.contact-form.was-validated input:invalid,
.contact-form.was-validated select:invalid,
.contact-form.was-validated textarea:invalid {
    border-color: #e21e26 !important;
    background-color: #fff9f9 !important;
    box-shadow: 0 0 0 3px rgba(226, 30, 38, 0.08) !important;
}

.contact-form.was-validated input:valid,
.contact-form.was-validated select:valid,
.contact-form.was-validated textarea:valid {
    border-color: #10b981 !important;
    background-color: #f9fbf9 !important;
}

/* Highlight Flash Animation for pre-filled fields */
.highlight-flash {
    animation: flashPulse 0.8s ease-out;
}

@keyframes flashPulse {
    0% {
        background-color: #fff5f5;
        border-color: #e21e26;
        box-shadow: 0 0 0 4px rgba(226, 30, 38, 0.2);
    }

    50% {
        background-color: #fef2f2;
        border-color: #e21e26;
    }

    100% {
        background-color: #f9f9fc;
        border-color: #ddd;
        box-shadow: none;
    }
}

/* =============================================
   PREVIEW MODAL (GLASSMORPHISM & ANIMATION)
   ============================================= */

.bits-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bits-modal-overlay.modal-active {
    opacity: 1;
    visibility: visible;
}

.bits-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.bits-modal-overlay.modal-active .bits-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.bits-modal-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bits-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bits-modal-header h3 i {
    color: #e21e26;
    font-size: 1.15rem;
}

.bits-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
}

.bits-modal-close-btn:hover {
    background: #f1f5f9;
    color: #e21e26;
    transform: rotate(90deg);
}

.bits-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-intro-text {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.iframe-container {
    width: 100%;
    height: 420px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.bits-modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-modal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-success-bits {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

/* Responsive modal */
@media (max-width: 640px) {
    .bits-modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .btn-modal-action {
        width: 100%;
        padding: 14px;
    }

    .iframe-container {
        height: 350px;
    }

    .bits-modal-card {
        max-height: 95vh;
    }
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */

.bits-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0f172a;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bits-toast.toast-active {
    transform: translateY(0);
    opacity: 1;
}

.bits-toast-success {
    border-left: 4px solid #10b981;
}

.bits-toast-error {
    border-left: 4px solid #e21e26;
}

.bits-toast i {
    font-size: 1.15rem;
}

.bits-toast-success i {
    color: #10b981;
}

.bits-toast-error i {
    color: #e21e26;
}

/* Container des toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    border-left: 5px solid #ccc;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.success {
    border-left-color: #10b981;
}

.custom-toast.error {
    border-left-color: #e21e26;
}

.toast-icon {
    font-size: 18px;
}

.custom-toast.success .toast-icon {
    color: #10b981;
}

.custom-toast.error .toast-icon {
    color: #e21e26;
}

@media (max-width: 640px) {
    .bits-toast {
        bottom: 20px;
        left: 20px;
        right: 20px;
        font-size: 0.88rem;
        padding: 14px 20px;
    }
}