/*
 * Charte St Maclou sur les blocs de la v4 — sol.comparer-changer.fr.
 *
 * Chargée après style.css, default.css et blocs.css : elle ne fait que poser
 * les couleurs du site (marine #13123a, orange #efa835) et raccorder le
 * contenu de la composition template_sol_001 (.scripts/compositions/) au
 * balisage des blocs. Les identifiants visés sont les `custom_id` de cette
 * composition : renommer un bloc dans le back-office, c'est perdre son style.
 */

:root {
    --sol-navy: #13123a;
    --sol-orange: #efa835;
    --sol-orange-dark: #d88f1c;
    --accent-color: var(--sol-orange);
    --contrast-color: var(--sol-navy);
    --heading-color: var(--sol-navy);
    --nav-hover-color: var(--sol-orange);
}

.dark-background {
    --background-color: var(--sol-navy);
    --contrast-color: var(--sol-navy);
}

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

/* ── En-tête : deux logos, puis la bande marine des familles de sols ── */
#site-header {
    display: block !important;
    padding: 0;
    background: #fff;
}

#site-header > .container {
    max-width: none;
    padding: 0;
}

#site-header > .container > .row {
    margin: 0;
}

#site-header > .container > .row > [class*="col-"] {
    padding: 0;
}

#site-header .logo--html {
    display: block;
}

#site-header .sol-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 14px 15px;
}

#site-header .sol-logos img {
    width: auto;
    max-height: 56px;
    margin: 0;
}

#site-header .sol-partenariat {
    color: var(--sol-navy);
    font-size: 14px;
}

#site-header .sol-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 32px;
    padding: 10px 15px;
    background: var(--sol-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

@media (max-width: 575px) {
    #site-header .sol-logos img {
        max-height: 40px;
    }

    #site-header .sol-categories {
        gap: 2px 16px;
        font-size: 11px;
    }
}

/* ── Hero : hauteur du contenu, accroche sur un cartouche marine lisible
      sur la photo claire du sol ── */
#hero {
    min-height: 0;
    padding: 50px 0;
}

#hero .left {
    align-self: center;
    padding: 32px;
    background: rgba(19, 18, 58, .88);
    border-radius: 6px;
}

#hero h1 {
    padding-top: 0;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}

#hero .hero-subtitle {
    display: inline-block;
    margin-bottom: 24px !important;
    padding: 8px 14px;
    background: var(--sol-orange);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

#hero .hero-text ul {
    margin: 0;
    font-size: 17px;
}

#hero .hero-text li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

#hero .hero-text li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 1px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--sol-orange);
}

@media (max-width: 991px) {
    #hero {
        padding: 24px 0;
    }

    #hero h1,
    #hero .h1 {
        font-size: 30px;
        line-height: 1.2;
    }
}

/* ── Formulaire : boutons de réponse marine, actions orange ── */
#hero .option-label.btn-primary {
    background-color: var(--sol-navy);
    border-color: var(--sol-navy);
    color: #fff;
    font-size: 16px;
}

#hero .option-label.btn-primary:hover,
#hero .radio-option input:checked + .option-label {
    background-color: var(--sol-orange);
    border-color: var(--sol-orange);
}

#hero .btn.next,
#hero #btn_submit {
    background-color: var(--sol-orange);
    border-color: var(--sol-orange);
    color: #fff;
    font-weight: 600;
}

#hero .btn.next:hover,
#hero #btn_submit:hover {
    background-color: var(--sol-orange-dark);
    border-color: var(--sol-orange-dark);
}

#hero .btn.previous {
    background-color: transparent;
    border-color: var(--sol-navy);
    color: var(--sol-navy);
}

#hero .form_title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 22px;
}

/* ── Titres de section : deuxième ligne en orange ── */
.section-title h2 {
    color: var(--sol-navy);
    font-weight: 900;
    text-transform: uppercase;
}

.section-title h2 span {
    display: block;
    color: var(--sol-orange);
    font-size: .8em;
}

/* ── Avis vérifiés, sous les quatre engagements ── */
#bloc-avis {
    padding-top: 0;
    background: #f6f5fa;
}

#bloc-pourquoi-titre {
    padding-bottom: 0;
}

#bloc-pourquoi-titre .section-title {
    text-align: center;
}

/* ── Pourquoi St Maclou : photo à gauche sur fond marine, comme la page
      d'origine ── */
#bloc-pourquoi {
    background: var(--sol-navy);
    color: #fff;
}

#bloc-pourquoi h2 {
    color: var(--sol-orange);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 800;
}

#bloc-pourquoi .item-texte p {
    margin: 0;
    color: #fff;
}

#bloc-pourquoi img[style*="max-width: 64px"] {
    border-radius: 50%;
}

@media (min-width: 992px) {
    #bloc-pourquoi .row {
        flex-direction: row-reverse;
    }

    #bloc-pourquoi .col-lg-6.order-1 img {
        width: 100%;
    }
}

#bloc-pourquoi .read-more {
    color: #fff;
    background: var(--sol-orange);
    padding: 10px 22px;
    border-radius: 4px;
}

/* ── Renvois *, **, *** ── */
#bloc-renvois {
    font-size: 12px;
}

/* ── Pied de page : le logo, sombre, sur un cartouche blanc ── */
footer img[src$="/logo2.png"] {
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
}

/* ── Hero mobile : le bloc rend une seconde colonne, dont le texte est justifié ── */
#hero .bloc_mobile ul,
#hero .bloc_mobile li {
    text-align: left;
}

#hero .bloc_mobile .h1 {
    text-transform: uppercase;
    font-weight: 900;
}
