/* =========================================================
   MODALE DEVIS EN LIGNE — SCOPE TOTAL
========================================================= */

#devisModal {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #1C2258;
}

/* ===============================
   MODAL CONTENT
================================ */
#devisModal .modal-content {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 520px;
    background: #fff url(/devisenligne/symbole.svg) no-repeat;
}

/* ===============================
   HEADERS
================================ */
#devisModal .modal-header {
    border: none;
}

#devisModal .modal-title p:first-child {
    font-weight: 700;
    font-size: 19px;
    line-height: 18px;
    color: #1C2258;
}

#devisModal .modal-title p:last-child {
    font-style: italic;
    font-size: 13px;
    color: #000;
}

/* ===============================
   ETAPES (MENU IMAGES)
================================ */
#devisModal .premier img,
#devisModal .deuxieme img {
    margin-top: -140px;
}

/* ===============================
   INPUTS & SELECTS — PREMIUM
================================ */
#devisModal input[type="text"],
#devisModal select {
    appearance: none;
    -webkit-appearance: none;

    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1C2258;

    background: rgba(28, 34, 88, 0.02);
    border: 1px solid rgba(28, 34, 88, 0.18);
    border-radius: 10px;

    height: 46px;
    padding: 0 14px;

    transition:
            border-color .25s ease,
            box-shadow .25s ease,
            background-color .25s ease;
}

/* Placeholder */
#devisModal input::placeholder {
    color: #9aa0b3;
    font-weight: 400;
}

/* ===============================
   HOVER (subtil)
================================ */
#devisModal input:hover,
#devisModal select:hover {
    background: rgba(28, 34, 88, 0.035);
    border-color: rgba(28, 34, 88, 0.28);
}

/* ===============================
   FOCUS — PREMIUM GLOW
================================ */
#devisModal input:focus,
#devisModal select:focus {
    outline: none;
    background: #fff;
    border-color: #3b82f6;
    box-shadow:
            0 0 0 4px rgba(59, 130, 246, 0.12),
            0 2px 6px rgba(28, 34, 88, 0.08);
}

/* ===============================
   READONLY
================================ */
#devisModal input[readonly] {
    background: rgba(28, 34, 88, 0.04);
    border-style: dashed;
    color: #6b7280;
    cursor: not-allowed;
}

/* ===============================
   CODE POSTAL / VILLE
================================ */
#devisModal #codePostal {
    width: 120px;
    text-align: center;
    font-weight: 600;
}

#devisModal #ville {
    min-width: 180px;
    text-align: center;
}

/* ===============================
   SELECT — ICÔNE ÉLÉGANTE
================================ */
#devisModal select {
    padding-right: 42px;
    cursor: pointer;

    background-image:
            linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,.9)),
            url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%231C2258' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position:
            0 0,
            right 14px center;

    background-size:
            100% 100%,
            14px;
}

/* ===============================
   CODE POSTAL / VILLE
================================ */
#devisModal #codePostal {
    width: 120px;
    text-align: center;
    font-weight: 600;
}

#devisModal #ville {
    min-width: 180px;
    text-align: center;
    font-weight: 500;
}

/* ===============================
   SELECT (FLÈCHE CUSTOM)
================================ */
#devisModal select {
    appearance: none;
    padding-right: 30px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%231C2258' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 14px;
}

/* ===============================
   LISTE VILLES (AUTOCOMPLETE)
================================ */
#devisModal #deroule {
    background: rgba(129,39,65,.1);
    width: 300px;
    max-height: 100px;
    overflow-y: auto;
    margin: 0 auto;
}

#devisModal #listeVilles li {
    cursor: pointer;
}

#devisModal #listeVilles ul {
    list-style: none;        /* supprime les points */
    margin: 0;
    padding: 0;
}

#listeVilles{
    padding: 0
}

.btn-close {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
}

.btn-close::before,
.btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: #1c2258; /* couleur de la croix */
    border-radius: 2px;
}

.btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close:hover {
    opacity: 1;
}


#btnDevisEnLigne{
    margin: 0 auto;
    margin-top: 35px;
}
.btnDevisEnLigne{
    margin: 0 auto;
    margin-top: 35px;
}
#devisModal #listeVilles li {
    list-style: none;        /* sécurité */
    padding: 8px 12px;
    text-align: left;        /* alignement à gauche */
    cursor: pointer;
    font-size: 14px;
    color: #1C2258;
}

#devisModal #listeVilles li:hover {
    background: rgba(28, 34, 88, 0.08);
}


#devisModal #listeVilles li:hover {
    background: rgba(28,34,88,.1);
}

/* ===============================
   BLOC MAIRIE
================================ */
#devisModal #ismairie > div {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(71,193,241,.1);
    border-radius: 11px;
    width: 60%;
    padding: 12px;
    font-weight: 500;
}

/* ===============================
   VISIBILITÉ (pilotée JS)
================================ */
#devisModal .deuxieme {
    display: none;
}

#devisModal #idTrancheAge {
    display: none;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 760px) {

    #devisModal input,
    #devisModal select {
        width: 100%;
        font-size: 14px;
    }

    #devisModal #codePostal,
    #devisModal #ville {
        width: 100%;
        min-width: 100%;
    }

    #devisModal #ismairie > div {
        width: 100%;
    }
}


/* ===============================
   TRANCHE D’ÂGE — UX PREMIUM
================================ */
#devisModal .age-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 56px;
}

/* Label "J'ai" */
#devisModal .age-select p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1C2258;
    white-space: nowrap;
}

/* Select */
#devisModal .age-select select {
    min-width: 300px;
    text-align: center;
    font-weight: 500;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 760px) {
    #devisModal .age-select {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }

    #devisModal .age-select select {
        width: 100%;
        min-width: 100%;
    }
}

.devis-modal__dialog {
    width: 70%;
    max-width: 70%;
}

@media (max-width: 1600px) {
    .devis-modal__dialog {
        width: 96%;
        max-width: 96%;
    }
}

.devis-modal__content {
    min-height: 520px;
    background: #fff url("/devisenligne/symbole.svg") no-repeat;
    border-radius: 32px;
}

.devis-modal__header {
    display: flex;
    justify-content: space-between;
    border-bottom: none;
}

.devis-modal__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.devis-modal__main-title {
    font-weight: 700;
    font-size: 19px;
    color: #1C2258;
}

.devis-modal__subtitle {
    font-style: italic;
    font-size: 13px;
}

.devis-step {
    text-align: center;
}

.devis-step__menu {
    margin-top: -140px;
}

.devis-step--2 {
    display: none;
}

.hidden {
    display: none !important;
}

.ville-suggestions {
    background: rgba(129,39,65,0.1);
    max-height: 120px;
    overflow-y: auto;
}

.mairie-info {
    margin: 1rem auto;
}

iframe#moniframe {
    width: 100%;
    min-height: 400px;
    border-radius: 32px;
    border: none;
}

/* ======================================================
STEP 2 – GLOBAL
====================================================== */


.devis-step--2 .row {
    align-items: flex-start;
}

/* ======================================================
   COLONNE GAUCHE – CURSEURS
====================================================== */

.step2-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 1.5rem;
}

.step2-title i {
    font-weight: 400;
    font-size: 13px;
    color: #6b6f8a;
}

/* Liste catégories */
.category-slider {
    margin-bottom: 1.1rem;
    display: inline-flex
}

.category-slider__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.category-slider__header img {
    width: 18px;
    height: 18px;
}

.category-slider__header span {
    font-size: 14px;
    font-weight: 500;
    color: #1C2258;
}

/* Ligne curseur */
.category-slider__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Barre */
.category-slider__values {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.category-slider__values::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #1C2258;
    z-index: 0;
}

/* Ronds */
.category-slider__values .nbr {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #D9D9D9;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.category-slider__values .nbr.actif {
    background: #3AB0E5;
}

/* Plus / moins (invisibles visuellement mais fonctionnels) */
.category-slider .plus,
.category-slider .moins {
    display: none;
}

/* ======================================================
   COLONNE DROITE – RECOMMANDATION
====================================================== */

.reco-wrapper {
    background: #EAF8FF;
    border-radius: 40px;
    padding: 2rem;
    text-align: center;
}

.reco-title {
    font-size: 14px;
    font-weight: 500;
    color: #2BB0FF;
    margin-bottom: 1rem;
}

.reco-title::after {
    content: "⌄";
    display: block;
    font-size: 18px;
    line-height: 1;
}

/* Carte */
.reco-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: left;
}

.reco-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reco-badge {
    background: #2BB0FF;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
}

.reco-price {
    text-align: right;
}

.reco-price strong {
    font-size: 22px;
    color: #1C2258;
}

.reco-price small {
    display: block;
    font-size: 13px;
    color: #1C2258;
}

/* Bouton carte */
.reco-card button {
    margin-top: 1.5rem;
    width: 100%;
    background: linear-gradient(180deg, #3AB0E5, #1C8EC9);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Disclaimer */
.reco-disclaimer {
    font-size: 12px;
    color: #1C2258;
    margin-top: 1rem;
}

#deroule{
    display: none
}
/* ======================================================
   BOUTON FINAL
====================================================== */

.step2-submit {
    margin-top: 2rem;
    text-align: center;
}

.step2-submit button {
    background: #1C2258;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.step2-submit button::after {
    content: "➜";
    font-size: 16px;
}

.float-right{
    float: right
}
.menu-section h4{
    width: 100%
}
/* ======================================================
   CATEGORY SLIDER — ALIGNEMENT PREMIUM
====================================================== */

#devisModal .category-slider {
    margin-bottom: 22px;
}

/* Ligne header + valeurs */
#devisModal .category-slider__controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 15px
}

/* Header (icône + label) */
#devisModal .category-slider__header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

#devisModal .category-slider__header span {
    font-size: 14px;
    font-weight: 600;
    color: #1C2258;
}

/* ======================
   ZONE DES NUMÉROS
====================== */
#devisModal .category-slider__values {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

/* Barre fine derrière */
#devisModal .category-slider__values::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    height: 2px;
    background: #D1D5DB;
    transform: translateY(-50%);
    z-index: 0;
}

/* Boutons numéros */
#devisModal .category-slider__values .nbr {
    position: relative;
    z-index: 1;

    width: 26px;
    height: 26px;
    border-radius: 50%;

    background: #E5E7EB;
    border: none;

    font-size: 13px;
    font-weight: 600;
    color: #1C2258;

    cursor: pointer;
    transition: all .2s ease;
}

/* Numéro actif */
#devisModal .category-slider__values .nbr.actif {
    background: #2BB0FF;
    color: #fff;
    box-shadow: 0 4px 10px rgba(43,176,255,.35);
}

/* Hover */
#devisModal .category-slider__values .nbr:hover {
    background: #CFEFFF;
}

/* Plus / moins invisibles */
#devisModal .category-slider .plus,
#devisModal .category-slider .moins {
    display: none;
}


@media screen and (max-width: 900px) {
    .devis-step__menu{
        margin-top: -73px;
    }
    #devisModal .category-slider__header span{
        font-size: 12px;
    }

    .category-slider{
        display: block
    }
}