:root {
  --green: #0D4B3E;
  --green-ink: #073d33;
  --ochre: #C98A2E;
  --sand: #E8D9B5;
  --gold: #F2C94C;
  --red: #B23D2A;
  --blue: #1D3C5B;
  --charcoal: #1A1A1A;
  --ivory: #F7F5F0;
  --paper: #fbf8f1;
  --line: rgba(13, 75, 62, .13);
  --shadow: 0 18px 42px rgba(28, 34, 27, .08);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 217, 181, .23), transparent 26rem),
    var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--green);
  color: white;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: min(690px, 43.4vw);
  overflow: hidden;
  isolation: isolate;
  background-color: #f8f3e9;
  background-image: url("assets/photo-principale.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247,245,240,.34) 0%, rgba(247,245,240,.12) 42%, rgba(247,245,240,0) 62%);
}
.hero__content {
  width: min(760px, 48vw);
  padding: clamp(120px, 8.6vw, 174px) 0 clamp(55px, 4vw, 80px) clamp(68px, 4.3vw, 88px);
  position: relative;
  z-index: 3;
}
.hero__eyebrow {
  margin: 0 0 18px;
  color: var(--ochre);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 770px;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(4rem, 5.55vw, 7rem);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.hero h1 span { color: var(--ochre); }
.hero__intro {
  max-width: 680px;
  margin: clamp(22px, 2vw, 35px) 0 0;
  color: #2c2f2d;
  font-size: clamp(1rem, 1.27vw, 1.55rem);
  font-weight: 480;
  line-height: 1.46;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  margin-top: clamp(25px, 2.1vw, 39px);
  padding: 0 31px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b9770f, #d89c14);
  color: white;
  box-shadow: 0 13px 28px rgba(155, 99, 16, .22);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.hero__cta span { font-size: 1.7em; line-height: 1; transform: translateY(-1px); }
.hero__cta:hover,
.hero__cta:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(155,99,16,.28); filter: saturate(1.08); }
.hero__mobile-visual { display: none; }

.doors-section {
  position: relative;
  z-index: 5;
  padding: clamp(22px, 2.2vw, 42px) clamp(14px, 1.5vw, 30px) clamp(54px, 5vw, 92px);
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.86), transparent 35rem),
    linear-gradient(180deg, #fbfaf6 0%, #f7f3ea 100%);
  border-top: 1px solid rgba(201, 138, 46, .08);
}
.section-heading { text-align: center; max-width: 1180px; margin: 0 auto clamp(18px, 1.8vw, 32px); }
.section-heading h2 {
  margin: 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.2vw, 4.2rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.028em;
}
.section-heading__ornament {
  display: block;
  width: min(620px, 55vw);
  height: auto;
  margin: 20px auto 24px;
  object-fit: contain;
  object-position: center;
}
.section-heading p {
  margin: 0;
  color: #474c49;
  font-size: clamp(.96rem, 1.08vw, 1.22rem);
  line-height: 1.55;
}

.doors-grid {
  max-width: 2022px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.door-card {
  --accent: var(--green);
  position: relative;
  min-width: 0;
  min-height: 396px;
  padding: 12px 11px 21px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(13, 75, 62, .13);
  border-radius: 13px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 3px 0 rgba(255,255,255,.7) inset;
  text-align: center;
  text-decoration: none;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease, background .26s ease;
}
.door-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 75%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 48%);
  transition: opacity .26s ease;
}
.door-card:hover,
.door-card:focus-visible {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  outline: 0;
}
.door-card:hover::before,
.door-card:focus-visible::before { opacity: 1; }
.door-card__visual {
  width: 100%;
  height: 205px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.door-card__visual img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.door-card__icon {
  width: 54px;
  height: 54px;
  margin: -5px 0 8px;
  object-fit: contain;
  transition: transform .25s ease;
}
.door-card:hover .door-card__icon { transform: scale(1.06); }
.door-card h3 {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.12vw, 1.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.door-card p {
  max-width: 190px;
  margin: 8px auto 0;
  color: #464a48;
  font-size: clamp(.72rem, .72vw, .88rem);
  line-height: 1.35;
}
.door-card__arrow {
  width: 28px;
  height: 28px;
  margin-top: auto;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .2s ease, transform .2s ease;
}
.door-card:hover .door-card__arrow,
.door-card:focus-visible .door-card__arrow { opacity: 1; transform: translateY(0); }

.door-card--discover { --accent: #0D4B3E; }
.door-card--travel { --accent: #C78A20; }
.door-card--live { --accent: #0D4B3E; }
.door-card--return { --accent: #C98A2E; }
.door-card--business { --accent: #A53226; }
.door-card--invest { --accent: #1D3C5B; }
.door-card--diaspora { --accent: #0D4B3E; }

@media (max-width: 1500px) {
  .doors-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1260px; }
  .door-card { min-height: 420px; }
  .door-card__visual { height: 235px; }
}

@media (max-width: 1050px) {

  .hero { min-height: 600px; background-position: center top; }
  .hero__content { width: 59vw; padding-left: 42px; padding-top: 115px; }
  .hero h1 { font-size: clamp(3.7rem, 7vw, 5.7rem); }
  .hero__intro { font-size: 1.08rem; }
}

@media (max-width: 780px) {

  .hero {
    min-height: auto;
    padding-bottom: 0;
    background-image: none;
    background-color: #f7f2e7;
  }
  .hero::before {
    background:
      radial-gradient(circle at 15% 10%, rgba(232,217,181,.34), transparent 18rem),
      linear-gradient(180deg, rgba(255,255,255,.2), transparent 70%);
  }
  .hero__content {
    width: 100%;
    padding: 72px 24px 38px;
  }
  .hero__eyebrow { font-size: .7rem; margin-bottom: 13px; }
  .hero h1 { max-width: 650px; font-size: clamp(3.25rem, 15vw, 5.4rem); line-height: .89; }
  .hero__intro { max-width: 620px; font-size: 1.02rem; }
  .hero__cta { min-height: 58px; padding-inline: 24px; font-size: .86rem; }
  .hero__mobile-visual {
    display: block;
    width: 100%;
    height: min(68vw, 440px);
    margin-top: -10px;
    background-image: url("assets/photo-principale.webp");
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: 80% center;
  }

  .doors-section { padding-inline: 16px; padding-top: 32px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .section-heading__ornament {
    width: min(520px, 92vw);
    height: auto;
    margin-top: 18px;
    margin-bottom: 22px;
  }
  .doors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .door-card { min-height: 390px; padding: 10px 10px 19px; }
  .door-card__visual { height: 210px; }
  .door-card h3 { font-size: 1.16rem; }
  .door-card p { font-size: .78rem; }
}

@media (max-width: 520px) {
  .hero__content { padding-top: 62px; padding-inline: 19px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.35rem); }
  .hero__mobile-visual { height: 74vw; background-size: auto 100%; background-position: 80% center; }
  .doors-section { padding-inline: 12px; }
  .section-heading p { padding-inline: 6px; font-size: .91rem; }
  .doors-grid { grid-template-columns: 1fr; max-width: 430px; }
  .door-card { min-height: 430px; }
  .door-card__visual { height: 250px; }
  .door-card h3 { font-size: 1.35rem; }
  .door-card p { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
