/* ============================= */
/*          FORMULAIRE.CSS        */
/*          VERSION NETTOYÉE      */
/*     VERSION BOTTOM SHEET       */
/*        DEUX COLONNES           */
/*    AVEC SÉLECTION DES PACKS    */
/* ============================= */

/* === MASQUER LE FORMULAIRE LATÉRAL ORIGINAL === */
.form-container {
    display: none !important;
}

/* === NOUVEAUX BOUTONS DANS LES CARTES === */
.btn-open-form {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-color: rgba(154, 71, 255, 0.1);
    border: solid 1px #9A47FF;
    border-radius: 0.8rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-open-form:hover {
    background-color: rgba(154, 71, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(154, 71, 255, 0.3);
}

/* === LIEN "VOIR LES DÉTAILS" DANS LES CARTES === */
.details-link {
    display: block;
    text-align: center;
    color: #9A47FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.details-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.details-link:active {
    transform: translateY(0);
}

/* === CARTE SÉLECTIONNÉE === */
.card.selected:hover {
    transform: scale(1.11) !important;
    box-shadow: 0 0.2vw 1.56vw rgba(0, 0, 0, 0.5) !important;
    z-index: 10 !important;
}

.card.selected .card-bg-outer {
    border: 2px solid #9A47FF;
    border-radius: 1.1vw;
    box-shadow: 0 0 20px rgba(154, 71, 255, 0.3);
}

.card.selected .details-link {
    color: var(--text-primary);
}

/* === BOUTON SOUS LE TABLEAU === */
.btn-open-form-table {
    display: block;
    margin: 3rem auto;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(60deg, #9A47FF 0%, #6D00FF 70%);
    border: none;
    border-radius: 0.8rem;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 400px;
}

.btn-open-form-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(154, 71, 255, 0.4);
}

/* === OVERLAY DU FORMULAIRE BOTTOM SHEET === */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* === BOTTOM SHEET DU FORMULAIRE === */
.form-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: 20vw;
    margin-right: 20vw;
    background: var(--bg-primary);
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1rem 2rem 1rem 2rem;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10003;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(154, 71, 255, 0.2);
}

.form-overlay.active .form-bottom-sheet {
    transform: translateY(0);
}

/* === HEADER DU FORMULAIRE === */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.form-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.btn-close-form {
    background: var(--bg-blur-light);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-size: 3rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-form:hover {
    background-color: rgba(154, 71, 255, 0.2);
    border-color: #9A47FF;
}

/* === CONTENU DU FORMULAIRE === */
.form-content {
    color: var(--text-primary);
}

.form-content .form-group {
    margin-bottom: 1rem;
}

/* === SECTION INFORMATIONS === */
.form-content .info-text {
    background: rgba(154, 71, 255, 0.1);
    border: 1px solid rgba(154, 71, 255, 0.3);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

/* === LAYOUT PRINCIPAL DEUX COLONNES === */
.form-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

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

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

/* === TITRE DES COLONNES === */
.column-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #9A47FF;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(154, 71, 255, 0.3);
    display: flex;
    align-items: center;
}

/* === STYLES GÉNÉRIQUES === */
.form-content label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 1rem;
}

.form-content .required {
    color: #9A47FF;
    font-size: 1.1rem;
}

.form-content input[type="text"],
.form-content input[type="email"],
.form-content input[type="tel"],
.form-content input[type="date"],
.form-content select,
.form-content textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-blur-light);
    color: var(--text-primary);
    box-sizing: border-box;
}

.form-content input:focus,
.form-content select:focus,
.form-content textarea:focus {
    outline: none;
    border-color: #9A47FF;
}

/* === SÉPARATION POUR LE MESSAGE OPTIONNEL === */
.form-left-column .form-group:last-child {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-secondary);
}

/* === STYLE PERSONNALISÉ POUR LE SELECT PACK ===. */
.pack-select-container {
    position: relative;
    width: 100%;
}

.form-content select#pack {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: "figtree", sans-serif !important;
    transition: all 0.3s ease;
    background: var(--bg-blur-light);
    color: var(--text-primary);
    box-sizing: border-box;
    background-image: none;
    cursor: pointer;
}

/* Flèche personnalisée. */
.pack-select-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-primary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-content select#pack:focus {
    outline: none;
    border-color: #9A47FF;
    box-shadow: 0 0 0 2px rgba(154, 71, 255, 0.2);
}

.form-content select#pack:focus+.pack-select-container::after,
.pack-select-container:has(select#pack:focus)::after {
    border-top-color: #9A47FF;
}

.form-content select#pack option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
    border: none;
    font-family: "figtree", sans-serif !important;
    font-size: 1rem;
}

.form-content select#pack option:checked {
    background: rgba(154, 71, 255, 0.3);
    color: var(--text-primary);
}

.form-content select#pack:not([value=""]) {
    color: var(--text-primary);
    font-weight: 500;
}

.form-content select#pack[value=""] {
    color: var(--text-tertiary);
}

/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.prestations-display {
    background: var(--bg-blur-light);
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(154, 71, 255, 0.3);
    min-height: 60px;
}

.prestations-placeholder {
    color: var(--text-tertiary);
    font-style: italic;
    margin: 0;
}

.prestations-list {
    list-style: disc;
    margin: 0 0 0 1.5rem;
    padding: 0;
    color: var(--text-primary);
}

.prestations-item {
    margin-bottom: 0.5rem;
}

/* === SECTION CRÉNEAUX === */
.creneau-section {
    background: var(--bg-blur-heavy);
    padding: 1rem;
    border-radius: 0.8rem;
    margin-top: 1.6rem;
    border: 1px solid rgba(154, 71, 255, 0.2);
}

.creneau-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #9A47FF;
    display: flex;
    align-items: center;
}

/* === LAYOUT CALENDRIER + CRÉNEAUX === */
.date-time-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* === CALENDRIER PERMANENT === */
.calendar-container {
    background: var(--bg-blur-medium);
    padding: 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(154, 71, 255, 0.2);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(154, 71, 255, 0.2);
}

.calendar-nav-btn {
    background: rgba(154, 71, 255, 0.2);
    border: 1px solid rgba(154, 71, 255, 0.4);
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: rgba(154, 71, 255, 0.4);
    transform: scale(1.1);
}

.calendar-month-year {
    font-size: 1rem;
    font-weight: 600;
    color: #9A47FF;
    text-align: center;
    min-width: 120px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 0.3rem;
    background: var(--bg-overlay-heavy);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: var(--bg-blur-medium);
    color: var(--text-primary);
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: rgba(154, 71, 255, 0.2);
    border-color: rgba(154, 71, 255, 0.4);
}

.calendar-day.selected {
    background: #9A47FF;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(154, 71, 255, 0.4);
}

.calendar-day.disabled {
    background: var(--bg-blur-heavy);
    color: var(--text-disabled);
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background: var(--bg-blur-heavy);
    border-color: transparent;
    transform: none;
}

.calendar-day.other-month {
    color: var(--text-ultralight);
}

.calendar-day.today {
    border: 2px solid #9A47FF;
    font-weight: bold;
}

/* === CRÉNEAUX À DROITE === */
.time-selection {
    display: flex;
    flex-direction: column;
}

.time-selection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #9A47FF;
    margin-bottom: 1rem;
    text-align: center;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.time-slot {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(154, 71, 255, 0.3);
    border-radius: 0.5rem;
    background: var(--bg-blur-light);
    color: var(--text-primary);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
}

.time-slot:hover {
    background: rgba(154, 71, 255, 0.2);
    border-color: #9A47FF;
    transform: translateY(-1px);
}

.time-slot.selected {
    background: #9A47FF;
    border-color: #9A47FF;
    color: white;
    box-shadow: 0 2px 8px rgba(154, 71, 255, 0.3);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.time-slot.disabled:hover {
    background: var(--bg-blur-light);
    border-color: rgba(154, 71, 255, 0.3);
    transform: none;
}

/* === COMMENTAIRE === */
#message-optionnel {
    margin-top: 4.2rem;
    padding-top: 1rem;
}

.form-bottom-section {
    border-top: 1px solid var(--border-secondary);
}

/* === COMPTEUR DE CARACTÈRES === */
.form-content .char-counter {
    text-align: right;
    color: var(--text-quaternary);
    font-size: 0.8rem;
}

/* === BOUTON DE SOUMISSION === */
.btn-submit {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0 auto;
    padding: 1.2rem 2rem;
    background: linear-gradient(60deg, #9A47FF 0%, #6D00FF 70%);
    border: none;
    border-radius: 0.8rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(154, 71, 255, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #6D00FF;
}

/* === COLONNES SÉLECTIONNÉES DANS LE TABLEAU === */
.comparison-table th.selected-column {
    background: rgba(154, 71, 255, 0.3) !important;
    box-shadow:
        inset 2px 0 0 #9A47FF,
        inset -2px 0 0 #9A47FF,
        inset 0 2px 0 #9A47FF,
        inset 0 -2px 0 #9A47FF;
    color: var(--text-primary);
    position: relative;
    border: none;
    border-bottom: none !important;
}

.comparison-table td.selected-column {
    background: rgba(154, 71, 255, 0.1) !important;
    box-shadow:
        inset 2px 0 0 #9A47FF,
        inset -2px 0 0 #9A47FF;
    border-bottom: 1px solid var(--border-secondary);
    position: relative;
}

.comparison-table tr:last-child td.selected-column {
    box-shadow:
        inset 2px 0 0 #9A47FF,
        inset -2px 0 0 #9A47FF,
        inset 0 -2px 0 #9A47FF;
    border-bottom: none;
}

.comparison-table th.selected-column:last-child {
    border-top-right-radius: 1vw !important;
    box-shadow:
        inset 2px 0 0 #9A47FF,
        inset -2px 0 0 #9A47FF,
        inset 0 2px 0 #9A47FF,
        inset 0 -2px 0 #9A47FF;
    border-bottom: none !important;
}

.comparison-table tr:last-child td.selected-column:last-child {
    border-bottom-right-radius: 1vw !important;
    box-shadow:
        inset 2px 0 0 #9A47FF,
        inset -2px 0 0 #9A47FF,
        inset 0 -2px 0 #9A47FF;
}

/* === ANIMATION D'APPARITION === */
@keyframes highlightColumn {
    0% {
        background: rgba(154, 71, 255, 0.05);
    }

    50% {
        background: rgba(154, 71, 255, 0.2);
    }

    100% {
        background: rgba(154, 71, 255, 0.1);
    }
}

.selected-column {
    animation: highlightColumn 0.6s ease-in-out;
}

/* ============================= */
/*      FORMULAIRE CONTACT.CSS    */
/*      POUR PAGE CONTACT         */
/*     VERSION BOTTOM SHEET       */
/*        DANS LA GRILLE          */
/* ============================= */

/* === RÉACTIVER LE FORMULAIRE SUR LA PAGE CONTACT === */
.contact-page .form-container {
    display: block !important;
}

/* === LAYOUT PRINCIPAL 3 COLONNES ÉGALES === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    padding: 2rem;
    align-items: flex-start;
}

/* === COLONNE GAUCHE : INFORMATIONS CONTACT === */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8rem;
}

.contact-header h1 {
    font-size: 3.9rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-header .accent {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.4;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-line .lien {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-line .lien:hover {
    color: #9A47FF;
}

.contact-line .text-underline {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-line .lien:hover .text-underline {
    border-bottom-color: #9A47FF;
}

/* === IMAGE DE CONTACT === */
.image-contact {
    margin-top: 13.7vw;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-contact img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* === COLONNE CENTRALE : FORMULAIRE === */
.contact-form {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8rem;
}

/* === CONTAINER PRINCIPAL DU FORMULAIRE === */
.contact-form .form-container {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(154, 71, 255, 0.2);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

/* === TITRE DU FORMULAIRE === */
.contact-form h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-form .form-contact {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* === SECTION INFORMATIONS === */
.contact-form .info-text {
    background: rgba(154, 71, 255, 0.1);
    border: 1px solid rgba(154, 71, 255, 0.3);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.contact-form .info-text strong {
    color: #9A47FF;
    font-weight: 700;
}

/* === GROUPES DE CHAMPS === */
.contact-form .form-group {
    margin-bottom: 1rem;
}

/* === NOM ET PRÉNOM SUR LA MÊME LIGNE === */
.contact-form .name-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .name-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 1rem;
}

.contact-form .required {
    color: #9A47FF;
    font-size: 1.1rem;
}

/* === INPUTS === */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: "figtree", sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-blur-light);
    color: var(--text-primary);
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #9A47FF;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
}

/* === ZONE DE TEXTE === */
.contact-form textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

/* === COMPTEUR DE CARACTÈRES === */
.contact-form .char-counter {
    text-align: right;
    color: var(--text-quaternary);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.contact-form .char-counter.warning {
    color: #9A47FF;
    font-weight: 600;
}

/* === CONTAINER TÉLÉPHONE UNIFIÉ === */
.contact-form .phone-container {
    display: flex;
    position: relative;
    border: 1px solid var(--bg-secondary);
    border-radius: 0.5rem;
    background: var(--bg-blur-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.contact-form .phone-container:focus-within {
    border-color: #9A47FF;
}

/* === SÉLECTEUR DE PAYS PERSONNALISÉ === */
.contact-form .custom-country-select {
    position: relative;
    flex-shrink: 0;
}

.contact-form .country-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    height: 100%;
    box-sizing: border-box;
    border: none;
    border-right: 1px solid rgba(154, 71, 255, 0.2);
    min-width: 90px;
}

.contact-form .country-display:hover {
    background: rgba(154, 71, 255, 0.1);
}

.contact-form .country-text {
    font-weight: 600;
    white-space: nowrap;
}

.contact-form .country-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.3rem;
}

.contact-form .custom-country-select.open .country-arrow {
    transform: rotate(180deg);
}

/* === OPTIONS DU PAYS === */
.contact-form .country-options {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    background: var(--bg-overlay-light);
    border: 1px solid rgba(154, 71, 255, 0.4);
    border-radius: 0.5rem;
    margin-top: 0.3rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-form .custom-country-select.open .country-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-form .country-option {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(154, 71, 255, 0.1);
    font-size: 0.9rem;
}

.contact-form .country-option:last-child {
    border-bottom: none;
}

.contact-form .country-option:hover {
    background: rgba(154, 71, 255, 0.2);
    color: white;
}

.contact-form .country-option.selected {
    background: rgba(154, 71, 255, 0.3);
    color: white;
    font-weight: 600;
}

/* === INPUT TÉLÉPHONE === */
.contact-form .phone-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: "figtree", sans-serif;
    outline: none;
}

.contact-form .phone-input::placeholder {
    color: var(--text-tertiary);
}

/* === CHAMPS CACHÉS === */
.contact-form .hidden-country,
.contact-form .hidden-phone {
    display: none !important;
}

/* === BOUTON DE SOUMISSION === */
.contact-form .form-footer {
    margin-top: 2rem;
    text-align: center;
    padding: 0;
}

.contact-form .cta-hero {
    width: auto;
    min-width: 280px;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    background: linear-gradient(60deg, #9A47FF 0%, #6D00FF 70%);
    border: none;
    border-radius: 0.8rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    box-sizing: border-box;
}

.contact-form .cta-hero:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(154, 71, 255, 0.4);
}

.contact-form .cta-hero:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #6D00FF;
}

/* === OVERLAY DE CONFIRMATION === */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.overlay-content {
    background: var(--bg-primary);
    border: 1px solid rgba(154, 71, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.confirmation-overlay.active .overlay-content {
    transform: scale(1);
}

.overlay-content h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.confirmation-details {
    background: var(--bg-blur-heavy);
    padding: 1rem;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(154, 71, 255, 0.2);
}

.confirmation-details p {
    margin: 0.8rem 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.confirmation-details strong {
    color: #9A47FF;
    font-weight: 600;
}

/* === BOUTONS DE CONFIRMATION === */
.overlay-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel,
.btn-validate {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: "figtree", sans-serif;
}

.btn-cancel {
    background: var(--bg-blur-light);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-validate {
    background: linear-gradient(60deg, #9A47FF 0%, #6D00FF 70%);
    color: white;
}

.btn-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(154, 71, 255, 0.4);
}

/* === ÉTATS DE VALIDATION === */
.contact-form input.valid,
.contact-form textarea.valid {
    border-color: #4CAF50;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #f44336;
}

/* === SCROLLBAR POUR LES OPTIONS === */
.contact-form .country-options::-webkit-scrollbar {
    width: 6px;
}

.contact-form .country-options::-webkit-scrollbar-track {
    background: var(--bg-blur-heavy);
    border-radius: 3px;
}

.contact-form .country-options::-webkit-scrollbar-thumb {
    background: rgba(154, 71, 255, 0.5);
    border-radius: 3px;
}

.contact-form .country-options::-webkit-scrollbar-thumb:hover {
    background: rgba(154, 71, 255, 0.7);
}

/* === MASQUER LES ANCIENS LIENS === */
.card .lien {
    display: none !important;
}

/* === AJUSTEMENTS LAYOUT === */
.grosse-merde {
    margin-left: 12vw;
    margin-right: 12vw;
}

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

@media (max-width: 1024px) {
    .form-bottom-sheet {
        margin-left: 10vw;
        margin-right: 10vw;
    }
}

@media (max-width: 768px) {

    .card.selected .card-bg-outer {
        border-radius: 2.4rem;
    }

    .comparison-table th.selected-column:last-child {
        border-top-right-radius: 1.5rem !important;
    }

    .comparison-table tr:last-child td.selected-column:last-child {
        border-bottom-right-radius: 1.5rem !important;
    }


    /* === BOTTOM SHEET MOBILE === */
    .form-bottom-sheet {
        margin-left: 0;
        margin-right: 0;
        max-height: 95vh;
        border-radius: 1rem 1rem 0 0;
        padding: 1.5rem;
    }

    .form-main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .btn-close-form {
        font-size: 6rem;
        width: 32px;
        height: 32px;
    }

    /* === SECTION INFORMATIONS MOBILE === */
    .form-content .info-text {
        font-size: 2.5rem;
        padding: 2rem;
        margin-bottom: 3rem;
        border-radius: 6px;
    }

    /* === TITRE DES COLONNES MOBILE === */
    .column-title {
        font-size: 3.5rem;
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }

    /* === LABELS MOBILE === */
    .form-content label {
        font-size: 2.2rem;
        margin-left: 1rem;
    }

    /* === BOUTONS MOBILE === */
    .btn-submit {
        margin: 4rem auto 2rem auto;
        padding: 3rem 4rem;
        font-size: 3rem;
        border-radius: 12px;
        width: 85%;
    }

    /* === FORMULAIRE CONTACT MOBILE === */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 1rem;
        margin-top: 15vh;
    }

    .contact-info {
        text-align: center;
        padding-top: 1rem;
    }

    .contact-info h1 {
        font-size: 5rem;
    }

    .contact-info .accent {
        font-size: 3rem;
    }

    .contact-details {
        gap: 0;
    }

    .contact-details .icon-box {
        width: 4rem;
        height: 4rem;
        margin-right: 1rem;
    }

    .contact-line {
        margin-left: auto;
        margin-right: auto;
    }

    .image-contact {
        padding-left: 3vw;
        padding-right: 3vw;
        margin-bottom: 3vw;
    }

    .contact-info,
    .contact-form {
        padding-top: 4rem;
    }

    .contact-form {
        justify-content: stretch;
    }

    .contact-form .form-container {
        max-width: none;
        padding: 3rem;
        border-radius: 12px;
        border-width: 2px;
    }

    .contact-form h2 {
        margin-top: 0;
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .contact-form .form-contact {
        font-size: 2.5rem;
        margin-top: 2rem;
        margin-bottom: 3rem;
        display: block;
    }

    .contact-form .info-text {
        font-size: 2.5rem;
        padding: 2rem;
        border-radius: 8px;
        margin-bottom: 3rem;
    }

    .contact-form label {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        margin-left: 1rem;
    }

    .contact-form .required {
        font-size: 2.5rem;
    }

    .contact-form .name-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form .name-row .form-group {
        margin-bottom: 2rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        padding: 1.5rem 2rem;
        font-size: 3rem;
        border-radius: 8px;
        border-width: 2px;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        font-size: 3rem;
    }

    .contact-form textarea {
        min-height: 12rem;
    }

    .contact-form .char-counter {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .contact-form .phone-container {
        border-radius: 8px;
        border-width: 2px;
    }

    .contact-form .country-display {
        padding: 1.5rem 2rem;
        font-size: 2.5rem;
        min-width: 16rem;
        border-right-width: 2px;
    }

    .contact-form .country-text {
        font-size: 2.5rem;
    }

    .contact-form .country-arrow {
        width: 2rem;
        height: 2rem;
        margin-left: 1rem;
    }

    .contact-form .phone-input {
        padding: 1.5rem 2rem;
        font-size: 3rem;
    }

    .contact-form .phone-input::placeholder {
        font-size: 3rem;
    }

    .contact-form .country-option {
        padding: 1.5rem 2rem;
        font-size: 2.5rem;
        border-bottom-width: 2px;
    }

    .contact-form .cta-hero {
        padding: 3rem 4rem;
        font-size: 3rem;
        border-radius: 12px;
        margin-top: 3rem;
        margin-bottom: 2rem;
        min-width: none;
        width: 100%;
    }

    .contact-form .cta-content {
        font-size: 3rem;
    }

    .creneau-title {
        font-size: 3.4rem;
    }

    .calendar-nav-btn {
        font-size: 3rem;
    }

    .calendar-month-year {
        font-size: 2.6rem;
    }

    .calendar-day-header {
        font-size: 2rem;
    }

    .calendar-day {
        font-size: 2.6rem;
    }

    .time-selection-title {
        font-size: 2.6rem;
    }

    .time-slot {
        font-size: 2.6rem;
    }

    .form-content select#pack {
        font-size: 3rem;
    }

    /* Et aussi pour les options */
    .form-content select#pack option {
        font-size: 3rem;
    }

    .details-link {
        font-size: 3rem;
        margin-top: 2rem;
    }

    .btn-open-form {
        font-size: 3rem;
        margin-top: 3rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
        border-radius: 1.5rem;
    }

    .btn-open-form-table {
        font-size: 3rem;
        margin-top: 3rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
        border-radius: 1.5rem;
    }

    /* === OVERLAY DE CONFIRMATION MOBILE === */
    .overlay-content {
        padding: 3rem;
        margin: 2rem;
        border-radius: 12px;
        border-width: 2px;
    }

    .overlay-content h3 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .confirmation-details {
        padding: 2rem;
        border-radius: 12px;
        border-width: 2px;
        margin-bottom: 3rem;
    }

    .confirmation-details p {
        margin: 1.5rem 0;
        font-size: 2.5rem;
        line-height: 1.4;
    }

    .overlay-buttons {
        flex-direction: column;
        gap: 2rem;
    }

    .btn-cancel,
    .btn-validate {
        width: 100%;
        padding: 3rem 4rem;
        font-size: 3rem;
        border-radius: 12px;
    }

    .btn-cancel {
        border-width: 2px;
    }

    .grosse-merde {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ============================= */
/*        RESPONSIVE LAPTOP       */
/*      769px → 1439px            */
/* ============================= */

@media (min-width: 769px) and (max-width: 1439px) {

    /* === BOUTONS DANS LES CARTES === */
    .btn-open-form {
        font-size: 1.2rem;
    }

    .details-link {
        font-size: 1.2rem;
    }

    /* === BOUTON SOUS LE TABLEAU === */
    .btn-open-form-table {
        margin: 2rem auto;
        padding: 1rem 2rem;
        font-size: 1.4rem;
        max-width: 350px;
    }

    /* === BOTTOM SHEET === */
    .form-bottom-sheet {
        margin-left: 3vw;
        margin-right: 3vw;
        padding: 1rem 1.5rem 1rem 1.5rem;
    }

    /* === HEADER DU FORMULAIRE === */
    .form-title {
        font-size: 2rem;
    }

    .btn-close-form {
        font-size: 3.2rem;
        width: 42px;
        height: 42px;
    }

    /* === CONTENU DU FORMULAIRE === */
    .form-content .info-text {
        font-size: 1.1rem;
    }

    /* === LAYOUT DEUX COLONNES === */
    .form-main-content {
        gap: 1.5rem;
    }

    /* === TITRE DES COLONNES === */
    .column-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }

    /* === STYLES GÉNÉRIQUES === */
    .form-content label {
        font-size: 1rem;
        margin-left: 0.8rem;
    }

    .form-content .required {
        font-size: 1.3rem;
    }

    .form-content input[type="text"],
    .form-content input[type="email"],
    .form-content input[type="tel"],
    .form-content input[type="date"],
    .form-content select,
    .form-content textarea {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
    }

    /* === SELECT PACK PERSONNALISÉ === */
    .form-content select#pack {
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 1.2rem;
    }

    .pack-select-container:after {
        right: 0.8rem;
    }

    /* === SECTION CRÉNEAUX === */
    .creneau-section {
        padding: 0.8rem;
        margin-top: 1.2rem;
    }

    .creneau-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    /* === CALENDRIER === */
    .date-time-container {
        gap: 1.2rem;
    }

    .calendar-container {
        padding: 0.8rem;
    }

    .calendar-header {
        margin-bottom: 0.8rem;
        padding-bottom: 0.4rem;
    }

    .calendar-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .calendar-month-year {
        font-size: 1.2rem;
        min-width: 100px;
    }

    .calendar-day-header {
        font-size: 0.9rem;
        padding: 0.25rem;
    }

    .calendar-day {
        font-size: 1rem;
    }

    /* === CRÉNEAUX HORAIRES === */
    .time-selection-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .time-slots {
        gap: 0.6rem;
    }

    .time-slot {
        padding: 0.6rem 0.8rem;
        font-size: 1.2rem;
    }

    /* === COMMENTAIRE === */
    #message-optionnel {
        margin-top: 3rem;
        padding-top: 0.8rem;
    }

    .form-content .char-counter {
        font-size: 1rem;
    }

    /* === BOUTON DE SOUMISSION === */
    .btn-submit {
        max-width: 350px;
        margin: 1.5rem auto 0 auto;
        padding: 1rem 1.5rem;
        font-size: 1.3rem;
    }

    /* === FORMULAIRE CONTACT === */
    .contact-form .form-container {
        padding: 1.5rem;
        max-width: 450px;
    }

    .contact-form h2 {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }

    .contact-form .form-contact {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .contact-form .info-text {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
        font-size: 1.1rem;
    }

    .contact-form .name-row {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .contact-form label {
        margin-bottom: 0.25rem;
        font-size: 1rem;
        margin-left: 0.8rem;
    }

    .contact-form .required {
        font-size: 1.3rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
    }

    .contact-form textarea {
        min-height: 70px;
    }

    .contact-form .char-counter {
        font-size: 1rem;
    }

    /* === CONTAINER TÉLÉPHONE === */
    .contact-form .country-display {
        padding: 0.5rem 0.6rem;
        font-size: 1.1rem;
        min-width: 80px;
    }

    .contact-form .country-text {
        font-size: 1.1rem;
    }

    .contact-form .country-arrow {
        width: 10px;
        height: 10px;
        margin-left: 0.25rem;
    }

    .contact-form .country-options {
        margin-top: 0.25rem;
        max-height: 180px;
    }

    .contact-form .country-option {
        padding: 0.5rem 0.6rem;
        font-size: 1.1rem;
    }

    .contact-form .phone-input {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
    }

    /* === BOUTON CONTACT === */
    .contact-form .form-footer {
        margin-top: 1.5rem;
    }

    .contact-form .cta-hero {
        min-width: 250px;
        padding: 1rem 1.5rem;
        font-size: 1.3rem;
    }

    /* === OVERLAY DE CONFIRMATION === */
    .overlay-content {
        padding: 1.5rem;
        max-width: 450px;
    }

    .overlay-content h3 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .confirmation-details {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .confirmation-details p {
        margin: 0.6rem 0;
        font-size: 1.4rem;
    }

    .overlay-buttons {
        gap: 0.8rem;
    }

    .btn-cancel,
    .btn-validate {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
        min-width: 100px;
    }

    /* === AJUSTEMENTS LAYOUT === */
    .grosse-merde {
        width: 100%;
        margin-left: 8vw;
        margin-right: 8vw;
    }
}