/* =====================================================================
   DISPON — HERO + CATÉGORIES REFRESH (2026-10-20)
   Portée : uniquement .hero-modern et .services-section de index.html.
   Aucun JS, aucune logique, aucun id/classe fonctionnel modifié.
   Couleurs et police : celles de DISPON (vert foncé #075a27, Plus Jakarta Sans).
   Ce fichier se charge APRÈS desktop-refresh.css.
   ===================================================================== */

:root{
  --hc-green-950:#032b13;
  --hc-green-900:#043d1b;
  --hc-green-800:#075a27;
  --hc-green-700:#0a6b2f;
  --hc-accent:#4ddc95;          /* mot en couleur du titre */
  --hc-check:#0e9f5a;           /* pastilles ✓ */
  --hc-ink:#0c2418;             /* texte principal sur fond clair */
  --hc-brand-text:#0a8a43;      /* mot en couleur du titre (contraste AA sur blanc) */
}

/* ---------------------------------------------------------------------
   1) HERO — fond clair, texte à gauche, visuel DISPON à droite
   --------------------------------------------------------------------- */
html body .hero.hero-modern.hero-clean{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:8px!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:34px 20px 0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  color:var(--hc-ink)!important;
  background-color:#fff!important;
  background-image:
    radial-gradient(circle at 78% 58%,rgba(18,184,106,.13) 0,rgba(18,184,106,0) 52%),
    linear-gradient(180deg,#f2faf5 0%,#ffffff 100%)!important;
  background-size:auto!important;
  background-position:0 0!important;
  background-repeat:no-repeat!important;
  isolation:isolate;
}
html body .hero.hero-modern.hero-clean::before,
html body .hero.hero-modern.hero-clean::after{display:none!important}

html body .hero.hero-clean>.hero-modern-copy{
  position:relative!important;
  z-index:2;
  width:100%;
  max-width:620px!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}

/* pastille */
html body .hero.hero-clean>.hero-modern-copy>.hero-eyebrow{
  position:static!important;
  transform:none!important;
  display:inline-flex!important;
  align-items:center;
  gap:10px;
  width:auto!important;
  max-width:100%!important;
  margin:0 0 20px!important;
  padding:9px 18px 9px 14px!important;
  white-space:normal!important;
  text-transform:none!important;
  text-align:left!important;
  font-size:clamp(14px,3.8vw,17px)!important;
  font-weight:700!important;
  letter-spacing:0!important;
  line-height:1.3!important;
  color:var(--hc-green-800)!important;
  background:#e6f4ec!important;
  border:1px solid #bfe3cd!important;
  border-radius:999px!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
html body .hero.hero-clean .hero-eyebrow .eyebrow-dot{
  flex:0 0 12px;
  width:12px!important;
  height:12px!important;
  background:#12b86a!important;
  box-shadow:0 0 0 4px rgba(18,184,106,.18)!important;
}

/* titre */
html body .hero.hero-clean .hero-modern-copy h1{
  margin:0 0 16px!important;
  text-align:left!important;
  color:var(--hc-ink)!important;
  font-size:clamp(31px,8.6vw,50px)!important;
  line-height:1.06!important;
  letter-spacing:-.04em!important;
  font-weight:800!important;
  text-shadow:none!important;
}
html body .hero.hero-clean .hero-modern-copy h1 span{
  color:var(--hc-brand-text)!important;
}

/* sous-titre */
html body .hero.hero-clean .hero-modern-copy>p{
  max-width:none!important;
  margin:0 0 24px!important;
  text-align:left!important;
  font-size:clamp(19px,5.2vw,26px)!important;
  font-weight:600!important;
  line-height:1.3!important;
  letter-spacing:-.01em!important;
  color:#3a5044!important;
  text-shadow:none!important;
}

/* boutons */
html body .hero.hero-clean .hero-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  justify-content:flex-start!important;
  width:100%;
  max-width:460px;
  margin:0 0 22px!important;
}
html body .hero.hero-clean .hero-actions .btn{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%!important;
  min-height:58px!important;
  padding:0 20px!important;
  border-radius:16px!important;
  font-size:clamp(16px,4.2vw,19px)!important;
  font-weight:800!important;
  text-align:left!important;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
html body .hero.hero-clean .hero-actions .btn .btn-ico{flex:0 0 auto;width:24px;height:24px}
html body .hero.hero-clean .hero-actions .btn .btn-label{flex:1 1 auto}
html body .hero.hero-clean .hero-actions .btn .btn-arrow{flex:0 0 auto;font-weight:700}
html body .hero.hero-clean .hero-actions .btn-blue{
  background:var(--hc-green-800)!important;
  color:#fff!important;
  border:2px solid var(--hc-green-800)!important;
  box-shadow:0 12px 26px rgba(7,90,39,.28)!important;
}
html body .hero.hero-clean .hero-actions .btn-blue:hover{
  background:var(--hc-green-900)!important;
  border-color:var(--hc-green-900)!important;
  color:#fff!important;
}
html body .hero.hero-clean .hero-actions .btn-outline{
  background:#fff!important;
  color:var(--hc-green-800)!important;
  border:2px solid var(--hc-green-800)!important;
  box-shadow:none!important;
}
html body .hero.hero-clean .hero-actions .btn-outline:hover{
  background:#eaf6ee!important;
  color:var(--hc-green-900)!important;
  border-color:var(--hc-green-900)!important;
}
html body .hero.hero-clean .hero-actions .btn:focus-visible{
  outline:3px solid #12b86a!important;
  outline-offset:3px!important;
}

/* 3 points de confiance */
html body .hero.hero-clean .hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin:0;
  padding:0;
  list-style:none;
}
html body .hero.hero-clean .hero-points li{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:clamp(13.5px,3.6vw,15.5px);
  font-weight:700;
  line-height:1.3;
  color:#274036;
}
html body .hero.hero-clean .hero-points li::before{
  content:"✓";
  flex:0 0 22px;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--hc-check);
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1;
}

/* visuel : le fond blanc de l'image disparaît sur le fond clair du hero */
html body .hero.hero-clean>.hero-modern-copy{order:1!important}
html body .hero.hero-clean>.hero-clean-visual{
  order:2!important;
  position:static!important;
  z-index:auto!important;
  transform:none!important;
  filter:none!important;
  opacity:1!important;
  isolation:auto!important;
  display:block!important;
  width:100%;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible;
}
html body .hero.hero-clean>.hero-clean-visual img{
  display:block!important;
  width:128%!important;
  max-width:none!important;
  height:auto!important;
  margin:0 0 0 -14%!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  mix-blend-mode:multiply;
}

/* tablette */
@media (min-width:600px) and (max-width:900px){
  html body .hero.hero-modern.hero-clean{padding:44px 32px 0!important}
  html body .hero.hero-clean .hero-actions{grid-template-columns:1fr!important;max-width:460px}
  html body .hero.hero-clean>.hero-clean-visual img{width:calc(100% + 64px)!important;margin-left:-32px!important}
}

/* ordinateur : 2 colonnes, visuel collé en bas et au bord droit de l'écran */
@media (min-width:901px){
  html body .hero.hero-modern.hero-clean{
    display:grid!important;
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;
    align-items:end!important;
    gap:24px!important;
    padding:56px 0 0 max(40px,calc((100% - 1320px)/2))!important;
    background-image:
      radial-gradient(circle at 76% 52%,rgba(18,184,106,.14) 0,rgba(18,184,106,0) 50%),
      linear-gradient(180deg,#f2faf5 0%,#ffffff 100%)!important;
  }
  html body .hero.hero-clean>.hero-modern-copy{
    max-width:none!important;
    align-self:center!important;
    padding-bottom:56px!important;
  }
  html body .hero.hero-clean .hero-modern-copy h1{font-size:clamp(40px,3.4vw,52px)!important}
  html body .hero.hero-clean .hero-modern-copy h1 span{white-space:nowrap}
  html body .hero.hero-clean .hero-modern-copy>p{font-size:clamp(21px,1.8vw,28px)!important}
  html body .hero.hero-clean .hero-actions{
    display:flex!important;
    flex-wrap:wrap;
    max-width:none;
  }
  html body .hero.hero-clean .hero-actions .btn{
    width:auto!important;
    min-height:58px!important;
    padding:0 26px!important;
    font-size:clamp(16px,1.25vw,19px)!important;
  }
  html body .hero.hero-clean .hero-actions .btn .btn-label{flex:0 1 auto}
  html body .hero.hero-clean>.hero-clean-visual{align-self:end!important}
  html body .hero.hero-clean>.hero-clean-visual img{
    width:100%!important;
    margin:0!important;
    /* fondu doux à gauche et en bas : les personnes ne sont pas coupées net */
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 13%),linear-gradient(0deg,transparent 0,#000 9%);
    -webkit-mask-composite:source-in;
    mask-image:linear-gradient(90deg,transparent 0,#000 13%),linear-gradient(0deg,transparent 0,#000 9%);
    mask-composite:intersect;
  }
}

/* ---------------------------------------------------------------------
   2) CATÉGORIES — tuiles centrées (icône + titre + sous-titre)
   --------------------------------------------------------------------- */
html body .services-section .service-categories{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
  justify-content:stretch!important;
}
/* annule le flex 4-colonnes / 3-colonnes des règles desktop sur téléphone */
html body .services-section .service-categories>.service-card{
  flex:none!important;
  width:auto!important;
  max-width:none!important;
}

html body .services-section .service-categories>.service-card.service-card-focus{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:168px!important;
  height:100%!important;
  padding:20px 12px 18px!important;
  text-align:center!important;
  color:#fff!important;
  background:linear-gradient(165deg,var(--hc-green-700) 0%,var(--hc-green-800) 100%)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:24px!important;
  box-shadow:0 12px 26px rgba(7,90,39,.20)!important;
  overflow:hidden!important;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease!important;
}
html body .services-section .service-categories>.service-card.service-card-focus:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 18px 36px rgba(7,90,39,.28)!important;
  background:linear-gradient(165deg,#0c7a35 0%,#086030 100%)!important;
  border-color:rgba(255,255,255,.18)!important;
}
html body .services-section .service-categories>.service-card.service-card-focus:focus-within{
  outline:3px solid var(--hc-accent)!important;
  outline-offset:3px!important;
}

/* icône */
html body .services-section .service-card .service-icon{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  margin:0 0 12px;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  color:#fff;
  flex:0 0 auto;
}
html body .services-section .service-card .service-icon svg{
  width:28px;
  height:28px;
  display:block;
}

/* corps : centré */
html body .services-section .service-card .service-card-body{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  width:100%!important;
  min-height:0!important;
  padding:0!important;
  background:transparent!important;
  text-align:center!important;
}
/* numéro + badge « Créneau » : masqués dans ce format (info décorative) */
html body .services-section .service-card .service-card-top{display:none!important}

html body .services-section .service-card h3{
  margin:0 0 6px!important;
  color:#fff!important;
  font-size:clamp(15px,4.1vw,17px)!important;
  font-weight:800!important;
  line-height:1.22!important;
  letter-spacing:-.015em!important;
  text-align:center!important;
  min-height:0!important;
}
html body .services-section .service-card p{
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden!important;
  margin:0!important;
  min-height:0!important;
  color:rgba(255,255,255,.80)!important;
  font-size:12.5px!important;
  font-weight:500!important;
  line-height:1.4!important;
  text-align:center!important;
}

/* téléphone : tuile épurée (icône + titre), comme la maquette ; description visible dès la tablette */
@media (max-width:767px){
  html body .services-section .service-card p{display:none!important}
  html body .services-section .service-categories>.service-card.service-card-focus{
    min-height:156px!important;
    justify-content:flex-start!important;
    padding-top:22px!important;
  }
}

/* le bouton existant couvre toute la tuile (le JS .service-button reste inchangé) */
html body .services-section .service-card .service-button{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:inherit!important;
  background:transparent!important;
  color:transparent!important;
  font-size:0!important;
  box-shadow:none!important;
  opacity:0;
  z-index:3;
  cursor:pointer;
}

/* 7 tuiles : la dernière centrée sur téléphone (comme avant) */
html body .services-section .service-categories>.service-card:last-child:nth-child(odd){
  grid-column:1/-1;
  justify-self:center;
  width:calc(50% - 6px)!important;
}

/* tablette */
@media (min-width:768px) and (max-width:1099px){
  html body .services-section .service-categories{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px!important;
  }
  html body .services-section .service-categories>.service-card:last-child:nth-child(odd){
    grid-column:auto;
    justify-self:stretch;
    width:auto!important;
  }
}

/* ordinateur : 4 par ligne */
@media (min-width:1100px){
  /* 4 + 3 tuiles, dernière ligne centrée (comme avant) */
  html body .services-section .service-categories{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    gap:18px!important;
  }
  html body .services-section .service-categories>.service-card{
    flex:0 0 calc((100% - 54px)/4)!important;
    max-width:calc((100% - 54px)/4)!important;
  }
  html body .services-section .service-categories>.service-card:last-child:nth-child(odd){
    width:auto!important;
  }
  html body .services-section .service-categories>.service-card.service-card-focus{
    min-height:190px!important;
    padding:26px 16px 22px!important;
  }
  html body .services-section .service-card .service-icon{width:60px;height:60px;margin-bottom:14px}
  html body .services-section .service-card .service-icon svg{width:30px;height:30px}
  html body .services-section .service-card h3{font-size:clamp(17px,1.3vw,20px)!important}
  html body .services-section .service-card p{font-size:13.5px!important}
}

@media (prefers-reduced-motion:reduce){
  html body .services-section .service-categories>.service-card.service-card-focus{transition:none!important}
  html body .services-section .service-categories>.service-card.service-card-focus:hover{transform:none!important}
}

/* ---------------------------------------------------------------------
   3) MODE LANCEMENT — une seule catégorie active (voir launch-config.js)
   --------------------------------------------------------------------- */
html body .services-section .service-categories>.service-card[hidden]{display:none!important}
html body .services-section .service-categories[data-launch-count="1"]{
  display:flex!important;
  justify-content:center!important;
}
html body .services-section .service-categories[data-launch-count="1"]>.service-card{
  flex:0 1 460px!important;
  width:min(100%,460px)!important;
  max-width:460px!important;
}
html body .services-section .launch-note{
  margin:18px auto 0;
  max-width:560px;
  padding:10px 16px;
  text-align:center;
  font-size:14.5px;
  font-weight:600;
  line-height:1.4;
  color:#2c4a3a;
  background:#eef7f1;
  border:1px solid #cfe6d8;
  border-radius:14px;
}
