/* Page d'accueil : grands titres à gauche, cartes très arrondies, boutons en pilule. */
.home {
  --h-bg: #0d0b1d;
  --h-card: #161430;
  --h-card-2: #1d1b3c;
  --h-line: rgba(255, 255, 255, .09);
  --h-text: #f4f5f8;
  --h-text-2: #b5bacb;
  --h-muted: #7d8399;
  --h-accent: #8b6cff;
  --h-accent-2: #22d3ee;
  background: var(--h-bg);
  color: var(--h-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.home h1, .home h2, .home h3 { font-family: Inter, -apple-system, sans-serif; }
.h-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Navigation */
.h-nav { position: sticky; top: 0; z-index: 50; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.h-nav.scrolled { background: rgba(13, 11, 29, .85); backdrop-filter: blur(16px); border-color: var(--h-line); }
.h-nav-in { display: flex; align-items: center; gap: 36px; height: 72px; }
.h-logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.h-logo img { width: 32px; height: 32px; border-radius: 9px; }
.h-links { display: flex; gap: 28px; flex: 1; }
.h-links a, .h-link { color: var(--h-text-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.h-links a:hover, .h-link:hover { color: #fff; }
.h-actions { display: flex; align-items: center; gap: 22px; }

/* Boutons en pilule */
.h-pill { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px; font: 600 16px Inter, sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.h-pill:hover { transform: translateY(-1px); }
.h-pill.white { background: #fff; color: #0a0a0f; }
.h-pill.white:hover { background: #e9e6ff; }
.h-pill.outline { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.h-pill.outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.h-pill.sm { height: 40px; padding: 0 20px; font-size: 14px; }

/* Héros */
.h-hero { position: relative; overflow: hidden; padding: 56px 0 90px; }
.h-hero-glow { position: absolute; inset: -20% -10% auto auto; width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(139, 108, 255, .35), transparent 70%); pointer-events: none; }
.h-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.h-hero h1 span { display: block; white-space: nowrap; }
.h-hero h1 { font-size: clamp(44px, 4.9vw, 72px); line-height: .98; font-weight: 500; letter-spacing: -.045em; margin: 0 0 26px; }
.h-hero p { font-size: 20px; line-height: 1.55; color: var(--h-text-2); max-width: 520px; margin: 0 0 34px; }
.h-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.h-small { display: block; color: var(--h-muted); font-size: 14px; }
.h-hero-media { position: relative; margin-right: -180px; }
.h-hero-media img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--h-line); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 108, 255, .15); }
.h-float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: #111; font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .7); }
.h-float b { font-size: 18px; color: #6d4aff; }
.h-float-1 { left: -34px; bottom: 60px; }
.h-float-2 { left: 42%; top: -22px; }
.h-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

/* Bandeau */
.h-strip { border-top: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); }
.h-strip-in { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 26px 32px; color: var(--h-muted); font-size: 14px; }
.h-strip-in b { color: #e9eaf0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; opacity: .85; }

/* Sections */
.h-section { padding: 120px 0 0; }
.h-title { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; font-weight: 500; letter-spacing: -.04em; margin: 0 0 48px; }
.h-muted { color: var(--h-muted); }
.h-lead { font-size: 19px; color: var(--h-text-2); max-width: 620px; margin: -24px 0 44px; line-height: 1.6; }

/* Rangée de captures */
.h-shots { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.h-shot { margin: 0; border-radius: 26px; overflow: hidden; background: var(--h-card); border: 1px solid var(--h-line); display: flex; flex-direction: column; }
.h-shot img { width: 100%; aspect-ratio: 16/11; object-fit: cover; object-position: left top; display: block; border-bottom: 1px solid var(--h-line); }
.h-shot figcaption { padding: 22px 24px 26px; display: grid; gap: 6px; }
.h-shot figcaption b { font-size: 18px; }
.h-shot figcaption span { color: var(--h-text-2); font-size: 15px; line-height: 1.5; }

/* Grille de fonctionnalités */
.h-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-card { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(180deg, var(--h-card-2), var(--h-card)); border: 1px solid var(--h-line); padding: 32px; display: flex; flex-direction: column; gap: 26px; min-height: 360px; }
.h-card.span2 { grid-column: span 2; flex-direction: row; align-items: center; }
.h-card.span2 .h-card-text { flex: 1; }
.h-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.h-card p { color: var(--h-text-2); margin: 0; line-height: 1.55; }
.h-ui { margin-top: auto; border-radius: 18px; background: #090a0e; border: 1px solid var(--h-line); padding: 18px; font-size: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.h-card.span2 .h-ui { margin-top: 0; flex: 1; }
.h-steps { display: grid; gap: 8px; }
.h-steps div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--h-muted); }
.h-steps div::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #3a3f52; flex: none; }
.h-steps .ok { color: var(--h-text-2); }
.h-steps .ok::before { border-color: #22c55e; background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.h-steps .now { background: rgba(139, 108, 255, .14); color: #fff; }
.h-steps .now::before { border-color: var(--h-accent); }
.h-product { display: grid; gap: 12px; }
.h-thumb { height: 110px; border-radius: 12px; background: radial-gradient(circle at 50% 45%, #ffcf7a, #ff7a59 45%, #6d4aff 100%); }
.h-product b { display: block; }
.h-product small { color: var(--h-muted); }
.h-prices { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: rgba(255, 255, 255, .03); border-radius: 10px; padding: 8px 0; }
.h-prices span { display: grid; color: var(--h-muted); font-size: 12px; }
.h-prices b { color: #fff; font-size: 14px; }
.pos { color: #4ade80 !important; }
.h-btn { text-align: center; padding: 10px; border-radius: 10px; background: linear-gradient(135deg, #8b6cff, #22d3ee); color: #fff; font-weight: 600; }
.h-ad b { display: block; margin-bottom: 8px; }
.h-ad p { color: var(--h-text-2); font-size: 14px; margin: 0 0 12px; }
.h-ad-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 10px 12px; }
.h-ad-foot i { font-style: normal; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: rgba(139, 108, 255, .25); }
.h-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-kpis div { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.h-kpis small { color: var(--h-muted); }
.h-kpis b { font-size: 26px; letter-spacing: -.03em; }
.h-chat { display: grid; gap: 10px; }
.h-chat div { padding: 10px 14px; border-radius: 14px; max-width: 90%; line-height: 1.5; }
.h-chat .me { justify-self: end; background: linear-gradient(135deg, #8b6cff, #6d4aff); }
.h-chat .bot { background: rgba(255, 255, 255, .06); color: var(--h-text-2); }

/* Mur d'outils */
.h-wall { display: grid; gap: 18px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.h-wall-row { overflow: hidden; }
.h-wall-track { display: flex; gap: 18px; width: max-content; animation: h-scroll 40s linear infinite; }
.h-wall-row:nth-child(2) .h-wall-track { animation-direction: reverse; }
@keyframes h-scroll { to { transform: translateX(-50%); } }
.h-tile { display: grid; justify-items: center; gap: 10px; width: 132px; padding: 22px 10px; border-radius: 24px; background: var(--h-card); border: 1px solid var(--h-line); }
.h-tile span { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8b6cff, #22d3ee); }
.h-tile:nth-child(3n) span { background: linear-gradient(135deg, #f97316, #8b6cff); }
.h-tile:nth-child(4n) span { background: linear-gradient(135deg, #10b981, #22d3ee); }
.h-tile small { color: var(--h-text-2); font-size: 13px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .h-wall-track { animation: none; } }

/* Étapes */
.h-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-steps3 div { padding: 32px; border-radius: 26px; border: 1px solid var(--h-line); background: var(--h-card); }
.h-steps3 span { font-size: 15px; font-weight: 600; color: var(--h-accent); }
.h-steps3 h3 { font-size: 24px; font-weight: 600; margin: 16px 0 8px; letter-spacing: -.02em; }
.h-steps3 p { color: var(--h-text-2); margin: 0; line-height: 1.55; }

/* Tarifs, affiliation, FAQ */
.h-pricing .plans { margin-top: 0; }
.h-aff { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.h-aff .h-lead { margin-top: -24px; }
.h-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.h-faq-grid .faq { margin: 0; max-width: none; }

/* CTA final */
.h-final { margin-top: 140px; padding: 110px 0; background: radial-gradient(900px 500px at 15% 0%, rgba(139, 108, 255, .35), transparent 60%), #0a0b10; border-top: 1px solid var(--h-line); }
.h-final h2 { font-size: clamp(42px, 5.6vw, 76px); font-weight: 500; line-height: 1; letter-spacing: -.045em; margin: 0 0 36px; }
.h-email { display: flex; gap: 10px; max-width: 560px; margin-bottom: 16px; }
.h-email input { flex: 1; height: 52px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 24px; font: 16px Inter, sans-serif; }
.h-email input:focus { outline: none; border-color: #fff; }

/* Pied de page */
.h-footer { padding: 70px 0 40px; border-top: 1px solid var(--h-line); }
.h-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.h-foot-grid p { color: var(--h-muted); max-width: 280px; }
.h-foot-grid h4 { margin: 0 0 14px; font-size: 14px; color: #fff; }
.h-foot-grid a:not(.h-logo) { display: block; color: var(--h-muted); text-decoration: none; padding: 5px 0; font-size: 14px; }
.h-foot-grid a:not(.h-logo):hover { color: #fff; }
.h-copy { margin-top: 50px; color: #5d6278; font-size: 13px; }

/* Téléphone et tablette */
@media (max-width: 1100px) {
  .h-hero-media { margin-right: -32px; }
  .h-bento { grid-template-columns: 1fr 1fr; }
  .h-card.span2 { grid-column: span 2; }
}
@media (max-width: 820px) {
  .h-wrap { padding: 0 16px; }
  .h-links, .h-link { display: none; }
  .h-nav-in { justify-content: space-between; }
  .h-actions { gap: 14px; }
  .h-hero { padding: 30px 0 60px; }
  .h-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .h-hero h1 span { white-space: normal; }
  .h-hero-media { margin-right: 0; }
  .h-float-1 { left: 10px; bottom: -18px; }
  .h-float-2 { left: auto; right: 10px; top: -18px; }
  .h-section { padding-top: 80px; }
  .h-title { margin-bottom: 32px; }
  .h-lead { margin: -14px 0 32px; }
  .h-shots, .h-bento, .h-steps3, .h-aff, .h-faq-grid, .h-foot-grid { grid-template-columns: 1fr; }
  .h-card.span2 { grid-column: auto; flex-direction: column; align-items: stretch; }
  .h-card { min-height: 0; padding: 24px; }
  .h-strip-in { gap: 20px 28px; }
  .h-strip-in b { font-size: 18px; }
  .h-email { flex-direction: column; }
  .h-final { margin-top: 90px; padding: 70px 0; }
}

/* Annule le rembourrage générique des sections de site.css sur cette page */
.home section.h-strip { padding: 0 !important; }
.home section.h-hero { padding: 56px 0 90px !important; }
.home section.h-section { padding: 120px 0 0 !important; }
.home section.h-final { padding: 110px 0 !important; }
@media (max-width: 820px) {
  .home section.h-hero { padding: 30px 0 60px !important; }
  .home section.h-section { padding: 80px 0 0 !important; }
  .home section.h-final { padding: 70px 0 !important; }
}

/* Très petits écrans */
@media (max-width: 440px) {
  .h-logo { font-size: 15px; gap: 8px; }
  .h-logo img { width: 28px; height: 28px; }
  .h-pill.sm { height: 36px; padding: 0 14px; font-size: 13px; }
  .h-nav-in { gap: 12px; }
}
@media (max-width: 360px) {
  .h-nav .h-logo { font-size: 0; }
}

/* =================== Sections claires (crème) =================== */
.home section.h-light {
  --h-card: #ffffff; --h-card-2: #ffffff; --h-line: rgba(15, 14, 30, .09);
  --h-text: #121226; --h-text-2: #4b4f63; --h-muted: #8a8ea3;
  --card: #ffffff; --card-2: #ffffff; --line: rgba(15, 14, 30, .09); --line-2: rgba(15, 14, 30, .14);
  --text: #121226; --text-2: #4b4f63; --muted: #8a8ea3;
  background: #f6f4ef; color: var(--h-text);
  padding: 110px 0 !important; margin-top: 110px;
}
.home section.h-light + section.h-light { margin-top: 0; padding-top: 0 !important; }
.home .h-light .h-shot, .home .h-light .h-tile, .home .h-light .h-steps3 div { box-shadow: 0 18px 40px -24px rgba(20, 18, 50, .25); }
.home .h-light .h-shot img { border-bottom-color: rgba(15, 14, 30, .08); }
.home .h-light .h-wall { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.home .h-light .h-tile small { color: #3d4155; }
/* Tarifs sur fond clair */
.home .h-light .plan { background: #fff; box-shadow: 0 20px 50px -30px rgba(20, 18, 50, .3); color: var(--text); }
.home .h-light .plan.popular { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #8b6cff, #22d3ee) border-box; box-shadow: 0 40px 80px -40px rgba(109, 74, 255, .55); }
.home .h-light .plan .price, .home .h-light .plan h3, .home .h-light .plan b { color: #121226; }
.home .h-light .plan li::before { color: #10b981; }
.home .h-light .btn:not(.primary) { background: #f1f0f7; border-color: rgba(15, 14, 30, .12); color: #121226; }
.home .h-light .btn:not(.primary):hover { background: #e8e6f4; }
.home .h-light .note { color: #8a8ea3; }
/* FAQ sur fond clair */
.home .h-light .faq details { background: #fff; box-shadow: 0 10px 30px -22px rgba(20, 18, 50, .3); }
.home .h-light .faq summary { color: #121226; }
.home .h-light .faq summary::after { color: #6d4aff; }
.home .h-light .faq details[open] { border-color: rgba(109, 74, 255, .35); }
/* Section sombre juste après une section claire : on lui redonne de l'air */
.home section.h-light + section:not(.h-light) { padding-top: 110px !important; }
@media (max-width: 820px) {
  .home section.h-light { padding: 70px 0 !important; margin-top: 70px; }
  .home section.h-light + section:not(.h-light) { padding-top: 70px !important; }
}
.home section.h-strip + section.h-light { margin-top: 0; }
.home section.h-light + .h-final { margin-top: 0; }
