@import url('reset.css');
@import url('variables.css');
@import url('fonts.css');

body {
  height: 100vh;
  height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow: hidden;
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.5rem, 4vw, 3rem) var(--gutter);
  isolation: isolate;
  max-width: 1440px;
  margin-inline: auto;
}

.content {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vh, 3.5rem);
  max-width: 38rem;
  padding-right: var(--gutter);
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.brand__logo {
  width: clamp(7.5rem, 16vw, 10rem);
  height: auto;
  flex: none;
}

.brand__tagline {
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-gold);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Contenu ---------- */
.title {
  font-size: var(--fs-title);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
}

.title__accent {
  display: block;
  color: var(--color-blue);
  background: linear-gradient(100deg, var(--color-blue) 30%, var(--color-navy));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: var(--color-muted);
}

/* ---------- Bouton ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.9rem 1.6rem;
  border: 1.5px solid var(--color-blue);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn strong {
  font-weight: 800;
  color: var(--color-blue);
  transition: color 0.3s var(--ease);
}
.btn__arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn:hover strong,
.btn:focus-visible strong {
  color: #fff;
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(4px);
}
.btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* ---------- Portrait ---------- */
.visual {
  position: relative;
  justify-self: end;
  width: min(100%, 40rem);
  aspect-ratio: 1;
  margin-right: -6%;
}

.visual__ring {
  position: absolute;
  inset: -3%;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 75%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 75%);
}

.visual__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 55% 62%;
}

/* ---------- Footer ---------- */
.footer {
  position: absolute;
  z-index: 2;
  width: max-content;
  left: auto;
  right: 0;
  bottom: clamp(0.75rem, 2.5vh, 1.5rem);
}
@media (max-width: 1440px) {
  .footer {
    right: var(--gutter);
  }
}

.footer__text {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

.footer__text strong {
  font-weight: 700;
  color: var(--color-blue-dark);
}

.footer__dot {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-gold);
  translate: 0 -0.04em; /* ajustement optique : point centré sur le texte */
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(246 221 98 / 0.7);
  }
  50% {
    box-shadow: 0 0 0 0.4rem rgb(246 221 98 / 0);
  }
}

/* ---------- Animations ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand,
.message,
.btn {
  animation: rise 0.9s var(--ease) both;
}
.message {
  animation-delay: 0.15s;
}
.btn {
  animation-delay: 0.3s;
}
.visual {
  animation: reveal 1.2s var(--ease) 0.1s both;
}

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

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }
  .visual {
    margin-right: -10%;
  }
  /* .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  } */
  .brand__tagline {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.75rem;
    border-top: 2px solid var(--color-gold);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) and (min-height: 521px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(min-content, 1fr) auto; /* contenu centré dans l'espace libre, portrait ancré en bas */
    align-content: stretch;
    gap: 0;
    padding: 1rem 0 0;
  }
  .content {
    align-self: center;
    padding: 0 var(--gutter) 1rem;
    gap: 1.25rem;
    max-width: none;
    justify-content: center;
  }
  .title,
  .lead {
    text-align: center;
  }
  .title {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }
  .lead {
    margin-top: 0.5rem;
  }
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .brand__logo {
    width: 6.5rem;
  }
  .brand__tagline {
    padding: 0 0 0 1rem;
    border-top: 0;
    border-left: 2px solid var(--color-gold);
    font-size: 0.65rem;
  }
  .btn {
    margin-inline: auto;
    padding-block: 0.7rem;
  }
  /* portrait : cercle pleine largeur, sa moitié haute reste visible sous le bouton */
  .visual {
    justify-self: center;
    width: max(82vw, min(100vw, calc(100dvh - 21rem))); /* grandit sur les écrans hauts */
    margin: 0 0 -5vw;
  }
  .visual__photo {
    object-position: 55% 45%;
  }
  /* footer discret : texte vertical sur le bord droit, sans pastille */
  .footer {
    left: auto;
    right: 1.1rem;
    bottom: 0.75rem;
  }
  .footer__text {
    writing-mode: vertical-rl;
    rotate: 180deg; /* lecture de bas en haut */
    gap: 0.5rem;
    font-size: 0.7rem;
    color: rgb(63 63 63 / 0.9);
    text-shadow: 0 0 3px #fff, 0 0 6px #fff; /* lisible sur le fond blanc comme sur la photo */
  }
  .footer__text strong {
    color: inherit;
  }
  .footer__dot {
    translate: none;
    width: 0.45rem;
    height: 0.45rem;
  }
}

/* ---------- Écrans peu hauts (paysage) : tout tient sans scroll ---------- */
@media (max-height: 520px) {
  .page {
    padding-block: 1rem;
  }
  .footer {
    bottom: 0.5rem;
  }
  .content {
    gap: 1rem;
  }
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .brand__logo {
    width: 5.5rem;
  }
  .brand__tagline {
    padding: 0 0 0 1rem;
    border-top: 0;
    border-left: 2px solid var(--color-gold);
  }
  .title {
    font-size: clamp(1.75rem, 11vh, 3rem);
  }
  .lead {
    margin-top: 0.5rem;
  }
  .btn {
    padding: 0.6rem 1.2rem;
  }
  .visual {
    width: min(100%, 90vh);
  }
}
