/* =========================================================
   Live Together — Habitat partagé · Le François
   Couleurs reprises de la plaquette : bleu marine, or, vert
   ========================================================= */
:root {
  --navy: #2b4762;
  --navy-deep: #1f364d;
  --gold: #d9a13b;
  --gold-deep: #b9821f;
  --green: #3e7f35;
  --green-soft: #e6efdf;
  --cream: #faf7f1;
  --sand: #f3ece0;
  --ink: #1e2b38;
  --muted: #5b6875;
  --line: #e3dccf;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(31, 54, 77, .25);
  --shadow-lg: 0 30px 60px -25px rgba(31, 54, 77, .45);
  --serif: "Lora", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; } /* les apparitions latérales ne créent pas de défilement horizontal */
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: inherit; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--light { color: #f4d28f; }

.rule { display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 3px; margin: 6px 0 26px; transform-origin: left; }
.rule--center { margin-left: auto; margin-right: auto; transform-origin: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after { /* reflet lumineux au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.35); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--gold { --bg: var(--gold); --fg: #1d2a36; }
.btn--gold:hover { --bg: #e3ae4b; }
.btn--navy { --bg: var(--navy); --fg: #fff; }
.btn--ghost { --bg: rgba(255,255,255,.08); --fg: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: #fff; --fg: var(--navy); }
.btn--ghost-dark { --bg: #fff; --fg: var(--navy); border-color: var(--navy); }
.btn--wa { --bg: #1fa855; --fg: #fff; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; padding: 18px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 18px 0;
}
.nav.is-solid { background: rgba(250, 247, 241, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 46px; height: 52px; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-size: 20px; }
.brand__text small { font-size: 12.5px; opacity: .85; letter-spacing: .04em; }
.nav.is-solid .brand { color: var(--navy); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15.5px; position: relative; padding: 4px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav.is-solid .nav__links a:not(.btn) { color: var(--ink); }

.nav__burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255,255,255,.15); cursor: pointer; padding: 12px; }
.nav__burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-solid .nav__burger { background: var(--sand); }
.nav.is-solid .nav__burger span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
  background: var(--navy-deep);
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: scale(1.12); animation: kenburns 22s var(--ease) forwards;
}
@keyframes kenburns { to { transform: scale(1.0) translate(-1%, -1%); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 44, 64, .92) 0%, rgba(25, 44, 64, .72) 42%, rgba(25, 44, 64, .15) 80%),
    linear-gradient(0deg, rgba(25, 44, 64, .55) 0%, transparent 35%);
}
.hero__content { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 90px; }
.hero__title { font-size: clamp(40px, 6.2vw, 78px); font-weight: 600; max-width: 13ch; letter-spacing: -.015em; margin-bottom: 22px; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 520px; opacity: .92; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__facts li {
  font-size: 14px; font-weight: 700; padding: 8px 14px 8px 30px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); position: relative;
}
.hero__facts li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--gold); }

.anim-in { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 28px; height: 46px; margin-left: -14px;
  border: 2px solid rgba(255,255,255,.7); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Feuilles flottantes */
.leaf { position: absolute; z-index: 1; fill: var(--green); opacity: .5; pointer-events: none; }
.leaf--1 { width: 54px; right: 12%; top: 18%; fill: #7db54a; animation: float 9s ease-in-out infinite; }
.leaf--2 { width: 34px; right: 30%; bottom: 20%; fill: var(--gold); opacity: .55; animation: float 11s ease-in-out infinite -3s; }
.leaf--3 { width: 72px; right: 6%; bottom: 12%; fill: #5a9e3e; animation: float 13s ease-in-out infinite -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-14px, -22px) rotate(18deg); }
  66% { transform: translate(10px, -8px) rotate(-12deg); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy p:not(.eyebrow) { color: rgba(255,255,255,.85); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__lead { font-size: 19px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text > p:not(.eyebrow) { color: var(--muted); font-size: 17.5px; }

/* Photos */
.split__media { position: relative; }
.photo { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--sand); }
.photo img, .photo__crop { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img, .photo:hover .photo__crop { transform: scale(1.04); }
.photo--tall { aspect-ratio: 4 / 5; width: 82%; margin-left: auto; }
.photo--small { position: absolute; left: 0; bottom: -40px; width: 46%; aspect-ratio: 4 / 3; border: 6px solid var(--cream); }
.photo--wide { aspect-ratio: 5 / 4; }
.badge {
  position: absolute; right: -10px; top: 28px; max-width: 230px;
  background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.badge strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--navy); }
.badge span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }

/* Valeurs */
.values { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.values li {
  display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.values li:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.values__ico { font-size: 24px; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); }
.values strong { display: block; font-size: 16.5px; color: var(--navy); }
.values div { font-size: 15.5px; color: var(--muted); line-height: 1.45; }

/* Le quotidien */
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.care {
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.care:hover { transform: translateY(-6px); background: rgba(255,255,255,.11); border-color: rgba(217,161,59,.6); }
.care__ico { font-size: 30px; display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: rgba(217,161,59,.16); margin-bottom: 18px; transition: transform .5s var(--ease); }
.care:hover .care__ico { transform: rotate(-8deg) scale(1.08); }
.care h3 { margin-bottom: 8px; color: #fff; }
.care p { margin: 0; font-size: 15.5px; }
.rhythm {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  padding: 22px 28px; border-radius: var(--radius-lg); background: rgba(217,161,59,.14); border: 1px dashed rgba(217,161,59,.6);
}
.rhythm strong { font-family: var(--serif); font-size: 20px; color: var(--gold); }
.rhythm span { color: rgba(255,255,255,.88); }

/* Formules */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offer {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); padding: 38px 32px 32px;
  border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s;
}
.offer:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.offer--featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.offer.offer--featured p, .offer.offer--featured li { color: rgba(255,255,255,.86); }
.offer__tag { position: absolute; top: -14px; left: 32px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.offer__num { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.offer h3 { font-size: 25px; }
.offer p { color: var(--muted); }
.offer ul { list-style: none; padding: 0; margin: 4px 0 28px; display: grid; gap: 10px; flex: 1; }
.offer li { padding-left: 28px; position: relative; font-size: 15.5px; }
.offer li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%233e7f35' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.offer .btn { align-self: stretch; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.steps li { display: flex; gap: 18px; padding: 12px 0; position: relative; }
.steps li > span {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-family: var(--serif); font-size: 18px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--cream);
}
.steps strong { display: block; color: var(--navy); font-size: 17px; }
.steps div { color: var(--muted); font-size: 15.5px; line-height: 1.5; padding-top: 2px; }

/* ---------- Réservation ---------- */
.section--booking { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); overflow: hidden; }
.section--booking::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; left: -220px; top: -180px;
  background: radial-gradient(circle, rgba(217,161,59,.18), transparent 65%); pointer-events: none;
}
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 70px); align-items: start; position: relative; }
.booking__intro { position: sticky; top: 100px; }

.summary {
  margin-top: 30px; padding: 26px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
}
.summary__label { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold) !important; margin-bottom: 6px; }
.summary__formule { font-family: var(--serif); font-size: 24px; color: #fff !important; margin-bottom: 18px; }
.summary__dates { display: flex; align-items: center; gap: 14px; }
.summary__dates > div { flex: 1; }
.summary__dates small { display: block; font-size: 13px; color: rgba(255,255,255,.65); }
.summary__dates strong { font-size: 16.5px; }
.summary__dates svg { width: 40px; flex: none; stroke: var(--gold); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.summary__days { margin-top: 18px; font-family: var(--serif); font-size: 20px; }
.summary__days #sumDays { font-size: 44px; font-weight: 700; color: var(--gold); display: inline-block; transition: transform .3s var(--ease); }
.summary__days #sumDays.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
.calstrip { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; margin-top: 16px; }
.calstrip i {
  aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.12);
  transition: background .3s, transform .3s;
}
.calstrip i.on { background: var(--gold); animation: pop .4s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
.calstrip i.more { background: transparent; color: var(--gold); font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

.contact-mini { margin-top: 24px; display: grid; gap: 8px; }
.contact-mini a { color: #fff; text-decoration: none; font-weight: 700; opacity: .9; }
.contact-mini a:hover { color: var(--gold); }

.form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.form legend { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); margin-bottom: 16px; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row .field--sm { max-width: 160px; }
.row:has(.field--sm) { grid-template-columns: 1fr auto; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 16.5px/1.4 var(--sans); color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(43,71,98,.12); }
.field.has-error input, .field.has-error select { border-color: #c4523a; background: #fff6f3; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.err { color: #b33f28; font-size: 14px; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }

.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.choice--inline { grid-template-columns: repeat(2, 1fr); }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream);
  transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
}
.choice b { font-size: 15.5px; color: var(--navy); }
.choice small { font-size: 13.5px; color: var(--muted); }
.choice label:hover span { transform: translateY(-2px); }
.choice input:checked + span { border-color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy), 0 8px 18px -10px rgba(43,71,98,.5); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--cream); }
.stepper:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(43,71,98,.12); }
.stepper button { width: 52px; border: 0; background: transparent; font-size: 22px; color: var(--navy); cursor: pointer; transition: background .2s; }
.stepper button:hover { background: var(--sand); }
.stepper button:active { background: var(--line); }
.stepper input { border: 0 !important; box-shadow: none !important; text-align: center; font-weight: 800; font-size: 18px; background: transparent !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px;
  font: 700 13px var(--sans); color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.quick button:hover, .quick button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form__note { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
#submitBtn.is-loading span { opacity: 0; }
#submitBtn.is-loading::before { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(0,0,0,.2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.ccard {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; min-width: 0;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.ccard > span { font-size: 22px; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); }
.ccard small { display: block; font-size: 13px; color: var(--muted); }
.ccard strong { display: block; font-size: 15px; color: var(--navy); overflow-wrap: anywhere; }
.ccard--wide { grid-column: 1 / -1; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding-bottom: 30px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); background-clip: content-box; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { width: 96px; height: auto; border-radius: 14px; }
.footer__brand strong { display: block; font-family: var(--serif); font-size: 22px; color: #fff; }
.footer__brand span { font-size: 14px; }
.footer__tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; text-align: center; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; font-weight: 700; font-size: 15px; }
.footer__links a:hover { color: var(--gold); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13.5px; opacity: .75; }

/* ---------- Mobile bar ---------- */
.mobilebar { display: none; }

/* ---------- Modal ---------- */
.modal {
  width: min(520px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 34px 30px 26px; text-align: center;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); color: var(--ink);
}
.modal[open] { animation: modalIn .5s var(--ease); }
.modal::backdrop { background: rgba(20, 35, 50, .6); backdrop-filter: blur(4px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.modal__check svg { width: 74px; height: 74px; margin: 0 auto 14px; }
.modal__check circle { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) .1s forwards; }
.modal__check path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal h3 { font-size: 27px; color: var(--navy); margin-bottom: 4px; }
.modal__ref { color: var(--muted); }
.modal__ref strong { color: var(--ink); letter-spacing: .05em; }
.modal__recap { text-align: left; background: var(--cream); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.modal__recap b { color: var(--navy); }
.modal__text { font-size: 15.5px; color: var(--muted); }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal__actions .btn { padding: 14px 12px; font-size: 15px; }
.modal__close { margin-top: 14px; border: 0; background: none; color: var(--muted); font: 700 15px var(--sans); cursor: pointer; text-decoration: underline; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal--left { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal--up { transform: translateY(60px); }
.js .rule.reveal { transform: scaleX(0); opacity: 1; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .offers { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .booking { grid-template-columns: 1fr; }
  .booking__intro { position: static; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 860px) {
  .nav__burger { display: block; position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--navy); transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
  }
  .nav__links a:not(.btn), .nav.is-solid .nav__links a:not(.btn) { color: #fff; font-family: var(--serif); font-size: 28px; }
  .nav.menu-open .nav__links { transform: none; visibility: visible; }
  .nav.menu-open .nav__burger span { background: #fff; }
  .nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.menu-open .brand { color: #fff; position: relative; z-index: 2; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { margin-bottom: 40px; }
  .photo--tall { width: 86%; aspect-ratio: 4 / 4.2; }
  .badge { right: 0; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,247,241,.96); backdrop-filter: blur(8px);
    box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mobilebar.is-visible { transform: none; }
  .mobilebar .btn { padding: 13px; }
  body { padding-bottom: 72px; }
  .hero__shade { background: linear-gradient(180deg, rgba(25,44,64,.55) 0%, rgba(25,44,64,.85) 60%, rgba(25,44,64,.95) 100%); }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .care-grid { grid-template-columns: 1fr; }
  .row, .row:has(.field--sm) { grid-template-columns: 1fr; }
  .row .field--sm { max-width: none; }
  .choice { grid-template-columns: 1fr; }
  .choice--inline { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .brand__text small { display: none; }
  .modal__actions { grid-template-columns: 1fr; }
  .photo--small { width: 52%; bottom: -30px; }
  .badge { position: relative; top: auto; right: auto; max-width: none; margin-top: 50px; }
  .calstrip { grid-template-columns: repeat(10, 1fr); }
}

/* Respect des préférences d'animation réduite */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__img { transform: none; }
  .leaf { display: none; }
}
/* =========================================================
   Visite : vidéo et galerie
   ========================================================= */
.photo--portrait { aspect-ratio: 4 / 5; max-width: 480px; margin: 0 auto; }
.tour { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.tour__video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-deep);
  box-shadow: var(--shadow-lg); min-height: 460px;
}
.tour__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tour__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; cursor: pointer; color: #fff; font: 800 17px var(--sans);
  background: linear-gradient(0deg, rgba(25,44,64,.7), rgba(25,44,64,.15));
  transition: opacity .4s var(--ease), visibility .4s;
}
.tour__play span {
  width: 86px; height: 86px; border-radius: 50%; background: var(--gold); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(217,161,59,.6); animation: pulse 2.4s infinite; transition: transform .3s var(--ease);
}
.tour__play svg { width: 36px; fill: var(--ink); margin-left: 5px; }
.tour__play:hover span { transform: scale(1.08); }
.tour__play.is-hidden { opacity: 0; visibility: hidden; }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(217,161,59,0); } 100% { box-shadow: 0 0 0 0 rgba(217,161,59,0); } }

.tour__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 14px; }
.tour__grid .tile:first-child { grid-column: 1 / -1; }
.tile {
  position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: var(--radius);
  background: var(--sand); min-height: 140px; box-shadow: var(--shadow);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile span {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy); font: 800 13.5px var(--sans);
  transform: translateY(4px); transition: transform .3s var(--ease), background .3s;
}
.tile:hover img { transform: scale(1.06); }
.tile:hover span { transform: none; background: var(--gold); }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.lightbox {
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgba(15, 26, 38, .94); place-items: center;
}
.lightbox[open] { display: grid; animation: modalIn .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; opacity: 0; transform: scale(.97); transition: opacity .35s, transform .35s var(--ease); }
.lightbox img.is-in { opacity: 1; transform: none; }
.lightbox__close, .lightbox__nav {
  position: fixed; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12);
  width: 54px; height: 54px; border-radius: 50%; font-size: 32px; line-height: 1; transition: background .2s, color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; margin-top: -27px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* =========================================================
   Blog
   ========================================================= */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.link-arrow { font-weight: 800; color: var(--navy); text-decoration: none; padding-bottom: 30px; }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__cat { position: absolute; left: 14px; top: 14px; background: var(--gold); color: var(--ink); font: 800 12.5px var(--sans); padding: 5px 11px; border-radius: 999px; }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post__meta { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.post h3 { font-size: 21px; color: var(--navy); }
.post__body > p:not(.post__meta) { color: var(--muted); font-size: 15.5px; flex: 1; }
.post__more { font-weight: 800; color: var(--green); }
.post__more span { display: inline-block; transition: transform .3s var(--ease); }
.post:hover .post__more span { transform: translateX(6px); }

.page-blog main { padding-top: 72px; }
.section--tight { padding: 60px 0 90px; }
.blog-hero { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; padding: 80px 0 60px; }
.blog-hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 16ch; }
.blog-hero p:not(.eyebrow) { color: rgba(255,255,255,.85); font-size: 18px; max-width: 560px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters button {
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 999px;
  padding: 9px 16px; font: 700 14.5px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover, .filters button.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.article__hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-deep); }
.article__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); animation: kenburns 20s var(--ease) forwards; }
.article__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25,44,64,.92) 10%, rgba(25,44,64,.35) 70%); }
.article__head { position: relative; padding-top: 60px; padding-bottom: 50px; }
.article__head h1 { font-size: clamp(32px, 4.6vw, 54px); max-width: 20ch; margin: 0; }
.article__back { color: #fff; text-decoration: none; font-weight: 700; display: inline-block; margin-bottom: 18px; opacity: .9; }
.article__back:hover { color: var(--gold); }
.article__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; padding-top: 60px; padding-bottom: 80px; align-items: start; }
.prose { font-size: 18px; max-width: 700px; }
.prose h2 { font-size: 28px; color: var(--navy); margin-top: 1.6em; }
.prose p, .prose li { color: #34404c; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--navy); }
.article__cta { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.article__cta h2 { font-size: 22px; color: var(--navy); margin: 0; }
.article__cta p { color: var(--muted); font-size: 15.5px; margin: 0 0 6px; }

@media (max-width: 1024px) {
  .tour { grid-template-columns: 1fr; }
  .tour__video { min-height: 0; aspect-ratio: 16 / 10; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .article__body { grid-template-columns: 1fr; }
  .article__cta { position: static; }
}
@media (max-width: 560px) {
  .posts { grid-template-columns: 1fr; }
  .tour__grid { grid-template-rows: none; grid-auto-rows: 150px; }
  .tour__video { aspect-ratio: 4 / 5; }
  .article__hero { min-height: 380px; }
  .lightbox__nav { top: auto; bottom: 24px; margin: 0; }
}

/* =========================================================
   Le Madi'Kinkeliba : services à la personne
   ========================================================= */
.madi__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.madi__note { margin-top: 18px; font-size: 15.5px !important; font-style: italic; }
.roles {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 30px 28px; box-shadow: var(--shadow-lg);
  text-align: center; border: 1px solid var(--line);
}
.roles__logo { width: 110px; height: auto; margin: 0 auto 14px; border-radius: 16px; }
.roles__title { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 22px; }
.roles__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.role {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border-radius: var(--radius);
  background: var(--green-soft); transition: transform .35s var(--ease), box-shadow .35s;
}
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.role--gold { background: #f8ecd3; }
.role__ico { font-size: 30px; transition: transform .5s var(--ease); }
.role:hover .role__ico { transform: scale(1.12) rotate(-6deg); }
.role strong { font-family: var(--serif); font-size: 18px; color: var(--navy); }
.role span:last-child { font-size: 15px; color: var(--muted); line-height: 1.45; }
.roles__link { display: grid; place-items: center; }
.roles__link span {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 18px;
}
.roles__badge {
  display: inline-block; margin: 22px 0 0; padding: 8px 16px 8px 34px; border-radius: 999px; position: relative;
  background: var(--cream); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--navy);
}
.roles__badge::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}
@media (max-width: 560px) {
  .roles__grid { grid-template-columns: 1fr; }
  .roles__link span { margin: -4px auto; }
  .madi__actions .btn { width: 100%; }
}

/* =========================================================
   Formulaire : permanent (date seule) et calendrier de garde de jour
   ========================================================= */
.row.row--single { grid-template-columns: 1fr; }
.row.row--single .field { max-width: 340px; }
[hidden] { display: none !important; }
.summary__note { margin: 16px 0 0; font-size: 15px; color: rgba(255,255,255,.8) !important; line-height: 1.5; }

.daypick { animation: rise .5s var(--ease); }
.daypick__label { font-weight: 700; font-size: 15px; margin: 0 0 10px; color: var(--ink); }
.cal { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: var(--cream); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__head strong { font-family: var(--serif); font-size: 19px; color: var(--navy); text-transform: capitalize; }
.cal__nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--navy); transition: background .2s, color .2s, transform .2s;
}
.cal__nav:hover:not(:disabled) { background: var(--navy); color: #fff; }
.cal__nav:active:not(:disabled) { transform: scale(.92); }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow span { text-align: center; font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal__day {
  aspect-ratio: 1; border: 0; border-radius: 10px; background: #fff; cursor: pointer;
  font: 700 15.5px var(--sans); color: var(--ink); position: relative;
  transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.cal__day:hover:not(:disabled) { background: var(--green-soft); transform: translateY(-1px); }
.cal__day.today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal__day:disabled { background: transparent; color: #b9b2a5; cursor: default; }
.cal__day.on { background: var(--navy); color: #fff; }
.cal__day.on:hover { background: var(--navy-deep); }
.cal__day.on::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--gold);
}
.cal__day.pop { animation: dayPop .35s var(--ease); }
@keyframes dayPop { 40% { transform: scale(1.15); } }
.cal__day:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.cal__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-weight: 700; color: var(--navy); font-size: 15px; }
.cal__clear { border: 0; background: none; color: #b33f28; font: 700 14px var(--sans); cursor: pointer; text-decoration: underline; }
.cal__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px 5px 12px; cursor: pointer;
  font: 700 13px var(--sans); color: var(--navy); text-transform: capitalize; animation: pop .3s var(--ease);
  transition: background .2s, color .2s, border-color .2s;
}
.chip span { margin-left: 4px; color: var(--muted); }
.chip:hover { background: #fff1ed; border-color: #e7b3a6; color: #b33f28; }
.chip:hover span { color: #b33f28; }
@media (max-width: 560px) {
  .cal { padding: 10px; }
  .cal__dow, .cal__grid { gap: 3px; }
  .cal__day { font-size: 14px; border-radius: 8px; }
  .row.row--single .field { max-width: none; }
}

/* Textes du formulaire blanc dans la section bleue : couleurs propres au formulaire */
.section--navy .form p { color: var(--muted); }
.section--navy .form .daypick__label { color: var(--ink); }
.section--navy .form .err { color: #b33f28; }
.cal__day { aspect-ratio: auto; height: 44px; }
.chip { text-transform: none; }
