:root {
    --bg: #f4f6f9;
    --ink: #121726;
    --muted: #5e667a;
    --navy: #0e1f43;
    --navy-2: #132958;
    --gold: #d5a44a;
    --gold-2: #ffcb6a;
    --card: #ffffff;
    --line: #dbe3ef;
    --ok: #1d8b59;
    --err: #b32323;
    --shadow: 0 14px 36px rgba(14, 31, 67, 0.14);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Barlow', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 10% 0%, #f8fbff, #edf2f8 52%, #e6edf7 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1160px, 92vw);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: -999px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 999;
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.site-header.has-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10, 23, 51, 0.88), rgba(19, 41, 88, 0.8)),
        var(--header-bg-image, none) center/cover no-repeat;
    pointer-events: none;
}

.nav-wrap {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-wrap--centered {
    min-height: 112px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
}

.header-tagline {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.site-header--classic .header-tagline,
.site-header--banner .header-tagline {
    margin-right: 6px;
}

.site-header--centered .header-tagline {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.brand img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 0;
    border: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.site-header--centered .brand {
    justify-self: center;
}

.site-header--centered .main-nav {
    grid-column: 1 / -1;
    justify-content: center;
    margin-left: 0;
    width: 100%;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.site-header--centered .menu-toggle {
    justify-self: start;
    margin-left: 0;
}

.site-header--centered .header-cta {
    justify-self: end;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
    color: #fff;
    border-color: var(--gold);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    align-items: center;
    gap: 10px;
}

.menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.menu-toggle-label {
    font-weight: 700;
}

.db-warning {
    background: #fff1cf;
    color: #6c4e13;
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 0.94rem;
}

.hero {
    position: relative;
    padding: var(--hero-pad-top, 68px) 0 var(--hero-pad-bottom, 42px);
    background: linear-gradient(120deg, #f1f5fd, #edf3fb);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13, 31, 67, 0.05), rgba(213, 164, 74, 0.08));
    pointer-events: none;
}

.hero--banner {
    padding: var(--hero-pad-top, 86px) 0 var(--hero-pad-bottom, 78px);
    color: #fff;
    background:
        linear-gradient(
            125deg,
            rgba(9, 24, 55, calc(0.35 + (var(--hero-overlay-opacity, 0.34) * 0.45))),
            rgba(25, 58, 116, calc(0.16 + (var(--hero-overlay-opacity, 0.34) * 0.38)))
        ),
        var(--hero-bg-image, none) center/cover no-repeat;
}

.hero--banner::before {
    background:
        radial-gradient(circle at top right, rgba(255, 214, 135, 0.16), transparent 40%),
        linear-gradient(
            180deg,
            rgba(6, 18, 43, calc(0.1 + (var(--hero-overlay-opacity, 0.34) * 0.55))),
            rgba(7, 18, 44, calc(0.06 + (var(--hero-overlay-opacity, 0.34) * 0.45)))
        );
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 34px;
    align-items: center;
}

.hero--media-left .hero-grid > .hero-copy {
    order: 2;
}

.hero--media-left .hero-grid > .hero-media {
    order: 1;
}

.hero-banner-inner {
    position: relative;
}

.hero--banner .hero-copy {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero--banner .hero-copy p {
    color: rgba(255, 255, 255, 0.9);
}

.hero--banner .hero-actions,
.hero--banner .hero-trust {
    justify-content: center;
}

.hero--banner .hero-trust li {
    color: #0f2248;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.62);
}

.hero--banner .eyebrow {
    color: #ffd486;
}

.hero--cards .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero--cards .hero-trust li {
    border-radius: 14px;
    border-color: #d3e2fb;
    padding: 11px 12px;
    font-weight: 600;
}

.hero-grid--cards .hero-media img {
    min-height: 370px;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8a6943;
    font-weight: 700;
    font-size: 0.75rem;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.18;
}

h1 {
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(1.4rem, 2.1vw, 2rem);
}

.hero-copy p {
    color: var(--muted);
}

.hero--banner .btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
}

.hero-media img {
    border-radius: 24px;
    box-shadow: var(--shadow);
    min-height: 340px;
    object-fit: cover;
}

.hero-trust {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-trust li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.section {
    padding: 58px 0;
}

.section.alt {
    background: linear-gradient(180deg, #eef3fb 0%, #f8faff 100%);
    border-top: 1px solid #deebff;
    border-bottom: 1px solid #deebff;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.text-link {
    color: #2757a8;
    font-weight: 700;
}

.section-subcopy {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 760px;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-stats-grid article {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #dce9ff;
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: var(--shadow);
}

.home-stats-grid strong {
    display: block;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.home-stats-grid span {
    color: var(--muted);
    font-weight: 600;
}

.home-stats-custom {
    margin-top: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #e7edf6;
    transform: translateY(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-card.is-clickable {
    cursor: pointer;
}

.product-card.is-clickable:focus-visible {
    outline: 3px solid #5f8fdd;
    outline-offset: 2px;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(18, 28, 61, 0.2);
}

.product-card figure {
    margin: 0;
    height: 190px;
    overflow: hidden;
}

.product-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover figure img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #edf3ff;
    color: #2e4e8a;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.meta-list,
.tick-list,
.doc-list,
.summary-list {
    padding-left: 18px;
    margin: 10px 0;
}

.price {
    margin: 8px 0 14px;
    color: #36425f;
}

.card-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #181818;
}

.btn-outline {
    background: #fff;
    border-color: #c8d7ef;
    color: #274272;
}

.page-hero {
    background: linear-gradient(130deg, var(--navy), #274a8e);
    color: #fff;
    padding: 58px 0;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.88);
}

.bungalow-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 60px;
    background:
        linear-gradient(135deg, rgba(14, 31, 67, 0.92), rgba(27, 62, 120, 0.82)),
        url('../images/modulaire-2.jpg') center/cover no-repeat;
    color: #fff;
}

.bungalow-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 203, 106, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.bungalow-hero-inner {
    position: relative;
    max-width: 760px;
}

.bungalow-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.bungalow-intro {
    max-width: 720px;
    margin: 0 auto 26px;
}

.bungalow-intro p {
    color: var(--muted);
}

.bungalow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.bungalow-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dfe8f5;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.bungalow-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(18, 28, 61, 0.2);
}

.bungalow-card figure {
    margin: 0;
    height: 250px;
    overflow: hidden;
    background: #dfe7f5;
}

.bungalow-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bungalow-card-body {
    padding: 22px;
    text-align: center;
}

.bungalow-card-body h3 {
    margin-bottom: 10px;
}

.bungalow-card-body p {
    color: var(--muted);
    min-height: 78px;
    margin-bottom: 18px;
}

.bungalow-card-link,
.folding-card-link {
    text-align: center;
}

.plan-trigger {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: #2757a8;
    font-weight: 700;
    text-decoration: underline;
    padding: 0;
}

.bungalow-specs {
    background: linear-gradient(180deg, #fbfcff 0%, #f1f5fb 100%);
    border-top: 1px solid #deebff;
    border-bottom: 1px solid #deebff;
}

.bungalow-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.spec-panel {
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.spec-panel p {
    margin-bottom: 12px;
    color: var(--muted);
}

.wc-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 60px;
    background:
        linear-gradient(135deg, rgba(14, 31, 67, 0.9), rgba(39, 74, 142, 0.78)),
        url('../images/cabane-apple.jpg') center/cover no-repeat;
    color: #fff;
}

.wc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 203, 106, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.wc-hero-inner {
    position: relative;
    max-width: 760px;
}

.wc-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.wc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.wc-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dfe8f5;
    box-shadow: var(--shadow);
}

.wc-card figure {
    margin: 0;
    height: 250px;
    overflow: hidden;
    background: #dfe7f5;
}

.wc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-card-body {
    padding: 22px;
    text-align: center;
}

.wc-card-body p {
    color: var(--muted);
    min-height: 56px;
    margin-bottom: 18px;
}

.wc-card-link {
    text-align: center;
    margin-top: 10px;
}

.folding-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 60px;
    background:
        linear-gradient(135deg, rgba(14, 31, 67, 0.88), rgba(39, 74, 142, 0.8)),
        url('../images/maison-extensible.avif') center/cover no-repeat;
    color: #fff;
}

.folding-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 203, 106, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.folding-hero-inner {
    position: relative;
    max-width: 760px;
}

.folding-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.folding-hero-lead {
    font-weight: 700;
}

.folding-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.folding-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dfe8f5;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.folding-card figure {
    margin: 0;
    height: 220px;
    overflow: hidden;
    background: #dfe7f5;
}

.folding-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folding-card-body {
    padding: 22px 22px 18px;
    text-align: center;
    flex: 1;
}

.folding-card-body h3 {
    margin-bottom: 10px;
}

.folding-card-body p {
    color: var(--muted);
    min-height: 76px;
    margin-bottom: 18px;
}

.folding-card-link {
    padding: 0 22px 18px;
    text-align: center;
}

.folding-options-head {
    margin-bottom: 20px;
}

.folding-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.option-panel {
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.option-panel h3 {
    margin-bottom: 8px;
}

.folding-option-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.folding-option-highlights p {
    margin: 0;
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
}

.folding-specs {
    background: linear-gradient(180deg, #fbfcff 0%, #f1f5fb 100%);
    border-top: 1px solid #deebff;
    border-bottom: 1px solid #deebff;
}

.folding-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.filter-bar {
    background: #fff;
    border: 1px solid #deebff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    padding: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.filter-bar label,
.form-card label {
    font-size: 0.9rem;
    color: #3c4c6e;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-bar input,
.filter-bar select,
.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    border: 1px solid #ccd7ea;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
}

.chips-row {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-link {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #c8d7ef;
    background: #fff;
    color: #274272;
    font-weight: 600;
}

.content-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.content-two-col img {
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.steps-grid article {
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 14px;
    padding: 16px;
}

.steps-grid span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #f0cf94);
    font-weight: 800;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.gallery-grid img {
    border-radius: 14px;
    object-fit: cover;
    height: 220px;
}

.home-realization-card {
    margin: 0;
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
}

.home-realization-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
}

.home-realization-card figcaption {
    padding: 12px 14px;
    display: grid;
    gap: 8px;
}

.home-realization-card figcaption p {
    margin: 0;
    color: #1f2d49;
    font-weight: 600;
}

.home-realization-card figcaption cite {
    color: var(--muted);
    font-style: italic;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.testimonials blockquote {
    margin: 0;
    border: 1px solid #dce9ff;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.faq-list details {
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
}

.cta-strip {
    background: linear-gradient(120deg, #111f44, #1f3c7c);
    color: #fff;
}

.cta-strip-inner {
    text-align: center;
}

.product-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
}

.product-gallery {
    display: grid;
    gap: 14px;
    background: #efefef;
    border: 1px solid #dfdfdf;
    border-radius: 16px;
    padding: 18px;
}

.product-main-btn {
    border: 0;
    background: #e3e3e3;
    padding: 0;
    cursor: zoom-in;
    border-radius: 10px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-btn img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    border: 0;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.2));
}

.product-thumbs {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 4px;
    justify-content: center;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 6px;
    background: #e3e3e3;
    cursor: pointer;
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    border: 0;
}

.product-thumb.is-active {
    border-color: #0e1f43;
    background: #ffffff;
    transform: translateY(-2px);
}

.product-thumb:hover {
    transform: translateY(-2px);
}

.product-summary {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dce9ff;
    box-shadow: var(--shadow);
    padding: 18px;
    align-self: start;
    position: sticky;
    top: 94px;
}

.product-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-sections article {
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 14px;
    padding: 14px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.spec-grid div {
    border: 1px solid #e2ebfb;
    border-radius: 12px;
    padding: 10px;
    background: #f9fbff;
}

.mobile-sticky-cta {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 33, 0.7);
}

.modal-content {
    position: relative;
    width: min(880px, 92vw);
    margin: 6vh auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    padding: 18px;
    max-height: 88vh;
    overflow: auto;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 1px solid #d8e2f2;
    border-radius: 8px;
    background: #fff;
    width: 32px;
    height: 32px;
}

.plan-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.plan-modal.show {
    visibility: visible;
    opacity: 1;
}

.plan-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 33, 0.82);
}

.plan-modal-content {
    position: relative;
    width: min(980px, 94vw);
    margin: 5vh auto;
    background: #1d1d1d;
    border-radius: 16px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
    padding: 20px;
    max-height: 90vh;
    overflow: auto;
}

.plan-modal-content h2 {
    color: #fff;
    margin-bottom: 16px;
    padding-right: 40px;
}

.plan-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 34px;
    height: 34px;
}

.plan-modal-body {
    display: grid;
    place-items: center;
    min-height: 240px;
}

.plan-modal-body img,
.plan-modal-body iframe {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border: 0;
    border-radius: 10px;
    background: #2a2a2a;
}

.modal-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.modal-gallery {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-gallery img {
    border-radius: 8px;
    min-height: 130px;
    object-fit: cover;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dce9ff;
    background: #0f1d3f;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dce9ff;
    background: #000;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 30, 0.92);
    z-index: 160;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 50px 16px 70px;
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox img {
    max-width: min(1180px, 92vw);
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
}

.gallery-close,
.gallery-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(9, 18, 38, 0.65);
    color: #fff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
    cursor: pointer;
    z-index: 2;
}

.gallery-close {
    top: 14px;
    right: 14px;
}

.gallery-nav.prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-nav.next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: #f2f5ff;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.form-card {
    background: #fff;
    border: 1px solid #dce9ff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 18px;
    display: grid;
    gap: 12px;
}

.multi-step .step-panel {
    display: none;
    border: 0;
    margin: 0;
    padding: 0;
}

.multi-step .step-panel.active {
    display: grid;
    gap: 10px;
}

.step-indicator {
    display: flex;
    gap: 10px;
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #bfcfe8;
    color: #36517f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-dot.active {
    background: linear-gradient(135deg, var(--gold), #efc987);
    border-color: transparent;
    color: #1f1c16;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alert {
    border-radius: 10px;
    padding: 10px 12px;
}

.alert.success {
    background: #d9f7e8;
    color: var(--ok);
    border: 1px solid #9ce2bc;
}

.alert.error {
    background: #fde8e8;
    color: var(--err);
    border: 1px solid #f3b4b4;
}

.contact-grid,
.app-cards {
    display: grid;
    gap: 16px;
}

.contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.contact-infos,
.app-cards article,
.legal-page {
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 14px;
    padding: 14px;
}

.app-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.meta {
    color: #68738c;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pagination a {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9d8ef;
    background: #fff;
    border-radius: 10px;
    font-weight: 700;
    color: #244275;
}

.pagination a.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    border-color: transparent;
    color: #1f1c16;
}

.centered {
    text-align: center;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.site-footer {
    background: #0f1d3f;
    color: #dae5ff;
    margin-top: 50px;
    padding-top: 34px;
    position: relative;
    overflow: hidden;
}

.site-footer.has-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 20, 45, 0.9), rgba(15, 29, 63, 0.96)),
        var(--footer-bg-image, none) center/cover no-repeat;
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-grid a {
    display: block;
    color: #e9f0ff;
    margin-bottom: 6px;
}

.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-brand-logo img {
    width: clamp(130px, 18vw, 190px);
    height: auto;
    display: block;
}

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 12px;
    padding: 12px 0;
    color: #c6d4f0;
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: min(380px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #d6e1f5;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
    z-index: 140;
}

.cookie-actions {
    display: flex;
    justify-content: end;
    gap: 8px;
}

@media (max-width: 1060px) {
    .cards-grid,
    .steps-grid,
    .testimonials,
    .home-stats-grid,
    .footer-grid,
    .bungalow-grid,
    .wc-grid,
    .folding-grid,
    .folding-options-grid,
    .folding-option-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-grid,
    .product-hero,
    .contact-grid,
    .content-two-col,
    .bungalow-specs-grid,
    .folding-specs-grid {
        grid-template-columns: 1fr;
    }

    .product-summary {
        position: static;
    }

    .hero--banner {
        padding: calc(var(--hero-pad-top, 86px) * 0.82) 0 calc(var(--hero-pad-bottom, 78px) * 0.82);
    }
}

@media (max-width: 760px) {
    .site-header {
        overflow: visible;
    }

    .product-gallery {
        padding: 12px;
    }

    .product-main-btn {
        min-height: 320px;
    }

    .product-main-btn img {
        max-height: 300px;
    }

    .product-thumb {
        width: 72px;
        height: 72px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #142b5b;
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        z-index: 120;
        box-shadow: 0 16px 30px rgba(7, 18, 41, 0.35);
    }

    .site-header--centered .nav-wrap {
        display: flex;
        min-height: 80px;
    }

    .site-header--centered .header-tagline {
        width: 100%;
        text-align: left;
        padding-top: 0;
    }

    .site-header--centered .main-nav {
        width: auto;
        padding-bottom: 0;
    }

    .main-nav.show {
        display: flex !important;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-wrap > .btn {
        display: none;
    }

    .cards-grid,
    .steps-grid,
    .gallery-grid,
    .testimonials,
    .product-sections,
    .bungalow-grid,
    .wc-grid,
    .folding-grid,
    .folding-options-grid,
    .folding-option-highlights,
    .filter-bar,
    .app-cards,
    .footer-grid,
    .modal-grid,
    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .bungalow-card-body p {
        min-height: 0;
    }

    .folding-card-body p {
        min-height: 0;
    }

    .wc-card-body p {
        min-height: 0;
    }

    .section {
        padding: 42px 0;
    }

    .home-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .home-stats-grid article {
        padding: 14px 12px;
    }

    .home-stats-grid strong {
        font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    }

    .hero--cards .hero-trust {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: calc(var(--hero-pad-top, 68px) * 0.76) 0 calc(var(--hero-pad-bottom, 42px) * 0.76);
    }

    .hero--banner {
        padding: calc(var(--hero-pad-top, 86px) * 0.72) 0 calc(var(--hero-pad-bottom, 78px) * 0.72);
    }

    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 120;
        justify-content: center;
        background: linear-gradient(135deg, var(--gold), var(--gold-2));
        color: #1d1a12;
        border-radius: 999px;
        padding: 12px;
        font-weight: 800;
    }
}

@media (max-width: 760px) {
    .home-scroll-row {
        display: grid !important;
        grid-template-columns: none !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(78vw, 78vw);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        gap: 14px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .home-scroll-row > * {
        scroll-snap-align: start;
    }

    .home-scroll-row--steps {
        grid-auto-columns: minmax(72vw, 72vw);
    }

    .home-scroll-row--gallery {
        grid-auto-columns: minmax(74vw, 74vw);
    }

    .home-scroll-row--gallery .home-realization-card {
        height: 100%;
    }

    .home-scroll-row--gallery .home-realization-card img {
        width: 100%;
        height: 170px;
    }

    .home-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .home-grid-compact blockquote {
        height: 100%;
    }
}

.admin-nav {
    margin: 12px 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-nav a {
    background: #fff;
    border: 1px solid #c7d6ef;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    color: #1e3e72;
}

.admin-nav a.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #201a10;
    border-color: transparent;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-stats article {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dce9ff;
    padding: 12px;
    box-shadow: var(--shadow);
}

.admin-stats h2 {
    margin: 0;
    font-size: 2rem;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dce9ff;
    border-radius: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1060px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e3ecfb;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f4f8ff;
}

.admin-product-thumb-cell {
    width: 52px;
    min-width: 52px;
}

.admin-table .admin-product-thumb {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dce9ff;
    background: #f7faff;
    margin: 0;
}

.admin-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 8px 0 12px;
}

.admin-media-item {
    border: 1px solid #dce9ff;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.admin-media-item img,
.admin-plan-preview img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dce9ff;
    background: #f7faff;
}

.admin-faq-editor {
    display: grid;
    gap: 12px;
}

.admin-faq-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid #dce9ff;
    border-radius: 14px;
    background: #fff;
}

.admin-active-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.admin-action-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-icon-form {
    display: inline-flex;
    margin: 0;
}

.admin-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #cddbf5;
    background: #fff;
    color: #274777;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-icon-btn:hover {
    transform: translateY(-1px);
    border-color: #9db9ef;
    background: #f5f9ff;
}

.admin-icon-btn--danger {
    color: #a12e2e;
}

.inline-form {
    display: inline-flex;
}

.inline-form select {
    border: 1px solid #ccd7ea;
    border-radius: 8px;
    padding: 7px;
}

@media (max-width: 760px) {
    .admin-stats,
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-faq-row {
        grid-template-columns: 1fr;
    }
}
