:root {
  --surrency-ink: #120a17;
  --surrency-ink-deep: #0c0610;
  --surrency-purple: #7c4091;
  --surrency-purple-light: #c9a9d8;
  --surrency-paper: #fbf7fd;
  --surrency-paper-alt: #f2e7f6;
  --surrency-heading: #3d1b4a;
  --surrency-copy: #5b4c66;
  --surrency-line: rgba(124, 64, 145, 0.16);
}

html {
  scroll-behavior: smooth;
}

body.site-page {
  margin: 0;
  overflow-x: clip;
  background: var(--surrency-paper);
  color: #232323;
}

.site-page *,
.site-page *::before,
.site-page *::after {
  box-sizing: border-box;
}

.site-page .wrap {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.site-page section {
  padding-block: clamp(84px, 10vw, 130px);
}

.site-page h1,
.site-page h2,
.site-page h3 {
  text-wrap: balance;
}

.site-page h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.site-page .eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--surrency-purple);
}

/* Shared header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 10, 23, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #8a4ba1, #c9a9d8, #f2e7f6);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-header .site-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}

.site-brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-brand:hover {
  color: #fff;
}

.site-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.site-nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-nav-links a:hover,
.site-nav-links a.active {
  color: #fff;
}

.site-header-cta {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  transition: background 160ms ease, transform 160ms ease;
}

.site-header-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.site-menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.site-mobile-panel {
  position: fixed;
  z-index: 99;
  inset: 84px 0 auto;
  padding: 22px clamp(20px, 4vw, 48px) 28px;
  display: grid;
  gap: 4px;
  background: rgba(12, 6, 16, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px rgba(12, 6, 16, 0.35);
}

.site-mobile-panel a {
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 17px;
  font-weight: 700;
}

.site-mobile-panel a:last-child {
  margin-top: 12px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--surrency-heading);
  text-align: center;
}

/* Shared page hero */
.site-page .page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(86px, 10vw, 140px) 0 clamp(100px, 12vw, 164px);
  background: var(--surrency-ink);
}

.site-page .page-header::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(1100px, 100vw);
  height: min(900px, 90vw);
  top: -45%;
  right: -20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138, 75, 161, 0.68), rgba(138, 75, 161, 0));
  animation: page-breathe 7s ease-in-out infinite;
}

.site-page .page-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  bottom: -400px;
  left: -180px;
  border: 1px solid rgba(201, 169, 216, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(201, 169, 216, 0.035), 0 0 0 140px rgba(201, 169, 216, 0.025);
}

.site-page .page-header-inner {
  position: relative;
  max-width: none;
}

.site-page .page-header .eyebrow {
  color: var(--surrency-purple-light);
  animation: hero-fade-up 700ms 80ms both;
}

.site-page .page-header h1 {
  max-width: 920px;
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-word-mask {
  display: inline-block;
  overflow: hidden;
  margin: -0.1em 0 -0.14em;
  padding: 0.1em 0 0.14em;
  vertical-align: top;
}

.hero-word {
  display: inline-block;
  transform: translateY(115%);
  animation: hero-word-in 850ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
}

.site-page .page-header p {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  animation: hero-fade-up 800ms 620ms both;
}

.site-page .page-header-copy {
  padding: 0;
}

.site-page .page-header-phones {
  position: absolute;
  right: clamp(0px, 3vw, 42px);
  bottom: -190px;
  opacity: 0.82;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
  animation: page-phone-float 6s ease-in-out infinite;
}

/* Shared content treatment */
.site-page .section-head {
  max-width: 760px;
}

.site-page .section-head h2 {
  margin-top: 18px;
}

.site-page .section-head p {
  max-width: 640px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.site-page .section-head.center {
  max-width: 760px;
}

.site-page .pillar-grid,
.site-page .value-grid {
  gap: 18px;
  margin-top: 56px;
}

.site-page .pillar-card,
.site-page .value-card,
.site-page .contact-card,
.site-page .data-card {
  border: 1px solid rgba(124, 64, 145, 0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(43, 18, 51, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.site-page .pillar-card,
.site-page .value-card {
  padding: 32px 28px;
}

.site-page .pillar-card:hover,
.site-page .value-card:hover,
.site-page .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(43, 18, 51, 0.11);
}

.site-page .pillar-ic,
.site-page .value-ic,
.site-page .contact-card .cic {
  border-radius: 18px;
  background: var(--surrency-paper-alt);
}

.site-page .origin,
.site-page .authcase,
.site-page .team,
.site-page .faq {
  background: #f6eff9;
}

.site-page .origin-list {
  margin-top: 64px;
}

.site-page .origin-item {
  grid-template-columns: 150px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-color: var(--surrency-line);
}

.site-page .origin-item h3 {
  font-size: 20px;
}

.site-page .origin-item p {
  max-width: 720px;
  margin-top: 10px;
  font-size: 15px;
}

.site-page .mission-visual {
  width: 100%;
  min-width: 0;
  min-height: 520px;
  aspect-ratio: auto;
  border-radius: 40px;
  background:
    radial-gradient(circle at 25% 20%, rgba(201, 169, 216, 0.9), transparent 38%),
    linear-gradient(145deg, #f2e7f6, #e4cdea);
}

.site-page .mission-badge {
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(61, 27, 74, 0.18);
}

.site-page .mission-copy h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.site-page .anchor-band,
.site-page .support-band,
.site-page .final-inner {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  background:
    radial-gradient(circle at 85% 15%, rgba(149, 87, 210, 0.42), transparent 40%),
    var(--surrency-ink);
  box-shadow: 0 35px 90px rgba(43, 18, 51, 0.2);
}

.site-page .anchor-band,
.site-page .support-band {
  padding: clamp(40px, 6vw, 76px);
}

.site-page .anchor-band::before,
.site-page .support-band::before,
.site-page .final-inner::before {
  background: rgba(255, 255, 255, 0.035);
}

.site-page .astat,
.site-page .sstep {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.site-page .team-note {
  padding: 52px;
  border: 1px solid var(--surrency-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
}

.site-page .final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(110px, 13vw, 170px);
  background: var(--surrency-ink);
}

.site-page .final-cta::before {
  content: "";
  position: absolute;
  width: 1000px;
  height: 700px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138, 75, 161, 0.56), rgba(138, 75, 161, 0));
  transform: translate(-50%, -50%);
}

.site-page .final-cta .wrap {
  position: relative;
}

.site-page .final-cta .eyebrow {
  color: var(--surrency-purple-light);
}

.site-page .final-cta h2 {
  max-width: 920px;
  color: #fff;
  font-size: clamp(44px, 7vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.site-page .final-cta p {
  color: rgba(255, 255, 255, 0.66);
}

.site-page .btn {
  min-height: 54px;
  border-radius: 999px;
}

.site-page .btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #8a4ba1, #6a3380);
}

.site-page .final-cta .btn-primary {
  background: #fff;
  color: var(--surrency-heading);
}

.site-page .final-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Security */
.security-page .page-header-inner {
  min-height: 610px;
  display: flex;
  align-items: center;
}

.security-page .page-header-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.security-page .page-header h1 {
  max-width: 760px;
}

.security-page .authcase-inner {
  padding-top: 20px;
}

.security-page .data-card {
  padding: 40px;
}

.security-page .faq-list {
  max-width: 880px;
}

.security-page .faq-q {
  padding: 28px 4px;
  font-size: 17px;
}

/* About */
.about-page .page-header h1 {
  max-width: 1050px;
}

.about-page .value-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Contact */
.contact-page .page-header-inner {
  max-width: 1240px;
}

.contact-page .page-header h1 {
  max-width: 800px;
}

.contact-page main > section:not(.page-header):not(.final-band) {
  background: var(--surrency-paper);
}

.contact-page .contact-inner {
  gap: clamp(40px, 6vw, 80px);
}

.contact-page .contact-form {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(124, 64, 145, 0.12);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(43, 18, 51, 0.1);
}

.contact-page .form-row input,
.contact-page .form-row textarea,
.contact-page .form-row select {
  border-radius: 16px;
  background: #fbf8fc;
}

.contact-page .contact-card,
.contact-page .hours-card {
  padding: 28px;
  border-radius: 24px;
}

.contact-page .hours-card {
  background: var(--surrency-paper-alt);
}

.contact-page .final-band {
  padding-top: 0;
  background: var(--surrency-paper);
}

.contact-page .final-inner {
  padding: clamp(54px, 7vw, 82px);
}

.contact-page .final-inner h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Shared footer */
.site-footer {
  padding: 80px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--surrency-ink-deep);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .site-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.site-footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer-copy {
  max-width: 260px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  line-height: 1.6;
}

.site-footer h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.site-page .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-page .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes hero-word-in {
  to { transform: translateY(0); }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes page-breathe {
  0%, 100% { opacity: 0.78; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes page-phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@media (max-width: 1100px) {
  .site-nav-links {
    display: none;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  .security-page .page-header-phones {
    right: -150px;
    opacity: 0.42;
  }

  .about-page .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-page section {
    padding-block: 76px;
  }

  .site-header-cta {
    display: none;
  }

  .site-page .page-header {
    padding-block: 82px 100px;
  }

  .site-page .page-header h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .security-page .page-header-inner {
    min-height: auto;
  }

  .security-page .page-header-phones {
    display: none;
  }

  .site-page .mission-visual {
    min-height: 380px;
  }

  .site-page .origin-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-page .value-grid {
    grid-template-columns: 1fr;
  }

  .site-page .anchor-band,
  .site-page .support-band,
  .site-page .final-inner {
    border-radius: 28px;
  }

  .contact-page .contact-form {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-page .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-page .page-header::before,
  .site-page .page-header .eyebrow,
  .site-page .page-header p,
  .site-page .page-header-phones,
  .hero-word {
    animation: none;
    opacity: 1;
    transform: none;
    translate: none;
  }
}

/* About : visuel mission (écran Accueil) et cartes des cinq modules, reprises de la page d'accueil */
.about-page .mission-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: hidden;
}

.about-page .mission-phone {
  position: relative;
  z-index: 1;
  transform: rotate(-4deg);
  filter: drop-shadow(0 30px 50px rgba(61, 27, 74, 0.28));
}

.about-page .mission-badge {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 32px;
  width: auto;
  max-width: 250px;
  padding: 20px 22px;
}

.about-page .team-lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--surrency-copy);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.about-page .module-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.about-page .module-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(43, 18, 51, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.about-page .module-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.about-page .module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(43, 18, 51, 0.26);
}

.about-page .module-ic {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.about-page .module-ic .material-symbols-rounded {
  font-size: 24px;
}

.about-page .module-num {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 800;
  font-feature-settings: "tnum";
}

.about-page .module-card b {
  margin-top: 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.about-page .module-txt {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13.5px;
  line-height: 1.55;
}

.about-page .module-go {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
}

.about-page .module-go .material-symbols-rounded {
  font-size: 18px;
  transition: transform 160ms ease;
}

.about-page .module-card:hover .module-go .material-symbols-rounded {
  transform: translateX(3px);
}

@media (max-width: 1100px) {
  .about-page .module-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .about-page .module-grid { grid-template-columns: 1fr; }
  .about-page .module-card { min-height: 0; }
  .about-page .mission-badge { position: relative; right: auto; bottom: auto; margin-top: -40px; }
  .about-page .mission-visual { flex-direction: column; }
}
