/*
 * Landing page /site-internet-ehpad (publicité Meta « Direction d'EHPAD ? »).
 * Feuille autonome : ni Bootstrap ni custom.css, pour un chargement rapide sur mobile.
 *
 * Direction :
 * - Une seule idée forte : le titre raconte la transformation par le contraste de graisse.
 *   « Votre site internet » en Inter fin, « mérite une nouvelle vie. » en Inter très gras.
 *   Le procédé revient sur les étiquettes Avant / Après du comparateur.
 * - Aplats francs alternés : sauge (accompagnement), bleu nuit, or, blanc. Pas de dégradé, de flou,
 *   de lueur ni d'ombre décorative.
 * - L'arche de la publicité, en forme pleine : dôme or derrière le formulaire, arches décalées
 *   derrière les photos. Numéros uniquement pour le déroulé (seule vraie séquence).
 * - Aucune animation d'apparition ; au survol, seule la couleur change.
 */

:root {
    --lp-sage: #e3ebe0;
    --lp-sage-rule: #c4d3bf;
    --lp-navy: #1e3160;
    --lp-navy-hover: #2b4380;
    --lp-navy-ink: #15224a;
    --lp-gold: #ebb919;
    --lp-gold-hover: #f4c938;
    --lp-white: #ffffff;
    --lp-ink: #17213d;
    --lp-muted: #4e5870;
    --lp-rule: #dfe3ea;
    --lp-rule-dark: rgba(255, 255, 255, 0.2);
    --lp-arch: 999px 999px 0 0;
    --lp-gutter: 20px;
    --lp-section: 72px;
    --lp-head-gap: 40px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body.lp {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem; /* 17 px, en rem pour suivre la taille de texte du panneau Accessibilité */
    line-height: 1.6;
    color: var(--lp-ink);
    background: var(--lp-white);
    color-scheme: light;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--lp-navy);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.05rem);
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

p,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

.lp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--lp-gutter);
}

.lp-skip {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--lp-gold);
    color: var(--lp-navy);
    font-weight: 700;
}

.lp-skip:focus {
    left: 10px;
}

:focus-visible {
    outline: 2px solid var(--lp-navy);
    outline-offset: 3px;
}

/* ---------- Le procédé « ancien / nouveau site » : Inter fin, puis Inter très gras ---------- */

.lp-old {
    font-weight: 300;
    letter-spacing: -0.035em;
    color: var(--lp-navy);
}

.lp-new {
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--lp-navy);
}

/* ---------- Boutons : la couleur change au survol, rien ne bouge ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 30px;
    border: 0;
    border-radius: 10px;
    background: var(--lp-gold);
    color: var(--lp-navy);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lp-btn:hover {
    background: var(--lp-gold-hover);
}

.lp-btn-navy {
    background: var(--lp-navy);
    color: var(--lp-white);
}

.lp-btn-navy:hover {
    background: var(--lp-navy-hover);
}

.lp-btn-block {
    width: 100%;
}

.lp-textlink {
    display: inline-block;
    margin-top: 26px;
    color: var(--lp-navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.lp-textlink:hover {
    color: var(--lp-navy-hover);
    text-decoration-color: var(--lp-gold);
}

/* ---------- Haut de page ---------- */

.lp-hero {
    overflow: hidden;
    padding-bottom: 44px;
    background: var(--lp-sage);
}

.lp-topbar {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 12px;
}

.lp-logo img {
    width: 126px;
    height: auto;
}

.lp-hero-grid {
    display: grid;
    gap: 12px;
}

.lp-hero h1 {
    margin-top: 18px;
}

.lp-hero h1 .lp-old,
.lp-hero h1 .lp-new {
    display: block;
    font-size: clamp(2.5rem, 10.6vw, 5.2rem);
    line-height: 1;
}

.lp-lead {
    margin-top: 26px;
    max-width: 30em;
    color: var(--lp-muted);
    font-size: 1.08rem;
}

/* Sous l'accroche, sur mobile et tablette : accès direct au formulaire et à l'avant / après */
.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 22px;
}

.lp-hero-actions .lp-textlink {
    margin-top: 0;
}

/* Le formulaire posé devant un dôme or : l'arche de la publicité, comme un soleil qui se lève */
.lp-form-wrap {
    position: relative;
    margin-top: 18px;
    padding-top: 64px;
}

.lp-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7%;
    right: 7%;
    height: 70%;
    border-radius: var(--lp-arch);
    background: var(--lp-gold);
}

/* ---------- Formulaire (carte bleu nuit) ---------- */

.lp-form-card {
    position: relative;
    scroll-margin-top: 16px;
    padding: 28px 20px;
    border-radius: 18px;
    background: var(--lp-navy);
    color: var(--lp-white);
}

.lp-form-card h2 {
    color: var(--lp-white);
    font-size: 1.9rem;
}

.lp-form-intro {
    margin: 8px 0 22px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.97rem;
}

.lp-form {
    display: grid;
    gap: 14px;
}

.lp-field-row {
    display: grid;
    gap: 14px;
}

.lp-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--lp-white);
    font-size: 0.92rem;
    font-weight: 600;
}

.lp-field label span[aria-hidden] {
    color: var(--lp-gold);
}

.lp-optional {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.lp-field input:not([type='checkbox']),
.lp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: var(--lp-white);
    color: var(--lp-ink);
    font: inherit;
    font-size: 1rem;
}

.lp-field input:not([type='checkbox']):focus,
.lp-field textarea:focus {
    outline: none;
    border-color: var(--lp-gold);
}

.lp-field textarea {
    resize: vertical;
    min-height: 64px;
    line-height: 1.45;
}

.lp-field-hint {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* « Je souhaite être recontacté par » : trois cases sur une ligne */
.lp-choices {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-choices legend {
    width: 100%;
    margin-bottom: 6px;
    padding: 0;
    color: var(--lp-white);
    font-size: 0.92rem;
    font-weight: 600;
}

.lp-choices legend span {
    color: var(--lp-gold);
}

.lp-choice {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 9px;
    color: var(--lp-white);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lp-choice input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    cursor: pointer;
}

.lp-choice input:checked {
    border-color: var(--lp-gold);
    background: var(--lp-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%231e3160' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.lp-choice input:focus-visible {
    outline: 2px solid var(--lp-gold);
    outline-offset: 2px;
}

.lp-choice:has(input:checked) {
    border-color: var(--lp-gold);
    background: rgba(235, 185, 25, 0.12);
}

.lp-choices .lp-field-error {
    width: 100%;
}

.lp-form.was-validated .lp-choices.is-invalid .lp-field-error {
    display: block;
}

.lp-field-error {
    display: none;
    margin-top: 6px;
    color: #ffc4b8;
    font-size: 0.86rem;
    font-weight: 600;
}

.lp-form.was-validated .lp-field input:invalid {
    border-color: #ff8a73;
}

.lp-form.was-validated .lp-field input:invalid ~ .lp-field-error {
    display: block;
}

.lp-form altcha-widget {
    --altcha-max-width: 100%;
}

.lp-form-card :focus-visible {
    outline-color: var(--lp-gold);
}

.lp-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(30, 49, 96, 0.3);
    border-top-color: var(--lp-navy);
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
}

.lp-form.is-sending .lp-spinner {
    display: inline-block;
}

.lp-form.is-sending button[type='submit'] {
    pointer-events: none;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

.lp-form-status:empty {
    display: none;
}

.lp-form-status {
    padding: 12px 14px;
    border-radius: 9px;
    background: #fff1f0;
    color: #b42318;
    font-size: 0.94rem;
    font-weight: 600;
}

.lp-legal {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
    line-height: 1.5;
}

.lp-legal a {
    color: var(--lp-gold);
}

.lp-success {
    padding: 24px 0 8px;
}

.lp-success-mark {
    color: var(--lp-gold);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.lp-success h3 {
    margin-top: 14px;
    color: var(--lp-white);
    font-size: 1.35rem;
}

.lp-success p:last-child {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sections ---------- */

.lp-section {
    padding: var(--lp-section) 0;
}

.lp-white {
    background: var(--lp-white);
}

.lp-sage {
    background: var(--lp-sage);
}

.lp-navy {
    background: var(--lp-navy);
    color: var(--lp-white);
}

.lp-navy h2,
.lp-navy h3 {
    color: var(--lp-white);
}

.lp-gold {
    background: var(--lp-gold);
}

.lp-head {
    margin-bottom: var(--lp-head-gap);
}

.lp-head p {
    margin-top: 16px;
    max-width: 36em;
    color: var(--lp-muted);
    font-size: 1.08rem;
}

.lp-navy .lp-head p {
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Avant / après ---------- */

.lp-compare-labels {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-size: 1.45rem;
    line-height: 1;
}

.lp-compare {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--lp-rule);
    border-radius: 14px;
    background: var(--lp-white);
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Les images ne captent pas le pointeur : pas de glisser-déposer de l'image ni de menu « enregistrer l'image » à l'appui long */
.lp-compare img {
    pointer-events: none;
    -webkit-user-drag: none;
}

.lp-compare-before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.lp-compare-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 4px;
    margin-left: -2px;
    background: var(--lp-gold);
    pointer-events: none;
}

.lp-compare-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: var(--lp-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%231e3160' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 56% no-repeat;
}

/* Le glisser se fait au doigt ou à la souris (scripts/landing-ehpad.js) ; le curseur sert au clavier */
.lp-compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.lp-compare:focus-within .lp-compare-handle::after {
    outline: 2px solid var(--lp-navy);
    outline-offset: 3px;
}

.lp-caption {
    margin-top: 12px;
    color: var(--lp-muted);
    font-size: 0.86rem;
}

/* ---------- Réalisations (fond bleu nuit) ---------- */

.lp-work-list {
    display: grid;
    gap: 36px;
}

.lp-work-list img {
    width: 100%;
    aspect-ratio: 2.1;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    background: var(--lp-white);
}

.lp-work-shot {
    display: block;
}

.lp-work-list h3 {
    margin-top: 18px;
    font-size: 1.3rem;
}

.lp-work-list h3 a {
    color: var(--lp-white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.lp-work-list h3 a:hover {
    color: var(--lp-gold);
    text-decoration-color: var(--lp-gold);
}

.lp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lp-work-list p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
}

.lp-textlink-light {
    margin-top: 40px;
    color: var(--lp-white);
}

.lp-textlink-light:hover {
    color: var(--lp-gold);
}

/* ---------- Rubriques (fond sauge) : une photo en arche par page du futur site ---------- */

.lp-pages {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    gap: 18px;
    margin: 0 calc(var(--lp-gutter) * -1);
    padding: 0 var(--lp-gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--lp-gutter);
}

.lp-pages li {
    scroll-snap-align: start;
}

.lp-pages img {
    width: 100%;
    aspect-ratio: 0.8;
    object-fit: cover;
    border-radius: var(--lp-arch);
}

.lp-pages h3 {
    margin-top: 16px;
    font-size: 1.15rem;
}

.lp-pages p {
    margin-top: 6px;
    color: var(--lp-muted);
    font-size: 0.95rem;
}

/* ---------- L'offre en devis (haut de page) : feuille blanche sur une feuille or inclinée ---------- */

.lp-quote-stack {
    position: relative;
    max-width: 460px;
    margin-top: 28px;
}

.lp-quote-stack::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: var(--lp-gold);
    transform: rotate(-2.5deg) translate(-6px, 6px);
}

.lp-quote {
    position: relative;
    padding: 20px 20px 18px;
    border-radius: 6px;
    background: var(--lp-white);
}

.lp-quote-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lp-navy);
}

.lp-quote-head img {
    width: 92px;
    height: auto;
}

.lp-quote-head p {
    color: var(--lp-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
}

.lp-quote-lines {
    margin: 4px 0 0;
}

.lp-quote-lines div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.95rem;
}

/* Ligne pointillée entre la prestation et « Inclus », comme sur un devis */
.lp-quote-lines dt {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--lp-navy);
    font-weight: 600;
}

.lp-quote-lines dt::after {
    content: '';
    flex: 1;
    min-width: 16px;
    border-bottom: 2px dotted #b9c1cf;
}

.lp-quote-lines dd {
    margin: 0;
    color: #3d6a3d;
    font-weight: 800;
}

.lp-quote-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--lp-navy);
    color: var(--lp-white);
    font-size: 0.95rem;
    font-weight: 600;
}

.lp-quote-total strong {
    color: var(--lp-gold);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ---------- Déroulé (fond or) ---------- */

.lp-gold .lp-head h2 {
    color: var(--lp-navy);
}

.lp-steps {
    display: grid;
    gap: 34px;
}

.lp-step-num {
    display: block;
    color: var(--lp-navy);
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.lp-steps h3 {
    margin-top: 12px;
}

.lp-steps p {
    margin-top: 6px;
    color: #3b3416;
}

/* ---------- Photos en arche, posées devant une arche décalée ---------- */

.lp-arch-frame {
    position: relative;
    max-width: 440px;
    width: calc(100% - 24px);
}

.lp-arch-frame::before {
    content: '';
    position: absolute;
    inset: 24px -24px -24px 24px;
    border-radius: var(--lp-arch);
    background: var(--lp-sage);
}

.lp-arch-frame-gold::before {
    background: var(--lp-gold);
}

.lp-arch {
    position: relative;
    aspect-ratio: 0.84;
    overflow: hidden;
    border-radius: var(--lp-arch);
}

.lp-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Questions fréquentes (fond sauge) ---------- */

.lp-faq-grid {
    display: grid;
    gap: var(--lp-head-gap);
}

.lp-faq details {
    border-top: 1px solid var(--lp-sage-rule);
}

.lp-faq details:last-child {
    border-bottom: 1px solid var(--lp-sage-rule);
}

.lp-faq summary {
    position: relative;
    padding: 20px 48px 20px 0;
    color: var(--lp-navy);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.lp-faq summary::-webkit-details-marker {
    display: none;
}

.lp-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 50%;
    background: var(--lp-navy);
    color: var(--lp-white);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 32px;
    text-align: center;
}

.lp-faq details[open] summary::after {
    content: '−';
    background: var(--lp-gold);
    color: var(--lp-navy);
}

.lp-faq summary:hover {
    color: var(--lp-navy-hover);
}

.lp-faq details p {
    padding: 0 48px 22px 0;
    color: var(--lp-muted);
}

/* ---------- Récapitulatif de l'offre (fond bleu nuit) ---------- */

.lp-offer-grid {
    display: grid;
    gap: 64px;
    align-items: center;
}

.lp-offer-text h2 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.lp-offer-price {
    margin-top: 28px;
    color: var(--lp-gold);
    font-size: clamp(3.6rem, 13vw, 5.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.lp-offer-price span {
    color: var(--lp-white);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
}

.lp-offer-sub {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.lp-offer-text .lp-btn {
    margin-top: 30px;
}

/* ---------- Pied de page : fond sauge (comme la FAQ) et centré, après la section bleu nuit ---------- */

.lp-footer {
    padding: 40px 0 104px;
    background: var(--lp-sage);
    color: var(--lp-muted);
    font-size: 0.9rem;
    text-align: center;
}

.lp-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lp-footer .lp-logo img {
    width: 130px;
}

.lp-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
}

.lp-footer a {
    color: var(--lp-navy);
    text-decoration: none;
}

.lp-footer a:hover {
    text-decoration: underline;
}

/* ---------- Barre d'action fixe (mobile) ---------- */

.lp-sticky {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    border-radius: 12px;
    background: var(--lp-navy);
    color: var(--lp-white);
    font-size: 0.9rem;
    transform: translateY(150%);
    transition: transform 0.2s ease;
}

.lp-sticky.is-visible {
    transform: none;
}

.lp-sticky span {
    font-size: 0.86rem;
    line-height: 1.3;
}

.lp-sticky .lp-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ---------- Bannière de cookies compacte (variante « compact » de cookie-consent.js) ----------
   Le trafic arrive surtout de Facebook sur mobile : deux lignes de texte, puis Refuser / Accepter
   de même taille (exigence CNIL) et Personnaliser en lien. Collée en bas : pas de barre de navigation ici. */

body.lp .cookie-consent-banner {
    bottom: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: var(--lp-navy-ink);
    border-top: 1px solid var(--lp-rule-dark);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.lp .cookie-consent-compact .cookie-consent-content {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    text-align: left;
}

body.lp .cookie-consent-compact .cookie-consent-text {
    flex: 1 1 100%;
    min-width: 0;
}

body.lp .cookie-consent-compact .cookie-consent-text p {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

body.lp .cookie-consent-text a {
    color: var(--lp-gold);
}

body.lp .cookie-consent-compact .cookie-consent-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
}

body.lp .cookie-consent-btn,
body.lp .cookie-consent-btn:hover {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none;
    transform: none;
}

body.lp .cookie-consent-btn-accept,
body.lp .cookie-consent-btn-accept:hover {
    background: var(--lp-gold);
    color: var(--lp-navy);
}

body.lp .cookie-consent-btn-accept:hover {
    background: var(--lp-gold-hover);
}

body.lp .cookie-consent-btn-decline,
body.lp .cookie-consent-btn-decline:hover {
    background: var(--lp-white);
    color: var(--lp-navy);
    border: 0;
}

body.lp .cookie-consent-btn-settings,
body.lp .cookie-consent-btn-settings:hover {
    padding: 11px 4px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.lp .cookie-settings-content {
    background: var(--lp-navy);
    border-radius: 14px;
}

body.lp .cookie-category,
body.lp .cookie-category:hover {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--lp-rule-dark);
    border-radius: 0;
}

body.lp .cookie-toggle input:checked + .cookie-toggle-slider,
body.lp .cookie-toggle input:checked:disabled + .cookie-toggle-slider {
    background: var(--lp-gold);
}

/* Fenêtre « Personnaliser » : « Tout accepter » en premier, pleine largeur */
body.lp .cookie-settings-accept-top {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
}

body.lp .cookie-settings-compact .cookie-settings-buttons {
    justify-content: stretch;
}

body.lp .cookie-settings-compact .cookie-settings-buttons .cookie-consent-btn {
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--lp-white);
}

body.lp .cookie-settings-compact .cookie-settings-buttons .cookie-consent-btn:hover {
    border-color: var(--lp-white);
}

/* Tablette : boutons à leur taille naturelle, sous le texte */
@media (min-width: 640px) {
    body.lp .cookie-consent-compact .cookie-consent-buttons {
        grid-template-columns: auto auto auto;
        justify-content: start;
    }

    body.lp .cookie-consent-btn-accept,
    body.lp .cookie-consent-btn-decline {
        padding: 11px 26px;
    }
}

/* Écran large : tout sur une ligne */
@media (min-width: 900px) {
    body.lp .cookie-consent-banner {
        padding: 14px 24px;
    }

    body.lp .cookie-consent-compact .cookie-consent-content {
        flex-wrap: nowrap;
    }

    body.lp .cookie-consent-compact .cookie-consent-text {
        flex: 1 1 auto;
    }

    body.lp .cookie-consent-compact .cookie-consent-text p {
        font-size: 14px;
    }

    body.lp .cookie-consent-compact .cookie-consent-buttons {
        width: auto;
        grid-template-columns: auto auto auto;
    }

    body.lp .cookie-consent-btn-accept,
    body.lp .cookie-consent-btn-decline {
        padding: 11px 22px;
    }
}

/* ---------- Tablette ---------- */

@media (min-width: 640px) {
    :root {
        --lp-gutter: 32px;
        --lp-section: 96px;
        --lp-head-gap: 52px;
    }

    .lp-field-row {
        grid-template-columns: 1fr 1fr;
    }

    .lp-form-card {
        padding: 34px;
    }

    .lp-form-wrap {
        padding-top: 90px;
    }

    .lp-steps {
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
    }
}

/* ---------- Tablette portrait : devis et phrase d'accroche côte à côte ---------- */

@media (min-width: 700px) and (max-width: 999px) {
    .lp-hero-text {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
        column-gap: 40px;
        align-items: center;
    }

    .lp-hero-text h1 {
        grid-column: 1 / -1;
    }

    /* Devis à gauche sur deux rangées ; accroche puis actions à droite, à sa hauteur */
    .lp-hero-text .lp-quote-stack {
        grid-column: 1;
        grid-row: 2 / span 2;
    }

    .lp-hero-text .lp-lead {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        margin-top: 28px;
        font-size: 1.15rem;
    }

    .lp-hero-actions {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
    }
}

/* ---------- Écran large ---------- */

@media (min-width: 1000px) {
    :root {
        --lp-section: 120px;
        --lp-head-gap: 60px;
    }

    body.lp {
        font-size: 1.125rem;
    }

    .lp-logo img {
        width: 160px;
    }

    .lp-topbar {
        padding-top: 30px;
    }

    .lp-hero {
        padding-bottom: 0;
    }

    .lp-hero-grid {
        grid-template-columns: 1fr 470px;
        gap: 72px;
        align-items: start;
    }

    .lp-hero-text {
        padding-top: 40px;
        padding-bottom: 96px;
    }

    /* Le formulaire est à côté : pas besoin du bouton ni du lien */
    .lp-hero-actions {
        display: none;
    }

    .lp-hero h1 {
        margin-top: 36px;
    }

    /* Le dôme or descend jusqu'au bas du haut de page, le formulaire est posé dessus */
    .lp-form-wrap {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        margin-top: 0;
        padding: 72px 0 64px;
    }

    .lp-form-wrap::before {
        left: -36px;
        right: -36px;
        height: auto;
        bottom: 0;
    }

    .lp-work-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .lp-pages {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .lp-quote {
        padding: 24px 26px 20px;
    }

    .lp-steps {
        grid-template-columns: repeat(4, 1fr);
    }


    .lp-faq-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 96px;
        align-items: start;
    }

    .lp-offer-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 110px;
    }

    .lp-offer-grid .lp-arch-frame {
        justify-self: end;
    }

    .lp-sticky {
        display: none;
    }

    .lp-footer {
        padding-bottom: 40px;
    }

}
