/* =====================================================================
   Pages villes (tpl/commune.tpl.php) : pages d'atterrissage
   Haut de page avec appel à l'action, engagements, texte lisible avec
   carte de contact, avis, maillage local, dernier appel, barre mobile.
   ===================================================================== */

.lp {
    --lp-navy: #113345;
    --lp-navy-deep: #0b2533;
    --lp-blue: #006699;
    --lp-sky: #3399CC;
    --lp-light: #ABE0F4;
    --lp-text: #333333;
    --lp-muted: #5b6472;
}

/* ------------------------------------------------ haut de page */

.lp-hero {
    padding: 140px 0 56px;
    background: radial-gradient(27.55% 43.11% at 25.42% 35.11%, #ABE0F4 0%, #EFEFEF 100%);
}

.lp-hero-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
}

.lp-surtitre {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lp-blue);
}

.lp .lp-titre {
    margin: 0 0 18px;
    font-family: 'Alfarn';
    font-size: clamp(26px, 2vw + 1rem, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--lp-navy);
}

.lp-accroche p {
    max-width: 62ch;
    margin: 0 0 20px;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--lp-text);
}

.lp-arguments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.lp-arguments li {
    position: relative;
    padding-left: 30px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--lp-navy);
}

.lp-arguments li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--lp-navy) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ABE0F4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4L18 8'/></svg>") center / 13px no-repeat;
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.lp .lp-btn {
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 26px;
    border-radius: 10px;
    font-size: 17px;
    color: #fff;
    box-shadow: 0 14px 28px -14px rgba(0, 102, 153, .75);
}

.lp .lp-btn:hover,
.lp .lp-btn:focus-visible {
    color: #fff;
}

.lp-tel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 6px 20px;
    border: 1.5px solid var(--lp-navy);
    border-radius: 10px;
    background: rgba(255, 255, 255, .6);
    font-weight: 700;
    line-height: 1.25;
    color: var(--lp-navy);
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.lp-tel strong {
    white-space: nowrap;
}

.lp-tel:hover,
.lp-tel:focus-visible {
    background: var(--lp-navy);
    color: #fff;
}

.lp-tel svg {
    flex: 0 0 auto;
}

.lp-hero-devis .devis {
    position: static;
}

/* ------------------------------------------------ engagements */

.lp-engagements {
    padding: 40px 0 8px;
}

.lp-engagements-grille {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.lp-engagement {
    display: flex;
    gap: 14px;
    padding: 22px 20px;
    border: 1px solid rgba(17, 51, 69, .08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 28, 55, .04), 0 12px 30px -18px rgba(20, 28, 55, .2);
}

.lp-engagement img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

.lp-engagement p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--lp-muted);
}

.lp .lp-engagement-titre {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-navy);
}

/* ------------------------------------------------ texte + carte de contact */

.lp-corps {
    padding: 48px 0 56px;
}

.lp-corps-grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.lp-image {
    margin: 0 0 36px;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: #EFEFEF;
}

.lp-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-prose {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--lp-text);
}

.lp .lp-prose h2 {
    margin: 48px 0 16px;
    font-family: 'Alfarn';
    font-size: clamp(20px, .9vw + 1rem, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .01em;
    color: var(--lp-navy);
}

.lp .lp-prose h2:first-child {
    margin-top: 0;
}

.lp .lp-prose h3 {
    margin: 32px 0 10px;
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--lp-blue);
}

.lp-prose p {
    margin: 0 0 16px;
}

.lp-prose ul,
.lp-prose ol {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.lp-prose li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 28px;
}

/* petit cube en puce, rappel du logo */
.lp-prose li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--lp-sky);
    transform: rotate(45deg);
}

.lp-prose strong {
    color: var(--lp-navy);
}

.lp-prose a {
    color: var(--lp-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-contact {
    position: sticky;
    top: 110px;
}

.lp-contact-carte {
    padding: 28px;
    border-radius: 20px;
    background-color: var(--lp-navy);
    background-image: radial-gradient(120% 80% at 0% 0%, rgba(51, 153, 204, .4) 0%, rgba(51, 153, 204, 0) 60%);
    color: #fff;
}

.lp .lp-contact-titre {
    margin: 0 0 12px;
    font-family: 'Alfarn';
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

.lp-contact-texte {
    margin: 0 0 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
}

.lp-contact-texte strong {
    color: #fff;
}

.lp .lp-contact-tel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    transition: color .3s ease;
}

.lp .lp-contact-tel:hover {
    color: var(--lp-light);
}

.lp-contact-tel svg {
    color: var(--lp-light);
}

.lp-contact .lp-btn {
    width: 100%;
    padding: 0 18px;
    font-size: 16px;
}

.lp-contact-aussi {
    margin: 22px 0 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
}

.lp-contact-liens {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-contact-liens a {
    font-weight: 700;
    color: var(--lp-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-contact-liens a:hover {
    color: #fff;
}

/* ------------------------------------------------ maillage local */

.lp-maillage {
    padding: 24px 0 64px;
}

.lp-maillage-grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.lp-maillage-bloc {
    padding: 28px;
    border-radius: 20px;
    background: #3399CC14;
}

.lp .lp-maillage-titre {
    margin: 0 0 18px;
    font-family: 'Alfarn';
    font-size: clamp(18px, .6vw + 1rem, 24px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--lp-navy);
}

.lp-pastilles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.lp-pastilles a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(17, 51, 69, .14);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lp-navy);
    transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}

.lp-pastilles a:hover,
.lp-pastilles a:focus-visible {
    border-color: var(--lp-sky);
    background: #fff;
    color: var(--lp-blue);
}

.lp-lien-fleche {
    font-weight: 700;
    color: var(--lp-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-lien-fleche:hover {
    color: var(--lp-navy);
}

/* ------------------------------------------------ dernier appel à l'action */

.lp-final {
    padding: 0 0 80px;
}

.lp-final-carte {
    padding: clamp(28px, 4vw, 56px);
    border-radius: 24px;
    background-color: var(--lp-navy);
    background-image: radial-gradient(80% 120% at 100% 0%, rgba(51, 153, 204, .35) 0%, rgba(51, 153, 204, 0) 60%);
    text-align: center;
    color: #fff;
}

.lp .lp-final-titre {
    margin: 0 0 16px;
    font-family: 'Alfarn';
    font-size: clamp(22px, 1.4vw + 1rem, 36px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
}

.lp-final-texte p {
    max-width: 70ch;
    margin: 0 auto 26px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .86);
}

.lp-final .lp-actions {
    justify-content: center;
}

.lp .lp-tel-clair {
    border-color: rgba(255, 255, 255, .55);
    background: transparent;
    color: #fff;
}

.lp .lp-tel-clair:hover,
.lp .lp-tel-clair:focus-visible {
    background: #fff;
    color: var(--lp-navy);
}

/* ------------------------------------------------ barre mobile */

.lp-barre {
    display: none;
}

/* ------------------------------------------------ responsive */

@media (max-width: 1199.98px) {
    .lp-engagements-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-corps-grille {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 40px;
    }
}

@media (max-width: 991.98px) {
    .lp-hero {
        padding: 130px 0 48px;
    }

    .lp-hero-grille,
    .lp-corps-grille,
    .lp-maillage-grille {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-hero-devis .devis .formulaire {
        max-width: 420px;
        margin: 0 auto;
    }

    .lp-contact {
        position: static;
    }

    .lp-contact-carte {
        max-width: 560px;
    }
}

@media (max-width: 767.98px) {
    .lp-hero {
        padding: 110px 0 40px;
    }

    .seo-ariane ol {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .lp-surtitre {
        font-size: 13px;
    }

    .lp-accroche p {
        font-size: 1rem;
    }

    .lp-arguments {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 22px;
    }

    .lp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lp .lp-btn,
    .lp-tel {
        width: 100%;
        justify-content: center;
    }

    .lp-engagements-grille {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .lp-corps {
        padding: 32px 0 40px;
    }

    .lp-image {
        margin-bottom: 26px;
        border-radius: 16px;
    }

    .lp-prose {
        font-size: 16px;
        line-height: 1.7;
    }

    .lp .lp-prose h2 {
        margin-top: 36px;
    }

    .lp-maillage-bloc,
    .lp-contact-carte {
        padding: 22px;
    }

    .lp-final {
        padding-bottom: 48px;
    }

    /* barre fixe « Appeler / Devis », affichée quand les boutons du haut ne sont plus à l'écran */
    .lp-barre {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(250, 249, 248, .97);
        box-shadow: 0 -6px 20px rgba(17, 51, 69, .15);
        transform: translateY(110%);
        transition: transform .3s ease;
    }

    .lp-barre.is-visible {
        transform: none;
    }

    .lp-barre a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        border-radius: 10px;
        font-weight: 700;
    }

    .lp-barre-tel {
        border: 1.5px solid var(--lp-navy);
        color: var(--lp-navy);
    }

    .lp-barre-devis {
        background: linear-gradient(90deg, #006699 0%, #3399CC 100%);
        color: #fff;
    }

    .lp-barre-devis:hover {
        color: #fff;
    }

    /* la barre ne doit pas masquer le bas du pied de page */
    body:has(.lp-barre) .site-footer {
        padding-bottom: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp *,
    .lp-barre {
        transition: none !important;
    }
}
