/* ================================
   POPUP GLOBAL
================================ */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hidden {
    display: none !important;
}

.popup-content {
    background: white;
    width: 500px;
    max-height: 90vh;
    padding: 25px;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.3s ease;
    font-family: 'Lato', sans-serif;
}

@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================================
   BOUTON FERMER
================================ */

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 26px;
}

/* ================================
   ETAPES
================================ */

.step {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}


/* TITRES D'ÉTAPES */
.titre-step {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    text-align: left;
    letter-spacing: -0.3px;
}

/* SOUS-TITRES D'ÉTAPES */
.sous-titre-step {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 600px;
}

/* OPTIONNEL : animation légère à l’arrivée de chaque étape */
.step .titre-step,
.step .sous-titre-step {
    animation: fadeIn 0.2s ease-out;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ================================
   BOUTONS
================================ */

.next-btn {
    background: #007bff;
    color: white;
    border-radius: 6px;
    font-weight: bold;
}

.back-btn {
    background: #ccc;
    border-radius: 6px;
}

/* ================================
   LISTES DE CHOIX
================================ */

#services-list button,
#formules-list button,
#vehicules-list button,
#creneaux-list button {
    margin: 8px 0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}



/* ================================
   PRIX SOUS FORMULES (B3-2)
================================ */

.formule-price {
    text-align: center;
    color: #333;
    font-size: 15px;
    margin-top: -5px;
}

.formule-price hr {
    border: none;
    border-top: 1px solid #bbb;
    width: 100%;
    margin: 5px 0 3px 0;
}

/* ================================
   PRIX SOUS VÉHICULE (+XX€)
================================ */

.vehicule-price {
    text-align: center;
    margin-top: 4px;
    font-size: 14px;
    color: #444;
}

/* ================================
   INPUTS
================================ */

input[type="text"],
input[type="email"],
input[type="date"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ================================
   RÉCAP FINAL
================================ */

#recap-final {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 20px;
    line-height: 1.6;
}

#recap-final h2 {
    margin-top: 0;
}

.recap-block {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.recap-title {
    font-weight: bold;
    font-size: 15px;
}

.recap-total {
    font-size: 22px;
    font-weight: bold;
    padding-top: 15px;
    text-align: right;
}




.pac-container {
    z-index: 99999 !important;
}




/* === BARRE DE PROGRESSION === */

#progress-container {
    width: 100%;
    height: 6px;
    background: #e4e4e4;
    border-radius: 4px;
    margin: 10px 0 20px 0;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #007bff;
    transition: width 0.35s ease;
}


/* === Carte service === */

.service-card {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    margin: 10px 0;
}

.service-card img {
    width: 100%;
    max-width: 180px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.service-card.selected {
    border-color: #007bff !important;
    background: #fff !important;
    transform: scale(1.05);
}


.service-card-label.selected{
    border-color: #007bff !important;
    background: #fff !important;
    transform: scale(1.05);
        color: #000 !important;
}
/* === Carte Formule === */

.formule-card {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 18px;
    margin: 12px 0;
    background: #fafafa;
    cursor: pointer;
    transition: 0.25s ease;
    transform: scale(1);
}

.formule-card:hover {
    background: #f0f6ff;
    transform: scale(1.02);
}


.formule-card.selected {
    border-color: #007bff !important;
    background: #fff !important;
    transform: scale(1.05);
}


.formule-card.selected .formule-title{
    color: #000 !important;
}


.formule-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
}

.formule-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.formule-price {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
}



/* === Carte Véhicule === */
#vehicules-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.vehicle-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: white;
}

.vehicle-card.selected {
    border-color: #007bff;
    background: #eef6ff;
}

.vehicle-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.vehicle-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.vehicle-supp {
    font-size: 14px;
    color: #555;
}


/* === Options supp === */

#supplements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.supp-card {
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.supp-header {
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.supp-header input {
    width: 20px;
    height: 20px;
}

.supp-info {
    flex: 1;
}

.supp-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.supp-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.supp-price {
    font-size: 15px;
    font-weight: bold;
    color: #0078ff;
}



#creneaux-list button {
    padding: 12px 18px !important;
    border: 2px solid #d1d1d1 !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: all 0.2s ease-in-out !important;
}

#creneaux-list button:hover {
    border-color: #0078ff !important;
    transform: scale(1.03) !important;
}

#creneaux-list button.selected {
    background-color: #0078ff !important;
    border-color: #006be0 !important;
    color: white !important;
    transform: scale(1.10) !important;
}


.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.calendar th {
    padding: 8px;
    background: #f0f0f0;
}

.calendar td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.calendar-day {
    background: #fff;
}

.calendar-day:hover {
    background: #bae0ff;
}

.calendar-disabled {
    background: #e0e0e0;
    color: #777;
    text-decoration: line-through;
    cursor: not-allowed;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#calendar-header button {
    padding: 5px 10px;
    font-size: 16px;
}

#calendar-title {
    font-weight: bold;
    font-size: 18px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar th {
    background: #f0f0f0;
    padding: 6px;
}

.calendar td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.calendar-day {
    background: white;
    cursor: pointer;
}

.calendar-day:hover {
    background: #c9e8ff;
}

.calendar-disabled {
    background: #e0e0e0;
    color: #666;
    text-decoration: line-through;
}

.calendar-day.selected {
    border: 3px solid #0078ff !important;
    background: #e8f2ff !important;
    border-radius: 8px;
    font-weight: bold;
    transform: scale(1.05);
}

/* PAGE VALIDATION */

.validation-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.checkmark {
    width: 120px;                 /* un peu plus grand = cercle plus propre */
    height: 120px;
    margin: 0 auto 25px;          /* espace sous le check */
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark svg {
    width: 100%;
    height: 100%;
    overflow: visible;            /* ⚠ évite que le cercle soit coupé */
}

/* Cercle */
.checkmark-circle {
    stroke: #4CAF50;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke-dasharray: 0 157;
    animation: circle-animation 0.6s ease-in-out forwards;
}

/* Check */
.checkmark-check {
    stroke: #4CAF50;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 0 50;
    animation: check-animation 0.4s ease-in-out 0.6s forwards;
}

/* Animation du cercle */
@keyframes circle-animation {
    0% { stroke-dasharray: 0 157; }
    100% { stroke-dasharray: 157 157; }
}

/* Animation du check ✓ */
@keyframes check-animation {
    0% { stroke-dasharray: 0 50; }
    100% { stroke-dasharray: 50 50; }
}

/* Texte confirmation */
.validation-wrapper h2 {
    margin-top: 15px;
    margin-bottom: 10px;
}

.validation-wrapper p {
    margin-bottom: 25px;          /* espace avant le bouton */
    font-size: 16px;
}

.checkmark {
    animation: zoomCheck 0.3s ease-out 0.4s both;
}

@keyframes zoomCheck {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}




/* OVERLAY LOADER */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity .3s;
}

.loader-overlay.hidden {
    display: none;
}

/* SPINNER */
.loader-spinner {
    width: 70px;
    height: 70px;
    border: 6px solid #e0e0e0;
    border-top-color: #1e73f8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#reservation-loader p {
    margin-top: 15px;
    font-size: 18px;
    color: #1e73f8;
    font-weight: 600;
}







/*************************************************
 * STEP DEVIS
 *************************************************/

#step-devis {
    text-align: center;
    padding: 30px 20px;
}

/* Titre */
#step-devis h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #222;
}

/* Texte */
#step-devis p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

/* Bouton contact */
#step-devis .btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#step-devis .btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Bouton fermer */
#step-devis .btn-danger {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #ccc;
    color: #555;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#step-devis .btn-danger:hover {
    border-color: #999;
    color: #222;
}

/* Animation apparition */
#step-devis {
    animation: fadeInDevis 0.4s ease;
}

@keyframes fadeInDevis {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    #step-devis h2 {
        font-size: 22px;
    }

    #step-devis p {
        font-size: 14px;
    }

    #step-devis .btn-primary {
        width: 100%;
    }

    #step-devis .btn-danger {
        width: 100%;
        margin-top: 10px;
    }
}