/* Page publique de réservation — Résidence Cité Bourgeoise · MT Prestige. Mobile d'abord, charte bleu marine / rouge. */
:root {
  --navy: #0A2A66; --navy-2: #12357d; --blue: #1F57C3; --red: #E3202B; --red-2: #c5161f; --green: #1E8E5A; --gold: #C9A227;
  --bg: #F6F7FB; --alt: #EEF2F9; --line: #DCE2EE; --text: #1B2433; --muted: #5E6B80; --card: #fff;
  --radius: 16px; --shadow: 0 1px 2px rgba(10, 42, 102, .06), 0 8px 24px rgba(10, 42, 102, .08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
html { font-size: clamp(15px, 0.3vw + 13.5px, 17px); scroll-padding-top: 76px; }
body { margin: 0; line-height: 1.55; background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.r-loading { padding: 60px 16px; text-align: center; color: var(--muted); display: flex; gap: 10px; justify-content: center; align-items: center; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* En-tête */
header.r-top { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--navy) 0 45%, var(--red) 45% 55%, var(--blue) 55%) 1; position: sticky; top: 0; z-index: 20; }
.r-top .wrap { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.r-top img { height: 40px; }
.r-nav { display: flex; gap: 4px; margin-left: 12px; }
.r-nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.r-nav a:hover { background: var(--alt); }
.r-top .sp { flex: 1; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; min-height: 44px; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(10, 42, 102, .12); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover:not(:disabled) { background: var(--red-2); }
.btn-ghost { background: transparent; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn-small { padding: 6px 12px; min-height: 38px; font-size: .9rem; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }

/* Héros : vue de la résidence */
.hero { position: relative; color: #fff; overflow: hidden; min-height: min(78vh, 640px); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; background: url(/img/residence/residence-hero.jpg) center 60% / cover no-repeat; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 42, 102, .25) 0%, rgba(10, 42, 102, .55) 45%, rgba(6, 22, 56, .92) 100%); }
.hero-in { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 40px; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; opacity: .95; background: rgba(255, 255, 255, .14); padding: 5px 12px; border-radius: 999px; }
.hero h1 { margin: 14px 0 10px; font-size: clamp(1.7rem, 4.6vw, 3.2rem); max-width: none; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero .lead { margin: 0 0 22px; max-width: none; font-size: clamp(1rem, .5vw + .9rem, 1.2rem); opacity: .96; text-wrap: pretty; text-align: justify; hyphens: auto; animation: rise .9s .25s both ease-out; }
.hero h1 { animation: rise .8s both ease-out; }
.hero-line { font-size: clamp(1.15rem, 1.6vw + .8rem, 1.7rem); font-weight: 700; margin: 0 0 12px; animation: rise .8s .12s both ease-out; }
.rot { display: inline-block; color: #FFD27A; }
.rot-w { display: inline-block; animation: rot 2.6s ease-in-out both; border-bottom: 3px solid var(--red); }
@keyframes rot { 0% { opacity: 0; transform: translateY(.5em); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-.4em); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.facts li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(4px); }
.facts strong { display: block; font-size: 1.3rem; }
.facts span { font-size: .85rem; opacity: .9; }

/* Sections */
section.r-sec { padding: 44px 0; }
section.r-sec.alt { background: var(--alt); }
.sec-head { max-width: 760px; margin-bottom: 22px; }
.kicker { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
h2 { color: var(--navy); font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 6px 0 8px; }
h3 { color: var(--navy); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.news-sec { padding: 24px 0 0 !important; }
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.news-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; border-left: 5px solid var(--red); box-shadow: var(--shadow); }
.news-card h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.news-card p { margin: 0; white-space: pre-line; color: var(--muted); font-size: .95rem; }
.tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }

/* Types de logements */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.type-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); }
.type-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.type-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.type-card:hover .type-media img { transform: scale(1.05); }
.type-badge { position: absolute; left: 12px; top: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.type-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.type-body h3 { margin: 0; font-size: 1.12rem; }
.type-body p { margin: 0; }
.price strong { font-size: 1.45rem; color: var(--navy); }
.price span { color: var(--muted); }
.plan { margin: 8px 0 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #F7F9FD; }
.plan img { width: 100%; }
.type-body .btn { margin-top: auto; }

/* Formules */
.formulas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: stretch; }
.formula { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.formula h3 { margin: 0; font-size: 1.3rem; }
.formula p { margin: 0; }
.formula.featured { border: 2px solid var(--navy); transform: translateY(-4px); }
.ribbon { position: absolute; top: -12px; right: 16px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.flist { list-style: none; padding: 0; margin: 10px 0 4px; }
.flist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.flist strong { color: var(--navy); white-space: nowrap; }
.formula .btn { margin-top: auto; }

/* Galerie */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.gallery .g0 { grid-row: 1 / 3; }
.gallery .g1 { grid-column: 2 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(6, 22, 56, .8)); }

/* Comment réserver */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; counter-reset: s; }
.how li { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; position: relative; counter-increment: s; }
.how li::after { content: counter(s); position: absolute; top: 14px; right: 16px; font-size: 1.6rem; font-weight: 800; color: var(--alt); }
.how strong { color: var(--navy); font-size: 1.05rem; }
.how span:last-child { color: var(--muted); font-size: .94rem; }
.how-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.how-ic .ic { width: 24px; height: 24px; }
.assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 18px; }
.assure > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: .94rem; }
.assure .ic { color: var(--green); width: 24px; height: 24px; }

/* Réservation */
.booking-sec { background: linear-gradient(180deg, var(--bg), #fff); }
.steps { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 14px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--alt); font-size: .8rem; }
.steps li.on { color: #fff; background: var(--navy); border-color: var(--navy); }
.steps li.on span { background: var(--red); color: #fff; }
.steps li.done { color: var(--green); }
.steps li.done span { background: #E3F5EC; }
.search > *, .form > * { min-width: 0; }
.search { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; align-items: end; }
.search .full, .form .full { grid-column: 1 / -1; }
.search-go { display: flex; flex-direction: column; gap: 4px; }
.lbl { font-weight: 650; font-size: .92rem; color: var(--navy); display: block; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.seg-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 8px; cursor: pointer; background: #fff; text-align: center; transition: border-color .12s, background .12s; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; inset: 0; }
.seg-opt strong { color: var(--navy); }
.seg-opt small { color: var(--muted); }
.seg-opt.on { border-color: var(--navy); background: #F1F5FD; box-shadow: inset 0 0 0 1px var(--navy); }
.seg-opt:focus-within { outline: 3px solid rgba(31, 87, 195, .3); }
label.f, div.f { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: .92rem; color: var(--navy); }
label.f small { font-weight: 400; color: var(--muted); }
input, select, textarea { min-width: 0; max-width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #C5CEDF; border-radius: 12px; background: #fff; color: var(--text); min-height: 46px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31, 87, 195, .25); border-color: var(--blue); }
.result-line { margin: 18px 0 4px; }
.block-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 20px 0 10px; }
.block-title h3 { margin: 0; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.room { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s ease; }
.room:not(.off):hover { transform: translateY(-2px); }
.room .ph { position: relative; aspect-ratio: 16 / 10; background: var(--alt); }
.room .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tag { position: absolute; inset: auto 10px 10px auto; background: rgba(27, 36, 51, .85); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.room .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.room .t { font-weight: 750; color: var(--navy); }
.room .d { color: var(--muted); font-size: .9rem; }
.room .cap { display: flex; align-items: center; gap: 6px; }
.room .p { font-weight: 750; font-size: 1.08rem; margin: 6px 0 8px; color: var(--navy); }
.room .p small { font-weight: 400; color: var(--muted); }
.room.off { opacity: .6; }
.room.off .ph img { filter: grayscale(.8); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #EEF1F6; color: var(--muted); }
.badge.ok { background: #E3F5EC; color: var(--green); } .badge.warn { background: #FFF3DC; color: #8A5A00; } .badge.err { background: #FDE7E8; color: var(--red); } .badge.info { background: #E6EEFC; color: var(--blue); }
.coord h3 { margin-bottom: 0; }
.chosen { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--alt); }
.chosen img { width: 92px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.chosen > div { flex: 1; min-width: 0; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.method { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; font-weight: 400; color: var(--text); }
.method input { width: auto; min-height: auto; margin-top: 4px; }
.method.on { border-color: var(--blue); background: #F3F7FF; }
.method strong { color: var(--navy); }
.method small { display: block; color: var(--muted); white-space: pre-line; }
.recap-box { border-top: 1px solid var(--line); padding-top: 6px; }
.recap { width: 100%; border-collapse: collapse; }
.recap td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.recap td:last-child { text-align: right; font-weight: 600; }
.recap tr.tot td { font-size: 1.2rem; color: var(--navy); border-bottom: 0; font-weight: 800; }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.alert-err { background: #FDE7E8; color: #8B1218; } .alert-info { background: #E6EEFC; color: #133D8A; } .alert-ok { background: #E3F5EC; color: #135C3B; } .alert-warn { background: #FFF3DC; color: #6B4600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pre { white-space: pre-line; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(127, 127, 127, .35); border-top-color: currentColor; border-radius: 50%; display: inline-block; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb6 { margin-bottom: 6px; }

/* Suivi */
.track-hero { background: linear-gradient(120deg, rgba(10, 42, 102, .93), rgba(18, 53, 125, .82)), url(/img/residence/vue-fond.jpg) center / cover; color: #fff; padding: 30px 0 26px; }
.track-hero .ref { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: .03em; margin-top: 8px; }
.track-hero .badge { background: #fff; }
.track-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.track-side { display: flex; flex-direction: column; gap: 14px; }
.pay-card h3 { margin-top: 0; display: flex; gap: 8px; align-items: center; }
.side-img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.side-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.progress { list-style: none; display: flex; padding: 0; margin: 0 0 14px; gap: 0; }
.progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); position: relative; text-align: center; }
.progress li span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-weight: 800; z-index: 1; }
.progress li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.done { color: var(--green); font-weight: 650; }
.progress li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.progress li.done::before { background: var(--green); }
.declare { background: var(--alt); border-radius: 14px; padding: 14px; }
.declare h3 { margin: 0; }

/* Pied de page */
footer.r-foot { padding: 30px 0 34px; color: #C9D3E6; background: #071C47; margin-top: 0; }
footer.r-foot a { color: #fff; }
footer.r-foot strong { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.foot-logo { height: 42px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.foot-note { margin-top: 18px; color: #93A1BD; }

@media (max-width: 760px) {
  .r-nav { display: none; }
  .hide-sm { display: none; }
  .r-top img { height: 32px; }
  .hero { min-height: 560px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .gallery .g0 { grid-column: 1 / 3; grid-row: auto; }
  .gallery .g1 { grid-column: auto; }
  .gallery .g3 { grid-column: 1 / 3; }
  .formula.featured { transform: none; }
  .track-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  section.r-sec { padding: 32px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- v2 : menu, animations, ambiances par bloc, galerie gérée, inventaire, conditions ---------- */
.menu-btn { display: none; min-width: 42px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.type-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.type-actions .btn-primary { flex: 1 1 auto; }
.type-mood { position: absolute; right: 12px; bottom: 12px; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .35); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
/* Bloc C : carte « cinéma » de nuit, format 2,39:1 avec bandes et vignettage */
.type-card.cinema { background: #060d1f; border-color: #0e1d40; color: #DCE6FA; }
.type-card.cinema .type-media { aspect-ratio: 1.9 / 1; border-top: 10px solid #000; border-bottom: 10px solid #000; }
.type-card.cinema .type-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 65%, transparent 45%, rgba(0, 0, 0, .55)); pointer-events: none; }
.type-card.cinema:hover .type-media img { transform: scale(1.08); }
.type-card.cinema h3, .type-card.cinema .price strong { color: #fff; }
.type-card.cinema .muted, .type-card.cinema .price span { color: #9fb0d4; }
.type-card.cinema .plan { background: #0b1630; border-color: #1b2c55; }
.type-card.cinema .plan img { opacity: .92; }
.type-card.cinema .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: #2a3e6e; }
.type-card.cinema .btn-primary { background: #FFB547; border-color: #FFB547; color: #1b1300; }
.type-card.cinema .type-badge { background: #FFB547; color: #1b1300; }
/* Bloc D : panoramique doré, cadre clair */
.type-card.golden { background: linear-gradient(180deg, #fffaf1, #fff); border-color: #f0dfbf; }
.type-card.golden .type-media { aspect-ratio: 2.6 / 1; margin: 12px 12px 0; border-radius: 14px; }
.type-card.golden .type-badge { background: #B7791F; }
.type-card.golden .price strong { color: #8A5A00; }
/* Actualités illustrées */
.news-card.with-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-left: 0; border-top: 5px solid var(--red); }
.news-card.with-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 14px 16px; }
/* Galerie gérée depuis l'administration (nombre d'images variable) */
.gallery { grid-template-rows: none; grid-auto-rows: 210px; }
.gallery.n1 { grid-template-columns: 1fr; } .gallery.n1 .g0 { grid-row: span 2; }
.gallery.n2 { grid-template-columns: 1fr 1fr; } .gallery.n2 .g0, .gallery.n2 .g1 { grid-row: span 2; grid-column: auto; }
.gallery.n3 .g1 { grid-column: 2 / 4; } .gallery.n3 .g2 { grid-column: 2 / 4; }
.gallery.n4 .g1 { grid-column: 2 / 4; }
.gallery.n5 .g1 { grid-column: auto; } .gallery.n5 .g0 { grid-row: span 2; }
/* Inventaire */
.inv { display: grid; gap: 14px; }
.inv-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-tab { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-height: 44px; }
.inv-tab small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.inv-tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.inv-tab.on small { color: #c9d6f0; }
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.inv-head h3 { margin: 0; }
.inv-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.inv-room { background: var(--alt); border-radius: 12px; padding: 12px 14px; }
.inv-room h4 { margin: 0 0 6px; color: var(--navy); }
.inv-room ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.inv-room li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.inv-room small { display: block; color: var(--muted); font-size: .8rem; }
.inv-q { flex: none; min-width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--navy); font-size: .85rem; }
/* Conditions */
.rules { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.rules h3 { margin: 0 0 8px; }
.rules ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.cancel-box { margin-top: 14px; border: 2px solid #f3c2c5; background: #fff7f7; border-radius: 14px; padding: 14px; }
.cancel-box h3 { margin: 0 0 6px; color: var(--red); }
/* Propriété */
.foot-own { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 20px; padding-top: 16px; color: #C9D3E6; }
.foot-own p { margin: 0 0 6px; }
.foot-own strong { color: #fff; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .r-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 12px 14px; margin: 0; box-shadow: 0 12px 24px rgba(10, 42, 102, .15); border-bottom: 3px solid var(--navy); }
  .r-nav.open { display: flex; }
  .r-nav a { padding: 12px 10px; border-bottom: 1px solid var(--alt); }
  .r-top .wrap { position: relative; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .lead { text-align: left; }
  .gallery, .gallery[class*="n"] { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery[class*="n"] figure { grid-column: auto !important; grid-row: auto !important; }
  .gallery[class*="n"] .g0 { grid-column: 1 / 3 !important; grid-row: span 1 !important; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.type-card.cinema .type-media img { object-position: center 70%; }
input.bad { border-color: var(--red); background: #fff8f8; }
.field-err { color: var(--red); font-size: .85rem; font-weight: 600; }
.inv-fiche { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.inv-fiche > div:first-child { display: flex; flex-direction: column; gap: 2px; max-width: 640px; color: var(--navy); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Typographie de la charte : Poppins (Bold / Medium), servie par le site (licence SIL OFL, voir /fonts/OFL-Poppins.txt). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format("woff2"); }
/* ======================= Charte du logo MT Prestige : bleu marine #0A2A66, bleu roi #1F57C3, rouge #E3202B, blanc ======================= */
:root {
  --navy: #0A2A66; --navy-2: #12357D; --blue: #1F57C3;           /* bleu marine et bleu roi du logo */
  --sand: #E3202B; --sand-2: #E3202B; --sand-3: #EAF0FB;          /* rouge du logo (accents) ; bleu très clair (sélections) */
  --bg: #F4F6FA; --alt: #EAEFF7; --line: #DCE3F0; --card: #FFFFFF; /* fonds blancs */
  --text: #1B2433; --muted: #5E6B80; --red: #B42318;               /* rouge foncé réservé aux erreurs */
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* nom historique : police des titres */
  --shadow: 0 1px 2px rgba(10, 42, 102, .06), 0 10px 28px rgba(10, 42, 102, .08);
  background: var(--bg);
}
body { background: var(--bg); }
body, button, input, select, textarea { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
:root { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, h3, .hero h1, .ref, .price strong, .formula h3, .facts strong { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.12em; }
.hero h1 { font-size: clamp(1.8rem, 4.6vw, 3.1rem); line-height: 1.12; }
.kicker, .eyebrow { letter-spacing: .14em; font-weight: 600; }
.btn { font-weight: 600; }
.kicker, .tag { color: var(--sand-2); }
header.r-top { background: rgba(255, 255, 255, .96); border-image: linear-gradient(90deg, var(--navy) 0 45%, #E3202B 45% 55%, var(--blue) 55%) 1; }
.r-nav a { color: var(--navy); }
.r-nav a:hover { background: var(--sand-3); }
.btn { background: var(--card); color: var(--navy); border-color: var(--line); }
.btn-primary { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-red { background: var(--sand); color: #FFFFFF; border-color: var(--sand); }
.btn-red:hover:not(:disabled) { background: #C5161F; }
.btn-glass { color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
/* Héros : image administrée (photo réelle en priorité) */
.hero-bg { display: none; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { background: linear-gradient(180deg, rgba(10, 42, 102, .25) 0%, rgba(10, 42, 102, .55) 45%, rgba(6, 22, 56, .93) 100%); }
.hero-in { z-index: 2; }
.rot { color: #fff; }
.rot-w { border-bottom-color: var(--sand); }
.facts li { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }
.facts strong { font-size: 1.35rem; }
/* Mention obligatoire des visuels non photographiques */
.vis { margin: 0; position: relative; width: 100%; height: 100%; }
.vis img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vis-tag { position: absolute; left: 10px; bottom: 10px; z-index: 3; background: rgba(10, 42, 102, .82); color: #FFFFFF; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.hero-tag { left: auto; right: 14px; bottom: 14px; }
.gallery figure .vis-tag { left: auto; right: 10px; top: 10px; bottom: auto; }
.type-media .vis-tag { left: auto; right: 12px; bottom: 12px; }
.room .ph .vis { position: absolute; inset: 0; }
.chosen .vis { width: 92px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; }
.chosen .vis-tag { display: none; }
.side-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
/* Cartes */
.type-card, .formula, .news-card, .how li, .room, .card, .rules, .inv-fiche { background: var(--card); border-color: var(--line); }
.type-badge { background: var(--navy); }
.type-card.cinema, .type-card.golden { background: var(--card); color: var(--text); border-color: var(--line); }
.type-card.cinema h3, .type-card.cinema .price strong, .type-card.golden .price strong { color: var(--navy); }
.type-card.cinema .muted, .type-card.cinema .price span { color: var(--muted); }
.type-card.cinema .btn-primary { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.type-card.cinema .btn:not(.btn-primary) { background: var(--card); color: var(--navy); border-color: var(--line); }
.type-card.cinema .type-badge, .type-card.golden .type-badge { background: var(--navy); color: #FFFFFF; }
.type-card.cinema .type-media { border: 0; aspect-ratio: 16 / 10; }
.type-card.golden .type-media { margin: 0; border-radius: 0; aspect-ratio: 16 / 10; }
.unf { color: var(--blue); font-weight: 700; margin: 2px 0 6px; }
.formula.featured { border-color: var(--navy); }
.ribbon { background: var(--sand); color: #FFFFFF; }
.flist strong { color: var(--navy); }
.how-ic { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.how li::after { color: var(--sand-3); }
.assure .ic { color: var(--blue); }
.rules { border-left-color: var(--navy); }
.billing { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--sand); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.billing h3 { margin: 0 0 8px; }
.billing ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.empty-state { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px dashed var(--blue); border-radius: var(--radius); background: var(--card); color: var(--muted); margin-bottom: 14px; }
.empty-state strong { color: var(--navy); }
.inv-fiche { border-left-color: var(--sand); }
.inv-tab.on { background: var(--navy); border-color: var(--navy); }
.inv-room { background: var(--alt); }
.seg-opt.on { border-color: var(--navy); background: var(--sand-3); box-shadow: inset 0 0 0 1px var(--navy); }
.steps li.on { background: var(--navy); border-color: var(--navy); }
.steps li.on span { background: var(--sand); color: #FFFFFF; }
.method.on { border-color: var(--navy); background: var(--sand-3); }
.news-card { border-left-color: var(--sand); }
.news-card.with-img { border-top-color: var(--sand); }
.badge.info { background: #E6EEFC; color: var(--blue); }
.alert-info { background: #E6EEFC; color: #133D8A; }
input:focus, select:focus, textarea:focus { outline-color: rgba(31, 87, 195, .3); border-color: var(--blue); }
.track-hero { background: linear-gradient(120deg, rgba(10, 42, 102, .95), rgba(18, 53, 125, .85)), url(/img/residence/vue-fond.jpg) center / cover; }
footer.r-foot { background: #071C47; color: #C9D3E6; }
.foot-own { border-top-color: rgba(255, 255, 255, .3); }
@media (prefers-reduced-motion: reduce) { .hero-img { transform: none; } }
.btn.btn-glass { background: rgba(255, 255, 255, .14); color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
.btn.btn-glass:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.steps li.done { color: var(--blue); }
.steps li.done span { background: #E6EEFC; }
/* Filet tricolore de la charte (bleu nuit / rouge prestige / bleu roi) sous les titres de section */
.sec-head h2::after { content: ""; display: block; width: 120px; height: 4px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, #0A2A66 0 55%, #E3202B 55% 70%, #1F57C3 70%); }
