:root {
  --ivory: #f7f0e5;
  --ivory-card: rgba(255, 252, 246, 0.88);
  --sage: #5f6850;
  --sage-dark: #4d5641;
  --gold: #b58b3f;
  --gold-soft: #d8c28f;
  --ink: #47483f;
  --muted: #66665c;
  --shadow: 0 22px 55px rgba(75, 67, 48, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ivory);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

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

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(42px, 5vw, 80px) clamp(24px, 5vw, 80px) 34px;
  isolation: isolate;

  /* Remplacer ce fichier par le fond complet de la maquette. */
  background:
    linear-gradient(rgba(249, 244, 235, 0.54), rgba(249, 244, 235, 0.65)),
    url("/images/background.png") center / cover no-repeat;
}

/* Voile lumineux, comme sur la maquette. */
.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.72), transparent 45%),
    linear-gradient(90deg, rgba(247, 240, 229, 0.18), transparent 18%, transparent 82%, rgba(247, 240, 229, 0.18));
}

.portal__quote {
  position: absolute;
  top: clamp(28px, 4vw, 58px);
  right: clamp(30px, 7vw, 110px);
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.76rem, 1vw, 1.02rem);
  line-height: 1.95;
  letter-spacing: 0.24em;
}

.portal__quote::after {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  margin-top: 18px;
  background: var(--gold);
}

.portal__layout {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(270px, 420px) minmax(260px, 430px);
  grid-template-areas: "sophro brand reiki";
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 5vw, 88px);
  width: min(1480px, 100%);
  margin: auto;
}

.activity-card--sophrology {
  grid-area: sophro;
}

.activity-card--reiki {
  grid-area: reiki;
}

.brand {
  grid-area: brand;
}

.activity-card {
  position: relative;
  overflow: hidden;
  color: inherit;
  background: var(--ivory-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.activity-card:hover,
.activity-card:focus-visible {
  border-color: #c9a65e;
  outline: none;
  box-shadow: 0 28px 70px rgba(75, 67, 48, 0.27), 0 0 0 5px rgba(181, 139, 63, 0.13);
  transform: translateY(-7px);
}

.activity-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 8.6;
  margin: 18px 18px 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.activity-card__image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(255, 252, 246, 0.66));
  pointer-events: none;
}

.activity-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.activity-card:hover .activity-card__image {
  transform: scale(1.035);
}

.activity-card__body {
  padding: 23px 34px 27px;
  text-align: center;
}

.activity-card__title {
  margin: 0;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.gold-line {
  display: block;
  width: 68px;
  height: 1px;
  margin: 17px auto;
  background: var(--gold);
}

.gold-line--wide {
  width: 82px;
  margin-block: 24px 30px;
}

.activity-card__benefits {
  min-height: 7.1em;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  line-height: 1.78;
  letter-spacing: 0.18em;
}

.activity-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 285px);
  min-height: 54px;
  margin: 0 auto;
  padding: 12px 26px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: #fffaf0;
  background: linear-gradient(135deg, #69745c, #4e5843);
  box-shadow: 0 8px 20px rgba(72, 84, 62, 0.25);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.activity-card__arrow {
  margin-left: 24px;
  font-size: 1.8rem;
  font-weight: 200;
  line-height: 0;
}

.activity-card__caption {
  margin: 25px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.79rem;
  letter-spacing: 0.2em;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 630px;
  text-align: center;
}

.brand__watermark {
  position: absolute;
  /*top: 50%;*/
  left: 50%;
  z-index: -1;
  color: rgba(181, 139, 63, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15rem, 26vw, 27rem);
  line-height: 0.8;
  transform: translate(-50%, -54%);
  user-select: none;
}

.brand__logo {
  width: min(100%, 330px);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 13px 25px rgba(77, 68, 47, 0.13));
}

.brand__subtitle {
  margin: 26px 0 0;
  color: var(--sage);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.92rem, 1.25vw, 1.15rem);
  line-height: 1.75;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.brand__subtitle span {
  display: inline-block;
  margin-right: 0.28em;
}

.brand__message {
  margin: 0;
  color: #606257;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(1.08rem, 1.7vw, 1.55rem);
  line-height: 1.55;
  transform: rotate(-2deg);
}

.brand__message strong {
  color: var(--sage-dark);
  font-size: 1.18em;
  font-weight: 400;
}

.portal__footer {
  margin-top: clamp(26px, 4vw, 50px);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.7rem, 0.95vw, 0.9rem);
  letter-spacing: 0.27em;
  text-align: center;
  text-transform: uppercase;
}

.portal__footer span {
  padding-inline: 14px;
  color: var(--gold);
}

/* Tablette : conservation des trois zones, avec dimensions réduites. */
@media (max-width: 1120px) {
  .portal {
    padding-inline: 24px;
  }

  .portal__layout {
    grid-template-columns: minmax(230px, 1fr) minmax(220px, 280px) minmax(230px, 1fr);
    gap: 22px;
  }

  .activity-card__body {
    padding-inline: 22px;
  }

  .brand {
    min-height: 540px;
  }

  .brand__logo {
    width: min(100%, 255px);
  }
}

/* Téléphone : logo en premier, cartes l'une sous l'autre. */
@media (max-width: 780px) {
  .portal {
    display: block;
    min-height: 100vh;
    padding: 22px 15px 30px;
    background-position: center;
  }

  .portal__quote {
    position: static;
    width: min(100%, 230px);
    margin: 0 8px 18px auto;
    font-size: 0.72rem;
    line-height: 1.72;
    text-align: right;
  }

  .portal__quote::after {
    margin-left: auto;
  }

  .portal__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "sophro"
      "reiki";
    gap: 18px;
    width: min(100%, 570px);
  }

  .brand {
    min-height: auto;
    padding: 0 12px 18px;
  }

  .brand__watermark {
    font-size: 15rem;
    opacity: 0.8;
  }

  .brand__logo {
    width: min(78vw, 280px);
    max-height: 330px;
  }

  .brand__subtitle {
    margin-top: 14px;
    font-size: 0.78rem;
  }

  .brand__message,
  .brand > .gold-line {
    display: none;
  }

  .activity-card__image-wrap {
    margin: 12px 12px 0;
    aspect-ratio: 16 / 7.8;
  }

  .activity-card__body {
    padding: 18px 20px 20px;
  }

  .activity-card__title {
    font-size: 1.45rem;
  }

  .activity-card__benefits {
    min-height: 0;
    margin-bottom: 18px;
    font-size: 0.86rem;
    line-height: 1.7;
  }

  .activity-card__button {
    min-height: 48px;
    font-size: 0.88rem;
  }

  .activity-card__caption {
    display: none;
  }

  .portal__footer {
    margin-top: 28px;
    font-size: 0.64rem;
    line-height: 1.8;
    letter-spacing: 0.2em;
  }

  .portal__footer span {
    padding-inline: 7px;
  }
}

@media (max-width: 380px) {
  .activity-card__title {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
  }

  .activity-card__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
