/* ==========================================================
   LE SOUFFLE D'ANANTA
   Laboratoire v1
   Feuille de style nettoyée
   ========================================================== */

body {
  background: #ddd7ce;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------
   Page et toile maître — FIGÉES
   -------------------------------------------------- */

.page {
  position: relative;
  isolation: isolate;
  width: min(100%, 1024px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      #faf9f6 0,
      #f7f5f0 900px,
      #f3efe8 1500px,
      #f3efe8 100%
    );
  box-shadow: 0 0 0 1px rgba(87, 74, 64, .08);
}

.page__painting {
  position: absolute;
  top: 0;
  left: 0;

  z-index: 0;

  width: 100%;
  aspect-ratio: 2 / 3;

  pointer-events: none;
}

/* Une seule toile, stabilisée en haut de la page. */
.page__painting::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    url("../assets/images/toile-desert.webp")
    center top / 100% auto
    no-repeat;

  opacity: .90;

  filter:
    saturate(.84)
    brightness(1.07)
    contrast(.96);
}

/* Raccord provisoire vers le fond sable, sans répétition d’image. */
.page__painting::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;

  height: 28%;

  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(243, 239, 232, .08) 22%,
      rgba(243, 239, 232, .34) 48%,
      rgba(243, 239, 232, .76) 76%,
      #f3efe8 100%
    );
}

/* La toile désertique longue accompagne l’accueil et les pages juridiques
   sans répétition, sans raccord CSS et sans voile terminal. */
.page--home .page__painting,
.page--information .page__painting {
  bottom: 0;
  height: 100%;
  aspect-ratio: auto;
}

.page--home .page__painting::before,
.page--information .page__painting::before {
  background-image:
    url("../assets/images/toile-desert-longue-v2.webp");
}

.page--cgv .page__painting::before {
  background-image:
    url("../assets/images/toile-desert-cgv.webp");
  background-size: 100% 100%;
}

.page--home .page__painting::after,
.page--information .page__painting::after {
  content: none;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 92% 56% at -2% 20%,
      rgba(255, 255, 253, .96) 0%,
      rgba(253, 253, 250, .88) 34%,
      rgba(251, 251, 248, .58) 58%,
      rgba(250, 250, 247, .22) 78%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 76% 48% at 4% 58%,
      rgba(252, 252, 249, .82) 0%,
      rgba(251, 251, 248, .56) 42%,
      rgba(250, 250, 247, .24) 66%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 64% 34% at 10% 88%,
      rgba(251, 251, 248, .54) 0%,
      rgba(250, 250, 247, .24) 58%,
      transparent 100%
    );
}

.page::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 58%;
  pointer-events: none;
  opacity: .10;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(83, 71, 63, .018) 0 1px,
      transparent 1px 6px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, .04) 0 1px,
      transparent 1px 9px
    );
  -webkit-mask-image:
    radial-gradient(
      ellipse 100% 72% at 0% 50%,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, .55) 72%,
      transparent 100%
    );
  mask-image:
    radial-gradient(
      ellipse 100% 72% at 0% 50%,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, .55) 72%,
      transparent 100%
    );
}

.header,
main,
.footer {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------
   Header
   -------------------------------------------------- */

.header {
  display: flex;
  align-items: center;
  height: 184px;
  padding-top: 36px;
  padding-left: 62px;
}

.header__seal {
  position: relative;
  width: 80px;
  height: 99px;
  flex: 0 0 auto;
}

.header__seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 30px;
  padding-top: 17px;
  font-size: 16px;
}

.header__nav a {
  position: relative;
  white-space: nowrap;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: transparent;
}

.header__nav a.is-active {
  color: var(--gold);
}

.header__nav a.is-active::after {
  background: var(--gold);
}

/* --------------------------------------------------
   Hero
   -------------------------------------------------- */

.hero {
  margin-left: 73px;
  padding-top: 0px;
  background: transparent;
}

.hero h1 {
  max-width: none;
  white-space: nowrap;
  color: #5c5148;
  font-size: 66px;
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.018em;
}

.hero__signature {
  margin-top: 28px;
  color: var(--gold);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .30em;
}

.hero__line {
    display: block;
    width: 42px;
    height: 1px;
    margin-top: 42px;
    background: var(--gold);
    opacity: .72;
}

.hero__intro {
  max-width: 520px;
  margin-top: 56px;
  color: #786e64;
  font-size: 18px;
  line-height: 1.78;
}


/* --------------------------------------------------
   Passage
   -------------------------------------------------- */

.passage {
  position: relative;
  z-index: 2;
  margin-left: 74px;
  padding-top: 64px;
  background: transparent;
}

.passage h2,
.echos h2 {
  color: #5c5148;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -.015em;
}

.passage p {
  max-width: 440px;
  margin-top: 22px;
  color: #786e64;
  font-size: 15px;
  line-height: 1.75;
}

/* --------------------------------------------------
   Échos
   -------------------------------------------------- */

.echos {
  position: relative;
  z-index: 2;
  padding: 0 74px;
  background: transparent;
}

.echos h2 {
    margin-left: 18px;
    margin-bottom: 18px;
}

.echos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-top: 34px;
    align-items: stretch;
}

.echo {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 208px;
  padding: 26px 30px 27px;
  border: 1px solid rgba(93, 78, 63, .07);
  background: rgba(253, 250, 245, .66);
  box-shadow: 0 18px 46px rgba(81, 59, 33, .045);
  backdrop-filter: blur(3px);
}

.echo:nth-child(1) {
  border-radius: 31px 36px 42px 28px;
}

.echo:nth-child(2) {
  border-radius: 39px 31px 37px 42px;
}

.echo:nth-child(3) {
  border-radius: 34px 42px 30px 38px;
}

.echo__quote {
  display: block;
  height: 30px;
  color: #d4a248;
  font-size: 56px;
  line-height: .75;
  opacity: .85;
}

.echo p {
  margin-top: 9px;
  color: #786e64;
  font-size: 17px;
  line-height: 1.56;
}

.echo__rule {
  display: block;
  width: 32px;
  height: 1px;
  margin-top: auto;
  padding-top: 26px;
  margin-bottom: 0.75rem;
  opacity: .78;
}

.echo strong {
  display: block;

  margin-top: auto;
  padding-top: 26px;

  color: #ba8131;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
}

.echo__author {
  margin-top: 0;
}

/* --------------------------------------------------
   Réservation
   -------------------------------------------------- */

.reservation {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding-top: 68px;
  background: transparent;
}

.reservation p {
  color: #5c5148;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 620px;
}

.reservation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 51px;
  margin-top: 20px;
  border-radius: 999px;
  color: #fffaf1;
  background: linear-gradient(90deg, #e6bd70, #c88d30);
  box-shadow: 0 9px 22px rgba(139, 91, 27, .14);
  font-size: 15px;
  letter-spacing: .28em;
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */

.footer {
  position: relative;
  z-index: 2;
  margin-top: 90px;
  padding: 54px 74px 24px;
  background:
    linear-gradient(
      180deg,
      rgba(247, 242, 233, 0) 0%,
      rgba(239, 228, 211, .64) 100%
    );
}

.page--home .footer,
.page--information .footer {
  isolation: isolate;
  background: transparent;
}

.page--home .footer::before,
.page--information .footer::before {
  content: "";
  position: absolute;
  top: -90px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(249, 246, 239, 0) 0%,
      rgba(249, 246, 239, .18) 30%,
      rgba(247, 242, 233, .48) 66%,
      rgba(243, 235, 222, .76) 100%
    );
}

/* Les pages longues disposent d’un socle plus stable : leur footer conserve
   la même présence visuelle quelle que soit la zone de sable située dessous. */
.page--confidentialite .footer::before,
.page--cgv .footer::before {
  top: -110px;
  background:
    linear-gradient(
      to bottom,
      rgba(249, 246, 239, 0) 0%,
      rgba(249, 246, 239, .24) 30%,
      rgba(247, 242, 233, .62) 65%,
      rgba(243, 235, 222, .86) 100%
    );
}

.footer__inner {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.footer__seal {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    padding-top: 26px;
    padding-left: 18px;
}

.footer__seal img {
  width: 64px;
  height: auto;
  object-fit: contain;
}

.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__column h3 {
  margin: 0 0 16px;
  color: #5c5148;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
}

.footer__column a {
  margin-top: 8px;
  color: #786e64;
  font-size: 15px;
  line-height: 1.45;
}

.footer__column a:first-of-type {
  margin-top: 0;
}

.footer__copyright {
  margin-top: 38px;
  text-align: center;
  color: #786e64;
  font-size: 13px;
}

/* --------------------------------------------------
   Responsive de sécurité
   -------------------------------------------------- */

@media (max-width: 900px) {
  .page {
    min-height: 100vh;
  }

  .header {
    padding-inline: 30px;
  }

  .header__nav {
    gap: 30px;
    margin-left: 30px;
  }

  .echos__grid {
    grid-template-columns: 1fr;
  }

    .header {
    height: 160px;
    padding: 30px 30px 0;
  }

  .header__seal {
    width: 72px;
    height: 89px;
  }

  .header__nav {
    gap: 24px;
    margin-left: 20px;
    padding-top: 14px;
    font-size: 15px;
  }
  
    .hero {
    margin-right: 30px;
    margin-left: 30px;
  }

  .hero h1 {
    font-size: 56px;
  }

    .passage {
    margin-right: 30px;
    margin-left: 30px;
    padding-top: 56px;
  }

  .passage h2 {
    font-size: 38px;
    line-height: 1.1;
  }

  .footer {
    padding: 48px 30px 24px;
  }

  .footer__inner {
    grid-template-columns: 80px repeat(3, minmax(0, 1fr));
    gap: 30px;
  }

  .footer__seal {
    grid-column: auto;
    justify-content: flex-start;
    padding: 26px 0 0;
  }

  .footer__column:last-child {
    grid-column: auto;
    align-items: flex-start;
    text-align: left;
  }

 @media (max-width: 760px) {

    .header {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 24px 18px 32px;
  }

  .header__seal {
    width: 64px;
    height: 80px;
  }

  .header__nav {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 16px 22px;
    margin-left: 0;
    padding-top: 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  .header__nav a::after {
    bottom: -6px;
  }

    .hero {
    width: min(100% - 36px, 1100px);
    margin-right: auto;
    margin-left: auto;
  }

  .hero h1 {
    max-width: 100%;
    white-space: normal;
    font-size: clamp(2.7rem, 14vw, 3.5rem);
    line-height: 1;
  }

  .hero__signature {
    font-size: 17px;
    letter-spacing: .22em;
  }
  
    .passage {
    width: min(100% - 36px, 1100px);
    margin-right: auto;
    margin-left: auto;
    padding-top: 48px;
  }

  .passage h2 {
    font-size: 2.15rem;
    line-height: 1.1;
  }

  .passage p {
    max-width: none;
  }

  .footer {
    padding: 42px 18px 22px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer__seal {
    justify-content: center;
    padding: 0;
  }

  .footer__column,
  .footer__column:last-child {
    grid-column: auto;
    align-items: center;
    text-align: center;
  }

  .footer__column a {
    overflow-wrap: anywhere;
  }

  .footer__copyright {
    margin-top: 32px;
  }
}
}

/* ==========================================================
   Les respirations - micro animations
   ========================================================== */
