/**
 * Direction B — Tech moderne.
 * Polices auto-hébergées (aucun appel à Google Fonts).
 */

@font-face { font-family: Outfit; src: url("../assets/fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Outfit; src: url("../assets/fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Outfit; src: url("../assets/fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Outfit; src: url("../assets/fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Outfit; src: url("../assets/fonts/outfit-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("../assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("../assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("../assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("../assets/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --kis-blue: #1979E5;
  --kis-blue-light: #3aa0ff;
  --kis-cyan: #4cc9f0;
  --kis-bg: #070b14;
  --kis-panel: #101827;
  --kis-ink: #eef3fb;
  --kis-muted: #9aa8bd;
  --kis-line: rgba(255, 255, 255, 0.08);
  --kis-radius: 16px;
  --kis-wrap: 1140px;
}

/* Fond et typographie globaux */
body.kis-theme,
body.kis-theme #page,
body.kis-theme .site {
  background: var(--kis-bg);
  color: var(--kis-ink);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

body.kis-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(25, 121, 229, 0.35), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(76, 201, 240, 0.12), transparent 55%),
    linear-gradient(180deg, #070b14, #0b1220 40%, #070b14);
}

body.kis-theme h1,
body.kis-theme h2,
body.kis-theme h3,
body.kis-theme h4,
body.kis-theme h5,
body.kis-theme h6 {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--kis-ink);
  letter-spacing: -0.04em;
}

body.kis-theme a { color: var(--kis-cyan); }
body.kis-theme a:hover { color: #fff; }
body.kis-theme :focus-visible { outline: 3px solid var(--kis-blue); outline-offset: 3px; }

/* En-tête GeneratePress */
body.kis-theme .site-header,
body.kis-theme .main-navigation,
body.kis-theme .main-navigation .inside-navigation,
body.kis-theme .main-navigation .main-nav ul {
  background: rgba(7, 11, 20, 0.8);
}
body.kis-theme .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--kis-line);
  box-shadow: none;
}
body.kis-theme .inside-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
body.kis-theme .site-branding,
body.kis-theme .site-logo,
body.kis-theme .header-image {
  margin: 0;
}
body.kis-theme .site-logo img,
body.kis-theme .header-image img,
body.kis-theme .custom-logo {
  width: 128px;
  height: auto;
  max-height: 56px;
}

/* Le logo suffit dans l’en-tête : pas de titre de site à côté. Le H1 reste dans le contenu. */
body.kis-theme .site-header .main-title,
body.kis-theme .site-header .site-description,
body.kis-theme .site-branding .main-title,
body.kis-theme .site-branding .site-description {
  display: none;
}
/* Titre de page GeneratePress masqué : chaque page a déjà son H1 dans le hero. */
body.kis-theme.page .entry-header,
body.kis-theme.page .page-header,
body.kis-theme.home .entry-header {
  display: none;
}
body.kis-theme .main-navigation .main-nav > ul > li > a {
  color: var(--kis-muted);
  font-weight: 500;
  font-size: 0.95rem;
  background: transparent;
}
body.kis-theme .main-navigation .main-nav > ul > li > a:hover,
body.kis-theme .main-navigation .main-nav > ul > li[class*="current"] > a {
  color: #fff;
  background: transparent;
}
body.kis-theme .menu-toggle,
body.kis-theme .menu-toggle:hover,
body.kis-theme .menu-toggle:focus {
  color: #fff;
  background: transparent;
  border: 1px solid var(--kis-line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.kis-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}
.kis-phone {
  font-weight: 600;
  text-decoration: none;
  color: #fff !important;
  white-space: nowrap;
}
.kis-phone:hover { color: var(--kis-cyan) !important; }

.kis-btn,
body.kis-theme .wp-block-button__link,
body.kis-theme .gb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-family: Outfit, system-ui, sans-serif;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  line-height: 1.2;
  border: 1px solid transparent;
}
.kis-btn-primary,
body.kis-theme .wp-block-button__link,
body.kis-theme .wp-block-button:not(.is-style-kis-ghost) .wp-block-button__link {
  background: linear-gradient(90deg, #1979E5, #3aa0ff);
  color: #fff !important;
  box-shadow: 0 0 24px rgba(25, 121, 229, 0.35);
}
.kis-btn-primary:hover,
body.kis-theme .wp-block-button:not(.is-style-kis-ghost) .wp-block-button__link:hover {
  filter: brightness(1.08);
  color: #fff !important;
}
.kis-btn-ghost,
body.kis-theme .is-style-kis-ghost .wp-block-button__link {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent !important;
  box-shadow: none;
}
.kis-btn-ghost:hover,
body.kis-theme .is-style-kis-ghost .wp-block-button__link:hover {
  border-color: #fff;
  background: transparent !important;
}

/* Contenu : retirer le « carton » blanc de GeneratePress */
body.kis-theme .separate-containers .inside-article,
body.kis-theme .one-container .inside-article,
body.kis-theme .inside-article,
body.kis-theme .comments-area,
body.kis-theme .grid-container {
  background: transparent;
  box-shadow: none;
}
body.kis-theme .site-content,
body.kis-theme .content-area,
body.kis-theme article {
  color: var(--kis-ink);
}
body.kis-theme .entry-title,
body.kis-theme .page-header h1 {
  letter-spacing: -0.04em;
}

/* Sections de compositions */
.kis-section,
.kis-hero,
.kis-cta {
  padding: 4.8rem 0;
}
.kis-hero { padding-top: 3.4rem; }
.kis-eyebrow {
  color: var(--kis-cyan);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 1rem;
}
.kis-hero h1,
.kis-hero :where(h1) {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 0 0 1.2rem;
}
.kis-hero h1 em,
.kis-hero h1 strong,
.kis-gradient {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, #fff, #7ec8ff);
  -webkit-background-clip: text;
  background-clip: text;
}
.kis-lead,
.kis-section > p,
.kis-section .kis-intro {
  font-size: 1.15rem;
  color: var(--kis-muted);
  max-width: 38rem;
}
.kis-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
}
.kis-hero-grid figure,
.kis-hero-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0;
  box-shadow: 0 0 0 1px var(--kis-line);
}
.kis-hero-grid img {
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.kis-breadcrumb,
.kis-breadcrumb a {
  color: var(--kis-muted);
  font-size: 0.88rem;
  text-decoration: none;
}
.kis-breadcrumb { margin: 0 0 1.4rem; }

/* Cartes, bénéfices, services */
.kis-cards,
.kis-benefits,
.kis-steps,
.kis-related,
.kis-reviews {
  display: grid;
  gap: 0.9rem;
}
.kis-cards,
.kis-benefits,
.kis-steps { grid-template-columns: repeat(3, 1fr); }
.kis-related,
.kis-reviews { grid-template-columns: repeat(4, 1fr); }
.kis-reviews { grid-template-columns: repeat(3, 1fr); }

.kis-card,
.kis-benefit,
.kis-step,
.kis-review,
.kis-related a,
.wp-block-group.is-style-kis-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--kis-line);
  border-radius: var(--kis-radius);
  padding: 1.3rem 1.2rem;
  color: inherit;
  text-decoration: none;
}
.kis-card:hover,
.kis-related a:hover,
.kis-step:hover {
  border-color: rgba(25, 121, 229, 0.6);
  box-shadow: 0 0 0 1px rgba(25, 121, 229, 0.25);
}
.kis-card h3,
.kis-card h4,
.kis-benefit h3,
.kis-step h3,
.kis-related h3 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.kis-card p,
.kis-benefit p,
.kis-step p,
.kis-related p,
.kis-review p {
  margin: 0;
  color: var(--kis-muted);
  font-size: 0.95rem;
}
.kis-group-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kis-cyan);
  margin: 1.4rem 0 0.8rem;
}

.kis-partner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--kis-line);
  border-radius: 20px;
  padding: 2rem 2.2rem;
  background: radial-gradient(600px 200px at 0% 50%, rgba(25, 121, 229, 0.2), transparent 60%), var(--kis-panel);
}
.kis-partner img { width: 210px; height: auto; }
.kis-partner h2 { margin: 0 0 0.4rem; font-size: 1.6rem; }
.kis-partner p { margin: 0; color: var(--kis-muted); }

.kis-tag-exemple {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kis-cyan);
  border: 1px solid rgba(76, 201, 240, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin: 0 0 0.7rem;
}
.kis-review {
  border-style: dashed;
  min-height: 9rem;
}

.kis-cta {
  background: linear-gradient(90deg, rgba(25, 121, 229, 0.25), rgba(76, 201, 240, 0.08));
  border-top: 1px solid var(--kis-line);
  border-bottom: 1px solid var(--kis-line);
}
.kis-cta h2 { margin: 0 0 0.5rem; font-size: 2.2rem; letter-spacing: -0.04em; }
.kis-cta p { margin: 0 0 1.3rem; color: var(--kis-muted); }

.kis-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(90deg, #fff, #7ec8ff);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1;
  margin: 0 0 0.8rem;
}

/* FAQ (core/details) */
.kis-faq .wp-block-details,
.kis-faq details {
  border: 1px solid var(--kis-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 1.2rem;
  margin: 0 0 0.7rem;
}
.kis-faq .wp-block-details summary,
.kis-faq details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.05rem 1.8rem 1.05rem 0;
  list-style: none;
  color: var(--kis-ink);
}
.kis-faq summary::-webkit-details-marker,
.kis-faq summary::marker { display: none; content: none; }
.kis-faq .wp-block-details p,
.kis-faq details p {
  color: var(--kis-muted);
  margin: 0 0 1.15rem;
  max-width: 40rem;
}

.kis-offer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}
.kis-offer {
  height: 100%;
  border: 1px solid var(--kis-line);
  border-radius: 20px;
  padding: 1.8rem 1.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.kis-offer.is-plus {
  background: radial-gradient(500px 180px at 0% 0%, rgba(25, 121, 229, 0.22), transparent 60%), var(--kis-panel);
}
.kis-offer ul { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.kis-offer li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--kis-muted);
  margin: 0 0 0.45rem;
}
.kis-offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--kis-cyan);
}

/* Pied de page */
body.kis-theme .site-footer {
  background: var(--kis-bg);
  color: var(--kis-muted);
  border-top: 1px solid var(--kis-line);
  padding-top: 2.4rem;
}
.kis-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.6rem;
}
.kis-footer-brand img { width: 120px; height: auto; margin-bottom: 0.8rem; }
.kis-footer-brand p { margin: 0; }
.kis-footer-nav ul,
.kis-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
body.kis-theme .site-footer a,
.kis-footer-nav a { color: #fff; text-decoration: none; }
body.kis-theme .site-footer a:hover { color: var(--kis-cyan); }
body.kis-theme .footer-bar,
body.kis-theme .site-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: var(--kis-wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background: transparent;
}
body.kis-theme .copyright-bar,
body.kis-theme .footer-bar {
  background: transparent;
  border-top: 1px solid var(--kis-line);
  color: var(--kis-muted);
}
body.kis-theme .copyright-bar {
  width: 100%;
  text-align: left;
  padding: 1rem 0 2.2rem;
  border-top: 1px solid var(--kis-line);
}

/* Align full des sections */
body.kis-theme .entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
body.kis-theme .entry-content > .alignfull > * {
  max-width: var(--kis-wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .kis-hero-grid,
  .kis-cards,
  .kis-benefits,
  .kis-steps,
  .kis-related,
  .kis-reviews,
  .kis-partner,
  .kis-offer-grid,
  .kis-footer-inner { grid-template-columns: 1fr; }
  .kis-hero-grid img,
  .kis-hero-grid figure { height: 240px; }
  body.kis-theme h1,
  .kis-hero h1 { font-size: 2.3rem; }
  .kis-hero, .kis-section, .kis-cta { padding: 3rem 0; }

  /* En-tête mobile : logo | téléphone | menu, sur une seule ligne. */
  body.kis-theme .inside-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.6rem;
    min-height: 64px;
  }
  body.kis-theme .site-logo,
  body.kis-theme .header-image,
  body.kis-theme .site-branding {
    flex: 0 0 auto;
    margin: 0;
  }
  body.kis-theme .site-logo img,
  body.kis-theme .header-image img,
  body.kis-theme .custom-logo {
    width: 104px;
    max-height: 44px;
  }
  .kis-header-actions {
    margin-left: auto;
    order: 2;
    gap: 0.55rem;
  }
  .kis-header-actions .kis-btn { display: none; }
  .kis-phone { font-size: 0.9rem; }
  body.kis-theme .main-navigation {
    order: 3;
    flex: 0 0 auto;
    width: auto;
    margin-left: 0;
    background: transparent;
  }
  body.kis-theme .main-navigation .inside-navigation,
  body.kis-theme .main-navigation .main-nav ul {
    background: var(--kis-bg);
  }
  body.kis-theme .menu-toggle {
    margin: 0;
  }
}

/* Grilles des compositions : primer sur les colonnes natives */
.kis-hero-grid.wp-block-columns,
.kis-cards.wp-block-columns,
.kis-benefits.wp-block-columns,
.kis-steps.wp-block-columns,
.kis-related.wp-block-columns,
.kis-reviews.wp-block-columns,
.kis-partner.wp-block-columns,
.kis-offer-grid.wp-block-columns {
  display: grid !important;
  gap: 0.9rem;
}
.kis-hero-grid.wp-block-columns { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: end; }
.kis-cards.wp-block-columns,
.kis-benefits.wp-block-columns,
.kis-steps.wp-block-columns { grid-template-columns: repeat(3, 1fr); }
.kis-reviews.wp-block-columns { grid-template-columns: repeat(3, 1fr); }
.kis-related.wp-block-columns { grid-template-columns: repeat(4, 1fr); }
.kis-partner.wp-block-columns { grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.kis-offer-grid.wp-block-columns { grid-template-columns: 1.15fr 0.85fr; gap: 1.2rem; align-items: stretch; }
.kis-hero-grid.wp-block-columns > .wp-block-column,
.kis-cards.wp-block-columns > .wp-block-column,
.kis-benefits.wp-block-columns > .wp-block-column,
.kis-steps.wp-block-columns > .wp-block-column,
.kis-related.wp-block-columns > .wp-block-column,
.kis-reviews.wp-block-columns > .wp-block-column,
.kis-partner.wp-block-columns > .wp-block-column,
.kis-offer-grid.wp-block-columns > .wp-block-column {
  margin: 0;
  flex-basis: auto !important;
  width: auto !important;
}
@media (max-width: 900px) {
  .kis-hero-grid.wp-block-columns,
  .kis-cards.wp-block-columns,
  .kis-benefits.wp-block-columns,
  .kis-steps.wp-block-columns,
  .kis-related.wp-block-columns,
  .kis-reviews.wp-block-columns,
  .kis-partner.wp-block-columns,
  .kis-offer-grid.wp-block-columns { grid-template-columns: 1fr !important; }
}
.kis-cards.wp-block-columns:has(.wp-block-column:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc((100% - 0.9rem) * 2 / 3 + 0.9rem);
}


body.kis-theme .inside-site-info,
body.kis-theme .site-info,
body.kis-theme .footer-bar {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100%;
}
body.kis-theme .kis-footer-inner {
  width: 100% !important;
  max-width: 100%;
}
body.kis-theme .copyright-bar {
  width: 100% !important;
  flex: 0 0 auto;
}


/* En-tête mobile : logo, téléphone et hamburger sur une seule ligne.
   GeneratePress impose flex-wrap:wrap et un #site-navigation en flex-basis:100%. */
@media (max-width: 900px) {
  body.kis-theme .inside-header.grid-container,
  body.kis-theme .inside-header {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 0.5rem 0.7rem;
    min-height: 64px;
  }
  body.kis-theme .site-logo,
  body.kis-theme .header-image {
    grid-column: 1;
    grid-row: 1;
  }
  body.kis-theme .site-branding {
    display: none !important;
  }
  body.kis-theme .kis-header-actions {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0 !important;
    order: unset !important;
  }
  body.kis-theme #mobile-menu-control-wrapper {
    grid-column: 4;
    grid-row: 1;
    width: auto !important;
    margin: 0;
  }
  body.kis-theme #site-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: 100% !important;
  }
}
