/* ==============================================================
   # Charte alarme.comparer-changer.fr
   Surcharges du site, chargées après style.css, default.css et blocs.css.

   Bleu nuit pour la confiance (couleur du secteur sécurité), rouge réservé
   à l'action : un seul élément rouge par écran, pour que le CTA ressorte.
   Jamais de texte rouge sur le bleu nuit (contraste 3,46:1, sous AA).
   ============================================================== */
:root {
    --default-font: -apple-system, BlinkMacSystemFont, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
    --heading-font: -apple-system, BlinkMacSystemFont, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
    --default-color: #334155;
    --heading-color: #0b1f3a;
    --accent-color: #d40b2b;
    --contrast-color: #fff;
    --surface-color: #fff;
    --nav-hover-color: #d40b2b;
    --nav-dropdown-hover-color: #d40b2b;
    --alarme-navy: #03234a;
    --alarme-navy-text: #cbd5e1;
    --alarme-light: #f4f7fb;
    --alarme-border: #e2e8f0;
    --alarme-cta-hover: #b3001f;
    --alarme-muted: #64748b;
    --alarme-shadow: 0 14px 34px rgb(3 35 74 / 10%);
}

.light-background {
    --background-color: #f4f7fb;
}

.dark-background {
    --background-color: #03234a;
    --default-color: #cbd5e1;
    --heading-color: #fff;
    --contrast-color: #fff;
}

/* Les titres animés par AOS restent visibles même si le script tarde */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* ==============================================================
   # Titres de section
   ============================================================== */
.section-title h2,
.alt-features h2,
.etapes h2,
.faq h2,
.details h2 {
    margin-bottom: 12px;
    padding-bottom: 0;
    color: var(--heading-color);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
}

.section-title h2::after,
.section-title h2::before {
    display: none;
}

/* ==============================================================
   # Boutons d'action : un seul style, cible tactile de 48 px
   ============================================================== */
.appointment-btn,
.read-more,
.hero .btn-get-started,
.bandeau-action .read-more,
.bandeau-action a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    background: var(--accent-color);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgb(212 11 43 / 22%);
    transition: background 0.2s ease;
}

.appointment-btn:hover,
.read-more:hover,
.hero .btn-get-started:hover,
.bandeau-action .read-more:hover,
.bandeau-action a.btn:hover {
    color: #fff;
    background: var(--alarme-cta-hover);
}

a:focus-visible,
button:focus-visible,
.option-label:focus-within {
    outline: 3px solid #f6b93b;
    outline-offset: 2px;
}

/* ==============================================================
   # En-tête
   ============================================================== */
.header {
    --default-color: #334155;
    --heading-color: #0b1f3a;
    padding: 10px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--alarme-border);
    box-shadow: 0 2px 8px rgb(3 35 74 / 6%);
}

.header .col-12 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
}

.header .logo img {
    max-height: 48px;
}

.header .bloc_textes {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

.header .bloc_texte_1 p,
.header .bloc_texte_2 p {
    margin: 0;
}

.header .bloc_texte_1 p {
    color: var(--heading-color);
    font-size: 15px;
    font-weight: 600;
}

.header .bloc_texte_1 .fa-shield-alt {
    margin-right: 6px;
    color: var(--heading-color);
}

.header .appointment-btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
}

@media (max-width: 767px) {
    .header .bloc_texte_1 {
        display: none;
    }

    .header .logo img {
        max-height: 40px;
    }

    .header .appointment-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ==============================================================
   # Hero : voile bleu nuit, promesse lisible
   ============================================================== */
.hero {
    position: relative;
}

.hero .hero-bg {
    object-position: center;
}

.hero.dark-background::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgb(3 35 74 / 95%) 0%, rgb(3 35 74 / 85%) 55%, rgb(3 35 74 / 75%) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1,
.hero .bloc_mobile .h1 {
    margin: 12px 0 16px;
    color: #fff;
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    text-transform: none;
    text-shadow: none;
}

.hero .hero-subtitle {
    padding-bottom: 8px;
    color: var(--alarme-navy-text);
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    text-shadow: none;
}

.hero .hero-text ul {
    padding: 0;
    list-style: none;
}

.hero .hero-text ul li {
    padding: 4px 0;
    color: #fff;
    font-weight: 600;
}

#hero-content .left ul li::before {
    content: "\f00c";
    width: 22px;
    height: 22px;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Mobile : le titre passe au-dessus du formulaire, et l'image d'illustration
   du bloc, redondante avec le fond, disparaît */
.hero .bloc_mobile .bloc-gauche-image {
    display: none;
}

@media (width <= 992px) {
    .hero #hero-content {
        display: flex;
        flex-direction: column;
    }

    .hero #hero-content > .bloc_mobile {
        order: -1;
        margin: 8px 0 16px;
    }

    .hero .bloc_mobile .h1 {
        text-align: left !important;
    }

    .hero .bloc_mobile .hero-text,
    .hero .bloc_mobile .d-flex.mt-3 {
        display: none !important;
    }
}

/* ==============================================================
   # Formulaire dynamique
   ============================================================== */
#lead_form {
    --heading-color: #0b1f3a;
    --default-color: #334155;
    padding: 24px 24px 16px;
    color: var(--default-color);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgb(0 0 0 / 25%);
}

#lead_form .form_title {
    margin: 0 0 4px;
    padding: 0 !important;
    color: var(--heading-color) !important;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

#lead_form .lead,
#lead_form .section_description {
    color: var(--alarme-muted);
    font-size: 15px;
}

#lead_form .progress {
    height: 8px;
    margin: 12px 0 8px !important;
    border-radius: 99px;
}

#lead_form .progress-bar {
    font-size: 0;
    background-color: var(--accent-color) !important;
    background-image: none;
}

#lead_form label,
#lead_form .form-section > label {
    color: var(--heading-color);
}

#lead_form .option-label {
    min-height: 56px;
    margin-bottom: 10px;
    padding: 12px 16px;
    color: var(--heading-color);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    background: #fff;
    border: 2px solid var(--alarme-border);
    border-radius: 12px;
    box-shadow: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#lead_form .option-label:hover,
#lead_form input:checked + .option-label,
#lead_form .option-label.active {
    color: var(--heading-color);
    background: var(--alarme-light);
    border-color: var(--heading-color);
}

#lead_form .option-label i {
    width: 32px;
    color: var(--heading-color);
    font-size: 22px !important;
    text-align: center;
}

#lead_form .form-control,
#lead_form .input-group-text {
    min-height: 48px;
    font-size: 16px;
    border-color: var(--alarme-border);
}

#lead_form .input-group-text {
    color: var(--heading-color);
    background: var(--alarme-light);
}

#lead_form .next,
#lead_form .btn-success {
    min-height: 48px;
    padding: 10px 28px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    background: var(--accent-color);
    border: 0;
    border-radius: 10px;
}

#lead_form .next:hover,
#lead_form .btn-success:hover {
    background: var(--alarme-cta-hover);
}

#lead_form .previous {
    min-height: 48px;
    color: var(--heading-color);
    font-weight: 600;
    background: transparent;
    border: 0;
}

#lead_form .previous:hover {
    text-decoration: underline;
}

/* ==============================================================
   # Réassurance
   ============================================================== */
.reassurance {
    padding: 22px 0;
    background: #fff;
    border-bottom: 1px solid var(--alarme-border);
}

.reassurance .reassurance-liste {
    background: var(--alarme-light);
    border-color: var(--alarme-border);
}

.reassurance .reassurance-item__icone,
.reassurance .reassurance-item__texte strong {
    color: var(--heading-color);
}

/* ==============================================================
   # Ce que comprend votre protection
   ============================================================== */
.alt-features.dark-background {
    --background-color: #fff;
    --default-color: #334155;
    --heading-color: #0b1f3a;
    text-align: center;
}

.alt-features .icon-box {
    flex: 0 0 25%;
    flex-direction: column;
    align-items: center;
    max-width: 25%;
    padding: 24px 18px;
    text-align: center;
}

.alt-features .icon-box .icone {
    max-width: 88px;
    margin: 0 0 14px;
}

.alt-features .icon-box img {
    width: 88px;
    margin: 0;
}

.alt-features .icon-box h3 {
    color: var(--heading-color);
    font-size: 18px;
    font-weight: 700;
}

.alt-features .icon-box p {
    color: var(--default-color);
    font-size: 15px;
}

@media (max-width: 991px) {
    .alt-features .icon-box {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .alt-features .icon-box {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==============================================================
   # Étapes
   ============================================================== */
.etapes {
    background: var(--alarme-light);
}

.etapes .etape-item__numero {
    color: #fff;
    background: var(--heading-color);
}

/* ==============================================================
   # Tout compris (texte + image)
   ============================================================== */
.text-image-section .text-image-item h3:empty {
    display: none;
}

.text-image-section .text-image-item {
    color: var(--default-color);
    font-size: 16px;
}

.text-image-section .text-image-item ul {
    padding-left: 0;
    list-style: none;
}

.text-image-section .text-image-item ul li {
    position: relative;
    padding: 6px 0 6px 30px;
}

.text-image-section .text-image-item ul li::before {
    content: "\f00c";
    position: absolute;
    top: 6px;
    left: 0;
    color: var(--heading-color);
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.text-image-section .read-more i,
.details .read-more i {
    display: none;
}

/* ==============================================================
   # Équipements : photo pleine largeur
   ============================================================== */
#cartes-action-section {
    background: var(--alarme-light);
}

#cartes-action-section .service-item {
    padding: 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--alarme-shadow);
}

#cartes-action-section .service-item .icon {
    width: 100%;
    height: auto;
    margin: 0 0 16px;
    background: none;
}

#cartes-action-section .service-item .icon img {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
}

#cartes-action-section .service-item h3 {
    color: var(--heading-color);
    font-size: 19px;
    font-weight: 700;
}

#cartes-action-section .read-more {
    min-height: 44px;
    color: var(--heading-color);
    background: transparent;
    border: 2px solid var(--heading-color);
    box-shadow: none;
}

#cartes-action-section .read-more:hover {
    color: #fff;
    background: var(--heading-color);
}

/* ==============================================================
   # Bandeau offre et CTA final : bleu nuit
   ============================================================== */
.bandeau-action {
    background: #fff;
}

.bandeau-action .cta-band {
    background: var(--alarme-navy);
    border: 0;
    box-shadow: var(--alarme-shadow);
}

.bandeau-action .cta-band__texte,
.bandeau-action .cta-band__texte p {
    color: #fff;
}

.bandeau-action .cta-band__texte strong {
    color: #fff;
    background: var(--accent-color);
    padding: 0 6px;
    border-radius: 4px;
}

.details.dark-background {
    text-align: center;
}

.details .cta-text p {
    color: var(--alarme-navy-text);
    font-size: 18px;
}

/* ==============================================================
   # FAQ
   ============================================================== */
.faq .card {
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--alarme-border);
    border-radius: 10px;
}

.faq .btn-link,
.faq .card-header h3,
.faq .card-header h2 {
    font-size: 18px;
}

.faq .btn-link {
    min-height: 48px;
    color: var(--heading-color);
    font-weight: 700;
    text-align: left;
    white-space: normal;
}

/* ==============================================================
   # Mention légale
   ============================================================== */
.mention-legale .disclosure-box {
    background: var(--alarme-light);
    border-left-color: var(--alarme-border);
}

.mention-legale,
.mention-legale p {
    color: var(--alarme-muted);
    font-size: 13px;
}

/* ==============================================================
   # Pied de page bleu nuit
   ============================================================== */
.footer {
    background-color: var(--alarme-navy);
}

.footer img[src*="logo2"] {
    filter: brightness(0) invert(1);
}

/* ==============================================================
   # Formulaire : correctifs de la relecture UX
   ============================================================== */

/* Carte cochée : le vert du gabarit (3,13:1) laisse place à la charte */
#lead_form .radio-option input:checked + .option-label {
    color: var(--heading-color) !important;
    background: var(--alarme-light) !important;
    border-color: var(--heading-color) !important;
}

#lead_form .option-label .option-text {
    font-size: 16px;
}

/* Icônes des champs en bleu : le rouge reste aux boutons */
#lead_form .input-group-text i {
    color: var(--heading-color);
}

/* Listes jour / mois / année : fond blanc, pas d'air désactivé */
#lead_form .bootstrap-select .dropdown-toggle {
    background: #fff;
    border: 1px solid var(--alarme-border);
}

/* Civilité : zone tactile de 44 px */
#lead_form .custom-radio .custom-control-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Bouton d'envoi : le libellé passe à la ligne au lieu d'être tronqué */
#lead_form #btn_submit {
    height: auto;
    padding: 12px 16px;
    font-size: 17px;
    line-height: 1.25;
    white-space: normal;
}

/* Consentements : alignés à gauche, sans débordement à 320 px */
#lead_form .optin-text,
#lead_form .custom-control.custom-checkbox.text-left {
    text-align: left !important;
}

#lead_form .optin-text,
#lead_form .custom-checkbox .custom-control-label {
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    #lead_form {
        padding: 18px 12px 12px;
    }

    #lead_form #form_service {
        padding: 0 !important;
    }
}

/* Libellés des champs texte : lus par les lecteurs d'écran, masqués à l'œil
   (le placeholder porte déjà l'indication, l'étape reste courte) */
#lead_form label[for^="question-"]:has(+ .input-group-text) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 359px) {
    .header .appointment-btn {
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .header .logo img {
        max-height: 34px;
    }
}
