/* Accueil CapSI — complément de /style.css */

.home-page {
  overflow-x: hidden;
}

.home-page .logo img {
  height: 72px;
  display: block;
}

.home-page .nav-ai {
  color: var(--accent);
}

.home-page .nav-ai::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(123,231,196,.7);
}

.home-hero {
  position: relative;
  padding: 88px 0 78px;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 680px;
  height: 680px;
  right: -230px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105,167,255,.2), rgba(123,231,196,.07) 42%, transparent 70%);
  pointer-events: none;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
  gap: 60px;
  align-items: center;
}

.home-hero-copy h1 {
  margin: 0 0 24px;
  max-width: 820px;
  font-size: clamp(2.9rem, 5.55vw, 5.1rem);
  line-height: 1;
  letter-spacing: -.043em;
}

.home-hero-copy h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
}

.home-lead {
  max-width: 720px;
  margin: 0;
  color: #becbe2;
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.72;
}

.home-hero .hero-actions {
  margin: 32px 0 25px;
}

.btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-color: rgba(123,231,196,.24);
}

.btn-ai span {
  color: var(--accent);
  transition: translate .2s ease;
}

.btn-ai:hover span {
  translate: 4px 0;
}

.home-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-hero-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: .92rem;
}

.home-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.home-hero-side {
  display: grid;
  gap: 17px;
}

.home-hero-image {
  position: relative;
}

.home-hero-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7% 2% -2% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105,167,255,.18), transparent 68%);
  filter: blur(20px);
}

.home-hero-image img {
  display: block;
  width: 100%;
  border-radius: 25px;
  box-shadow: 0 25px 65px rgba(0,0,0,.3);
}

.hero-image-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 15px;
  background: rgba(8,17,32,.88);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}

.hero-label-security { left: -22px; bottom: 34px; }
.hero-label-ai { right: -18px; top: 30px; }

.label-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  color: #07111e;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.hero-image-label small,
.hero-image-label strong {
  display: block;
  line-height: 1.25;
}

.hero-image-label small {
  color: var(--muted);
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-image-label strong {
  font-size: .84rem;
}

.home-ai-teaser {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(123,231,196,.25);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(105,167,255,.09), rgba(123,231,196,.07));
  transition: translate .2s ease, border-color .2s ease;
}

.home-ai-teaser:hover {
  translate: 0 -3px;
  border-color: rgba(123,231,196,.45);
}

.teaser-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  color: var(--accent);
  background: rgba(123,231,196,.1);
  font-size: 1.2rem;
}

.teaser-copy small,
.teaser-copy strong,
.teaser-copy > span {
  display: block;
}

.teaser-copy small {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teaser-copy strong {
  margin: 2px 0;
  font-size: .98rem;
}

.teaser-copy > span {
  color: var(--muted);
  font-size: .76rem;
}

.teaser-arrow {
  color: var(--accent);
  font-size: 1.25rem;
}

.trust-item-ai {
  color: var(--accent);
}

.home-heading-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: end;
}

.home-heading-row h2,
.home-centered-heading h2 {
  max-width: 760px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.home-service-card {
  display: flex;
  min-height: 350px;
  padding: 28px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  transition: translate .2s ease, border-color .2s ease;
}

.home-service-card:hover {
  translate: 0 -5px;
  border-color: rgba(105,167,255,.32);
}

.home-service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid rgba(105,167,255,.2);
  border-radius: 15px;
  color: var(--primary);
  background: rgba(105,167,255,.075);
}

.home-service-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-overline {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.home-service-card h3 {
  margin: 0 0 13px;
  font-size: 1.38rem;
  line-height: 1.18;
}

.home-service-card > p:not(.card-overline) {
  margin: 0 0 25px;
  color: var(--muted);
}

.home-service-card > a {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  color: #dfe8f6;
  font-size: .9rem;
  font-weight: 700;
}

.home-service-card > a span {
  color: var(--accent);
  transition: translate .2s ease;
}

.home-service-card > a:hover span {
  translate: 4px 0;
}

.home-ai-section {
  position: relative;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.home-ai-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr);
  gap: 58px;
  align-items: center;
  padding: 52px;
  border: 1px solid rgba(105,167,255,.24);
  border-radius: 30px;
  background: linear-gradient(130deg, rgba(105,167,255,.1), rgba(123,231,196,.045) 55%, rgba(255,255,255,.025));
  box-shadow: 0 25px 70px rgba(0,0,0,.27);
}

.home-ai-copy h2 {
  max-width: 650px;
  margin: 9px 0 20px;
  font-size: clamp(2.05rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.home-ai-intro {
  max-width: 680px;
  margin: 0 0 27px;
  color: #becbe2;
  font-size: 1.07rem;
}

.home-ai-benefits {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.home-ai-benefits > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}

.home-ai-benefits > div > span {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 2;
}

.home-ai-benefits p,
.home-ai-benefits strong {
  display: block;
  margin: 0;
}

.home-ai-benefits p {
  color: var(--muted);
  font-size: .88rem;
}

.home-ai-benefits strong {
  margin-bottom: 1px;
  color: var(--text);
  font-size: .94rem;
}

.home-ai-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.home-ai-note {
  margin: 11px 0 0;
  color: #8290aa;
  font-size: .76rem;
}

.home-ai-flow {
  padding: 27px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 23px;
  background: rgba(5,12,25,.56);
}

.flow-title {
  margin-bottom: 16px;
  color: #dce6f5;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mini-flow {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 12px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.03);
}

.mini-flow-active {
  border-color: rgba(123,231,196,.3);
  background: linear-gradient(110deg, rgba(105,167,255,.09), rgba(123,231,196,.06));
}

.flow-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #07111e;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: .8rem;
  font-weight: 900;
}

.flow-body > strong {
  display: block;
  margin-bottom: 9px;
  font-size: .93rem;
}

.flow-line {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.flow-line span {
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: #d4deed;
  background: rgba(255,255,255,.035);
  font-size: .7rem;
  font-style: normal;
}

.flow-line .flow-highlight {
  border-color: rgba(123,231,196,.26);
  color: var(--accent);
}

.flow-line i {
  color: var(--primary);
  font-size: .75rem;
  font-style: normal;
}

.flow-body small {
  display: block;
  margin-top: 9px;
  color: #8491a9;
  font-size: .68rem;
}

.flow-link {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: .83rem;
  font-weight: 700;
}

.home-centered-heading {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.home-centered-heading .section-intro {
  margin-inline: auto;
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.home-benefit-grid article {
  padding: 25px;
  border-top: 1px solid rgba(105,167,255,.3);
  background: linear-gradient(180deg, rgba(105,167,255,.05), transparent 75%);
}

.home-benefit-grid article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(123,231,196,.17);
  border-radius: 11px;
  color: var(--accent);
  background: rgba(123,231,196,.06);
}

.home-benefit-grid h3 {
  margin: 0 0 9px;
  font-size: 1.13rem;
}

.home-benefit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.home-steps .step {
  min-height: 220px;
}

.home-choice-section {
  padding-top: 30px;
}

.home-choice-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.home-choice-grid h2 {
  margin: 7px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.home-choice-grid > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
}

.home-choice-cards {
  display: grid;
  gap: 12px;
}

.home-choice-cards > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

.home-choice-cards > a:hover {
  border-color: rgba(105,167,255,.35);
}

.home-choice-cards .choice-ai {
  border-color: rgba(123,231,196,.23);
  background: linear-gradient(110deg, rgba(105,167,255,.07), rgba(123,231,196,.05));
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(123,231,196,.08);
}

.home-choice-cards small,
.home-choice-cards strong {
  display: block;
}

.home-choice-cards small {
  color: var(--muted);
  font-size: .72rem;
}

.home-choice-cards strong {
  font-size: .96rem;
}

.home-choice-cards > a > span:last-child {
  color: var(--accent);
}

.home-faq-list {
  grid-template-columns: repeat(3, 1fr);
}

.home-faq-list .faq-item {
  height: 100%;
}

.home-contact-box {
  border-color: rgba(105,167,255,.2);
  background: linear-gradient(120deg, rgba(105,167,255,.08), rgba(123,231,196,.04));
}

@media (max-width: 1080px) {
  .home-page .main-nav { gap: 14px; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-copy { max-width: 820px; }
  .home-hero-side { width: min(620px, 100%); margin-inline: auto; }
  .home-ai-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .home-page .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 14px;
  }

  .home-page .logo img { height: 62px; }
  .home-heading-row,
  .home-choice-grid { grid-template-columns: 1fr; gap: 26px; }
  .home-service-grid { grid-template-columns: 1fr; }
  .home-service-card { min-height: auto; }
  .home-benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .home-faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .home-page .main-nav {
    width: 100%;
    gap: 8px 14px;
    font-size: .88rem;
  }

  .home-page .main-nav a:nth-child(3),
  .home-page .main-nav a:nth-child(4),
  .home-page .main-nav a:nth-child(5) { display: none; }

  .home-hero { padding: 58px 0 52px; }
  .home-hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .home-hero-points { display: grid; gap: 8px; }
  .hero-label-security { left: -8px; bottom: 15px; }
  .hero-label-ai { right: -7px; top: 15px; }
  .hero-image-label { padding: 8px 10px; }
  .hero-image-label strong { font-size: .72rem; }
  .hero-image-label small { font-size: .58rem; }
  .label-icon { width: 27px; height: 27px; }
  .teaser-copy > span { display: none; }
  .home-ai-panel { padding: 25px; }
  .home-ai-flow { padding: 18px; }
  .flow-line { gap: 4px; }
  .flow-line span { padding: 5px 6px; font-size: .64rem; }
  .home-benefit-grid { grid-template-columns: 1fr; }
  .home-choice-grid { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .btn,
  .home-ai-teaser,
  .home-service-card { transition: none; }
}
