/* Accueil 2026, version 2 : hero plein cadre avec mascotte large et barre
   de sujets qui chevauche le bas du hero. Feuille additive, retirer le <link>
   dans index.html suffit à revenir à l'état précédent. */

/* ---------- Hero ---------- */
.clarity-hero.conv-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 0;
  background:
    radial-gradient(900px 420px at 72% 6%, #ffffff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #f2f8f3 0%, #e8f1e9 100%);
  border-bottom: 0;
}

.clarity-hero .clarity-intro {
  position: relative;
  display: block;
  padding-right: 0;
  padding-bottom: 40px;
}

.clarity-hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6a8477;
}

.clarity-hero .clarity-title {
  margin: 21px 0 24px;
  max-width: 890px;
}

.clarity-hero .clarity-title .t1 { display: block; }

.clarity-hero .clarity-title em {
  display: block;
}

.clarity-hero .clarity-description {
  margin: 18px 0 0;
  max-width: 38ch;
  font-size: 17px;
  font-size: 18px;
  line-height: 1.55;
  color: #40604e;
}

.clarity-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.clarity-hero .hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.clarity-hero .hero-actions .button.primary {
  background: #1f7a4d;
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 75, 60, .24);
}

.clarity-hero .hero-actions .button.primary:hover { background: #186240; transform: translateY(-1px); }

.clarity-hero .hero-actions .button.ghost {
  background: #eef5ef;
  color: #1f5c45;
  border: 1px solid #cfe0d4;
}

.clarity-hero .hero-actions .button.ghost:hover { background: #e5efe6; }

.clarity-hero .hero-trust {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: #4d6b57;
}

.clarity-hero .hero-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 14px;
  color: #e0a33a;
}

.clarity-hero .hero-stars svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.clarity-hero .hero-stars span {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5b6f60;
}

/* Mascotte large, ancrée à droite, qui déborde sur la barre de sujets. */
.clarity-hero .clarity-art {
  position: absolute;
  right: -3%;
  bottom: -34px;
  top: auto;
  width: auto;
  margin: 0;
  pointer-events: none;
}

.clarity-hero .clarity-art img {
  height: clamp(300px, 40vw, 520px);
  width: auto;
  filter: drop-shadow(0 30px 40px rgba(23, 75, 60, .18));
}

/* ---------- Barre de sujets ---------- */
.clarity-hero .conv-chooser {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2ebe4;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 40px rgba(23, 75, 60, .10);
  overflow: visible;
}

.clarity-hero .conv-chooser > h2 {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.clarity-hero .conv-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0 14px;
  border-bottom: 0;
}

.clarity-hero .conv-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 15px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  color: #3f5a4a;
  overflow: hidden;
}

.clarity-hero .conv-tab .conv-ico {
  grid-row: 1 / span 2;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f0f6f1;
  color: #2f7a54;
}

.clarity-hero .conv-tab .conv-ico svg {
  display: block;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clarity-hero .conv-tab strong {
  overflow: hidden;
  overflow-wrap: normal;
  hyphens: auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #174b3c;
}

.clarity-hero .conv-tab span:not(.conv-ico) {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #6a8477;
}

.clarity-hero .conv-tab:focus { outline: none; }
.clarity-hero .conv-tab:focus-visible { outline: 2px solid #1f7a4d; outline-offset: -4px; }

.clarity-hero .conv-tab[aria-selected="true"] { background: #f5faf6; box-shadow: none; border: 0; }

.clarity-hero .conv-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #1f7a4d;
}

.clarity-hero .conv-tab[aria-selected="true"] .conv-ico {
  background: #1f7a4d;
  color: #fff;
}

.clarity-hero .conv-panel { padding: 22px 24px 24px; }

/* ---------- Grands écrans intermédiaires ---------- */
@media (max-width: 1180px) {
  .clarity-hero .clarity-intro { padding-right: 0; }
  .clarity-hero .clarity-art img { height: clamp(260px, 34vw, 420px); }
  .clarity-hero .conv-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .clarity-hero.conv-hero { padding: 26px 0 0; }
  .clarity-hero .clarity-intro {
    padding-right: 0;
    padding-bottom: 18px;
  }
  .clarity-hero .clarity-title {
    margin: 12px 0 14px;
    max-width: none;
  }

  .clarity-hero .clarity-description { margin-top: 14px; font-size: 15.5px; }
  .clarity-hero .clarity-art {
    position: static;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 8px 0 -6px;
  }
  .clarity-hero .clarity-art img { height: 150px; filter: none; }
  .clarity-hero .hero-actions { margin-top: 16px; gap: 10px; }
  .clarity-hero .hero-actions .button { min-height: 48px; padding: 0 20px; font-size: 15px; flex: 1 1 auto; }
  .clarity-hero .hero-trust { font-size: 12px; margin-top: 12px; }
  .clarity-hero .conv-chooser { border-radius: 16px 16px 0 0; }
  .clarity-hero .conv-tabs {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
  }
  .clarity-hero .conv-tab { padding: 13px 16px; border-bottom: 1px solid #eff3ef; }
  .clarity-hero .conv-tab strong { font-size: 14.5px; }
  .clarity-hero .conv-tab span:not(.conv-ico) { font-size: 11.5px; }
  .clarity-hero .conv-tab[aria-selected="true"]::after {
    left: 0; right: auto; top: 10px; bottom: 10px;
    width: 3px; height: auto; border-radius: 0 3px 3px 0;
  }
  .clarity-hero .conv-panel { padding: 18px 16px 20px; }
}
