/*
   SECTION CONTACT + MODAL DE RENDEZ-VOUS - Circuit 2000
   Partagé entre l'accueil (index) et la page Contact.
*/

/* Contact Section */
.contact-section {
    padding: 100px 5%;
    background: transparent;
    position: relative;
    z-index: 5;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-map-wrapper {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(1.2);
}

.contact-info {
    padding: 20px;
}

.contact-section h2 {
    text-align: center;
    font-family: var(--font-custom);
    font-size: 3.8vw;
    font-weight: normal;
    color: var(--primary-white);
    margin-bottom: 25px;
    letter-spacing: 0.15vw;
    text-transform: uppercase;
    line-height: 1.2;
}

.info-group {
    margin-bottom: 30px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #f2333a;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* Interactive Location Widget */
.location-widget {
    position: relative;
    display: inline-block;
}

.location-trigger {
    font-style: italic;
    color: #f2333a;
    cursor: pointer;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: 0.3s;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(237, 28, 36, 0.05);
}

.location-trigger:hover {
    color: white;
    background: #d71920;
}

.location-popup-card {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 220px;
    height: 100px;
    background: #1a1a1a;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 2px;
    z-index: 9999;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.74, -0.03, 0.05, 1.24), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom center;
}

.location-widget:hover .location-popup-card {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: all;
    animation: coolfadeIn 0.4s both;
}

.inner-popup-card {
    position: relative;
    border-radius: 16px;
    height: 100%;
    width: 100%;
    background: #111;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.popup-details {
    padding: 12px;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.popup-main-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-second-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin: 0;
}

.location-pin {
    background-color: #d71920;
    top: var(--pin-top, 15%);
    left: 50%;
    position: absolute;
    z-index: 2;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px 5px rgba(237, 28, 36, 0.3);
    border: 3px solid white;
    transform: translate(-50%, -50%);
    animation: pulse-pin 2s infinite;
}

@keyframes pulse-pin {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(237, 28, 36, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0);
    }
}

@keyframes coolfadeIn {
    0% {
        filter: blur(10px);
    }

    100% {
        filter: blur(0px);
    }
}

@keyframes movingClouds {
    from {
        transform: translateX(-150px);
    }

    to {
        transform: translateX(150px);
    }
}

.info-value {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.4;
}

.info-value p {
    margin-bottom: 5px;
    white-space: pre-line;
}

@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .contact-map-wrapper {
        height: 300px;
        order: unset;
    }

    .contact-info {
        text-align: left;
        order: unset;
        padding: 10px;
    }

    .contact-info h2 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        letter-spacing: 3.5px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-map-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .info-value {
        font-size: 0.85rem;
    }

    .info-group {
        margin-bottom: 15px;
    }

    .info-label {
        font-size: 0.7rem;
    }

    #current-directions {
        margin-top: 10px;
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

/* Contact Location Switch */
.contact-location-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.contact-location-switch .global-location-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-location-switch .nav-loc-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block !important; /* Force display on mobile too */
}

.contact-location-switch .nav-loc-btn.active {
    background: #d71920;
    color: white;
    opacity: 1;
    box-shadow: 0 0 20px rgba(237, 28, 36, 0.4);
}

.contact-location-switch .nav-loc-btn:hover:not(.active) {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .contact-location-switch {
        margin-bottom: 30px;
    }
    .contact-location-switch .nav-loc-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* ===== RDV (Rendez-vous) Button & Modal ===== */

/* CTA Button in contact section */
.rdv-cta-button {
    background: linear-gradient(135deg, #d71920 0%, #c41212 100%) !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    font-family: var(--font-custom), 'Oswald', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    padding: 14px 28px !important;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rdv-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.rdv-cta-button:hover::before {
    left: 100%;
}

.rdv-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.4);
}

.rdv-cta-button:active {
    transform: translateY(-1px);
}

/* Modal Overlay */
.rdv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

/* Modal Content */
.rdv-modal-content {
    background: linear-gradient(145deg, #1a1a1a, #141414);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(237, 28, 36, 0.08);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rdv-modal-overlay.active .rdv-modal-content {
    transform: translateY(0) scale(1);
}

/* Close button */
.rdv-close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    line-height: 1;
}

.rdv-close-modal:hover {
    background: rgba(237, 28, 36, 0.15);
    border-color: #ed1c24;
    color: #f2333a;
    transform: rotate(90deg);
}

/* Modal Header */
.rdv-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.rdv-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.15), rgba(237, 28, 36, 0.05));
    border: 1px solid rgba(237, 28, 36, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #f2333a;
}

.rdv-modal-header h2 {
    font-family: var(--font-custom), 'Oswald', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    color: white;
}

.rdv-modal-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

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

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

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

.rdv-form-group label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rdv-form-group input,
.rdv-form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
    resize: vertical;
}

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

.rdv-form-group input:focus,
.rdv-form-group textarea:focus {
    border-color: #ed1c24;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    box-shadow: 0 0 15px rgba(237, 28, 36, 0.12);
}

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

/* Submit Button */
.rdv-submit-btn {
    background: linear-gradient(135deg, #d71920 0%, #c41212 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-custom), 'Oswald', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.rdv-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.rdv-submit-btn:hover::after {
    width: 300px;
    height: 300px;
}

.rdv-submit-btn:hover {
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.4);
    transform: translateY(-2px);
}

.rdv-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Error message */
.rdv-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    text-align: center;
    background: rgba(255, 77, 77, 0.08);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 77, 0.15);
}

/* Success View */
.rdv-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(77, 255, 77, 0.15), rgba(77, 255, 77, 0.05));
    border: 2px solid #4dff4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #4dff4d;
    margin: 0 auto 25px;
    animation: rdvSuccessScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes rdvSuccessScale {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#rdv-success-view h2 {
    font-family: var(--font-custom), 'Oswald', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    text-align: center;
}

#rdv-success-view p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rdv-modal-content {
        width: 95%;
        padding: 25px 20px;
        border-radius: 16px;
        max-height: 85vh;
    }

    .rdv-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rdv-modal-header h2 {
        font-size: 1.4rem;
    }

    .rdv-modal-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .rdv-modal-icon svg {
        width: 24px;
        height: 24px;
    }

    .rdv-cta-button {
        font-size: 0.8rem;
        padding: 12px 20px !important;
    }
}

/* Agenda weekly style */
.rdv-agenda-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}
.rdv-agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.agenda-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    font-weight: bold;
}
.agenda-nav-btn:hover:not(:disabled) {
    background: #d71920;
    border-color: #ed1c24;
}
.agenda-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.agenda-week-label {
    font-family: var(--font-custom), 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: #ffc107;
}
.rdv-agenda-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.agenda-day-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.agenda-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
}
.agenda-day-header span {
    display: block;
    font-size: 0.9rem;
    color: white;
    margin-top: 2px;
}
.agenda-slot-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    width: 100%;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}
.agenda-slot-btn:hover {
    background: rgba(237, 28, 36, 0.15);
    border-color: #ed1c24;
    color: #f2333a;
}
.agenda-slot-btn.selected {
    background: #d71920 !important;
    border-color: #ed1c24 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(237, 28, 36, 0.4);
    transform: scale(1.05);
}
.agenda-closed-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    padding: 8px 0;
}
@media (max-width: 768px) {
    .rdv-agenda-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}
.agenda-slot-btn:disabled {
    background: rgba(255, 255, 255, 0.01) !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.15) !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    transform: none !important;
    box-shadow: none !important;

}
