/* MARANS & AZUR — L'âme du Lauragais — finition éditoriale accueil */
@import url("/css/fonts.css");

:root {
  --brun: #4b2e20;
  --bleu: #6d8aa0;
  --creme: #f1e9dc;
  --vert: #7b7f58;
  --ink: #2a2018;
  --paper: #faf6ef;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-bottom: 0;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--creme);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brun);
  color: var(--creme);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ——— Top bar ——— */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  pointer-events: none;
}

.topbar__toggle {
  pointer-events: auto;
  display: none;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(241, 233, 220, 0.55);
  border-radius: 2px;
  background: rgba(42, 32, 24, 0.45);
  color: var(--creme);
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.topbar__menu {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 0.9rem;
}

.topbar__menu a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--creme);
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.topbar__menu a:hover,
.topbar__menu a:focus-visible {
  opacity: 1;
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
}

.topbar__commander {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(241, 233, 220, 0.75);
  border-radius: 2px;
  background: rgba(241, 233, 220, 0.16);
  font-weight: 700;
  opacity: 1;
}

@media (max-width: 720px) {
  .topbar__toggle {
    display: inline-flex;
    align-items: center;
  }
  .topbar__menu {
    display: none;
    position: absolute;
    top: calc(100% - 0.15rem);
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 12.5rem;
    padding: 0.35rem 0;
    background: rgba(42, 32, 24, 0.94);
    border: 1px solid rgba(241, 233, 220, 0.25);
    border-radius: 2px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  .topbar.is-open .topbar__menu {
    display: flex;
  }
  .topbar__menu a {
    padding: 0.7rem 0.9rem;
    text-shadow: none;
    border-bottom: 1px solid rgba(241, 233, 220, 0.12);
  }
  .topbar__menu a:last-child {
    border-bottom: none;
  }
}

/* ——— Hero full-bleed — photo cover + voile brun ——— */
.hero {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--creme);
  overflow: hidden;
  background-color: var(--brun);
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Desktop only — cadrage un peu plus large (photo portrait) ; mobile inchangé */
@media (min-width: 721px) {
  .hero {
    background-image: none;
  }
  .hero__photo {
    inset: auto;
    top: 50%;
    left: 50%;
    width: auto;
    height: 172%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 28% !important;
    transform: translate(-50%, -42%);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(75, 46, 32, 0.28) 0%,
      rgba(75, 46, 32, 0.42) 42%,
      rgba(42, 32, 24, 0.78) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(100% - 2rem, 40rem);
  max-width: 100%;
  margin: 0 auto 4.5rem;
  padding: 0 0.25rem;
  text-align: center;
  animation: riseIn 0.9s var(--ease) both;
}

@media (max-width: 720px) {
  .hero__content {
    margin-bottom: 5.25rem;
  }
}

.hero__brand {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.hero__signature {
  margin: 0.85rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  color: #f5efe6;
}

.hero__complement {
  margin: 0.55rem 0 0;
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.95rem 1.55rem;
  border: 2px solid #f1e9dc;
  border-radius: 2px;
  background: #f1e9dc;
  color: #4b2e20;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.btn:hover,
.btn:focus-visible {
  background: #fff;
  transform: translateY(-2px);
  outline: none;
}
.btn--bleu {
  background: var(--bleu);
  color: var(--creme);
  box-shadow: none;
}
.btn--bleu:hover,
.btn--bleu:focus-visible {
  background: #7a9aaf;
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--brun);
  border: 1px solid rgba(75, 46, 32, 0.35);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(75, 46, 32, 0.06);
}

/* Sticky order affordance (mobile-first) — se masque si chevauchement contenu */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(241, 233, 220, 0.96) 28%);
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  visibility: hidden;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}
.sticky-cta .btn {
  margin-top: 0;
  width: min(100%, 22rem);
  box-shadow: 0 8px 24px rgba(75, 46, 32, 0.28);
}

html.has-sticky-cta {
  scroll-padding-bottom: 5.5rem;
}
html.has-sticky-cta .main {
  padding-bottom: 6.5rem;
}

@media (max-width: 720px) {
  .sticky-cta {
    padding: 0.45rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom));
  }
  .sticky-cta .btn {
    width: min(100%, 20rem);
    padding: 0.8rem 1.15rem;
    font-size: 0.84rem;
  }
  html.has-sticky-cta {
    scroll-padding-bottom: 4.75rem;
  }
  html.has-sticky-cta .main {
    padding-bottom: 5.75rem;
  }
}

/* ——— Sections ——— */
.main {
  padding-bottom: 2.5rem;
}

.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 1.15rem;
  background: var(--creme);
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 840px) {
  .section--media .section__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
  }
  .section--media.is-flip .section__inner {
    direction: rtl;
  }
  .section--media.is-flip .section__inner > * {
    direction: ltr;
  }
}

.section__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu);
}

.section__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  color: var(--brun);
  line-height: 1.2;
}

.section__subtitle {
  margin: 0.55rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--bleu);
}

.section__body {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  max-width: 38rem;
}

.section__transition {
  margin: 1.35rem 0 0;
  max-width: 38rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--brun);
}

.section__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(75, 46, 32, 0.12);
  background: var(--brun);
  aspect-ratio: 16 / 10;
}
.section__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section__figure--pair {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 0.45rem;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
  align-items: start;
}
.section__figure--7030 {
  grid-template-columns: 65fr 35fr;
}
.section__figure--pair img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(75, 46, 32, 0.12);
}

.section__dual {
  display: grid;
  gap: 0.75rem;
}
.section__figure--wide {
  aspect-ratio: 16 / 9;
}

/* Écran 2 — Territoire / WHY */
.section--why {
  position: relative;
  isolation: isolate;
  min-height: min(88svh, 52rem);
  display: grid;
  align-items: end;
  padding: 0;
  color: var(--creme);
  overflow: hidden;
  background: var(--brun);
}
.section__why-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section__why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section__why-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(42, 32, 24, 0.25) 0%,
      rgba(42, 32, 24, 0.45) 40%,
      rgba(42, 32, 24, 0.88) 100%
    );
}
.section__inner--why {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5rem) 1.15rem clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
.section--why .section__title {
  color: var(--creme);
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
}
.section--why .section__body {
  margin-left: auto;
  margin-right: auto;
  color: rgba(241, 233, 220, 0.95);
  max-width: 40rem;
}

/* Frise reproduction */
.section__timeline-wrap {
  display: grid;
  gap: 1.25rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}
.timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  color: var(--brun);
}
.timeline__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 46, 32, 0.28);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.9);
  color: var(--brun);
}
.timeline__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}
.timeline__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}
@media (max-width: 720px) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.85rem;
  }
  .timeline__item:nth-child(4),
  .timeline__item:nth-child(5) {
    grid-column: span 1;
  }
}

/* La vie — 3 cartes */
.section--life {
  background: var(--creme);
}
.section__inner--life {
  text-align: center;
}
.section__inner--life .section__body {
  margin-left: auto;
  margin-right: auto;
}
.life-cards {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 840px) {
  .life-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}
.life-card {
  text-align: left;
  background: linear-gradient(180deg, #fffdf9, var(--creme));
  border-top: 3px solid var(--brun);
  overflow: hidden;
}
.life-card:nth-child(2) {
  border-top-color: var(--vert);
}
.life-card:nth-child(3) {
  border-top-color: var(--bleu);
}
.life-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.life-card h3 {
  margin: 1rem 1rem 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--brun);
}
.life-card p {
  margin: 0 1rem 1.15rem;
  font-size: 0.95rem;
}

/* ——— Engagement fraîcheur (léger, éditorial) ——— */
.section--engagement {
  background: var(--paper);
  border-top: 1px solid rgba(75, 46, 32, 0.08);
  border-bottom: 1px solid rgba(75, 46, 32, 0.08);
  /* bas réduit ~27 % (défaut section : clamp(2.75rem, 6vw, 4.5rem)) */
  padding-bottom: clamp(2rem, 4.4vw, 3.25rem);
}
.section__inner--engagement {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  /* haut inchangé ; bas réduit ~27 % pour rapprocher #reproduction */
  padding: clamp(2.5rem, 5vw, 3.75rem) 1.15rem clamp(1.8rem, 3.6vw, 2.7rem);
}
.section--engagement .section__title {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
}
.engagement-row {
  display: grid;
  gap: 1.75rem 1.5rem;
  text-align: center;
}
@media (min-width: 720px) {
  .engagement-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: start;
  }
  .engagement-item {
    padding: 0 1.35rem;
  }
  .engagement-item + .engagement-item {
    border-left: 1px solid rgba(75, 46, 32, 0.14);
  }
}
.engagement-item__title {
  margin: 0 0 0.65rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--brun);
  letter-spacing: 0.02em;
}
.engagement-item__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 22rem;
  margin-inline: auto;
}
.engagement-signature {
  margin: clamp(1.15rem, 2.8vw, 1.7rem) 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--brun);
  letter-spacing: 0.02em;
}

.section--exchange {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(109, 138, 160, 0.16), transparent 55%),
    var(--creme);
}
.section__inner--center {
  text-align: center;
}
.section__inner--center .section__body {
  margin-left: auto;
  margin-right: auto;
}

.conclusion {
  padding: clamp(3rem, 7vw, 4.75rem) 1.15rem;
  text-align: center;
  background:
    linear-gradient(160deg, var(--brun) 0%, #3a2419 55%, #2f3f4a 100%);
  color: var(--creme);
}
.conclusion__brand {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.06em;
}
.conclusion__signature {
  margin: 0.75rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
}
.conclusion__complement {
  margin: 0.45rem 0 0;
  font-weight: 500;
  opacity: 0.95;
}
.conclusion__secondary {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.conclusion__secondary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.conclusion .btn {
  background: var(--creme);
  color: var(--brun);
}

.site-footer {
  padding: 2rem 1.15rem 6rem;
  background: var(--brun);
  color: var(--creme);
  text-align: center;
}
.site-footer__brand {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.site-footer__tag {
  margin: 0.35rem 0 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  opacity: 0.9;
}
.site-footer__address {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  opacity: 0.88;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  font-size: 0.85rem;
}
.site-footer__links a {
  color: var(--creme);
  text-decoration: none;
  opacity: 0.85;
}
.site-footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Inner pages */
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page-hero {
  padding: 4.5rem 1.15rem 2rem;
  background:
    linear-gradient(160deg, var(--brun), #3a2419 70%, rgba(109, 138, 160, 0.45));
  color: var(--creme);
  text-align: center;
}
.page-hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.page-body {
  flex: 1;
  width: min(100% - 2rem, 40rem);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}
.page-body p {
  font-size: 1.05rem;
}
.mentions-block {
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(75, 46, 32, 0.15);
}
.mentions-block h2 {
  margin: 0 0 0.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--brun);
}
.page-body--legal {
  width: min(100% - 2rem, 44rem);
}
.legal-intro {
  margin: 0 0 1.25rem;
}
.legal-block h3 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  color: var(--brun);
}
.legal-list {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.2rem;
}
.legal-list li {
  margin: 0.25rem 0;
}
.legal-notice {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  background: #f4ebe3;
  border-left: 3px solid var(--brun);
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__content,
  .sticky-cta {
    animation: none !important;
    transition: none !important;
  }
}

.hero__content .btn {
  background: #f1e9dc;
  color: #4b2e20;
  border: 2px solid #f1e9dc;
  margin-top: 0;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__secondary-link {
  display: inline-block;
  color: #f1e9dc;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.hero__secondary-link:hover,
.hero__secondary-link:focus-visible {
  opacity: 0.92;
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
}

.hero__deadline {
  margin: 0.15rem 0 0;
  max-width: 22rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(241, 233, 220, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.hero__deadline:empty {
  display: none;
}

.hero__secondary {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  display: block;
  position: relative;
  z-index: 3;
}

.hero__secondary a {
  color: #f1e9dc;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero__secondary a:hover {
  opacity: 0.9;
}
