/* ============================================================
   Tempotonic — style.css
   Composants spécifiques à l'outil Tempotonic.
   Les variables, reset, boutons, FAQ, section SEO, footer,
   disclaimer et utilitaires viennent de outils-common.css.
   ============================================================ */


/* ── Lien retour Brieftonic ───────────────────────────────── */

.return-link {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
}

.return-link a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.return-link a:hover {
  color: var(--primary-dark);
}


/* ── Header (masqué par nav.js, conservé en fallback) ─────── */

.site-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.brand-by {
  font-size: 0.8rem;
  color: var(--muted);
}


/* ── Conteneur principal ──────────────────────────────────── */

.tool-container {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.tool-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--light);
  margin-bottom: 2rem;
  line-height: 1.3;
}


/* ── Stepper ──────────────────────────────────────────────── */

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: default;
  padding: 0.25rem 0.5rem;
  transition: opacity var(--transition-fast);
}

.stepper-step[disabled] {
  opacity: 0.4;
}

.stepper-step:not([disabled]) {
  cursor: pointer;
}

.stepper-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition-fast);
}

.stepper-step.active .stepper-pill {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-glow);
}

.stepper-step.completed .stepper-pill {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--dark);
}

.stepper-label {
  font-size: 0.75rem;
  color: var(--muted);
  transition: color var(--transition-fast);
}

.stepper-step.active .stepper-label {
  color: var(--primary);
}

.stepper-step.completed .stepper-label {
  color: var(--light);
}

.stepper-line {
  flex: 0 0 40px;
  height: 2px;
  background-color: var(--border);
  margin: 0 0.25rem;
  margin-bottom: 1.2rem;
  transition: background-color var(--transition-fast);
}

.stepper-line.completed {
  background-color: var(--primary);
}


/* ── Étapes (conteneur) ───────────────────────────────────── */

.steps-wrapper {
  position: relative;
}

.step {
  display: none;
  animation: fadeIn 300ms ease forwards;
}

.step.active {
  display: block;
}

.step-question {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--light);
  text-align: center;
  margin-bottom: 1.5rem;
}


/* ── Grille de cartes ─────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card:hover {
  border-color: var(--primary-border);
  background-color: var(--surface-hover);
}

.card.selected {
  border-color: var(--primary);
  background-color: var(--primary-glow);
}

.card.selected .card-label {
  color: var(--primary);
}

.card-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--light);
  transition: color var(--transition-fast);
  flex: 1;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  background-color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}


/* ── Séparateur types recommandés / autres ────────────────── */

.type-separator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.type-separator::before,
.type-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.separator-text {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}


/* ── Résumé des sélections (pills) ────────────────────────── */

.selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.summary-pill {
  font-size: 0.8rem;
  color: var(--light);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
}


/* ── Bouton recommencer (pendant les étapes) ──────────────── */

.step-restart {
  text-align: center;
  margin-top: 1.25rem;
}


/* ── Panneau résultat ─────────────────────────────────────── */

.result-panel {
  margin-top: 2rem;
  animation: fadeIn 400ms ease forwards;
}

.result-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.result-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.result-duration-value {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.result-duration-human {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.result-argument {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--light);
  margin-bottom: 1.5rem;
}

.result-tip {
  border-left: 3px solid var(--primary);
  background-color: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}

.tip-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.result-tip p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--light);
}

.result-sources {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.result-sources a {
  color: var(--muted);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.result-sources a:hover {
  color: var(--light);
}


/* ── Actions résultat ─────────────────────────────────────── */

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

/* ── Bloc CTA Scriptimer (dans le panneau résultat) ─────── */

.result-scriptimer {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--primary-border);
}

.scriptimer-hint {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* ── SEO : listes spécifiques Tempotonic (dl/dt/dd) ──────── */
/*    La structure .seo-content/.seo-container/.seo-title
     et les FAQ viennent du commun.
     Tempotonic utilise .seo-content au lieu de .seo-section
     (historique). Les deux partagent les mêmes styles de base
     via le commun. Les listes dl/dt/dd sont spécifiques.       */

.seo-content {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.seo-text {
  margin-bottom: 2.5rem;
}

.seo-text p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.seo-column-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 1rem;
}

.seo-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-list-item {
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.seo-list-item dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.seo-list-item dd {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}


/* ── Responsive desktop (>768px) ──────────────────────────── */

@media (min-width: 769px) {
  .tool-container {
    padding-top: 3rem;
  }

  .tool-title {
    font-size: 1.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stepper-line {
    flex: 0 0 60px;
  }

  .result-duration-value {
    font-size: 3.5rem;
  }

  .result-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .result-actions .btn {
    flex: 0 1 auto;
  }

  .seo-columns {
    grid-template-columns: 1fr 1fr;
  }
}
