/* =========================================================
   L'immobilier dans ta région — style.css
   Minimaliste premium · mobile-first · accents dégradés
   ========================================================= */

:root {
  /* Palette : 1 primaire + neutres + accent */
  --navy: #0f2a43;
  --navy-700: #163a5c;
  --ink: #16202b;
  --muted: #5c6b7a;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --border: #e6ecf2;
  --accent: #1f9e8f;      /* teal */
  --accent-2: #2f6df6;    /* blue */

  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 67, .06);
  --shadow: 0 12px 32px rgba(15, 42, 67, .10);
  --container: 1140px;

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0; }

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 760px; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.eyebrow {
  display: inline-block; margin: 0 0 .75rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section-sub { color: var(--muted); margin-top: .75rem; }

section { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--b); color: #fff; border: 1px solid transparent;
  padding: .7rem 1.25rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1rem; background: var(--grad); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: #fff; }
.nav-desktop a.btn-sm {color: #fff; }
/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 251, .8);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); }
.brand-logo { border-radius: 8px; }
.brand-name strong { color: var(--accent); font-weight: 600; }

.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-desktop a { font-weight: 500; color: var(--ink); position: relative; }
.nav-desktop a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad);
  transition: width .25s ease;
}
.nav-desktop a:not(.btn):hover::after { width: 100%; }
@media (min-width: 900px) { .nav-desktop { display: flex; } }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Mobile slide right */
.nav-overlay { position: fixed; inset: 0; background: rgba(15, 42, 67, .45); z-index: 110; opacity: 0; transition: opacity .3s ease; }
.nav-overlay.open { opacity: 1; }
.nav-mobile {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(82vw, 340px);
  background: var(--surface); z-index: 120; padding: 5rem 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 40px rgba(15,42,67,.12);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a { font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.nav-mobile a.btn { color: #fff; background: var(--grad); justify-content: center; margin-top: .5rem; }
.nav-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--muted); cursor: pointer; }

/* ---------- Section dividers (inclinées) ---------- */
.section-divider { position: absolute; left: 0; right: 0; height: 60px; pointer-events: none; }
.divider-down { bottom: -1px; background: var(--bg); clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%); }
.divider-up   { bottom: -1px; background: var(--surface); clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%); }
.divider-hero { bottom: -1px; background: var(--bg); clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,158,143,.12), transparent 60%),
    radial-gradient(900px 400px at 0% 10%, rgba(47,109,246,.10), transparent 55%),
    var(--bg);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr .95fr; } }

.hero-title { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); margin: 1.1rem 0 1.75rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.75rem; padding: 0; margin: 2.25rem 0 0; }
.hero-trust strong { display: block; font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); }
.hero-trust li { color: var(--muted); font-size: .9rem; }

.hero-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-flex; padding: .7rem; border-radius: 12px; color: #fff; background: var(--grad); margin-bottom: 1rem; }

.benefits { background: var(--bg); }

/* ---------- Features ---------- */
.features { background: var(--surface); }
.feature-list { display: grid; gap: 1.5rem; }
.feature-row { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.feature-text { padding: 1.5rem; border-left: 3px solid transparent; border-image: var(--grad) 1; background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.feature-num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent); }
.feature-text h3 { font-size: 1.2rem; margin: .35rem 0 .5rem; }
.feature-text p { color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Reviews ---------- */
.reviews { background: var(--surface); }
.review { display: flex; flex-direction: column; gap: .75rem; }
.review p { color: var(--ink); font-size: 1.02rem; }
.review footer { color: var(--muted); font-size: .9rem; margin-top: auto; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 1.25rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Map ---------- */
.map-section { background: var(--surface); padding-bottom: 0; }
.map-embed { margin-top: 2rem; height: clamp(300px, 45vw, 460px); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.02); }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .8rem .9rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(31,158,143,.12); outline: none; }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.1); }
.error-msg { display: block; min-height: 1rem; margin-top: .35rem; font-size: .82rem; color: #d64545; }

/* Honeypot — invisible & hors flux */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit states */
#submitBtn { background: var(--grad); position: relative; }
.btn-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; display: none; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
form.loading .btn-spinner { display: inline-block; }
form.loading .btn-label { opacity: .85; }
form.loading #submitBtn { pointer-events: none; filter: saturate(.8); }

.form-status { margin: 1rem 0 0; font-weight: 500; text-align: center; min-height: 1.2rem; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #d64545; }

/* Fade out after success */
.contact-form.sent { animation: fadeOut .6s ease forwards .2s; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(8px); visibility: hidden; height: 0; padding: 0; margin: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd9e4; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name strong { color: var(--accent); }
.footer-brand p { color: #9fb2c4; max-width: 42ch; margin: .75rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-content: start; }
.footer-nav a { color: #cdd9e4; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; }
.footer-bottom p { color: #8aa0b3; font-size: .85rem; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
