/* ============================================================
   DigiFive — correctifs et styles personnalisés
   (chargé après main.css)
   ============================================================ */

/* ---------- Logo DigiFive ---------- */
.df-logo {
    max-height: 62px;
    width: auto;
}
.df-logo-chip {
    background: #ffffff;
    border-radius: 12px;
    padding: 5px 10px;
}
@media (max-width: 575px) {
    .df-logo { max-height: 48px; }
}

/* ---------- Correctif : select "Service souhaité" (nice-select)
   Le menu déroulant généré par nice-select prenait la largeur du
   plus long libellé et sortait de l'écran. On force la largeur du
   champ et de sa liste à 100 % du conteneur, avec défilement. ---------- */
.contact-form-items .nice-select {
    width: 100%;
    float: none;
    height: 60px;
    line-height: 60px;
    border: none;
    border-radius: 10px;
    padding: 0 40px 0 20px;
    background-color: #f3f2fa;
    font-size: 16px;
    display: block;
}
.contact-form-items .nice-select .list {
    width: 100%;
    left: 0;
    right: auto;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(23, 1, 44, .15);
    z-index: 30;
}
.contact-form-items .nice-select .option {
    white-space: normal;
    line-height: 1.45;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 0;
}
.contact-form-items .nice-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* fallback si nice-select est désactivé */
.contact-form-items select {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    background-color: #f3f2fa;
}

/* ---------- Articles de blog ---------- */
.df-article {
    font-size: 17px;
    line-height: 1.75;
}
.df-article h2 {
    font-size: 30px;
    margin: 40px 0 16px;
}
.df-article h3 {
    font-size: 23px;
    margin: 30px 0 12px;
}
.df-article p { margin-bottom: 16px; }
.df-article ul, .df-article ol {
    margin: 0 0 20px 8px;
    display: grid;
    gap: 10px;
}
.df-article ul li { position: relative; padding-left: 26px; }
.df-article ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    color: #6A47ED;
    position: absolute;
    left: 0;
    top: 1px;
}
.df-article ol { list-style: decimal inside; }
.df-article a { color: #6A47ED; text-decoration: underline; }
.df-article img { max-width: 100%; height: auto; border-radius: 18px; }
.df-article blockquote {
    background: #f3f2fa;
    border-left: 4px solid #6A47ED;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
    font-style: italic;
}
.df-article .cta-final,
.df-article .callout,
.df-article .note {
    background: linear-gradient(120deg, #f3f2fa, #ece7ff);
    border: 1px solid #ddd3ff;
    border-radius: 16px;
    padding: 26px 28px;
    margin: 34px 0 0;
}
.df-article .cta-final h2, .df-article .cta-final h3 { margin-top: 0; }
.df-article .cta-final .btn,
.df-article .btn.btn-grad {
    display: inline-block;
    background: #6A47ED;
    color: #fff !important;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 10px;
}

/* Tableaux (comparatifs) : lisibles + défilement horizontal sur mobile */
.df-article .df-tablewrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}
.df-article table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.df-article th, .df-article td {
    border: 1px solid #eae6f7;
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}
.df-article th { background: #6A47ED; color: #fff; }
.df-article tr:nth-child(even) td { background: #faf9ff; }
.df-article caption {
    caption-side: bottom;
    font-size: 14px;
    color: #777;
    padding-top: 8px;
    text-align: left;
}

/* ---------- Divers mobile ---------- */
@media (max-width: 767px) {
    .df-article h2 { font-size: 24px; }
    .df-article { font-size: 16px; }
    .breadcrumb-wrapper .page-heading h1 { font-size: 30px; }
    .googpemap iframe { min-height: 280px; }
    .cta-wrapper h2 { font-size: 26px; }
}
.googpemap iframe { width: 100%; height: 100%; min-height: 380px; border-radius: 16px; }

/* flèche du nice-select bien positionnée à droite */
.contact-form-items .nice-select:after,
.contact-form-items .nice-select::after {
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    margin: 0 !important;
    position: absolute !important;
    transform: translateY(-50%) rotate(45deg) !important;
}


/* ---------- Header pages internes (style-2) : logo transparent ---------- */
.header-1.style-2 .header-logo { display: none; }
.header-1.style-2 .header-logo-2 { display: block; }
.header-1.style-2 { box-shadow: 0 4px 24px rgba(23, 1, 44, .06); }
.header-1.style-2 .header-right .search-icon { color: #17012C; }

/* ---------- Illustrations des sections (hauteur maîtrisée) ---------- */
.df-illu {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    border-radius: 20px;
    display: block;
}
.about-section .row { align-items: center; }

/* ---------- Cartes pricing : couleurs inspirées du logo DigiFive ---------- */
.pricing-box-items .pricing-header {
    background: linear-gradient(125deg, #2436D8 0%, #6A47ED 55%, #8B2FD8 100%) !important;
}
.pricing-box-items.style-2 .pricing-header {
    background: linear-gradient(125deg, #8B2FD8 0%, #6A47ED 45%, #2436D8 100%) !important;
    box-shadow: 0 12px 30px rgba(106, 71, 237, .35);
}
.pricing-box-items .pricing-header .content h4,
.pricing-box-items .pricing-header .content h2,
.pricing-box-items .pricing-header .content h2 sub {
    color: #ffffff;
}
.pricing-box-items .pricing-header .df-tagline {
    font-size: 14px;
    margin-top: 8px;
    color: #ffffff;
    opacity: .95;
    font-weight: 500;
}
.pricing-box-items .pricing-header .df-badge {
    display: inline-block;
    background: #d3f542;
    color: #17012C;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

/* ---------- Select : le texte ne doit jamais sortir du cadre ---------- */
.contact-form-items .nice-select .current {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 28px;
}

/* ---------- Barre de défilement du menu déroulant : large et facile à saisir ---------- */
.contact-form-items .nice-select .list {
    scrollbar-width: auto;                 /* Firefox */
    scrollbar-color: #6A47ED #ece9f8;      /* Firefox */
    padding-right: 2px;
}
.contact-form-items .nice-select .list::-webkit-scrollbar {
    width: 14px;
}
.contact-form-items .nice-select .list::-webkit-scrollbar-track {
    background: #ece9f8;
    border-radius: 8px;
}
.contact-form-items .nice-select .list::-webkit-scrollbar-thumb {
    background: #6A47ED;
    border-radius: 8px;
    border: 3px solid #ece9f8;   /* zone de saisie plus large, pouce bien visible */
    min-height: 48px;
}
.contact-form-items .nice-select .list::-webkit-scrollbar-thumb:hover {
    background: #5232c9;
}

/* ---------- Footer : dégager "Mentions légales / Contact" de la flèche ---------- */
.footer-bottom .footer-wrapper {
    padding-right: 90px;
}
.footer-bottom .footer-menu li:last-child a {
    margin-right: 0;
}
@media (max-width: 767px) {
    .footer-bottom .footer-wrapper {
        padding-right: 0;
        padding-bottom: 64px;   /* la flèche passe sous les liens sur mobile */
    }
}


/* ---------- Select natif "Service souhaité" (nice-select désactivé) ---------- */
.contact-form-items select#service {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 10px;
    padding: 0 48px 0 20px;
    background-color: #f3f2fa;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236A47ED' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    font-size: 16px;
    color: #17012C;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.contact-form-items select#service:focus {
    outline: 2px solid #6A47ED;
    outline-offset: 1px;
}
