/* =========================
   ELLIPSE - styles principaux
   ========================= */

:root {
  --ink: #101014;
  --paper: #ffffff;
  --mauve: #a999a8;
  --mauve-deep: #8d7b8d;
  --sky: #9ac4dc;
  --line: rgba(16, 16, 20, 0.13);
  --shadow: 0 20px 55px rgba(22, 16, 24, 0.16);
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #fff;
  background: var(--mauve-deep);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* HERO */

.hero {
  position: relative;
  min-height: clamp(650px, 74vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(32, 18, 31, 0.15), rgba(0, 47, 51, 0.16)),
    url("assets/hero-bridge.webp") center 48% / cover no-repeat;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 40%, transparent 0 26%, rgba(4, 30, 34, 0.06) 70%),
    linear-gradient(180deg, rgba(255, 215, 204, 0.16), transparent 24%);
}

.access-card {
  width: min(430px, calc(100% - 32px));
  filter: drop-shadow(0 18px 30px rgba(17, 9, 18, 0.2));
}

.access-card__intro {
  padding: 41px 38px 35px;
  color: #fff;
  background: rgba(169, 153, 168, 0.96);
  border-radius: 16px 16px 10px 10px;
  backdrop-filter: blur(10px);
}

.access-card__intro p {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(1.28rem, 3vw, 1.55rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.access-card__intro strong {
  font-weight: 700;
}

.access-form {
  display: grid;
  padding: 12px 14px 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
}

.access-form__lead {
  margin: 0 0 3px;
  font-size: 0.69rem;
}

.access-form label {
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.2;
}

.access-form input {
  width: 100%;
  min-height: 27px;
  padding: 3px 7px;
  border: 0;
  border-bottom: 1px solid #ded8dd;
  outline: 0;
  background: transparent;
}

.access-form input:focus {
  border-color: var(--mauve-deep);
  box-shadow: 0 2px 0 var(--mauve-deep);
}

.form-error {
  min-height: 13px;
  margin: 2px 0 0;
  color: #8a2431;
  font-size: 0.65rem;
  font-weight: 700;
}

.access-form__aside {
  margin: 0 -14px;
  padding: 10px 14px 4px;
  color: #fff;
  background: var(--mauve);
  font-size: 0.67rem;
  text-align: center;
}

.access-form button {
  margin: 0 -14px;
  padding: 10px 16px 12px;
  color: #fff;
  background: var(--mauve);
  border: 0;
  border-radius: 0;
  text-transform: uppercase;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.access-form button:hover {
  background: var(--mauve-deep);
}

.access-form button:active {
  transform: translateY(1px);
}


.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.privacy-note {
  margin: 0 -14px;
  padding: 9px 14px 11px;
  color: rgba(16, 16, 20, 0.72);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0 0 10px 10px;
  font-size: 0.58rem;
  line-height: 1.35;
}

.privacy-note a {
  font-weight: 700;
  text-decoration: underline;
}

.credit {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.credit--hero {
  position: absolute;
  right: 28px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
}

/* NAVIGATION */

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 18px max(7vw, 30px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(18px);
}

.brand {
  width: max-content;
  display: grid;
  gap: 5px;
}

.brand__name {
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand__author {
  font-size: 0.48rem;
  letter-spacing: 0.04em;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5.5vw, 76px);
}

.site-nav__links a {
  position: relative;
  padding-block: 10px;
  font-size: 0.82rem;
}

.site-nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #f2eef1;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #111;
}

/* INTRODUCTION */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  padding-top: 28px;
}

.intro__copy {
  align-self: stretch;
  display: grid;
  align-content: center;
  padding: clamp(26px, 3.6vw, 54px);
  background: var(--sky);
}

.intro__copy p {
  margin: 0 0 1.18em;
  font-size: clamp(0.84rem, 1.1vw, 0.98rem);
  font-weight: 600;
  line-height: 1.35;
}

.intro__copy p:last-child {
  margin-bottom: 0;
}

.intro__visual {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #d8e7ec;
}

.intro__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manifesto {
  display: flex;
  justify-content: flex-end;
  padding-block: 36px 68px;
  font-family: "Outfit", Arial, sans-serif;
}

.manifesto p {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

/* CONTENU */

.content-section,
.video-section {
  scroll-margin-top: 125px;
}

.content-section {
  padding-bottom: 70px;
}

.section-heading {
  margin-bottom: 26px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 8px 0 0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);
}

.cards {
  display: grid;
  gap: 24px;
}

.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.document-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(25, 18, 25, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.document-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.92;
  background: #dde6e8;
}

.document-card--wide .document-card__media {
  aspect-ratio: 1.2;
}

.document-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 65%, rgba(10, 16, 18, 0.08));
  pointer-events: none;
}

.document-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.document-card:hover .document-card__media img {
  transform: scale(1.025);
}

.document-card__body {
  padding: 12px 15px 15px;
  background: #fff;
}

.document-card__body h3 {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.1;
}

.document-card__body a {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.79rem;
}

.document-card__body a:hover {
  text-decoration: underline;
}

.document-card__body--center {
  text-align: center;
}

/* SLIDERS MOBILES */

.slider-controls {
  display: none;
}

.slider-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: #f2eef1;
  border: 1px solid rgba(16, 16, 20, 0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.slider-arrow:hover {
  background: #e9e1e7;
}

.slider-arrow:active {
  transform: scale(0.96);
}

.slider-arrow:disabled {
  opacity: 0.34;
  cursor: default;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(16, 16, 20, 0.2);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, border-radius 180ms ease;
}

.slider-dot.is-active {
  width: 24px;
  background: var(--mauve-deep);
  border-radius: 999px;
}

/* VIDEO */

.video-section {
  padding-bottom: 36px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dbe9f2;
  box-shadow: 0 14px 38px rgba(22, 18, 24, 0.14);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #dbe9f2;
}

.video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(180deg, rgba(5, 19, 24, 0.02), rgba(5, 19, 24, 0.12));
  border: 0;
  cursor: pointer;
  transition: opacity 220ms ease, visibility 220ms ease, background 220ms ease;
}

.video-play:hover {
  background: linear-gradient(180deg, rgba(5, 19, 24, 0.02), rgba(5, 19, 24, 0.2));
}

.video-play__circle {
  width: clamp(74px, 9vw, 116px);
  height: clamp(74px, 9vw, 116px);
  display: grid;
  place-items: center;
  color: #111820;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 14px 40px rgba(14, 20, 25, 0.22);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease;
}

.video-play:hover .video-play__circle,
.video-play:focus-visible .video-play__circle {
  transform: scale(1.06);
  background: #fff;
}

.video-play__circle svg {
  width: 52%;
  height: 52%;
  fill: currentColor;
  transform: translateX(4%);
}

.video-frame.is-playing .video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-error {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: none;
  padding: 12px 15px;
  color: #fff;
  background: rgba(15, 15, 18, 0.86);
  border-radius: 10px;
  text-align: center;
  font-size: 0.86rem;
}

.video-frame.has-error .video-error {
  display: block;
}

/* FOOTER */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 3px;
  padding-bottom: 28px;
  font-size: 0.93rem;
}

.site-footer > div {
  display: grid;
  justify-items: end;
}

.site-footer span {
  margin-top: 4px;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* FEEDBACK */

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100% - 40px));
  padding: 13px 16px;
  color: #fff;
  background: #151318;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms cubic-bezier(.2,.7,.2,1),
    transform 700ms cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* RESPONSIVE */

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 28px, 680px);
  }

  .hero {
    min-height: 690px;
    background-position: 52% center;
  }

  .site-nav {
    min-height: 82px;
    grid-template-columns: 1fr auto;
    padding: 13px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav__links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.07);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open .site-nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav__links a {
    padding: 12px 2px;
  }

  .intro {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .intro__visual {
    min-height: 310px;
  }

  .manifesto {
    justify-content: center;
    text-align: center;
    padding-block: 30px 58px;
  }

  .cards[data-slider] {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 7px 7% 18px;
    scroll-behavior: smooth;
    scroll-padding-inline: 7%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .cards[data-slider]::-webkit-scrollbar {
    display: none;
  }

  .cards[data-slider] .document-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .cards[data-slider] .document-card:hover {
    transform: none;
  }

  .slider-controls {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 16px;
    margin-top: 9px;
    padding-inline: 7%;
  }

  .document-card__media,
  .document-card--wide .document-card__media {
    aspect-ratio: 1.25;
  }

  .content-section {
    padding-bottom: 55px;
  }

  .video-section {
    width: 100%;
    padding-bottom: 28px;
  }

  .video-frame {
    box-shadow: none;
  }
}

@media (max-width: 540px) {
  .cards[data-slider] .document-card {
    flex-basis: 91%;
  }

  .cards[data-slider],
  .slider-controls {
    padding-inline: 3%;
  }

  .access-card__intro {
    padding: 32px 27px 28px;
  }

  .access-card__intro p {
    font-size: 1.25rem;
  }

  .intro__copy {
    padding: 25px 22px;
  }

  .section-heading h2 {
    font-size: 2.3rem;
  }

  .video-play__circle {
    width: 74px;
    height: 74px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer > div {
    justify-items: start;
  }

  .credit--hero {
    right: 16px;
    bottom: 12px;
  }
}
