/*
  Chênes Immobilier - feuille de style principale.
  Les couleurs ci-dessous reprennent la charte graphique fournie.
*/
:root {
  --royal-blue: #2f4fa3;
  --night-blue: #082f4a;
  --oak-green: #3e6b1f;
  --prestige-gold: #d9b44a;
  --off-white: #f5f3ee;
  --light-gray: #d9d9d9;
  --anthracite: #2b2b2b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 47, 74, 0.16);
  --title-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text-font: Montserrat, Lato, "Segoe UI", Arial, sans-serif;
  --anchor-offset: 110px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  color: var(--anthracite);
  background: var(--off-white);
  font-family: var(--text-font);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 14px 36px;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled,
.site-header.compact {
  min-height: 78px;
  color: var(--night-blue);
  background: rgba(245, 243, 238, 0.96);
  box-shadow: 0 14px 44px rgba(8, 47, 74, 0.12);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 159px;
  height: auto;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--prestige-gold);
}

.nav-cta {
  border: 1px solid currentColor;
  padding: 10px 16px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(8, 47, 74, 0.08);
  border-radius: 4px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 47, 74, 0.88), rgba(8, 47, 74, 0.58) 44%, rgba(8, 47, 74, 0.16)),
    linear-gradient(0deg, rgba(8, 47, 74, 0.34), rgba(8, 47, 74, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 160px 0 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--prestige-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: inherit;
  font-family: var(--title-font);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero h1 {
  max-width: 950px;
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.8vw, 4.7rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.hero-lead {
  margin: 0 0 10px;
  color: var(--prestige-gold);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
}

.hero-text {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--royal-blue);
}

.button-primary:hover {
  color: var(--night-blue);
  background: var(--prestige-gold);
}

.button-secondary {
  color: var(--white);
  border-color: var(--prestige-gold);
  background: rgba(8, 47, 74, 0.12);
}

.button-secondary:hover {
  color: var(--white);
  border-color: var(--night-blue);
  background: var(--night-blue);
}

.intro-band {
  background: var(--night-blue);
  color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.intro-grid p,
.intro-grid span {
  margin: 0;
}

.intro-grid span {
  color: var(--prestige-gold);
  font-family: var(--title-font);
  font-size: 1.45rem;
}

.section {
  padding: 105px 0;
}

.section[id] {
  scroll-margin-top: var(--anchor-offset);
}

.split,
.feature-grid,
.opening-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 64px;
  align-items: start;
}

.prose p {
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.signature {
  color: var(--oak-green);
  font-family: var(--title-font);
  font-size: 1.7rem !important;
}

.section-about {
  background: var(--white);
}

.section-feature {
  background: #eef1e9;
}

.feature-intro {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--night-blue);
  font-size: 1.08rem;
  font-weight: 700;
}

.image-panel img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.difference-list {
  display: grid;
  gap: 16px;
}

.difference-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(8, 47, 74, 0.16);
}

.difference-list span,
.offer-number {
  color: var(--prestige-gold);
  font-family: var(--title-font);
  font-size: 1.45rem;
  font-weight: 700;
}

.difference-list h3,
.difference-list p {
  margin: 0;
}

.difference-list p {
  grid-column: 2;
}

.section-offers {
  color: var(--white);
  background: var(--night-blue);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

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

.offer-card {
  min-height: 320px;
  padding: 30px;
  border: 1px solid rgba(217, 180, 74, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.offer-card p {
  margin-bottom: 0;
}

.section-opening {
  background: var(--off-white);
}

.opening-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.opening-content {
  padding-right: 24px;
}

.opening-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.agency-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.agency-member {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  color: var(--night-blue);
  background: var(--white);
  border-left: 4px solid var(--prestige-gold);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.agency-member img {
  width: 168px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.agency-member h3 {
  margin-bottom: 6px;
  font-size: 1.72rem;
}

.agency-member p {
  margin: 0 0 6px;
  font-weight: 800;
}

.agency-member a {
  color: var(--royal-blue);
  font-weight: 800;
  text-decoration: none;
}

.agency-member a:hover {
  color: var(--oak-green);
}

.section-realisations {
  background: var(--white);
}

.section-realisations .section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
}

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

.realisation-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  border: 0;
  border-radius: 6px;
  background: var(--night-blue);
  box-shadow: 0 18px 44px rgba(8, 47, 74, 0.14);
  cursor: pointer;
}

.realisation-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.realisation-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(0deg, rgba(8, 47, 74, 0.82), rgba(8, 47, 74, 0));
  font-weight: 800;
  text-align: left;
}

.realisation-item:hover img,
.realisation-item:focus-visible img {
  filter: saturate(0.94) brightness(0.9);
  transform: scale(1.035);
}

.realisation-item:focus-visible {
  outline: 3px solid var(--prestige-gold);
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
}

.realisation-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

.realisation-modal[hidden] {
  display: none;
}

.realisation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 31, 50, 0.86);
}

.realisation-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  padding: 14px;
  color: var(--white);
  background: var(--night-blue);
  border: 1px solid rgba(217, 180, 74, 0.48);
  border-radius: 6px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.realisation-modal-panel img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 4px;
  background: #061f32;
}

.realisation-modal-panel p {
  margin: 12px 48px 0 2px;
  color: var(--prestige-gold);
  font-weight: 800;
}

.realisation-modal-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  color: var(--white);
  background: rgba(8, 47, 74, 0.82);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.realisation-modal-close:hover,
.realisation-modal-close:focus-visible {
  color: var(--night-blue);
  background: var(--prestige-gold);
  outline: none;
}

.section-contact {
  background: var(--white);
}

.contact-note {
  max-width: 520px;
}

.direct-contact {
  margin-top: 24px;
  color: var(--night-blue);
  font-weight: 800;
}

.contact-form {
  padding: 34px;
  color: var(--anthracite);
  border-top: 4px solid var(--prestige-gold);
  border-radius: 6px;
  background: var(--off-white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  color: var(--night-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(8, 47, 74, 0.18);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--night-blue);
  background: var(--white);
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(217, 180, 74, 0.54);
  border-color: var(--prestige-gold);
}

.hidden-field {
  display: none;
}

.captcha-row {
  margin-top: 4px;
}

.captcha-control {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.captcha-control img {
  width: 190px;
  height: 64px;
  border: 1px solid rgba(8, 47, 74, 0.18);
  border-radius: 6px;
  background: var(--white);
}

.captcha-refresh {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--prestige-gold);
  border-radius: 4px;
  color: var(--night-blue);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.captcha-refresh:hover {
  color: var(--white);
  background: var(--night-blue);
  border-color: var(--night-blue);
}

.form-privacy {
  margin: 4px 0 22px;
  font-size: 0.88rem;
}

.form-privacy a {
  color: var(--royal-blue);
  font-weight: 800;
}

.closing-baseline {
  padding: 58px 0;
  color: var(--prestige-gold);
  background: var(--night-blue);
  text-align: center;
}

.closing-baseline p {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 1;
}

.site-footer {
  padding: 42px 0;
  color: var(--white);
  background: #061f32;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-footer img {
  width: 112px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--prestige-gold);
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(640px, calc(100% - 44px));
  padding: 18px;
  color: var(--white);
  background: var(--night-blue);
  border: 1px solid rgba(217, 180, 74, 0.55);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.page-main {
  padding-top: 78px;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--night-blue), var(--royal-blue));
}

.page-hero p {
  font-size: 1.08rem;
}

.contact-card {
  padding: 30px;
  border-left: 4px solid var(--prestige-gold);
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-page {
  background: var(--white);
}

.legal-page h2 {
  margin-top: 34px;
  color: var(--night-blue);
  font-size: 2rem;
}

@media (max-width: 920px) {
  :root {
    --anchor-offset: 180px;
  }

  .site-header {
    min-height: 78px;
    padding: 12px 20px;
  }

  .nav-toggle {
    display: block;
    color: currentColor;
  }

  .site-nav:not(.always-visible) {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    color: var(--night-blue);
    background: var(--off-white);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav.always-visible {
    gap: 12px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 47, 74, 0.9), rgba(8, 47, 74, 0.52));
  }

  .intro-grid,
  .split,
  .feature-grid,
  .opening-grid,
  .contact-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .realisations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-panel img {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

  .agency-team {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: auto;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .section-inner,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 124px;
  }

  h1 {
    font-size: 2.72rem;
  }

  .hero-content {
    padding-top: 128px;
  }

  .hero {
    min-height: 820px;
  }

  .section {
    padding: 72px 0;
  }

  .contact-form {
    padding: 22px;
  }

  .agency-member {
    grid-template-columns: 1fr;
  }

  .agency-member img {
    width: 100%;
    max-width: 240px;
  }

  .realisations-grid {
    gap: 12px;
  }

  .realisation-item span {
    padding: 36px 12px 10px;
    font-size: 0.9rem;
  }

  .realisation-modal {
    padding: 12px;
  }

  .realisation-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 10px;
  }

  .realisation-modal-panel img {
    max-height: calc(100vh - 118px);
  }

  .realisation-modal-close {
    top: 16px;
    right: 16px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }
}
