/* ==========================================================================
   MyTranslateChat — enrichissement visuel
   Chargé APRÈS style.css : il ajoute de la couleur sans rien casser.
   Mobile d'abord (1 colonne), multi-colonnes à partir de 768 px.
   ========================================================================== */

/* ------------------------- Palette enrichie ------------------------------ */
:root {
  --grad-brand: linear-gradient(135deg, #6C5CE7 0%, #8E7BFF 45%, #4ECDC4 100%);
  --grad-warm: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%);
  --grad-cool: linear-gradient(135deg, #0984E3 0%, #4ECDC4 100%);
  --grad-violet: linear-gradient(135deg, #6C5CE7 0%, #E84393 100%);
  --grad-ink: linear-gradient(150deg, #241C4E 0%, #3B2C86 45%, #1B1640 100%);
}

/* --------------------- Titres de section plus marqués -------------------- */
.section-head { align-items: center; }
.section-head h2 {
  position: relative;
  padding-left: 14px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-brand);
}
.page-title { letter-spacing: -0.03em; }

/* ---------------------------- Boutons ------------------------------------ */
.btn-primary {
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(108, 92, 231, .30);
}
.btn-primary:hover { background: linear-gradient(135deg, #5A4AD1 0%, #7C6BFF 45%, #3FBDB4 100%); }
.hero .btn-primary { background: #fff; color: var(--brand-dark); }

/* ----------------------------- Bandeau hero ------------------------------ */
.hero {
  background: var(--grad-brand);
  padding: 30px 20px 28px;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 68%);
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -70% -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 61, .30) 0%, rgba(255, 217, 61, 0) 70%);
  z-index: -1;
  pointer-events: none;
}
.hero h1 { font-size: 33px; line-height: 1.1; text-shadow: 0 2px 12px rgba(30, 20, 70, .18); }
.hero-badges span {
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(2px);
}

/* ------------------- Pastilles de langues dans le hero ------------------- */
.hero-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .26);
}
.hero-lang {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .96);
  white-space: nowrap;
}

/* -------------------- Tuiles de statistiques colorées -------------------- */
.stat-tile { position: relative; overflow: hidden; border-top: 4px solid var(--brand); }
.stat-tile:nth-child(1) { border-top-color: #6C5CE7; }
.stat-tile:nth-child(1) strong { color: #6C5CE7; }
.stat-tile:nth-child(2) { border-top-color: #4ECDC4; }
.stat-tile:nth-child(2) strong { color: #12A594; }
.stat-tile:nth-child(3) { border-top-color: #FF6B6B; }
.stat-tile:nth-child(3) strong { color: #E14C4C; }
.stat-tile:nth-child(4) { border-top-color: #FFD93D; }
.stat-tile:nth-child(4) strong { color: #C9A514; }

/* ----------------------- Cartes de fonctionnalités ----------------------- */
.feature-card {
  position: relative;
  border-left: 4px solid var(--brand);
  transition: transform .16s ease, box-shadow .16s ease;
}
.feature-card:nth-child(2n) { border-left-color: #4ECDC4; }
.feature-card:nth-child(3n) { border-left-color: #FF6B6B; }
.feature-card:nth-child(4n) { border-left-color: #FFD93D; }
.feature-card:nth-child(5n) { border-left-color: #E84393; }
.feature-card:nth-child(6n) { border-left-color: #0984E3; }
.feature-card svg { color: var(--brand); }
.feature-card:nth-child(2n) svg { color: #12A594; }
.feature-card:nth-child(3n) svg { color: #E14C4C; }
.feature-card:nth-child(4n) svg { color: #C9A514; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* --------------------------- Fenêtre de démo ----------------------------- */
.demo-window { border: 1px solid var(--line); }
.demo-window h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-soft);
}
.demo-window h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 184, 148, .16);
  flex: 0 0 auto;
}

/* -------------------------- Bandeau d'appel ------------------------------ */
.cta-section {
  background: var(--grad-violet);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255, 255, 255, .92); }
.cta-section .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta-section .btn-ghost {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

/* ============================== Pied de page ============================= */
.site-footer {
  background: var(--grad-ink);
  color: #EDEBFF;
  border-radius: 24px 24px 0 0;
  margin-top: 40px;
  padding: 30px 20px 22px;
}
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-col-brand .footer-brand strong { color: #fff; font-size: 16.5px; }
.footer-brand img { border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.footer-text { font-size: 13.5px; color: rgba(237, 235, 255, .78); max-width: 46ch; margin: 0 0 14px; }

.footer-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-info li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: rgba(237, 235, 255, .82);
}
.footer-info svg { color: #8E7BFF; flex: 0 0 auto; margin-top: 1px; }
.footer-info a { color: rgba(237, 235, 255, .92); }
.footer-info a:hover { color: #fff; }

.footer-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #FFD93D;
  margin: 0 0 12px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13.5px; }
.footer-links a { color: rgba(237, 235, 255, .86); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-admin { color: rgba(237, 235, 255, .55) !important; font-size: 12.5px; }

.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.footer-copy { font-size: 12px; color: rgba(237, 235, 255, .62); margin: 0 0 8px; }
.footer-legal-note { font-size: 12px; color: rgba(237, 235, 255, .62); margin: 0; }
.footer-legal-note a { color: rgba(237, 235, 255, .82); }
.footer-legal-note a:hover { color: #fff; }

/* ============================ Pages légales ============================== */
.legal-text {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
  line-height: 1.65;
  color: #2A2A46;
}
.legal-text h2 {
  font-size: 17.5px;
  margin: 30px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  scroll-margin-top: 84px;
}
.legal-text h2:first-of-type { margin-top: 6px; }
.legal-text p { margin: 0 0 12px; }
.legal-text strong { color: var(--ink); }
.legal-text a { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1px; }

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}
.legal-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.legal-toc {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.legal-toc strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  columns: 1;
}
.legal-toc a { color: var(--ink); }
.legal-toc a:hover { color: var(--brand-dark); }

.legal-todo {
  display: inline-block;
  background: #FFF3CD;
  color: #7A5B00;
  border: 1px dashed #D8B400;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12.5px;
  font-weight: 700;
}
.legal-foot {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.legal-foot a { color: var(--brand-dark); }

/* ================== Mot de passe oublié / nouveau mot de passe ============ */
.form-success {
  background: #EAFBF1;
  color: #0A6B3B;
  border: 1px solid #B7E7CC;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}
/* Lien « Mot de passe oublié ? » sous le champ de connexion */
.hint-forgot { margin-top: 10px; text-align: right; }
.hint-forgot a {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
.hint-forgot a:hover { text-decoration: underline; }
/* Pastille de cadenas en haut des pages de récupération */
.auth-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 10px;
}
/* Sur petit écran, le lien reste lisible et bien espacé */
@media (max-width: 420px) {
  .hint-forgot { text-align: left; }
  .hint-forgot a { display: inline-block; padding: 6px 0; }
}

/* ------------------------- Sélecteur de langue --------------------------- */
.lang-switch {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.lang-pill { transition: transform .12s ease, background .12s ease; }
.lang-pill:hover { border-color: var(--brand); }
.lang-pill.active { background: var(--grad-brand); border-color: transparent; }

/* --------------------- Petites touches colorées -------------------------- */
.section { scroll-margin-top: 80px; }
.info-list li { border-left: 3px solid var(--teal); }
.info-list li:nth-child(2) { border-left-color: var(--brand); }
.info-list li:nth-child(3) { border-left-color: var(--coral); }
.info-list li:nth-child(4) { border-left-color: var(--yellow); }

/* Les étapes « comment ça marche » : numérotées et colorées */
.steps-list { counter-reset: step; }
.steps-list li {
  position: relative;
  padding-left: 44px;
  min-height: 34px;
  align-items: center;
}
.steps-list li svg { display: none; }
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
}

/* ============================ Ordinateur ================================ */
@media (min-width: 768px) {
  .hero { padding: 44px 40px 40px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 17px; }
  .legal-text { padding: 32px 34px; font-size: 15px; }
  .legal-toc ol { columns: 2; column-gap: 28px; }
  .footer-cols { grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
  .site-footer { padding: 38px 34px 26px; }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
  .footer-copy { margin: 0; }
}

@media (min-width: 900px) {
  .site-footer { border-radius: 26px; margin-bottom: 24px; }
}

/* Évite tout débordement horizontal sur petit écran */
@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .legal-text { padding: 18px 15px; }
  .footer-cols { gap: 22px; }
}
