/* ==============================================================
   energia-pt.comparer-changer.fr — charte du site (Repsol)
   Chargée après style.css, default.css et blocs.css : elle redonne aux blocs
   du template l'apparence que le site avait avant de passer aux blocs.
   Chaque section est ciblée par le `custom_id` posé dans la composition
   (template_energia_pt_1.json) : #header, #topo, #alt-features, #planos,
   #simular, #faq.
   ============================================================== */
:root {
    --heading-font: "Nunito", sans-serif;
    --heading-color: #ff6200;
    --accent-color: #ff6200;
    --contrast-color: #fff;
    --site-text: #464646;
    --site-link: #016a7f;
    --site-tag: #e4002b;
    --nav-color: #ff6200;
    --nav-hover-color: #ff6200;
    --nav-dropdown-hover-color: #ff6200;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* ---------- En-tête ---------- */
#header.header {
    background: #fff;
    padding: 22px 0;
}

#header .col-12 {
    text-align: left !important;
}

#header .logo {
    line-height: 1;
}

#header .logo img {
    max-height: 36px;
    width: auto;
    margin-right: 8px;
}

#header .sitename {
    margin: 0 0 0 20px;
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--site-text);
}

/* ---------- Hero + formulaire ---------- */
#topo.hero {
    min-height: 100vh;
    padding: 80px 0 60px;
    display: flex;
    align-items: center;
}

#topo .bloc_desktop {
    justify-content: center;
}

@media (min-width: 992px) {
    #topo .bloc_desktop {
        display: flex;
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
    }

    #topo #bloc_full_form {
        flex: 0 0 41.6667%;
        max-width: 41.6667%;
    }
}

#topo .hero-surtitre {
    margin: 5px 0;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
}

#topo h1 {
    max-width: 560px;
    margin: 0;
    padding-bottom: 60px;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    color: #fff;
}

#topo .btn-get-started {
    margin-left: 15px;
    padding: 15px 25px;
    border-radius: 4px;
    background: #ff6200;
    color: #fff;
    font-family: var(--default-font);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
}

#topo .btn-get-started::after {
    content: "\f061";
    margin-left: 10px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Carte du formulaire : angles arrondis et bandeau de titre plein, sur le
   modèle de mon-audition.comparer-changer.fr, à la couleur du site. */
#lead_form {
    border-radius: 15px;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

/* La `.row` reprend la gouttière en marge négative : sans ça le bandeau
   déborderait du fond blanc de chaque côté. */
#lead_form > .row {
    margin-left: 0;
    margin-right: 0;
}

#lead_form .droite {
    padding-left: 0;
    padding-right: 0;
}

#lead_form h2.form_title {
    margin: 0;
    padding: 15px !important;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: #ff6200;
    font-size: 1.5rem;
    font-weight: bolder;
    font-variant: small-caps;
    line-height: 1.2;
    text-align: center;
}

#lead_form .bloc_form {
    padding: 15px;
}

#lead_form p.lead {
    display: block !important;
    margin: 0 0 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

/* Bandeau de réassurance en français du gabarit de formulaire : la page
   d'origine n'en avait pas. */
#lead_form #form-footer {
    display: none !important;
}

/* Une seule étape : la barre de progression n'apporte rien */
#lead_form .progress {
    display: none;
}

#lead_form .input-group-text i,
#lead_form .input-group-text svg {
    color: #343a40;
}

#lead_form .next,
#lead_form #btn_submit {
    border: 0;
    border-radius: 4px;
    background: #ff6200 !important;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
}

#lead_form #btn_submit {
    display: block;
    float: none !important;
    width: auto !important;
    margin: 8px auto !important;
    padding: 10px 30px;
}

/* Optins : le <p> que pose CKEditor héritait de la taille des paragraphes du
   hero, soit 18 px sur mobile — le consentement occupait un écran entier. */
#lead_form .optin-text,
#lead_form .optin-text p {
    font-size: 13px;
}

/* `.optin-text` est en ligne : c'est le label qui fixe l'interligne. */
#lead_form #bloc_optin .custom-control-label {
    font-size: 13px;
    line-height: 1.45;
}

#lead_form #bloc_optin .custom-control {
    margin-bottom: 8px;
}

#lead_form #cgu_form {
    font-size: 11px;
    line-height: 15px;
    text-align: left !important;
}

#lead_form #cgu_form small,
#lead_form #cgu_form p {
    margin: 0;
    font-size: 11px;
    line-height: 15px;
}

#lead_form .form-navigation {
    text-align: center;
}

#lead_form #cgu_form a {
    color: #4154f1;
}

/* Rappel en français, écrit en dur dans le gabarit de formulaire du template :
   le texte légal portugais (contenu 6) dit déjà la même chose. */
#lead_form #help-form {
    display: none;
}

/* ---------- Avantages ---------- */
#alt-features.alt-features {
    --background-color: #fafafa;
    --default-color: #444;
    --heading-color: #ff6200;
    background-color: #fafafa;
    padding: 60px 0;
}

#alt-features h2 {
    max-width: 640px;
    margin: 10px auto 70px;
    text-align: center;
    font-size: 39px;
    font-weight: 600;
    line-height: 50px;
    color: #ff6200;
}

#alt-features .icon-box {
    display: flex;
    align-items: flex-start;
}

#alt-features .icon-box .icone {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0 15px 0 0;
    background: none;
}

#alt-features .icon-box img {
    width: 50px;
    height: 50px;
}

#alt-features .icon-box h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--site-text);
}

#alt-features .icon-box p {
    margin-bottom: 0;
    font-size: 15px;
    color: color-mix(in srgb, #444, transparent 30%);
}

/* ---------- Plans (cartes) ---------- */
#planos.services {
    --background-color: #fff;
    background: #fff;
    padding: 60px 0;
}

#planos .section-title {
    padding-bottom: 60px;
}

#planos .section-title h2,
#simular h2.h4:first-child,
#faq h2 {
    font-size: 39px;
    font-weight: 600;
    color: #ff6200;
}

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

#planos .service-item {
    padding: 0 0 30px;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 30px rgb(0 0 0 / 10%);
    text-align: left !important;
    transition: 0.3s;
}

#planos .service-item:hover {
    transform: scale(1.08);
}

#planos .service-item .icon {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: none;
}

#planos .service-item .icon img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    border-radius: 0;
    animation: none;
}

/* Vague blanche au bas de la photo */
#planos .service-item .icon::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -1px;
    height: 100%;
    background-color: #fff;
    mask: url("/img/1/team-shape.svg") no-repeat center bottom;
    mask-size: contain;
    z-index: 1;
}

#planos .service-item h3 {
    margin: 15px 35px 5px;
    text-align: left;
    font-size: 30px;
    font-weight: 700;
    color: #ff6200;
}

#planos .carte-texte {
    padding: 0 25px;
    color: var(--site-text);
}

#planos .carte-texte p {
    margin: 0 0 16px 10px;
    font-size: 24px;
    line-height: 26px;
}

/* Première ligne du texte = étiquette rouge posée sur la photo */
#planos .carte-texte p:first-child {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 2;
    margin: 0;
    padding: 5px 20px;
    border-radius: 4px;
    background: var(--site-tag);
    box-shadow: 0 5px 25px rgb(0 0 0 / 10%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

#planos .carte-texte p:first-child strong {
    font-weight: 600;
}

#planos .carte-texte ul {
    margin: 0;
    padding-left: 40px;
    font-size: 16px;
    line-height: 26px;
}

#planos .service-item .read-more {
    display: flex;
    justify-content: center;
    padding: 15px 40px;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--site-link);
    font-size: 16px;
}

#planos .service-item .read-more span {
    font-family: var(--default-font);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--site-link);
}

#planos .service-item .read-more i {
    margin-left: 8px;
    font-size: 18px;
    color: var(--site-link);
}

#planos .service-item .read-more i::before {
    content: "\f054";
}

/* ---------- Simulation (image + étapes) ---------- */
#simular {
    padding: 60px 0;
}

/* L'image passe à gauche, comme sur la page d'origine */
#simular .row > .col-lg-6:first-child {
    order: 2 !important;
}

#simular .row > .col-lg-6:last-child {
    order: 1 !important;
    text-align: center;
}

#simular .row > .col-lg-6:last-child img {
    width: 258px;
    max-width: 100%;
    border-radius: 0 !important;
}

#simular h2.h4 {
    font-family: var(--heading-font);
}

#simular .d-flex.mb-4:first-child {
    display: block !important;
    margin-bottom: 0 !important;
}

#simular .d-flex.mb-4:first-child h2.h4 {
    margin: 10px 0 80px !important;
    text-align: center;
    font-size: 39px;
    font-weight: 600;
    color: #ff6200;
}

#simular .item-texte p {
    margin-bottom: 24px;
    color: var(--site-text);
}

#simular .d-flex.mb-4:not(:first-child) {
    align-items: center;
    margin: 0 0 24px 15px !important;
    padding: 24px 20px;
    background: #fff;
    box-shadow: 0 0 30px rgb(0 0 0 / 10%);
}

#simular .d-flex.mb-4:not(:first-child)::before {
    content: "\f00c";
    margin-right: 14px;
    font-family: "Font Awesome 6 Free";
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: #ff6200;
}

#simular .d-flex.mb-4:not(:first-child) h2.h4 {
    margin: 0 !important;
    font-size: 18px;
    font-weight: 700;
    color: #444;
}

#simular .read-more {
    display: inline-flex;
    padding: 15px 25px;
    border: 0;
    border-radius: 4px;
    background: #ff6200;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

#simular .read-more span {
    letter-spacing: 0;
    color: #fff;
}

#simular .read-more i {
    display: none;
}

/* ---------- FAQ ---------- */
#faq.faq {
    --background-color: #fafafa;
    background: #fafafa;
    padding: 60px 0;
}

#faq h2 {
    margin: 10px 0 70px !important;
    text-align: center;
    line-height: 30px;
}

#faq h2 small {
    display: block;
    max-width: 1000px;
    margin: 20px auto 0;
    font-family: var(--default-font);
    font-size: 22px;
    font-weight: 400;
    line-height: 32px;
    color: var(--site-text);
}

#faq .accordion {
    max-width: 730px;
    margin: 0 auto;
}

#faq .card {
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, #444, transparent 85%);
    border-radius: 0;
    background: none;
}

#faq .card-header {
    padding: 20px 0;
    border: 0;
    background: none;
}

#faq .card-header .btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 40px 0 0;
    border: 0;
    box-shadow: none;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #ff6200;
}

#faq .card-header .btn::after {
    content: "\f054";
    position: absolute;
    top: 0;
    right: 20px;
    font-family: "Font Awesome 6 Free";
    font-size: 16px;
    font-weight: 900;
    transition: 0.3s;
    transform: rotate(90deg);
}

#faq .card-header .btn.collapsed::after {
    transform: none;
}

#faq .card-body {
    padding: 0 0 20px;
    font-size: 16px;
    color: #444;
}

#faq .card-body p {
    margin: 0;
}

#faq .card-body a {
    color: var(--site-link);
}

#faq .card-body i {
    padding-right: 5px;
    font-size: 8px;
    color: #ff6200;
}

#faq .card-body .italique {
    font-style: italic;
    color: #757575;
}

#faq .read-more {
    padding: 15px 40px;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: 16px;
}

#faq .read-more span {
    font-family: var(--default-font);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--site-link);
}

#faq .read-more i {
    margin-left: 8px;
    color: var(--site-link);
}

#faq .read-more i::before {
    content: "\f054";
}

/* ---------- Pied de page ----------
   Fond sombre et structure du template, comme sur mon-audition. */
#site-footer {
    color: #b6b6b6;
}

#site-footer a,
#site-footer .btn-link {
    color: #b6b6b6;
    text-decoration: underline;
}

#site-footer h4 {
    color: #fff;
}

/* Le logo Repsol est bleu nuit : illisible tel quel sur le fond sombre. */
#site-footer .footer-about .logo {
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
}

#site-footer .footer-about .logo img {
    max-height: 36px;
    width: auto;
}

#site-footer .footer-slogan {
    margin: 16px 0 0;
    font-size: 15px;
    color: #ff6200;
}

.scroll-top {
    background-color: #4154f1;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    #header .col-12 {
        text-align: center !important;
    }

    #header .logo {
        justify-content: center;
    }

    #topo.hero {
        min-height: 0;
        padding: 30px 0;
    }

    #topo h1 {
        padding-bottom: 20px;
        font-size: 28px;
        line-height: 36px;
    }

    #topo .hero-surtitre {
        font-size: 18px;
    }

    #lead_form h2.form_title {
        font-size: 1.3rem;
    }

    /* Colonne étroite : le texte justifié s'y troue de grands blancs. */
    #lead_form #bloc_optin .custom-control,
    #lead_form #bloc_optin .custom-control-label,
    #lead_form .optin-text {
        text-align: left !important;
    }

    /* Version mobile du bloc : titre aligné à gauche, sans vignette */
    #topo .bloc_mobile .left {
        align-items: flex-start !important;
        padding-top: 20px;
    }

    #topo .bloc_mobile .hero-surtitre,
    #topo .bloc_mobile .h1 {
        text-align: left !important;
        color: #fff;
    }

    #topo .bloc_mobile .h1 {
        margin: 0;
        padding-bottom: 20px;
        font-family: var(--heading-font);
        font-size: 28px;
        font-weight: 700;
        line-height: 36px;
    }

    #topo .bloc_mobile .bloc-gauche-image {
        display: none;
    }

    #topo .bloc_mobile .d-flex {
        justify-content: flex-start !important;
    }

    #alt-features h2,
    #planos .section-title h2,
    #simular .d-flex.mb-4:first-child h2.h4,
    #faq h2 {
        font-size: 30px;
        line-height: 36px;
    }

    #alt-features h2,
    #simular .d-flex.mb-4:first-child h2.h4,
    #faq h2 {
        margin-bottom: 40px !important;
    }

    #simular .d-flex.mb-4:not(:first-child) {
        margin-left: 0 !important;
    }

    #faq h2 small {
        font-size: 18px;
        line-height: 26px;
    }
}
