/* ============================================================
   ACCUEIL — HOME.CSS
   Direction visuelle : vitrine premium, moderne et éditoriale.
   Le HTML actuel est conservé.
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp .7s cubic-bezier(.22,.61,.36,1) both; }
.fade-in.d2 { animation-delay: .14s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heroGlow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.04); }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: min(790px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: clamp(66px, 8vw, 116px) 0 clamp(74px, 9vw, 124px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 38%, rgba(60,140,220,.11), transparent 32rem),
    radial-gradient(circle at 96% 0%, rgba(129,114,221,.08), transparent 24rem);
}

#hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(720px, 60vw);
  aspect-ratio: 1;
  right: -14%;
  top: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,140,220,.09), transparent 67%);
  filter: blur(8px);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1px;
  height: 55%;
  left: max(var(--gutter), calc((100vw - var(--container)) / 2 + 24px));
  top: 22%;
  background: linear-gradient(transparent, rgba(37,107,176,.12), transparent);
  pointer-events: none;
}

#hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(42px, 6vw, 100px);
  align-items: center;
}

#hero article { position: relative; max-width: 760px; }

#hero article::after {
  content: "VT / 01";
  position: absolute;
  right: 0;
  bottom: -46px;
  color: rgba(37,107,176,.22);
  font: 600 .7rem var(--font-display);
  letter-spacing: .16em;
}

#hero .lede {
  margin: 18px 0 0;
  max-width: 58ch;
}

#hero .button-row { margin-top: 31px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: fit-content;
  max-width: 100%;
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-stat {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: 0; padding-right: 0; }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}

.hero-stat span {
  display: block;
  margin-top: 3px;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.35;
}

/* --- Illustration hero --- */
.hero-visual {
  position: relative;
  padding: 30px 56px 42px;
  min-width: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 84%;
  height: 84%;
  left: 8%;
  top: 8%;
  border: 1px solid rgba(60,140,220,.13);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-visual::after {
  content: "DIGITAL / 2026";
  position: absolute;
  right: 0;
  bottom: 0;
  font: 600 .65rem var(--font-display);
  letter-spacing: .16em;
  color: rgba(37,107,176,.48);
}

.hero-monitor {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  filter: drop-shadow(0 28px 45px rgba(37,107,176,.19));
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

.hero-visual:hover .hero-monitor { transform: translateY(-5px); }
.hero-monitor svg { width: 100%; height: auto; display: block; }

.hero-badge {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 13px 20px rgba(27,39,53,.13));
}

.hero-badge .icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 0 0 5px rgba(255,255,255,.55);
}

.hero-badge .icon-badge svg { width: 24px; height: 24px; }

.badge-1 { top: 2%; right: 1%; animation: floatY 4.8s ease-in-out infinite; }
.badge-2 { top: 24%; left: -3%; animation: floatY 5.6s ease-in-out infinite .3s; }
.badge-3 { bottom: 5%; left: 2%; animation: floatY 5s ease-in-out infinite .6s; }
.badge-4 { bottom: -2%; right: 13%; animation: floatY 5.8s ease-in-out infinite .15s; }

@media (max-width: 1200px) {
  #hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
    gap: 36px;
  }

  .hero-visual { padding: 24px 34px 38px; }
  .hero-monitor { max-width: 400px; }
  .hero-stat { padding-left: 15px; padding-right: 15px; }
}

@media (max-width: 900px) {
  #hero {
    min-height: auto;
    padding-top: 52px;
  }

  #hero::after { display: none; }

  #hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-visual {
    order: -1;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 20px 48px 36px;
  }

  #hero article::after { display: none; }

  .hero-stats {
    width: 100%;
  }
}

@media (max-width: 640px) {
  #hero { padding: 42px 0 70px; }
  #hero .container { gap: 25px; }
  #hero .lede { font-size: 1rem; }

  .hero-visual {
    padding: 14px 32px 30px;
  }

  .hero-visual::before { width: 92%; height: 82%; left: 4%; }
  .hero-monitor { max-width: 340px; }

  .hero-badge .icon-badge {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    box-shadow: 0 0 0 4px rgba(255,255,255,.55);
  }

  .hero-badge .icon-badge svg { width: 19px; height: 19px; }

  .badge-1 { top: 1%; right: 0; }
  .badge-2 { top: 24%; left: -1%; }
  .badge-3 { bottom: 5%; left: 2%; }
  .badge-4 { bottom: -2%; right: 8%; }

  .hero-stats {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0;
  }

  .hero-stat,
  .hero-stat:first-child,
  .hero-stat:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stat:last-child { border-bottom: 0; }
}

/* ============================================================
   SHOWCASE
   ============================================================ */
#showcase .section-head { max-width: 680px; }

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 18px clamp(30px, 5vw, 68px);
}

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

.showcase-tab-label {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.68);
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.showcase-tab-label:hover {
  border-color: rgba(60,140,220,.45);
  transform: translateX(3px);
}

.showcase-tab-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: #8eafd0;
  font-size: 1rem;
  flex-shrink: 0;
  padding-top: 1px;
}

.showcase-tab-label strong {
  display: block;
  color: var(--ink);
  font-size: .96rem;
  margin-bottom: 3px;
}

.showcase-tab-label small {
  color: var(--muted);
  font-size: .81rem;
  font-weight: 400;
  line-height: 1.45;
}

.showcase-radio:checked + .showcase-tab-label {
  border-color: rgba(60,140,220,.55);
  background: white;
  box-shadow: 0 12px 28px -18px rgba(37,107,176,.55), inset 3px 0 0 var(--blue-deep);
  transform: translateX(4px);
}

.showcase-radio:checked + .showcase-tab-label .showcase-tab-index { color: var(--blue-deep); }
.showcase-radio:focus-visible + .showcase-tab-label {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}

.showcase-grid > input:nth-of-type(1),
.showcase-grid > label:nth-of-type(1) { grid-row: 1; grid-column: 1; }
.showcase-grid > input:nth-of-type(2),
.showcase-grid > label:nth-of-type(2) { grid-row: 2; grid-column: 1; }
.showcase-grid > input:nth-of-type(3),
.showcase-grid > label:nth-of-type(3) { grid-row: 3; grid-column: 1; }
.showcase-grid > input:nth-of-type(4),
.showcase-grid > label:nth-of-type(4) { grid-row: 4; grid-column: 1; }

.showcase-screen {
  grid-row: 1 / 5;
  grid-column: 2;
  padding: 0;
  overflow: hidden;
  align-self: stretch;
  border-color: rgba(203,217,229,.95);
  box-shadow: 0 25px 60px -30px rgba(23,37,54,.28);
}

.showcase-screen-head {
  padding: 13px 18px;
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 7px;
}

.showcase-screen-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.showcase-screen-head span:nth-child(1) { background: #ef5f77; }
.showcase-screen-head span:nth-child(2) { background: #e0a52a; }
.showcase-screen-head span:nth-child(3) { background: #34a06b; }

.showcase-panes { position: relative; min-height: 320px; }
.pane { display: none; padding: 32px; }
.pane svg { width: 100%; height: auto; display: block; }

#tab-devis:checked ~ .showcase-screen #pane-devis,
#tab-rdv:checked ~ .showcase-screen #pane-rdv,
#tab-espace:checked ~ .showcase-screen #pane-espace,
#tab-galerie:checked ~ .showcase-screen #pane-galerie {
  display: block;
  animation: fadeInUp .35s ease;
}

.pane-features {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pane-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}

.pane-features li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

@media (min-width: 901px) {
  .showcase-scroller .showcase-grid {
    position: sticky;
    top: 92px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .showcase-scroller .showcase-grid { top: 88px; }
}

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; }

  .showcase-grid > input,
  .showcase-grid > label,
  .showcase-grid > .showcase-screen {
    grid-column: 1 !important;
  }

  .showcase-grid > input:nth-of-type(1),
  .showcase-grid > label:nth-of-type(1) { grid-row: 1; }
  .showcase-grid > input:nth-of-type(2),
  .showcase-grid > label:nth-of-type(2) { grid-row: 2; }
  .showcase-grid > input:nth-of-type(3),
  .showcase-grid > label:nth-of-type(3) { grid-row: 3; }
  .showcase-grid > input:nth-of-type(4),
  .showcase-grid > label:nth-of-type(4) { grid-row: 4; }

  .showcase-screen { grid-row: 5; margin-top: 10px; }
}

@media (max-width: 640px) {
  .showcase-tab-label { padding: 16px; }
  .pane { padding: 22px 18px; }
}

/* ============================================================
   COMMENT ÇA MARCHE
   ============================================================ */
.steps-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
}

.steps-row::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(60,140,220,.35), var(--line));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 7px var(--white);
}

.step h3 { margin-bottom: 4px; }
.step p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
  max-width: 32ch;
}

@media (max-width: 800px) {
  .steps-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps-row::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .step { padding-left: 68px; min-height: 48px; }
  .step .icon-badge { position: absolute; left: 0; top: 0; }
}

/* ============================================================
   AUDIT
   ============================================================ */
#audit {
  background:
    radial-gradient(circle at 12% 40%, rgba(60,140,220,.08), transparent 25rem),
    linear-gradient(180deg, #fbfdff, #f5faff);
}

#audit .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.audit-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.audit-point {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.audit-point p {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}

.audit-point strong {
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
}

#audit form.card {
  padding: clamp(25px, 4vw, 38px);
  box-shadow: 0 24px 65px -34px rgba(23,37,54,.25);
}

@media (max-width: 900px) {
  #audit .container { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA FINALE
   ============================================================ */
#cta-final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(129,114,221,.34), transparent 30rem),
    radial-gradient(circle at 8% 100%, rgba(60,140,220,.25), transparent 28rem),
    #173f69;
  color: white;
  padding: clamp(68px, 9vw, 112px) 0 clamp(48px, 6vw, 72px);
}

#cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,.035), transparent 35%, rgba(255,255,255,.025));
  pointer-events: none;
}

#cta-final .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

#cta-final h2 {
  margin: 0;
  max-width: 560px;
  color: white;
}

#cta-final .btn-secondary {
  background: white;
  border-color: white;
  color: var(--blue-dark);
  min-width: 180px;
}

#cta-final .btn-secondary:hover {
  background: #f0f7fd;
  color: var(--blue-dark);
}

@media (max-width: 640px) {
  #cta-final .container { align-items: flex-start; }
  #cta-final .btn-secondary { width: 100%; }
}

/* ============================================================
   MOUVEMENT ACCESSIBLE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .phone-badge,
  #hero::before { animation: none !important; }

  .hero-visual:hover .hero-monitor,
  .review-slip:hover,
  .showcase-tab-label:hover { transform: none; }
}
