@font-face {
  font-family: 'WestwingGaisyr';
  src: url('../../fonts/WestwingGaisyr-Book.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'WestwingGaisyr';
  src: url('../../fonts/WestwingGaisyr-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'WestwingROM';
  src: url('../../fonts/WestwingROM-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'WestwingROM';
  src: url('../../fonts/WestwingROM-Book.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'WestwingMono';
  src: url('../../fonts/WestwingROMMono-Book.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

 /* Montserrat Light */
  @font-face {
      font-family: 'Montserrat';
      src: url('fonts/Montserrat-Light.woff2') format('woff2');
      font-weight: 300;
      font-style: normal;
      font-display: swap;
  }

  /* Montserrat Regular */
  @font-face {
      font-family: 'Montserrat';
      src: url('fonts/Montserrat-Regular.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
  }

:root {
  --bg-body: #ffffff;
  --text-main: #121212;
  --text-muted: #666666;
  --border: #e8e8e8;
  --accent: #121212;
  --success: #1f5f3b;
  --neutral: #000000;
  --error: #b42318;
  --warning: #6b4a0f;
  --font-main: 'WestwingROM', sans-serif;
  --font-title: 'WestwingGaisyr', serif;
  --font-mono: 'WestwingMono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  background:
    linear-gradient(180deg, rgba(249, 248, 246, 0.92) 0%, rgba(255, 255, 255, 1) 46%),
    var(--bg-body);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.verify-shell {
  width: min(100%, 760px);
  padding: 56px 24px;
}

.logo {
  width: 190px;
  max-width: 70%;
  margin-bottom: 44px;
}

.verification-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.05rem, 5.8vw, 3.7rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--text-main);
}

.analysis {
  width: 100%;
  max-width: 420px;
  margin: 36px auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
}

body.result-ready .analysis {
  opacity: 1;
  transform: none;
}

body.result-ready .analysis-ring::before,
body.result-ready .analysis-ring::after,
body.result-ready .analysis-core,
body.result-ready .analysis-copy span {
  animation: none;
}

body.result-ready .analysis-ring {
  border-color: transparent;
}

body.result-ready .analysis-ring::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 68px;
  height: 68px;
  background: var(--success);
  border: 0;
  transform: none;
  opacity: 0.86;
  -webkit-mask-image: url('../../images_logos/icons/tick_certificat.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url('../../images_logos/icons/tick_certificat.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

body.result-ready .analysis-ring::after {
  display: none;
}

body.result-ready .analysis-core {
  opacity: 0;
}

body.result-ready .analysis-copy span {
  opacity: 1;
  color: var(--text-main);
}

body.result-ready h1.error ~ .analysis .analysis-ring,
body.result-ready h1.warning ~ .analysis .analysis-ring {
  border-color: transparent;
}

body.result-ready h1.error ~ .analysis .analysis-ring::before,
body.result-ready h1.warning ~ .analysis .analysis-ring::before {
  background: var(--error);
  opacity: 1;
  -webkit-mask-image: url('../../images_logos/icons/croix_certificat.svg');
  mask-image: url('../../images_logos/icons/croix_certificat.svg');
}

body.result-ready h1.error ~ .analysis .analysis-copy span::before,
body.result-ready h1.warning ~ .analysis .analysis-copy span::before {
  background: var(--error);
  opacity: 1;
  -webkit-mask-image: url('../../images_logos/icons/croix_certificat.svg');
  mask-image: url('../../images_logos/icons/croix_certificat.svg');
}

body.result-ready h1.success ~ .analysis .analysis-ring::before,
body.result-ready h1.success ~ .analysis .analysis-copy span::before {
  background: var(--success);
  opacity: 0.86;
}

body.result-ready h1.error ~ .analysis .analysis-core,
body.result-ready h1.warning ~ .analysis .analysis-core {
  background: var(--error);
}

.analysis-ring {
  position: relative;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.analysis-ring::before,
.analysis-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: #121212;
  animation: verify-spin 1.25s linear infinite;
}

.analysis-ring::after {
  inset: 10px;
  border-top-color: rgba(18, 18, 18, 0.32);
  animation-duration: 1.85s;
  animation-direction: reverse;
}

.analysis-core {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #121212;
  animation: verify-pulse 1.6s ease-in-out infinite;
}

.analysis-copy {
  width: 100%;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.analysis-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  opacity: 0.36;
  animation: verify-step 3.6s ease-in-out infinite;
}

.analysis-copy span::before {
  content: "";
  width: 15px;
  height: 15px;
  background: var(--success);
  flex: 0 0 15px;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-mask-image: url('../../images_logos/icons/tick_certificat.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url('../../images_logos/icons/tick_certificat.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

body.result-ready .analysis-copy span::before {
  opacity: 1;
}

.analysis-copy span:nth-child(2) {
  animation-delay: 0.8s;
}

.analysis-copy span:nth-child(3) {
  animation-delay: 1.6s;
}

.message {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: clamp(1.28rem, 3.4vw, 1.9rem);
  line-height: 1.45;
  color: var(--text-main);
}

.message.is-empty {
  visibility: hidden;
  margin: 0 auto 8px;
}

.success {
  color: var(--success);
}


.neutral {
  color: var(--neutral);
}

.error {
  color: var(--error);
}

.warning {
  color: var(--text-main);
}

.action {
  min-height: 52px;
}

a.button {
  display: inline-block;
  margin-top: 10px;
  padding: 15px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

a.button:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.small-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes verify-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes verify-pulse {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes verify-step {
  0%,
  100% {
    opacity: 0.34;
  }

  38%,
  62% {
    opacity: 1;
  }
}

.brand {
    display: inline-flex;
    align-items: flex-end;   /* aligne le contenu en bas */
    justify-content: flex-start; /* aligne à gauche */
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
    color: #000;
    position: relative;
    transform: scale(0.95);
    transform-origin: left center;
    line-height: 1;
    margin-bottom: 32px;
}


  .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    line-height: 1;
    gap: 4px;
    margin-left: -23px;
    padding-bottom: 26px;
}

    .brand-text::before,
    .brand-text::after {
      content: "";
      position: absolute;
      right: -8px;
      bottom: 20px;
      background: currentColor;
    }

    .brand-text::before {
      width: 3px;
      height: 20px;
    }

    .brand-text::after {
      width: 20px;
      height: 3px;
    }

  .brand .sequoia {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Regular */
    font-style: normal;
    font-size: 3.0em;
    position: relative;
    top: 4px;
    left: 0px;
  }

  .brand .studio {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Light */
    letter-spacing: 0.25em;
    font-weight: 300;
    font-style: normal;
    font-size: 2.5em;;
    color: #333;
    letter-spacing: 0;
    margin-left: 0;
    position: relative;
    top: 4px;
    left: 0px;
  }

@media (max-width: 800px) {

  body {
    align-items: flex-start;
    min-height: 100svh;
  }

  .verify-shell {
    padding: 20px 20px 32px;
  }

    .logo {
        width: 160px;
        height: 160px;
        object-fit: contain;
        margin-top: 20px;
        margin-bottom: 0;
        display: block;
    }

  .eyebrow {
    min-height: 2.5em;
  }

  .analysis {
    margin-top: 30px;
  }
}
