/* ==========================================================================
   Hypp agency — Accueil (.hypp-home)
   Chargé par functions.php uniquement sur les pages contenant le gabarit hypp-home, après style.css
   (variables, base et composants partagés). Ne pas utiliser seul.
   ========================================================================== */

/* ==========================================================================
   H01 — Accueil : typographie
   ========================================================================== */

/* !important : neutralise le soulignement imposé par Astra / Gutenberg. */
.hypp-home a {
  color: var(--accent);
  text-decoration: none !important;
}

.hypp-home a:hover {
  color: var(--accent-dark);
  text-decoration: none !important;
}

.hypp-home h1,
.hypp-home h2,
.hypp-home h3,
.hypp-home h4 {
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.hypp-home ul {
  padding-left: 0;
}

.hypp-home [id] {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   H02 — Accueil : navigation
   ========================================================================== */

.hypp-home .gnav {
  border-bottom: 1px solid oklch(90% 0.006 150 / .6);
}

.hypp-home .gnav nav {
  height: 48px;
}

.hypp-home .gnav p {
  margin: 0;
}

.hypp-home .gnav .logo i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.hypp-home .gnav .links {
  display: flex;
  gap: 30px;
}

.hypp-home .gnav .links a {
  color: var(--ink);
  font-size: 13px;
  opacity: .8;
  white-space: nowrap;
}

.hypp-home .gnav .links a:hover {
  opacity: 1;
}

.hypp-home .gnav .hypp-menu-toggle {
  display: none;
}

/* ==========================================================================
   H03 — Accueil : boutons « pill » et liens fléchés
   ========================================================================== */

.hypp-home .pill-primary {
  background: var(--accent);
  color: #fff;
}

.hypp-home .pill-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.hypp-home .pill-dark:hover {
  background: var(--dark-2);
  color: #fff;
}

.hypp-home .pill-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.hypp-home .pill-ghost:hover {
  background: var(--accent);
  color: #fff;
}

.hypp-home .pill-mint:hover {
  background: #fff;
  color: var(--dark);
}

.hypp-home .chev {
  font-size: 17px;
}

.hypp-home .chev::after {
  content: ' ›';
  content: ' ›' / '';
}

/* ==========================================================================
   H04 — Accueil : introduction
   ========================================================================== */

.hypp-home .hero2 {
  padding: 96px 0 40px;
  text-align: center;
}

.hypp-home .hero2 .kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 600;
}

.hypp-home .hero2 h1 {
  max-width: 960px;
  margin: 0 auto 22px;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
}

.hypp-home .hero2 p {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -.02em;
}

.hypp-home .hero2 .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.hypp-home .hero2 .rating {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 42px;
  color: var(--ink-soft);
  font-size: 14px;
}

.hypp-home .hero2 .rating b {
  color: var(--ink);
  font-weight: 600;
}

/* Après .hero2 p : même spécificité. */
.hypp-home .rating p {
  margin: 0;
  font-size: 14px;
}

/* ==========================================================================
   H05 — Accueil : navigation des services
   ========================================================================== */

.hypp-home .catnav {
  padding: 34px 0 70px;
}

.hypp-home .catnav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.hypp-home .catnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 120px;
  padding: 16px 8px;
  border-radius: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s;
}

.hypp-home .catnav a:hover {
  background: var(--gray);
}

.hypp-home .catnav .ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gray);
}

.hypp-home .catnav a:hover .ico {
  background: #fff;
}

.hypp-home .catnav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   H06 — Accueil : carrousel des services
   ========================================================================== */

.hypp-home .shelf {
  padding: 30px 0 90px;
  background: var(--gray);
}

.hypp-home .shelf-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 60px 24px 26px;
}

.hypp-home .shelf-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.hypp-home .shelf-head h2 span {
  color: var(--ink-soft);
}

.hypp-home .arrows {
  display: flex;
  gap: 10px;
}

.hypp-home .arrows button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: oklch(88% 0.006 150);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.hypp-home .arrows button:hover {
  background: oklch(82% 0.008 150);
}

.hypp-home .rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 340px);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hypp-home .rail::-webkit-scrollbar {
  display: none;
}

.hypp-home .rcard {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 18px oklch(20% 0.02 160 / .06);
  scroll-snap-align: start;
  transition: transform .3s, box-shadow .3s;
}

.hypp-home .rcard:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 34px oklch(20% 0.02 160 / .12);
}

.hypp-home .rcard .tag {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hypp-home .rcard h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.hypp-home .rcard p {
  color: var(--ink-soft);
  font-size: 15px;
}

.hypp-home .rcard .vis {
  flex: 1;
  min-height: 140px;
  margin: 22px 0;
  border-radius: 14px;
  overflow: hidden;
}

.hypp-home .rcard .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hypp-home .rcard .foot p {
  margin: 0;
}

.hypp-home .foot .wp-block-buttons {
  flex: none;
}

.hypp-home .rcard .price {
  color: var(--ink-soft);
  font-size: 14px;
}

.hypp-home .rcard .price b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

/* ==========================================================================
   H07 — Accueil : grille de présentation
   ========================================================================== */

.hypp-home .bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

.hypp-home .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 580px;
  padding: 56px 32px 0;
  border-radius: 0;
  background: var(--gray);
  overflow: hidden;
  text-align: center;
}

.hypp-home .tile.full {
  grid-column: 1 / -1;
  min-height: 640px;
}

.hypp-home .tile.dark {
  background: var(--dark);
  color: #fff;
}

.hypp-home .tile.dark p {
  color: var(--on-dark-soft);
}

.hypp-home .tile.mint {
  background: var(--accent-soft);
}

.hypp-home .tile > .wp-block-group {
  width: 100%;
}

.hypp-home .tile h2 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4.4vw, 56px);
}

.hypp-home .tile.full h2 {
  font-size: clamp(40px, 5.6vw, 72px);
}

.hypp-home .tile p {
  max-width: 520px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 21px);
}

.hypp-home .tile .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hypp-home .tile .vis {
  flex: 1;
  align-self: stretch;
  width: 100%;
  max-width: 760px;
  min-height: 240px;
  margin-inline: auto;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.hypp-home .tile.full .vis {
  max-width: 1000px;
}

.hypp-home .tile.dark a.chev {
  color: var(--mint);
}

/* ==========================================================================
   H08 — Accueil : chiffres clés
   ========================================================================== */

.hypp-home .numbers {
  padding: 120px 0;
  background: var(--dark);
  color: #fff;
}

.hypp-home .numbers .eyebrow {
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 15px;
  font-weight: 600;
}

.hypp-home .numbers h2 {
  max-width: 900px;
  margin-bottom: 70px;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
}

.hypp-home .numbers h2 em {
  color: var(--mint);
  font-style: normal;
}

.hypp-home .ngrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid oklch(100% 0 0 / .15);
}

.hypp-home .ngrid div {
  min-width: 0;
  padding: 34px 24px 0 0;
}

.hypp-home .ngrid p {
  margin: 0;
  padding: 0;
}

.hypp-home .ngrid b {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}

.hypp-home .ngrid span {
  color: oklch(78% 0.02 160);
  font-size: 15px;
}

.hypp-home .ngrid p span {
  display: block;
}

/* ==========================================================================
   H09 — Accueil : réalisations
   ========================================================================== */

.hypp-home .cases {
  padding: 120px 0 40px;
}

.hypp-home .sec-title h2 {
  margin-bottom: 14px;
}

.hypp-home .sec-title p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 21px;
}

.hypp-home .cgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hypp-home .ccard {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--gray);
  overflow: hidden;
}

.hypp-home .ccard .vis {
  height: 260px;
}

.hypp-home .ccard .body {
  padding: 26px 28px 30px;
}

.hypp-home .ccard .tag {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.hypp-home .ccard h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hypp-home .ccard .res {
  color: var(--accent);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}

.hypp-home .ccard .res-l {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ==========================================================================
   H10 — Accueil : tarifs
   ========================================================================== */

.hypp-home .plans {
  padding: 110px 0;
}

.hypp-home .pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.hypp-home .plan {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.hypp-home .plan.pop {
  position: relative;
  border: 2px solid var(--accent);
}

.hypp-home .plan .badge {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 5px 12px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.hypp-home .plan h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.hypp-home .plan .d {
  min-height: 44px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.hypp-home .plan .amt {
  margin: 22px 0 4px;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.2;
}

.hypp-home .plan .amt small {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.hypp-home .plan ul {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  margin: 22px 0 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hypp-home .plan li {
  display: flex;
  gap: 10px;
  font-size: 15px;
}

.hypp-home .plan li::before {
  content: '✓';
  content: '✓' / '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
}

.hypp-home .plan .pill,
.hypp-home .plan > .wp-block-buttons,
.hypp-home .plan .wp-block-button,
.hypp-home .plan .wp-block-button__link {
  width: 100%;
}

.hypp-home .plans .note {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

/* ==========================================================================
   H11 — Accueil : témoignages
   ========================================================================== */

.hypp-home .reviews {
  padding: 110px 0;
  background: var(--gray);
}

.hypp-home .rvgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hypp-home .rv {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border-radius: 22px;
  background: #fff;
}

.hypp-home .rv .stars {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 2px;
}

.hypp-home .rv p {
  flex: 1;
  font-size: 19px;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.hypp-home .rv .who {
  color: var(--ink-soft);
  font-size: 14px;
}

.hypp-home .rv .who b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   H12 — Accueil : questions fréquentes (base partagée en 01)
   ========================================================================== */

.hypp-home .faq2 summary::after {
  line-height: 1;
}

.hypp-home .wp-block-details summary {
  color: inherit;
}

.hypp-home .faq2 details p {
  max-width: 680px;
  padding: 0 0 26px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ==========================================================================
   H13 — Accueil : appel à l'action
   ========================================================================== */

.hypp-home .final {
  padding: 130px 24px;
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.hypp-home .final h2 {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 800;
}

.hypp-home .final p {
  margin-bottom: 36px;
  color: var(--on-dark-soft);
  font-size: 21px;
}

.hypp-home .final .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.hypp-home .final a.chev {
  color: var(--mint);
}

/* ==========================================================================
   H14 — Accueil : pied de page (base partagée en 01)
   ========================================================================== */

.hypp-home .foot2 .top {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}

.hypp-home .foot2 p {
  margin: 0;
  font-size: 12px;
}

.hypp-home .foot2 a:hover {
  color: var(--ink);
  text-decoration: underline !important;
}

/* ==========================================================================
   H15 — Accueil : boutons Gutenberg
   ========================================================================== */

.hypp-home .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
}

/* Survol par défaut (= variante hypp-primary) : placé avant les variantes. */
.hypp-home .wp-block-button__link:hover {
  background: var(--accent-dark);
  color: #fff;
}

.hypp-home .hypp-mint .wp-block-button__link {
  background: var(--mint);
  color: var(--dark);
}

.hypp-home .hypp-ghost .wp-block-button__link {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.hypp-home .hypp-ghost .wp-block-button__link:hover {
  background: var(--accent);
  color: #fff;
}

.hypp-home .hypp-chev .wp-block-button__link {
  padding: 11px 0;
  background: transparent;
  color: var(--accent);
  font-size: 17px;
}

.hypp-home .hypp-chev .wp-block-button__link::after {
  content: ' ›';
  content: ' ›' / '';
  margin-left: 5px;
}

.hypp-home .dark .hypp-chev .wp-block-button__link,
.hypp-home .final .hypp-chev .wp-block-button__link {
  color: var(--mint);
}

.hypp-home .hypp-small .wp-block-button__link {
  font-size: 12px;
  padding: 6px 14px;
}

/* ==========================================================================
   H16 — Accueil : surcharges Gutenberg (garder après les composants)
   ========================================================================== */

.hypp-home .wp-block-buttons,
.hypp-home .wp-block-buttons.is-layout-flex {
  gap: 14px;
}

.hypp-home .wp-block-buttons.actions {
  display: flex;
}

.hypp-home .wp-block-buttons .wp-block-button {
  margin: 0;
}

.hypp-home .vis p {
  margin: 0;
  font-size: 14px;
}

.hypp-home .tile .vis p {
  color: inherit;
}

.hypp-home .hypp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #e8eeeb, #d7e5df);
  color: #52675c;
  font-size: 14px;
  text-align: center;
}

.hypp-home .dark .hypp-placeholder {
  background: linear-gradient(135deg, #213b32, #365849);
  color: #bad9ca;
}

/* ==========================================================================
   H17 — Accueil : neutralisation de la mise en page Astra
   ========================================================================== */

body.hypp-home-page .site-header,
body.hypp-home-page .site-footer,
body.hypp-home-page .entry-header,
body.hypp-home-page #secondary {
  display: none;
}

body.hypp-home-page #primary,
body.hypp-home-page #content .ast-container {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.hypp-home-page #content > .ast-container {
  display: block;
}

body.hypp-home-page #primary,
body.hypp-home-page article {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.hypp-home-page #primary > article {
  margin: 0 !important;
  padding: 0 !important;
}

body.hypp-home-page .entry-content {
  margin: 0;
}

body.hypp-home-page .entry-content > .hypp-home {
  width: 100%;
  margin: 0;
}

/* ==========================================================================
   H18 — Accueil : responsive
   ========================================================================== */

@media (max-width: 900px) {

  .hypp-home .gnav nav {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    min-height: 56px;
    padding-block: 10px;
  }

  .hypp-home .gnav .links {
    display: none;
  }

  .hypp-home .gnav .links.is-open {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    order: 4;
    width: 100%;
    padding: 12px 0;
  }

  .hypp-home .gnav .hypp-menu-toggle {
    display: block;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
  }

  .hypp-home .shelf-head {
    align-items: center;
  }

  .hypp-home .arrows {
    flex-shrink: 0;
  }

  .hypp-home .bento,
  .hypp-home .cgrid,
  .hypp-home .pgrid,
  .hypp-home .rvgrid {
    grid-template-columns: 1fr;
  }

  .hypp-home .ngrid {
    grid-template-columns: 1fr 1fr;
  }

  .hypp-home .ngrid div {
    padding-bottom: 30px;
  }

  .hypp-home .tile {
    min-height: 520px;
    padding-inline: 20px;
  }
}

@media (max-width: 480px) {

  .hypp-home .wrap {
    padding-inline: 20px;
  }

  .hypp-home .gnav .pill-sm {
    padding: 7px 10px;
  }

  .hypp-home .hero2 {
    padding-top: 64px;
  }

  .hypp-home .hero2 h1 {
    font-size: 48px;
  }

  .hypp-home .catnav a {
    width: 96px;
  }

  .hypp-home .ngrid b {
    font-size: 38px;
  }

  .hypp-home .plan {
    padding: 30px 24px;
  }

  .hypp-home .numbers,
  .hypp-home .reviews,
  .hypp-home .faq2,
  .hypp-home .plans {
    padding-block: 72px;
  }

  .hypp-home .final {
    padding-block: 80px;
  }
}
