/* ==============================================================
   Charte Volvo EX40 — surcharge du thème v4
   Chargée après style.css, default.css et blocs.css (cadre/header.twig) :
   on n'y met que ce qui distingue le site du thème, jamais la mise en page
   des blocs eux-mêmes. Partagée par les 3 séries (css/2 et css/3 sont des
   liens vers css/1).
   ============================================================== */
/* Police Volvo Novum, servie par Kwanko. Déclarée ici plutôt que par un
   `@import` de leur feuille : l'`@import` ajoutait une requête bloquante vers
   un serveur tiers avant tout affichage (≈ 0,9 s sur mobile, mesuré par
   Lighthouse). `font-display: swap` : le texte s'affiche tout de suite dans la
   police de secours, puis bascule. */
@font-face {
    font-family: "Volvo Novum";
    src: url("https://kw-fonts.s3-eu-west-1.amazonaws.com/VolvoNovum/VolvoNovum-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Volvo Novum";
    src: url("https://kw-fonts.s3-eu-west-1.amazonaws.com/VolvoNovum/VolvoNovum-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Volvo Novum";
    src: url("https://kw-fonts.s3-eu-west-1.amazonaws.com/VolvoNovum/VolvoNovum-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Volvo Novum";
    src: url("https://kw-fonts.s3-eu-west-1.amazonaws.com/VolvoNovum/VolvoNovum-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --volvo-font: "Volvo Novum", Helvetica, Arial, sans-serif;
    --volvo-noir: #000;
    --volvo-sable: #f5f3f0;
    --volvo-gris: #f5f5f5;
    --volvo-bleu: #0924bc;

    --default-font: var(--volvo-font);
    --heading-font: var(--volvo-font);
    --nav-font: var(--volvo-font);
    --default-color: #141414;
    --heading-color: var(--volvo-noir);
    --accent-color: var(--volvo-bleu);
    --contrast-color: var(--volvo-noir);
}

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

body {
    font-family: var(--volvo-font);
}

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

/* --- En-tête : logo Volvo noir sur blanc ------------------------ */
.header {
    --background-color: #fff;
    border-bottom: 1px solid #ebebeb;
    padding: 18px 0;
}

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

/* --- Hero : fond sable, texte noir, visuel du véhicule ---------- */
.hero.dark-background {
    --background-color: var(--volvo-sable);
    --default-color: var(--volvo-noir);
    --heading-color: var(--volvo-noir);
    --surface-color: var(--volvo-noir);
    background-color: var(--volvo-sable);
    min-height: 0;
    padding: 40px 0;
}

.hero.dark-background::before {
    display: none;
}

.hero h1 {
    color: var(--volvo-noir);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .5rem;
    padding-top: 0;
}

.hero .hero-subtitle {
    color: var(--volvo-noir);
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
    padding-bottom: 0;
}

.hero .hero-text,
.hero .hero-text p {
    color: var(--volvo-noir);
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 0;
}

.hero .hero-visuel {
    margin-top: 1.5rem;
}

.hero .hero-visuel img {
    width: 100%;
    max-width: 750px;
    pointer-events: none;
}

@media (min-width: 992px) {
    .hero .hero-subtitle {
        font-size: 34px;
        line-height: 44px;
    }
}

/* --- Formulaire : titre noir, bouton bleu Volvo à angles droits -- */
#lead_form {
    border-radius: 0;
}

#lead_form .form-control,
#lead_form .btn,
#lead_form .bootstrap-select > .dropdown-toggle {
    border-radius: 0;
}

#lead_form .form_title {
    font-family: var(--volvo-font);
    font-weight: 700;
}

#lead_form #btn_submit,
#lead_form .btn-primary {
    background-color: var(--volvo-bleu);
    border-color: var(--volvo-bleu);
    font-weight: 700;
}

#lead_form #btn_submit:hover,
#lead_form .btn-primary:hover {
    background-color: #071c93;
    border-color: #071c93;
}

/* --- Caractéristiques : cases grises, reprises de la v3 ----------
   Bloc HTML personnalisé plutôt que « chiffres clés » : celui-ci échappe
   la valeur, et la charte veut l'unité en petit à côté du chiffre. */
#caracteristiques {
    padding: 40px 0;
}

.specs__titre {
    color: var(--volvo-noir);
    font-size: 1.25rem;
    font-weight: 300;
    padding-bottom: 30px;
    text-align: center;
}

.specs__grille {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

@media (min-width: 992px) {
    .specs__grille {
        grid-template-columns: repeat(4, 1fr);
    }
}

.spec-box {
    background-color: var(--volvo-gris);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 110px;
    padding: .5rem;
}

.spec-box__libelle {
    color: var(--volvo-noir);
    font-family: var(--volvo-font);
    font-size: .75rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
}

.spec-box__valeur {
    color: var(--volvo-noir);
    font-size: 11px;
    margin: 0;
}

.spec-box .details {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.spec-box .details small {
    color: var(--volvo-noir);
    font-size: 12px;
    font-weight: 400;
}

.spec-box__liste {
    display: block;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .spec-box .details {
        font-size: 28px;
    }
}

/* --- Points forts : photo pleine largeur, texte aligné à gauche -- */
.services .service-item {
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
    text-align: left !important;
}

.services .service-item:hover {
    box-shadow: none;
    transform: none;
}

.services .service-item .icon {
    margin: 0 0 1rem;
    width: 100%;
    height: auto;
    background: none;
}

.services .service-item .icon img {
    width: 100%;
    max-width: none;
    height: auto;
    animation: none;
    border-radius: 0;
}

.services .service-item h3 {
    color: var(--volvo-noir);
    font-size: 1rem;
    font-weight: 500;
}

.services .service-item .carte-texte p {
    color: var(--volvo-noir);
    font-size: .875rem;
    font-weight: 300;
}

/* --- Boutons d'action : bleu Volvo, angles droits ---------------- */
.read-more,
.hero .btn-get-started {
    background-color: var(--volvo-bleu);
    border-color: var(--volvo-bleu);
    border-radius: 0;
    color: #fff;
}

.read-more:hover,
.hero .btn-get-started:hover {
    background-color: #071c93;
    color: #fff;
}

.cta-band {
    background: var(--volvo-sable);
    border: 0;
    border-radius: 0;
}

/* --- Étiquette énergie ------------------------------------------- */
.etiquette-energie__titre {
    font-size: .875rem;
    font-weight: 300;
    margin-bottom: .5rem;
}

img.energy-img {
    max-width: 140px;
    pointer-events: none;
}

@media (min-width: 992px) {
    img.energy-img {
        max-width: 200px;
    }
}

/* --- Renvois légaux : petit corps justifié ----------------------- */
.mention-legale .disclosure-box {
    background: var(--volvo-gris);
    border-left-color: #d0d0d0;
    border-radius: 0;
    font-size: .7rem;
    text-align: justify;
}

/* --- Pied de page : blanc, comme volvocars.com ------------------
   Le cadre du template affiche /img/<N>/logo2.png, logo générique du
   template : on y substitue le logo Volvo, commun aux 3 séries. */
.footer.dark-background {
    --background-color: #fff;
    --default-color: var(--volvo-noir);
    --heading-color: var(--volvo-noir);
    --accent-color: var(--volvo-noir);
    background-color: #fff;
    border-top: 1px solid #ebebeb;
}

.footer .footer-about .logo img {
    content: url("/img/volvo-logo.svg");
    width: 143px;
    height: 11px;
    max-height: none;
}

.footer a {
    color: var(--volvo-noir);
}

.footer a:hover {
    color: var(--volvo-bleu);
}

@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 1.1rem;
    }
}

/* ==============================================================
   Série 1 — maquette « EX40 septembre 2026 »
   Tout est limité aux `custom_id` des blocs de la composition
   volvo_ex40_1 (suffixe `-sept`) : les séries 2 et 3 partagent cette
   feuille (css/2 et css/3 sont des liens) et gardent leur rendu.
   Le formulaire n'est volontairement pas restylé.
   ============================================================== */

/* --- En-tête : logo aligné à gauche sur ordinateur -------------- */
@media (min-width: 992px) {
    #site-header-sept .col-12 {
        text-align: left !important;
    }
}

/* --- Hero ------------------------------------------------------- */
#hero-sept.hero.dark-background {
    background-color: #f7f2f1;
    --background-color: #f7f2f1;
}

#hero-sept .hero-surtitre__texte {
    font-weight: 700;
}

#hero-sept .hero-surtitre {
    font-size: 1rem;
    color: var(--volvo-noir);
}

#hero-sept .hero-pastille {
    background-color: #dc3545;
    font-size: 1rem;
    font-weight: 300;
    padding: .25rem .5rem;
}

#hero-sept h1,
#hero-sept .h1 {
    color: var(--volvo-noir);
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
    padding-bottom: 1.25rem;
    margin-bottom: 0;
}

#hero-sept .hero-text p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
}

#hero-sept .hero-visuel {
    position: relative;
    margin-top: 1rem;
}

#hero-sept .hero-visuel__vehicule {
    width: 100%;
    max-width: 750px;
    pointer-events: none;
}

/* Pastille « Éligible au Coup de pouce » : en haut à droite du visuel, remontée
   au-dessus du toit, dans le vide à droite du texte. Centrée verticalement, elle
   se posait sur l'avant de la voiture et ne se lisait plus. */
#hero-sept .hero-visuel__pastille {
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: auto;
    /* Mobile : le texte est centré au-dessus, la pastille ne remonte presque
       pas pour ne pas le chevaucher. */
    transform: translateY(-15%);
    pointer-events: none;
}

@media (min-width: 992px) {
    #hero-sept .hero-surtitre {
        font-size: 1.25rem;
    }

    #hero-sept h1 {
        font-size: 50px;
        line-height: 48px;
        padding-bottom: 1rem;
    }

    #hero-sept .hero-text p {
        font-size: 1.25rem;
    }

    #hero-sept .hero-visuel__pastille {
        width: 120px;
        /* Ordinateur : le texte est à gauche, le vide à sa droite accueille la
           pastille au-dessus du toit. */
        transform: translateY(-65%);
    }
}

/* --- Caractéristiques : 4 valeurs en grand, sans fond ----------- */
#caracteristiques-sept {
    background-color: #fff;
    padding: 38.5px 0;
}

#caracteristiques-sept h2 {
    color: var(--volvo-noir);
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0 0 30px;
    text-align: center;
}

#caracteristiques-sept .row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    justify-content: center;
}

#caracteristiques-sept .row > [class*="col-"] {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    padding: 0;
}

#caracteristiques-sept .chiffre-item {
    background: none;
    box-shadow: none;
    padding: .5rem;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#caracteristiques-sept .chiffre-item__valeur {
    color: var(--volvo-noir);
    font-size: 64px;
    font-weight: 350;
    line-height: normal;
}

#caracteristiques-sept .chiffre-item__libelle {
    color: var(--volvo-noir);
    font-size: 14px;
    font-weight: 350;
    line-height: 20px;
    margin: 0;
}

@media (min-width: 992px) {
    #caracteristiques-sept {
        padding: 80px 0 40px;
    }

    #caracteristiques-sept .chiffre-item__libelle {
        font-size: 16px;
        line-height: 22px;
    }
}

/* --- Bouton « En savoir plus » : bloc bleu, sans flèche ---------- */
#caracteristiques-sept .read-more {
    display: inline-block;
    width: 100%;
    max-width: 340px;
    padding: 12px 20px;
    background-color: #0a28d5;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

#caracteristiques-sept .read-more:hover {
    background-color: #0923bd;
    color: #fff;
}

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

@media (min-width: 992px) {
    #caracteristiques-sept .read-more {
        font-size: 20px;
    }
}

#caracteristiques-sept .text-center.mt-4 {
    margin-top: 3rem !important;
}

/* --- Vidéo pleine largeur --------------------------------------- */
#video-sept {
    padding: 0 0 1.5rem;
}

/* --- Points forts : 3 colonnes, visuels carrés ------------------- */
#points-forts-sept {
    background-color: #fff;
    padding: 38.5px 0;
}

#points-forts-sept .section-title h2 {
    color: var(--volvo-noir);
    font-size: 1.25rem;
    font-weight: 400;
    padding-bottom: 10px;
}

#points-forts-sept .section-title h2::after {
    display: none;
}

#points-forts-sept .service-item h3 {
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    margin-top: .5rem;
}

@media (min-width: 992px) {
    #points-forts-sept {
        padding: 80px 0 40px;
    }

    #points-forts-sept .row {
        --bs-gutter-x: 60px;
    }

    #points-forts-sept .row > article {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* --- Renvois légaux : texte simple, sans encadré ----------------- */
#renvois-sept {
    padding: 1.5rem 0 0;
}

#renvois-sept .disclosure-box {
    background: none;
    border: 0;
    padding: 0;
    color: var(--volvo-noir);
    font-size: .75rem;
    font-weight: 300;
    text-align: left;
}

#renvois-sept .disclosure-box p {
    margin-bottom: 1rem;
}

#renvois-sept .disclosure-box b {
    font-weight: 500;
}

#renvois-sept .disclosure-box a {
    color: var(--volvo-noir);
}
