/* ===== Fonts ===== */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Light';
  src: url('../fonts/BeVietnam-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, sans-serif;
  font-weight: 300;
  color: #1c1c1a;
  background: #fff;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Tokens ===== */
:root {
  --cream: #f2f1ef;
  --ink: #1c1c1a;
  --sky: #7fa9c9;
  --sky-deep: #5c86a8;
  --poppy: #c23a2c;
  --line: rgba(28,28,26,0.18);
}

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--sky-deep);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
.btn .btn-label {
  border: 1px solid var(--ink);
  border-radius: 40px;
  padding: 13px 26px;
  background: transparent;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover .btn-label { background: var(--ink); color: #fff; }
.btn .arrow-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover .arrow-circle { background: var(--ink); color: #fff; }
.btn .arrow-circle img { width: 25px; height: 17px; object-fit: contain; display: block; }
.btn:hover .arrow-circle img { filter: invert(1) drop-shadow(0.3px 0 0 white); }

.btn-ghost-row {
  display: flex;
  justify-content: center;
  margin: 56px 0 0;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  max-width: 1360px;
  margin: 0 auto;
  gap: 12px;
}
.logo img { height: 33px; width: auto; }
.logo { flex-shrink: 0; }
@media (max-width: 640px) {
  .header-inner { padding: 16px 20px; }
  .header-right { gap: 14px; }
  .logo img { height: 20px; }
  .btn .btn-label { padding: 11px 18px; }
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-meta {
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  display: none;
}
.header-phone {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
  font-weight: 500;
  transition: -webkit-text-stroke 0.2s ease;
}
.header-phone:hover {
  -webkit-text-stroke: 0.4px currentColor;
}
@media (max-width: 400px) {
  .header-phone { font-size: 0.72rem; }
}
@media (max-width: 360px) {
  .header-phone { display: none; }
}
@media (min-width: 860px) {
  .header-meta { display: block; }
}
header .btn .arrow-circle { display: none; }
header .btn { gap: 0; }

/* ===== Hero ===== */
.hero {
  padding: 60px 40px clamp(40px, 6vw, 100px);
  max-width: 1360px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .hero { padding: 40px 28px 40px; }
}
.hero-photo {
  position: relative;
  aspect-ratio: 4015/2533;
}
@media (min-width: 860px) {
  .hero-photo { transform: translateX(83px); }
}
.hero-photo img {
  width: 100%;
  display: block;
}
.hero-photo .hero-cloud {
  position: absolute;
  top: 4%;
  left: clamp(-38px, -5.5%, -16px);
  width: 5.5%;
  height: auto;
  z-index: 1;
  animation: heroCloudBirdRise 6s ease-in-out infinite;
}
@media (max-width: 640px) {
  .hero-photo .hero-cloud { left: -14px; }
}
.hero-photo .hero-bird {
  position: absolute;
  top: 4%;
  left: 2.6%;
  width: 4.2%;
  height: auto;
  animation: heroCloudBirdRise 6s ease-in-out infinite;
}
@keyframes heroCloudBirdRise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cloud, .hero-bird { animation: none; }
}

/* ===== Intro / Habitations ===== */
.section { padding: 85px 0; }
.section-cream { background: var(--cream); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 0.85fr 1.15fr; gap: 70px; }
  .two-col.reverse { grid-template-columns: 1.15fr 0.85fr; }
  .two-col.reverse .two-col-media { order: 2; }
  .two-col.reverse .two-col-text { order: 1; }
  .two-col.media-first { grid-template-columns: 1.15fr 0.85fr; }
}
.two-col-text h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  margin-bottom: 26px;
  max-width: 480px;
}
@media (min-width: 1300px) {
  .liberte-text h2 { white-space: nowrap; max-width: none; }
}
.two-col-text p {
  font-size: 1.05rem;
  line-height: 2;
  color: #333;
  max-width: 480px;
  margin-bottom: 16px;
}
.two-col-media img {
  border-radius: 2px;
  width: 100%;
}

.building-slideshow {
  position: relative;
  aspect-ratio: 1400 / 1260;
  overflow: hidden;
  border-radius: 2px;
}
.building-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.building-slideshow .slide.is-active {
  opacity: 1;
}

/* Liberté section: image bleeds to viewport left edge, stretches to text height */
.liberte-section { overflow: hidden; padding-top: 85px; padding-bottom: 200px; }
.liberte-grid {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) minmax(0, 640px) minmax(0, 520px) minmax(40px, 120px);
  align-items: stretch;
}
.liberte-media {
  grid-column: 1 / 3;
}
.liberte-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.liberte-text {
  grid-column: 3 / 4;
  padding-left: 70px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 859px) {
  .liberte-grid { grid-template-columns: 1fr; }
  .liberte-media { grid-column: 1; }
  .liberte-text { grid-column: 1; padding-left: 40px; padding-right: 40px; padding-top: 40px; }
  .liberte-media img { aspect-ratio: 4/3; }
}
.doodle-inline {
  width: 150px;
  margin-top: 70px;
  opacity: 0.9;
  animation: bikeRise 6s ease-in-out infinite;
}
@keyframes bikeRise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .doodle-inline { animation: none; }
}
.section-doodle {
  display: none;
}
@media (min-width: 780px) {
  .section-doodle {
    display: block;
    position: absolute;
    pointer-events: none;
  }
}
.two-col { position: relative; }
.habitations-block { align-items: center; }
.tranq-block { align-items: center; }

/* ===== Phase / Cloud section ===== */
.phase-section {
  position: relative;
  background-color: #ffffff;
  padding: 0 0 80px;
  text-align: center;
}
.phase-section .container {
  position: relative;
}
.phase-hero {
  position: relative;
  width: 100%;
}
.phase-hero-img {
  display: block;
  width: 100%;
  height: auto;
}
.phase-section .container {
  padding-top: 0;
}
.phase-number-wrap {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: -64px auto 70px;
}
.phase-number {
  width: 158px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}
.phase-section h2,
.phase-section p {
  position: relative;
  z-index: 2;
}
.phase-section h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  line-height: 1.8;
  margin-bottom: 24px;
}
.phase-section p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #333;
}
.balloon-doodle {
  position: absolute;
  top: -160px;
  left: 220px;
  width: 231px;
  opacity: 0.8;
  display: none;
  animation: balloonFloat 4.8s ease-in-out infinite;
}
@keyframes balloonFloat {
  0%   { transform: scaleX(-1) translate(0, 0) rotate(0deg); }
  50%  { transform: scaleX(-1) translate(3px, -14px) rotate(-1.5deg); }
  100% { transform: scaleX(-1) translate(0, 0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .balloon-doodle { animation: none; transform: scaleX(-1); }
}
@media(min-width:780px){ .balloon-doodle{ display:block; } }

.kayak-doodle {
  width: 140px;
  opacity: 0.9;
  animation: kayakDrift 5s ease-in-out infinite;
}
@keyframes kayakDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .kayak-doodle { animation: none; }
}

/* ===== Common spaces intro ===== */
.centered-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.centered-head h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 35px; }
.centered-head p { font-size: 0.95rem; color: #333; max-width: 600px; margin: 0 auto; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 780px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card-media {
  position: relative;
  margin-bottom: 29px;
}
.card img {
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.card-media img { margin-bottom: 0; }
.card > img { margin-bottom: 29px; }
.card:nth-child(1) img { aspect-ratio: 320/353; }
.card:nth-child(2) .card-photo { aspect-ratio: 323/321; }
.card:nth-child(3) img { aspect-ratio: 320/243; }
.card-media .swing-doodle {
  position: absolute;
  top: 3%;
  left: 8%;
  width: 26%;
  height: auto;
  transform-origin: top center;
  animation: swingSway 3.2s ease-in-out infinite;
}
@keyframes swingSway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .swing-doodle { animation: none; }
}
.card h3 { font-size: 1.05rem; margin-bottom: 29px; font-weight: 400; }
.card p { font-size: 0.88rem; color: #444; }
.card p + p { margin-top: 16px; }

/* ===== Address / lifestyle ===== */
.lifestyle-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
}
.lifestyle-head h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 18px; }
@media (min-width: 1160px) {
  .lifestyle-head { max-width: 1040px; }
  .lifestyle-head h2 { white-space: nowrap; }
}
.lifestyle-head p { font-size: 0.95rem; color: #333; margin-bottom: 0; max-width: 760px; margin-left: auto; margin-right: auto; }
.lifestyle-tagline { font-weight: 300; margin-top: 0; }

.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
}
@media (min-width: 780px) {
  .lifestyle-grid { grid-template-columns: repeat(3, 1fr); }
}
.lifestyle-grid img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 2px;
}
.lifestyle-grid img[src*="biking"] { aspect-ratio: 306/356; }
.lifestyle-grid img[src*="walking"] { aspect-ratio: 305/222; }
.lifestyle-grid img[src*="kayak"] { aspect-ratio: 298/307; }
.lifestyle-grid h3 { font-size: 1.05rem; margin-bottom: 20px; font-weight: 400; }
.lifestyle-grid p { font-size: 0.85rem; color: #444; line-height: 2; }
.middle-col-text { display: flex; flex-direction: column; justify-content: flex-start; }
.middle-col-text ul { list-style: none; font-size: 0.85rem; color: #444; line-height: 2; }
.middle-col-text li { padding: 1px 0; }
.middle-col-text li::before { content: "- "; }

/* ===== Family statement ===== */
.family-block { text-align: center; padding: 90px 0 70px; }
.family-block h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); max-width: 700px; margin: 0 auto 40px; }
.family-block p { max-width: 640px; margin: 0 auto; font-size: 0.92rem; color: #333; }

/* ===== Signup ===== */
.signup-section {
  position: relative;
  padding: 110px 0 60px;
  background-image: url('../images/poppies-wide.jpg');
  background-size: cover;
  background-position: center;
}
.signup-card {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px;
  border-radius: 2px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 820px) {
  .signup-grid { grid-template-columns: 0.8fr 1.2fr; }
}
.signup-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 24px; max-width: 300px; }
.signup-media { position: relative; }
.balloon-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 2px;
  overflow: hidden;
}
.balloon-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.balloon-subject {
  animation: balloonFloatSubtle 6s ease-in-out infinite;
}
@keyframes balloonFloatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .balloon-subject { animation: none; }
}
@media (min-width: 820px) {
  .balloon-scene { height: 100%; aspect-ratio: auto; }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
@media (max-width: 600px) {
  .signup-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 18px; }
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.78rem; margin-bottom: 8px; color: #333; }
.form-field input,
.form-field select,
.form-field textarea {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  font-family: inherit;
  font-size: 0.9rem;
  background: transparent;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-width: 2px;
  border-color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 44px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 6px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-row input { margin-top: 3px; }
.checkbox-row label { font-size: 0.78rem; color: #333; }
.required-note { font-size: 0.72rem; color: #777; white-space: nowrap; margin-top: 2px; }
.consent-text { font-size: 0.74rem; color: #666; line-height: 1.5; flex: 1 1 auto; min-width: 0; max-width: 350px; margin: 16px 0 0; }

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.form-submit-row .btn { flex-shrink: 0; }
@media (min-width: 480px) {
  .form-submit-row { flex-wrap: nowrap; }
}

.form-status { font-size: 0.85rem; margin-top: 14px; }
.form-status.success { color: #2b7a4b; }
.form-status.error { color: #b23b2f; }

/* ===== Durer / concu pour durer ===== */
.tranq-block { padding-bottom: 35px; }
.tranq-block .two-col-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.58;
}
.tranq-block .two-col-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.durer-block { background: var(--cream); padding-top: 23px; }
@media (min-width: 860px) {
  .durer-block .two-col { grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr); }
  .durer-block .two-col-text { display: flex; flex-direction: column; align-self: stretch; }
  .durer-block .two-col-text .btn { margin-top: auto; align-self: flex-start; }
}
.durer-block .two-col-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.339;
}
.durer-block .two-col-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ===== Footer ===== */
footer {
  background: var(--cream);
  padding: 45px 0 45px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}
@media (max-width: 779px) {
  .footer-top .footer-logo { margin-top: 10px; }
  .footer-top .footer-right { margin-top: 10px; }
}
@media (min-width: 780px) {
  .footer-top { grid-template-columns: 1fr auto 1fr; text-align: left; align-items: center; }
  .footer-top .footer-logo { text-align: center; align-self: center; }
  .footer-top .footer-right { text-align: right; }
}
footer address { font-size: 0.8rem; color: #444; font-style: normal; line-height: 1.6; }
footer .footer-logo img { height: 33px; margin: 0 auto; }
@media (max-width: 779px) {
  footer .footer-logo img { height: 28px; }
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
@media (min-width: 780px) {
  .footer-social { justify-content: flex-start; }
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { background: var(--ink); color: #fff; }
.footer-social svg { width: 15px; height: 15px; }
footer .footer-right { font-size: 0.8rem; color: #444; }
footer .footer-right a { text-decoration: underline; }
.footer-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 70px;
}
@media (min-width: 780px) {
  .footer-partners { justify-content: flex-end; }
}
.footer-partners img {
  width: auto;
  opacity: 0.75;
}
.footer-partners img[src*="gid"] { height: 26px; }
.footer-partners img[src*="immovas"] { height: 16px; position: relative; top: 4px; }
.footer-partners img[src*="wfg"] { height: 30px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
  font-size: 0.72rem;
  color: #777;
}

/* ===== Reveal animation (progressive enhancement: only when JS runs) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Focus visibility ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 2px;
}

/* ===== Small utility ===== */

/* ===== Credit bar ===== */
.credit-bar {
  border-top: 1px solid rgba(28,28,26,0.12);
  background: #fff;
  padding: 34px 0;
}
.credit-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.credit-bar span {
  font-family: 'Be Vietnam Light', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #303b4b;
}
.credit-icon {
  height: 15px;
  width: auto;
  display: block;
}
