/**
 * Refonte "S'installer en Espagne" — points de rupture communs (1220/980/768/560).
 * Chargée APRÈS la CSS spécifique de chaque page (voir refonte/base.html.twig) :
 * dans la maquette d'origine, ces règles apparaissent toujours après les
 * surcharges propres à la page, pour pouvoir réinitialiser correctement des
 * propriétés comme .hero2 .txt / .hero2 h1 en dessous de 768px. Les charger
 * avant, comme refonte-common.css, cassait ce comportement (cf. bug page 06).
 */

@media (max-width: 1220px) {
    .wrap {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}
@media (max-width: 980px) {
    nav {
        display: none;
    }
    .burger {
        display: block;
    }
    header {
        height: 76px;
        position: sticky;
        top: 0;
    }
    header img.logo {
        height: 50px;
    }
    header.menu-open .burger .lucide-menu {
        display: none;
    }
    header.menu-open .burger .lucide-x {
        display: block;
    }
    header.menu-open .mnav {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(20, 33, 91, .12);
        z-index: 20;
        padding: 8px 24px 16px;
    }
    .mnav a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-weight: 500;
        font-size: 16px;
        color: var(--navy);
    }
    .mnav a:last-child {
        border-bottom: none;
    }
    .mnav a.active {
        color: var(--red);
    }
    .reas {
        grid-template-columns: 1fr 1fr;
        row-gap: 22px;
    }
    .reas > div:nth-child(2n) {
        border-right: none;
    }
    footer .cols {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    h2.sec {
        font-size: 25px;
    }
    .cta {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
        gap: 16px;
    }
    .cta .circ {
        width: 72px;
        height: 72px;
    }
    .cta h3 {
        font-size: 21px !important;
    }
    .btn-red {
        white-space: normal;
        justify-content: center;
    }
    .coords {
        grid-template-columns: 1fr;
        padding: 6px 0;
    }
    .coords > div {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 16px 20px;
    }
    .coords > div:last-child {
        border-bottom: none;
    }
    .hero2 {
        min-height: 0;
    }
    .hero2 .bg {
        position: relative;
        width: 100%;
        height: 240px;
    }
    .hero2 .bg:after {
        display: none;
    }
    .hero2 .wrap {
        padding: 26px 0 8px;
    }
    .hero2 .txt {
        width: auto;
    }
    .hero2 h1 {
        font-size: 30px !important;
        margin-top: 0;
    }
    .ic2b {
        flex-direction: column;
        gap: 14px;
    }
    .sec {
        padding-top: 36px;
    }
    .boxw {
        padding: 20px;
    }
    .h3n {
        font-size: 19px;
        align-items: flex-start;
    }
    table.cmp,
    table.cmp tbody,
    table.cmp tr,
    table.cmp td {
        display: block;
        width: 100%;
    }
    table.cmp {
        border: none;
        border-radius: 0;
        overflow: visible;
    }
    table.cmp tr:first-child {
        display: none;
    }
    table.cmp tr {
        border: 1px solid var(--line);
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 14px;
        background: #fff;
    }
    table.cmp td {
        border-top: 1px solid var(--line);
        padding: 12px 16px;
        text-align: left !important;
    }
    table.cmp td:first-child {
        border-top: none;
        background: var(--navy);
        color: #fff;
    }
    table.cmp td.k {
        white-space: normal;
    }
    table.cmp td.k > div {
        color: #fff;
    }
    table.cmp td.k br {
        display: none;
    }
    table.cmp td[data-label]:before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .03em;
        color: var(--navy);
        margin-bottom: 3px;
    }
    table.cmp td.es[data-label]:before {
        color: var(--red);
    }
    .reas.reas-3 {
        grid-template-columns: 1fr;
    }
    .reas.reas-3 > div {
        border-right: none;
    }
}
@media (max-width: 560px) {
    .reas {
        grid-template-columns: 1fr;
    }
    .reas > div {
        border-right: none;
        padding: 0 16px;
    }
    footer .cols {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
    }
    footer .legal {
        flex-wrap: wrap;
        font-size: 12px;
    }
    .eyebrow.lines:before,
    .eyebrow.lines:after {
        width: 14px;
        margin: 0 8px;
    }
}
