/* Landing Salon PME, CyberPublicity par Groupe Cyber
   Tokens repris de la collection de variables Figma « Salon » */
:root {
  --blue: #435fff;
  --blue-light: #7c90ff;
  --blue-tint: #eaedfd;
  --navy: #131f63;
  --gray: #5f6475;
  --bg: #f7f8fd;
  --white: #ffffff;
  --line: #e3e6f2;
  --green: #00d299;
  --mint: #e7f6f2;
  --forest: #021f17;

  --f-title: "Urbanist", system-ui, sans-serif;
  --f-body: "Rethink Sans", system-ui, sans-serif;
  --f-num: "DM Sans", system-ui, sans-serif;
  --f-btn: "Poppins", system-ui, sans-serif;

  --container: 1348px;
  --gutter: 190px;
  --shadow: 0 18px 42px rgba(19, 31, 99, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
s { text-decoration-thickness: 0.06em; }
h1, h2, h3, p, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.container { width: min(var(--container), 100% - 64px); margin-inline: auto; }

/* ---------- Typo ---------- */
.eyebrow, .eyebrow-pill, .offer__badge {
  font-family: var(--f-num);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1;
}
.eyebrow { color: var(--blue); }
.h2 {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 56px;
  line-height: 62px;
  letter-spacing: -0.01em;
}
.h2 strong, .hero__title strong { font-weight: 600; }
.h3 { font-family: var(--f-title); font-weight: 600; font-size: 22px; line-height: 28px; }
.body-l { font-size: 19px; line-height: 28px; color: var(--gray); }
.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }
.hero .accent-blue { color: var(--blue-light); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-family: var(--f-btn);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { box-shadow: 0 12px 30px rgba(67, 95, 255, .45); }
.btn--green { background: var(--green); color: var(--forest); }
.btn--green:hover { box-shadow: 0 12px 30px rgba(0, 210, 153, .45); }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--full { width: 100%; }

/* ---------- Hero (2 états) ----------
   --u = 1px à 1728×1034 (taille de la maquette), réduit pour tenir dans l’écran du stand */
.hero {
  --u: min(1px, 100vw / 1728, 100vh / 1034);
  position: relative;
  display: grid;
  overflow: hidden;
  background: #0b1240;
  color: var(--white);
}
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }
.hero__slide--ads { background: linear-gradient(180deg, #0b1240 0%, #131f63 60%, #2a3fd6 100%); }
.hero__slide--site { background: linear-gradient(180deg, #01140f 0%, #021f17 60%, #007a57 100%); }

.hero__glows { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; max-width: none; }
.glow--center { width: calc(1240 * var(--u)); left: calc(50% - 620 * var(--u)); top: calc(-40 * var(--u)); }
.glow--left { width: calc(1100 * var(--u)); left: calc(50% - 1264 * var(--u)); top: calc(500 * var(--u)); }
.glow--right { width: calc(1100 * var(--u)); left: calc(50% + 236 * var(--u)); top: calc(450 * var(--u)); }

.hero__inner {
  position: relative;
  min-height: min(100vh, 1034px);
  min-height: min(100svh, 1034px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(40 * var(--u)) 0 calc(110 * var(--u));
  width: min(var(--container), 100% - 64px);
  margin-inline: auto;
}
.topbar { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(70 * var(--u)); }

.logo { display: inline-flex; align-items: center; font-family: var(--f-num); }
.logo__mark { width: 26px; height: 27px; margin-right: 6px; }
.logo__name { font-size: 23.8px; line-height: 1; letter-spacing: -0.02em; }
.logo__cyber { font-weight: 400; }
.logo__publicity { font-weight: 600; }
.logo--light { color: var(--white); }
.logo--light .logo__mark { filter: brightness(0) invert(1); } /* logo tout blanc sur le hero */
.logo__sep { margin: 0 6px 0 13px; height: 23px; width: 1px; }
.logo__by { font-weight: 600; font-size: 10px; letter-spacing: -0.02em; margin-right: 8px; }
.logo__groupe { font-size: 14.5px; font-weight: 300; letter-spacing: -0.02em; }
.logo__groupe b { font-weight: 600; }


.eyebrow-pill { padding: 8px 16px; border-radius: 42px; color: var(--white); }
.hero__inner > .eyebrow-pill { margin-top: auto; } /* contenu centré verticalement sous la topbar */
.hero__inner > .cta-row { margin-bottom: auto; }
.eyebrow-pill--blue { background: rgba(67, 95, 255, .35); }
.eyebrow-pill--green { background: rgba(0, 210, 153, .3); }

.display {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: max(110px, calc(230 * var(--u)));
  line-height: .9;
  /* marge interne pour que le dégradé (background-clip) ne coupe pas le bas du $ */
  padding: .12em .05em .16em;
  margin: -.12em 0 -.16em;
  letter-spacing: -0.05em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.display--blue { background-image: linear-gradient(180deg, #fff 0%, #aebbff 100%); filter: drop-shadow(0 calc(20 * var(--u)) calc(40 * var(--u)) rgba(67, 95, 255, .6)); }
.display--green { background-image: linear-gradient(180deg, #fff 0%, #9bf2d6 100%); filter: drop-shadow(0 calc(20 * var(--u)) calc(40 * var(--u)) rgba(0, 210, 153, .55)); }

.hero__title {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: max(26px, calc(44 * var(--u)));
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: center;
}
.hero__title s { text-decoration-thickness: .07em; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1200px, 100%);
  margin: calc(52 * var(--u)) 0 calc(44 * var(--u));
  text-align: center;
}
.steps::before { /* ligne qui relie les 3 étapes */
  content: "";
  position: absolute;
  left: 16.66%; right: 16.66%; top: 23px;
  height: 2px;
}
.steps--blue::before { background: linear-gradient(90deg, rgba(255, 255, 255, .25), var(--blue-light)); }
.steps--green::before { background: linear-gradient(90deg, rgba(255, 255, 255, .25), var(--green)); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.steps strong { font-family: var(--f-title); font-weight: 600; font-size: 19px; line-height: 24px; }
.steps li > span:last-child { font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .65); }
.steps__num {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  font-family: var(--f-title); font-weight: 600; font-size: 19px;
}
.steps--blue .steps__num { background: var(--navy); }
.steps--green .steps__num { background: var(--forest); }
.steps--blue .is-last .steps__num { background: var(--blue); border-color: #aebbff; box-shadow: 0 0 30px rgba(67, 95, 255, .8); }
.steps--green .is-last .steps__num { background: var(--green); border-color: #9bf2d6; color: var(--forest); box-shadow: 0 0 30px rgba(0, 210, 153, .8); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .btn { padding: 15px 24px; font-size: 15px; }

.hero__progress { /* barre unique en haut du hero : se remplit en 20 s puis la bannière change */
  position: absolute; z-index: 3;
  top: calc(40 * var(--u) + 72px); /* sous la ligne du logo */
  left: 50%; transform: translateX(-50%);
  width: 180px;
  height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, .15);
}
.hero__progress-fill { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--white); }

.hero__arrow { /* flèches pour changer de bannière */
  position: absolute; top: 50%; z-index: 3;
  display: grid; place-items: center;
  width: 56px; height: 56px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease, transform .2s ease;
}
.hero__arrow--prev { left: max(28px, calc(50% - 864px + 48px)); }
.hero__arrow--next { right: max(28px, calc(50% - 864px + 48px)); }
.hero__arrow:hover { background: rgba(255, 255, 255, .18); transform: translateY(-50%) scale(1.06); }
.hero__arrow:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.hero__progress-fill.is-running { animation: hero-progress var(--hero-delay, 20s) linear forwards; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }

/* ---------- Qui sommes-nous + formulaire ---------- */
.about { position: relative; overflow: hidden; padding: 110px 0 120px; background: var(--bg); }
.about::before, .about::after { /* halos latéraux */
  content: ""; position: absolute; width: 1100px; height: 560px; border-radius: 50%;
  background: rgba(67, 95, 255, .18); filter: blur(160px); pointer-events: none;
}
.about::before { left: -1000px; top: 140px; }
.about::after { right: -1000px; top: 438px; }
.about__grid { position: relative; display: grid; grid-template-columns: 1fr 640px; gap: 72px; align-items: start; }
.about__text { display: flex; flex-direction: column; gap: 26px; }
.visual {
  display: flex; align-items: center; gap: 20px;
  padding: 28px; border-radius: 28px; background: var(--blue);
}
.visual__img { width: 300px; height: 307px; object-fit: cover; border-radius: 18px; flex-shrink: 0; }
.stats { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.stats li { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.stats strong { font-family: var(--f-num); font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -0.03em; }
.stats span { color: var(--gray); }

/* Formulaire */
.form {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: 36px; border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(19, 31, 99, .1);
  scroll-margin-top: 24px;
}
.form__head { display: flex; flex-direction: column; gap: 4px; }
.form__head p { color: var(--gray); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .choices legend { font-weight: 500; font-size: 15px; line-height: 20px; }
.field input, .field select {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font: 400 16px/24px var(--f-body);
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: var(--gray); opacity: 1; }
.field select:invalid { color: var(--gray); }
.field--select select { padding-right: 46px; background: var(--white) url("assets/icon-chevron.svg") no-repeat right 16px center / 20px 20px; cursor: pointer; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(67, 95, 255, .15); }
.form.was-validated .field :invalid { border-color: #e8000a; }

.choices { border: 0; display: flex; flex-direction: column; gap: 10px; }
.choices legend { margin-bottom: 10px; padding: 0; }
.choices__list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; line-height: 20px; }
.choice span::before { /* case à cocher */
  content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  border: 1.5px solid var(--line); background: var(--white) center / 14px no-repeat;
  transition: background-color .15s ease, border-color .15s ease;
}
.choices .choice { padding: 12px 18px 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .15s ease, background-color .15s ease; }
.choices .choice:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.choice input:checked + span::before {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.choice input:focus-visible + span::before { box-shadow: 0 0 0 4px rgba(67, 95, 255, .25); }
.choice--plain { padding: 12px 18px 12px 0; }
.form__error { color: #c4000a; font-weight: 500; }
.form__success {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border-radius: 24px; background: var(--white); text-align: center; color: var(--gray);
}
.form__success .h3 { color: var(--navy); font-size: 30px; line-height: 36px; }

/* Groupe Cyber */
.groupe { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 116px; text-align: center; }
.groupe__head { display: flex; align-items: center; gap: 11px; }
.groupe__logo { width: 45px; height: 30px; }
.groupe__name { font-family: var(--f-num); font-weight: 300; font-size: 28.4px; letter-spacing: -0.02em; color: #070707; line-height: 1; }
.groupe__name b { font-weight: 600; }
.groupe__lead { max-width: 467px; }
.filiales { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; text-align: left; }
.filiale {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: 18px; background: var(--white);
  border: 1.5px solid var(--c); box-shadow: 0 10px 32px var(--glow);
}
.filiale img { height: 28px; width: auto; align-self: flex-start; }
.filiale--pub { --c: #435fff; --glow: rgba(67, 95, 255, .22); }
.filiale--site { --c: #00c28d; --glow: rgba(0, 194, 141, .22); }
.filiale--spark { --c: #ca7fff; --glow: rgba(202, 127, 255, .22); }
.filiale--hub { --c: #e8000a; --glow: rgba(232, 0, 10, .22); }

/* ---------- Cybersite ---------- */
.cybersite { background: var(--green); color: var(--forest); padding: 160px 0; overflow: hidden; }
.cybersite__grid { display: grid; grid-template-columns: 1fr 560px; gap: 56px; align-items: center; }
.cybersite__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.mega {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 81px;
  line-height: .95;
  letter-spacing: -0.03em;
}
.cybersite__lead { color: var(--forest); opacity: .8; }
.offer {
  width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 24px 26px; border-radius: 22px;
  background: var(--forest); border: 2px solid var(--green);
  box-shadow: 0 18px 40px rgba(2, 31, 23, .25);
}
.offer__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 42px; background: var(--green); color: var(--forest); }
.offer__price { display: flex; align-items: center; gap: 14px; font-family: var(--f-num); font-weight: 600; color: var(--white); white-space: nowrap; }
.offer__price s { font-size: 36px; line-height: 1; letter-spacing: -0.03em; opacity: .5; }
.offer__new { font-size: 52px; line-height: 1; letter-spacing: -0.03em; }
.offer__new em { font-style: normal; color: var(--green); }

.mockups { position: relative; height: 520px; }
.mockup {
  position: absolute; width: 360px; overflow: hidden;
  border-radius: 16px; background: var(--white);
  box-shadow: 0 24px 50px rgba(2, 31, 23, .25);
  transition: transform .4s ease;
}
.mockup__bar { display: flex; gap: 5px; padding: 10px 12px; background: var(--mint); }
.mockup__shot { width: 100%; height: 260px; object-fit: cover; object-position: top; }
.mockup--cortech { left: -11px; top: 21px; transform: rotate(4deg); }
.mockup--zicat { left: 240px; top: 87px; transform: rotate(-4deg); }
.mockup--mambo { left: 45px; top: 266px; transform: rotate(2deg); }
.mockup:hover { transform: rotate(0deg) scale(1.03); z-index: 3; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--white); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__brand { font-weight: 500; font-size: 15px; line-height: 20px; }
.footer__contact { display: flex; gap: 12px; flex-wrap: wrap; color: rgba(255, 255, 255, .7); }
.footer__contact a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .about__grid { grid-template-columns: 1fr; }
  .form { max-width: 640px; }
  .filiales { grid-template-columns: repeat(2, 1fr); }
  .cybersite__grid { grid-template-columns: 1fr; }
  .mockups { width: 560px; max-width: 100%; margin-inline: auto; }
  .mega { font-size: 64px; }
}
@media (max-width: 760px) {
  .container, .hero__inner { width: calc(100% - 32px); }
  .topbar { margin-bottom: 40px; }
  .logo__sep, .logo__by, .logo__groupe { display: none; }
  .display { font-size: min(120px, 29vw); }
  .topbar { gap: 12px; }
  .logo__name { font-size: 20px; }
  .hero__title { font-size: 28px; }
  .hero__title br { display: none; }
  .steps { grid-template-columns: 1fr; gap: 24px; margin: 40px 0; }
  .hero__progress { top: 72px; }
  .hero__arrow { width: 44px; height: 44px; top: auto; bottom: 20px; transform: none; }
  .hero__arrow:hover { transform: none; }
  .steps::before { display: none; }
  .hero__inner { padding-bottom: 80px; }
  .h2 { font-size: 38px; line-height: 44px; }
  .about { padding: 64px 0; }
  .visual { flex-direction: column; }
  .visual__img { width: 100%; height: auto; }
  .stats { width: 100%; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .filiales { grid-template-columns: 1fr; }
  .groupe { padding-top: 72px; }
  .cybersite { padding: 96px 0; }
  .mega { font-size: 46px; }
  .mockups { height: 420px; transform: scale(.62); transform-origin: top left; width: 560px; margin-bottom: -160px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .hero__slide.is-active, .btn, .mockup { transition: none; }
  .hero__progress-fill.is-running { animation: none; width: 100%; }
}
