/* Positionnement et floutage de l'arrière-plan de la popup */
#dialogue-devis::backdrop {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(3px);
}

/* Boîte principale du devis avec effet 4 couleurs */
#dialogue-devis {
    border-top: 4px solid #ec4899;
    border-right: 4px solid #fbbf24;
    border-bottom: 4px solid #10b981;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    background: #e9f1f7;
    padding: 0;
    width: min(90vw, 760px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Couleurs forcées pour les liens internes */
#dialogue-devis .cadre,
#dialogue-devis .cadre * {
    color: #ffffff !important;
}

/* Titre principal de la modale */
#dialogue-devis h2 {
    margin: 0;
    padding: 24px 24px 16px;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    text-align: center;
    color: #1f6f99;
    font-weight: 800;
}

/* Conteneur des blocs de choix */
.dialogue {
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grille adaptative pour les deux boutons de devis */
.choix-devis {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Cartes interactives d'appel ou de formulaire */
.cadre {
    flex: 1 1 250px;
    min-height: 160px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 24px 16px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.choix-devis .cadre:first-child {
    background: #10b981;
}

.choix-devis .cadre:first-child:hover {
    background: #047857;
}

.choix-devis .cadre:last-child {
    background: #ec4899;
}

.choix-devis .cadre:last-child:hover {
    background: #be185d;
}

.cadre:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

/* Ligne décorative animée sous le texte */
.cadre::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    height: 3px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 300ms ease;
}

.cadre:hover::after {
    transform: scaleX(1);
}

/* Icônes de cadres via FontAwesome */
.choix-devis .cadre::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(255, 255, 255, 0.96);
    font-size: 2.2rem;
    line-height: 1;
    transition: transform 200ms ease;
}

.choix-devis .cadre:hover::before {
    transform: scale(1.1);
}

.choix-devis .cadre:first-child::before {
    content: "\f095";
}

.choix-devis .cadre:last-child::before {
    content: "\f0e0";
}

/* Slogan central de mise en valeur */
.cote {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.4;
    font-weight: 700;
    margin-top: 10px;
    color: #235e84;
}

.cote .accent {
    background: rgba(236, 72, 153, 0.12);
    color: #1f6f99;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    margin: 4px 6px;
}

/* Texte d'avertissement sur les horaires */
#dialogue-devis>p {
    text-align: center;
    margin: 16px auto 24px;
    max-width: 88%;
    color: #1f6f99;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Pied de la modale contenant le bouton de fermeture */
.pied {
    border-top: 1px solid rgba(6, 32, 51, 0.1);
    padding: 16px 24px;
    text-align: center;
    background: #f8fafc;
}

.pied button {
    padding: 12px 32px;
    border: 1px solid rgba(2, 10, 20, 0.35);
    border-bottom: 4px solid #0b3150;
    border-radius: 8px;
    background: linear-gradient(180deg, #1f4f76 0%, #0b3150 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 rgba(2, 10, 20, 0.2), 0 8px 12px rgba(3, 12, 26, 0.15);
    transition: transform 100ms ease, box-shadow 100ms ease, filter 160ms ease;
    cursor: pointer;
}

.pied button:hover {
    transform: translateY(2px);
    filter: brightness(1.1);
    box-shadow: 0 2px 0 rgba(2, 10, 20, 0.2), 0 4px 8px rgba(3, 12, 26, 0.1);
}

.pied button:active {
    transform: translateY(4px);
    box-shadow: none;
    border-bottom-width: 2px;
}

@media screen and (max-width: 768px) {

    dialog,
    #dialogue-devis {
        width: 95% !important;
        max-width: none !important;
        padding: 20px 16px !important;
        margin: auto !important;
    }

    .quote-form-row {
        flex-direction: column;
        gap: 16px;
    }
}