:root {
  --cgt-red: #e30613;
  --dark: #181818;
  --soft-red: #fff1f2;
  --border: #e8e8e8;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(227, 6, 19, .16), transparent 32rem),
    linear-gradient(180deg, #fff, #f4f4f4);
  color: var(--dark);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--dark);
  color: white;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: var(--cgt-red);
  opacity: .88;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 1000px;
  font-weight: 950;
  font-size: clamp(2.35rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: .92;
}

.cgt-logo {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 52px;
  background: var(--cgt-red);
  color: white;
  font-weight: 950;
  font-size: 1.35rem;
  transform: skew(-8deg);
}

.logo-cgt{
    width: 76px;
    height: auto;
}

.kicker,
.section-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cgt-red);
  font-weight: 900;
  margin-bottom: .25rem;
}

.kicker{
  color: #fff;
  font-size: 2rem;
}

.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 2rem;
  box-shadow: 0 1.5rem 5rem rgba(0,0,0,.08);
  padding: clamp(1rem, 3vw, 2rem);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-weight: 900;
}

.step-dot.active,
.step-dot.done {
  background: var(--cgt-red);
  border-color: var(--cgt-red);
  color: white;
}

.step-line {
  width: min(18vw, 110px);
  height: 3px;
  background: var(--border);
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn .22s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pill {
  border-radius: 999px;
  padding: .45rem .8rem;
  background: var(--soft-red);
  color: var(--cgt-red);
  font-weight: 900;
  white-space: nowrap;
}

.question-block {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: #fafafa;
}

.temp-display {
  color: var(--cgt-red);
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.form-range {
  accent-color: var(--cgt-red);
}

.choice-grid {
  display: grid;
  gap: .75rem;
}

.choice,
.protection-choice {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: .9rem 1rem;
  border: 2px solid var(--border);
  border-radius: 1rem;
  background: white;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.choice:hover,
.protection-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 6, 19, .4);
}

.btn-check:checked + .choice,
.btn-check:checked + .protection-choice {
  border-color: var(--cgt-red);
  background: var(--soft-red);
  box-shadow: 0 .65rem 1.5rem rgba(227, 6, 19, .12);
}

.choice-large {
  height: 100%;
}

.protection-list {
  display: grid;
  gap: .85rem;
}

.protection-choice {
  gap: .85rem;
}

.protection-choice span {
  width: 2rem;
  font-size: 1.45rem;
  text-align: center;
}

.btn-cgt {
  --bs-btn-bg: var(--cgt-red);
  --bs-btn-border-color: var(--cgt-red);
  --bs-btn-color: var(--cgt-red);
  --bs-btn-bg: #fff;
  --bs-btn-hover-bg: #b9050f;
  --bs-btn-hover-border-color: #b9050f;
  --bs-btn-hover-color: #fff;
  font-weight: 900;
}

.result-main {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  border-radius: 2rem;
  background: linear-gradient(135deg, #fff, #f7f7f7);
  border: 1px solid var(--border);
  padding: clamp(1rem, 4vw, 2rem);
}

.thermo {
  display: grid;
  place-items: center;
}

.thermo-tube {
  position: relative;
  width: 64px;
  height: 230px;
  border: 10px solid #111;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: white;
}

.thermo-tube span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: var(--cgt-red);
  transition: height .35s ease;
}

.thermo-bulb {
  width: 104px;
  height: 104px;
  margin-top: -12px;
  border: 10px solid #111;
  border-radius: 50%;
  background: var(--cgt-red);
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 950;
  background: var(--soft-red);
  color: var(--cgt-red);
  margin-bottom: .75rem;
}

.global-score {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: .9;
}

.global-score small {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #666;
  letter-spacing: -0.03em;
}

.global-progress {
  height: 1rem;
  border-radius: 999px;
}

.progress-bar {
  background-color: var(--cgt-red);
}

.result-summary {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0;
}

.callout {
  border-left: 6px solid var(--cgt-red);
  background: var(--soft-red);
  border-radius: 1rem;
  padding: 1rem;
}

.mini-score {
  border: 1px solid var(--border);
  background: #fafafa;
  border-radius: 1rem;
  padding: 1rem;
}

.mini-score strong {
  font-size: 2.5rem;
  line-height: 1;
}

.share-box {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: #fafafa;
  padding: 1.25rem;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.copy-status {
  color: #16803a;
  font-weight: 800;
}

@media (max-width: 720px) {
  .result-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .thermo-tube {
    height: 170px;
  }

  .thermo-bulb {
    width: 88px;
    height: 88px;
  }
}


/* Résultat V5 : priorité visuelle au niveau d'alerte, note reléguée en indice indicatif */

.result-main-v5 {
  grid-template-columns: 150px 1fr;
  background:
    radial-gradient(circle at 8% 20%, rgba(227, 6, 19, .13), transparent 18rem),
    linear-gradient(135deg, #fff, #f8f8f8);
}

.result-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
  color: #666;
}

.alert-title {
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 950;
  line-height: .88;
  letter-spacing: -0.02em;
  color: var(--cgt-red);
  margin-bottom: 1rem;
}

.score-disclaimer {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  align-items: center;
  margin-top: 1rem;
  color: #666;
  font-size: .95rem;
}

.score-disclaimer strong {
  color: var(--dark);
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .55rem;
}

.protection-panel {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background:
    linear-gradient(135deg, #fff, #fafafa);
}

.protection-counter {
  min-width: 126px;
  align-self: flex-start;
  text-align: right;
  font-weight: 950;
  line-height: .9;
  color: var(--dark);
}

.protection-counter span {
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  letter-spacing: -0.08em;
}

.protection-counter small {
  font-size: 1.3rem;
  color: #666;
}

.protection-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .55rem;
}

.protection-steps span {
  height: 18px;
  border-radius: 999px;
  background: #e5e5e5;
  border: 1px solid #ddd;
}

.protection-steps span.active {
  background: var(--cgt-red);
  border-color: var(--cgt-red);
}

.protection-steps span.ok {
  background: #198754;
  border-color: #198754;
}

.protection-steps span.warning {
  background: #f59e0b;
  border-color: #f59e0b;
}

@media (max-width: 720px) {
  .result-main-v5 {
    grid-template-columns: 1fr;
  }

  .protection-counter {
    text-align: left;
  }
}


/* V6 : recommandations concrètes + revendications CGT */

.recommendations-panel,
.cgt-demands-panel {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #fff;
}

.recommendations-panel {
  background:
    radial-gradient(circle at 0 0, rgba(227, 6, 19, .08), transparent 14rem),
    #fff;
}

.recommendations-list,
.cgt-demands-list {
  display: grid;
  gap: .7rem;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.recommendations-list li,
.cgt-demands-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: .9rem 1rem;
  background: #fafafa;
  font-weight: 800;
}

.recommendations-list li::before,
.cgt-demands-list li::before {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1.1;
}

.recommendations-list li.missing {
  border-color: rgba(227, 6, 19, .35);
  background: #fff5f5;
}

.recommendations-list li.missing::before {
  content: "⚠️";
}

.recommendations-list li.done {
  border-color: rgba(25, 135, 84, .35);
  background: #f1fbf5;
}

.recommendations-list li.done::before {
  content: "✅";
}

.cgt-demands-panel {
  background: var(--dark);
  color: white;
}

.cgt-demands-panel .section-label {
  color: #ffb4b8;
}

.cgt-demands-list li {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.cgt-demands-list li::before {
  content: "✓";
  color: white;
  font-weight: 950;
}

.cgt-demands-panel h2 {
  color: white;
}


/* V7.1 : vigilance canicule */

.vigilance-result {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-top: 1rem;
  border-radius: 1rem;
  padding: .7rem .95rem;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--border);
  text-align: left;
}

.vigilance-result.vigilance-yellow {
  background: #fff9db;
  border-color: #ffe066;
}

.vigilance-result.vigilance-orange {
  background: #fff4e6;
  border-color: #ffa94d;
}

.vigilance-result.vigilance-red {
  background: #fff5f5;
  border-color: rgba(227, 6, 19, .35);
  color: var(--cgt-red);
}

.vigilance-result.vigilance-none {
  color: #666;
}

.obligations-triggered {
  display: block;
  width: 100%;
  font-weight: 700;
  color: #444;
}


/* V9 : vulnérabilité + mesures par degré d'urgence */

.urgency-panel {
  border: 1px solid rgba(227, 6, 19, .24);
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(135deg, #fff5f5, #fff);
}

.urgency-list {
  display: grid;
  gap: .7rem;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.urgency-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: .9rem 1rem;
  background: #fff;
  font-weight: 800;
}

.urgency-list li::before {
  content: "→";
  flex: 0 0 auto;
  color: var(--cgt-red);
  font-weight: 950;
}


/* V10 : repères visuels première page */

.privacy-note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  padding: .9rem 1rem;
  color: #555;
}

.privacy-note strong {
  color: var(--dark);
  white-space: nowrap;
}

.privacy-note span {
  line-height: 1.35;
}

.choice,
.protection-choice {
  font-weight: 800;
}

@media (max-width: 520px) {
  .privacy-note {
    flex-direction: column;
    gap: .25rem;
  }
}


/* V11 bis : statistiques d'utilisation */

.stats-panel {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 1.25rem);
  background:
    radial-gradient(circle at 0 0, rgba(227, 6, 19, .07), transparent 12rem),
    #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.stats-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: .9rem 1rem;
  background: #fafafa;
}

.stats-item strong {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--cgt-red);
  font-weight: 950;
}

.stats-item span {
  display: block;
  margin-top: .35rem;
  font-weight: 800;
  color: #555;
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* header */

.hero{
    transition:all .35s ease;
}

.hero.hero-compact{
    padding:1rem 1.5rem;
    border-radius:1rem;
}

.hero.hero-compact h1,
.hero.hero-compact .lead{
    display:none;
}

.hero.hero-compact::after{
    width:8rem;
    height:8rem;
    right:-3rem;
    top:-3rem;
}

.hero.hero-compact .logo-cgt{
    width:52px;
}

.hero.hero-compact .kicker{
    font-size:1rem;
}

.hero.hero-compact .d-flex{
    margin-bottom:0!important;
}


/* V13 : partage social desktop + partage natif mobile */

.share-native {
  display: none;
}

.share-desktop {
  display: block;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .7rem 1rem;
  background: #fff;
  color: var(--dark);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.share-button:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 6, 19, .35);
  box-shadow: 0 .65rem 1.5rem rgba(0,0,0,.08);
  color: var(--dark);
}

.share-whatsapp {
  background: #f1fbf5;
}

.share-telegram {
  background: #eef7ff;
}

.share-facebook,
.share-x,
.share-linkedin,
.share-copy {
  background: #fafafa;
}

@media (max-width: 768px) {
  .share-native {
    display: block;
  }

  .share-desktop {
    display: none;
  }
}

@media (max-width: 920px) {
  .share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
