/* ======================================================= */
/* --- STYLE CSS V8 (REPAIRED & POLISHED) --- */
/* ======================================================= */

:root {
    --bg-main: #0f172a; --bg-card: #1e293b; --bg-elevated: #334155;
    --text-main: #f8fafc; --text-muted: #94a3b8; --accent-1: #38bdf8;
    --accent-2: #a78bfa; --accent-3: #f97316; --border-color: rgba(56, 189, 248, 0.2);
    --font-sans: system-ui, -apple-system, sans-serif;
    
    /* Couleurs de grade */
    --color-low: #94a3b8;
    --color-mid: #10b981;
    --color-high: #f97316;
    --color-max: #ef4444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; }
a { color: var(--accent-1); text-decoration: none; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* HEADER & HERO */
.header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border-color); margin-bottom: 2rem; }
.brand-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo-header { height: 40px; width: auto; }
.logo-fallback { font-size: 2rem; }
.logo-title { font-size: 1.5rem; font-weight: 900; color: var(--text-main); margin: 0; }
.logo-tagline { font-size: 0.75rem; color: var(--text-muted); margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.nav { display: flex; gap: 1rem; }
.nav-link { color: var(--text-muted); font-weight: 600; }
.nav-link.active { color: var(--accent-1); }
.hero { text-align: center; padding: 2rem 0; }
.hero-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 0.5rem; color: white; }
.accent { color: var(--accent-1); }
.hero-subtitle { color: var(--text-muted); font-size: 1.1rem; }

/* LAYOUT & CARDS */
.content-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .content-grid { grid-template-columns: 1.5fr 1fr; } }
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.card-header { margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }

/* TITRES AVEC EMOJI */
.card-title { font-size: 1.4rem; font-weight: 800; color: var(--accent-1); margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.section-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; font-style: italic; background: rgba(255,255,255,0.03); padding: 0.5rem; border-radius: 6px; border-left: 3px solid var(--accent-2); }

/* FORM */
.input-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.sector-select, .mytho-input { width: 100%; padding: 0.75rem; background: var(--bg-elevated); border: 1px solid var(--border-color); color: white; border-radius: 8px; margin-bottom: 1rem; font-size: 1rem; font-family: inherit; }
.mytho-input { min-height: 120px; resize: vertical; }
.input-footer { text-align: right; font-size: 0.8rem; color: var(--text-muted); margin-top: -0.5rem; margin-bottom: 1rem; }
.controls { display: flex; gap: 1rem; }
.btn { flex: 1; padding: 0.75rem; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 0.5rem; font-size: 1rem; transition: transform 0.2s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); color: var(--bg-main); }
.btn-secondary { background: var(--bg-elevated); color: white; border: 1px solid var(--border-color); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; width: auto; }

/* GENERATEUR */
.gen-container { position: relative; }
.generated-phrase, .daily-phrase { background: rgba(56, 189, 248, 0.1); border-left: 3px solid var(--accent-1); padding: 1rem; border-radius: 4px; font-style: italic; margin-bottom: 1rem; min-height: 3rem; display: flex; align-items: center; padding-right: 3rem; }
.btn-copy-gen { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: var(--bg-elevated); border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 4px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* SHARE CARD */
.share-card { background: var(--bg-card); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 1rem; position: relative; width: 100%; max-width: 400px; margin: 0 auto 1rem auto; }
.share-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; position: relative; z-index: 2; }
.share-logo-img { height: 50px; width: auto; display: block; }
.share-score-caption { font-size: 3.5rem; font-weight: 900; color: var(--accent-1); margin-bottom: -5px; }
.share-score-suffix { font-size: 1.1rem; color: rgba(255,255,255,0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.share-phrase-container { background: var(--bg-elevated); padding: 1rem; border-radius: 6px; margin-bottom: 1rem; border: 1px dashed var(--border-color); position: relative; z-index: 2; }
.share-phrase { font-style: italic; color: var(--text-main); font-size: 1rem; text-align: center; word-wrap: break-word; overflow-wrap: break-word; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.gauge-container { width: 180px; margin: 0 auto 1rem; position: relative; z-index: 2; }
.gauge-base { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 12; }
.gauge-progress { fill: none; stroke: var(--accent-1); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s ease; transform: rotate(-90deg); transform-origin: 50% 50%; }
.gauge-score-center { font-size: 3rem; font-weight: 900; fill: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.gauge-subtext { font-size: 0.8rem; font-weight: 700; fill: rgba(255,255,255,0.6); letter-spacing: 1px; }
.result-text { text-align: center; padding: 1rem; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 1rem; font-size: 1.1rem; position: relative; z-index: 2; border: 2px solid transparent; }
.result-text.stamped { animation: stampIn 0.4s cubic-bezier(0.25, 1.5, 0.5, 1) forwards; background: rgba(56, 189, 248, 0.15); border-color: var(--accent-1); color: #fff; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2) rotate(-15deg); } 100% { opacity: 1; transform: scale(1) rotate(-2deg); } }
.share-details { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin: 1rem 0; position: relative; z-index: 2; }
.share-bonus-words { color: var(--accent-3); font-weight: bold; }
.share-final-text { text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.75rem; color: var(--text-muted); position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* BUTTONS SHARE */
.share-buttons { display: flex; gap: 0.5rem; }
.btn-share { flex: 1; padding: 0.5rem; font-size: 0.9rem; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-elevated); color: white; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: background-color 0.2s; }
.btn-share:hover { background: var(--bg-card); }
.btn-share.capture { background: var(--accent-1); color: var(--bg-main); }
.btn-share.whatsapp { background: #25D366; }
.share-feedback { text-align: center; margin-top: 0.5rem; font-size: 0.8rem; color: var(--accent-1); min-height: 1.2em; }

/* STATS & CASIER */
.usage-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.usage-value { font-size: 1.5rem; font-weight: 900; color: var(--accent-1); }
/* GRADE AVEC COULEUR DISTINCTE */
.usage-grade { font-weight: 700; font-size: 1.1rem; display: block; margin-top: 0.2rem; }
.grade-low { color: var(--color-low); }
.grade-mid { color: var(--color-mid); }
.grade-high { color: var(--color-high); }
.grade-max { color: var(--color-max); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: 1rem; }
.stat-item strong { display: block; font-size: 1.1rem; color: white; }
/* TEXTE DISCRET */
.stats-footer { font-size: 0.7rem; color: var(--text-muted); margin-top: 1rem; text-align: center; opacity: 0.6; font-style: italic; }

/* BADGES */
.badges-section h4 { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.badges-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.badge-item { font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 20px; background: #334155; color: #64748b; border: 1px solid transparent; opacity: 0.7; transition: all 0.3s ease; }
.badge-item.unlocked { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: #10b981; font-weight: bold; opacity: 1; box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); transform: scale(1.05); }
.badge-item.locked { opacity: 0.5; filter: grayscale(1); }

/* HISTORY */
.history-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-top: 1rem; }
.history-table th, .history-table td { padding: 0.6rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
.history-table th { color: var(--text-muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; }
.history-score { font-weight: 900; }
.history-empty { text-align: center; padding: 1.5rem; color: var(--text-muted); font-style: italic; }

.footer { text-align: center; padding: 3rem 0; border-top: 1px solid var(--border-color); margin-top: 3rem; color: var(--text-muted); font-size: 0.9rem; }
.footer-links-row { margin-bottom: 1.5rem; }
.footer-links-row a { color: var(--text-muted); margin: 0 0.5rem; }
.footer-links-row a:hover { color: var(--accent-1); }
.btn-coffee { display: inline-block; background: #FFDD00; color: #000; font-weight: bold; padding: 0.8rem 1.5rem; border-radius: 50px; box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3); transition: transform 0.2s; }
.btn-coffee:hover { transform: translateY(-2px); }
.copyright { margin-top: 1.5rem; font-size: 0.8rem; opacity: 0.6; }

@media (max-width: 768px) {
    .header { flex-direction: column; gap: 1rem; }
    .content-grid { grid-template-columns: 1fr; }
    .nav { width: 100%; justify-content: center; }
    .history-table th:nth-child(2), .history-table td:nth-child(2) { display: none; }
    .share-score-caption { font-size: 2.8rem; }
    .share-card { padding: 1rem; }
}

/* Fix logo size in Verdict */

.share-logo {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 12px;
}


/* ===========================
   Avertissement / Disclaimer
   =========================== */

.mytho-disclaimer {
  margin: 2.5rem auto 1.5rem;
  max-width: 1100px;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(248, 250, 252, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.mytho-disclaimer-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.mytho-disclaimer-content {
  color: #e5e7eb;
  font-size: 0.9rem;
}

.mytho-disclaimer-title {
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.mytho-disclaimer-text {
  margin: 0;
  color: #cbd5f5;
}

/* =========
   Footer
   ========= */

.footer {
  margin-top: 2.5rem;
  padding: 2.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 55%)
              , #020617;
  text-align: center;
  color: #e5e7eb;
}

.footer-top {
  max-width: 900px;
  margin: 0 auto 1.75rem;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-logo-circle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-logo-fallback {
  font-size: 1.4rem;
}

.footer-brand-text {
  text-align: left;
}

.footer-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.footer-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-description {
  margin: 0.75rem auto 1.2rem;
  max-width: 720px;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.footer-cta-container {
  display: flex;
  justify-content: center;
}

.btn-coffee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  box-shadow: 0 12px 25px rgba(250, 204, 21, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-coffee:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 35px rgba(250, 204, 21, 0.45);
}

/* Liens du milieu */

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-link {
  color: #cbd5f5;
  text-decoration: none;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.footer-link:hover {
  color: #38bdf8;
  background-color: rgba(15, 23, 42, 0.8);
}

.footer-link-legacy {
  font-style: italic;
  color: #facc15;
}

.footer-link-legacy:hover {
  color: #fbbf24;
}

.footer-sep {
  opacity: 0.4;
  color: #64748b;
}

/* Badges IA / RGPD / CGU */

.footer-badges-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  color: #e5e7eb;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.footer-chip-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #22c55e;
}

/* couleurs par type */
.footer-chip-green .footer-chip-dot { background: #22c55e; }
.footer-chip-blue .footer-chip-dot { background: #3b82f6; }
.footer-chip-purple .footer-chip-dot { background: #a855f7; }

.footer-chip-green { border-color: rgba(34, 197, 94, 0.6); }
.footer-chip-blue  { border-color: rgba(59, 130, 246, 0.6); }
.footer-chip-purple{ border-color: rgba(168, 85, 247, 0.6); }

.footer-chip:hover {
  background: rgba(15, 23, 42, 0.95);
}

/* Bas de page */

.footer-bottom {
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.footer-tech {
  opacity: 0.8;
}

/* Responsive */

@media (max-width: 640px) {
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-description {
    font-size: 0.85rem;
  }
}


/* ===========================
   Améliorations carte partage
   =========================== */

/* Carte centrée, taille raisonnable pour mobile & capture */
.share-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.75rem;
  border-radius: 1.75rem;
}

/* Phrase principale : bien centrée + mieux contenue */
.share-phrase-container {
  margin: 1.25rem 0 1.75rem;
}

.share-phrase {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 100%;
}

/* Verdict : bandeau lisible qui ne déborde plus du cadre */
.result-text {
  position: relative;
  margin: 1.75rem auto 1.5rem;
  padding: 0.9rem 1.2rem;
  max-width: 340px;
  background: #0f172a;
  border-radius: 0.9rem;
  border: 2px solid var(--accent-1);
  font-weight: 600;
  text-align: center;
  transform-origin: center;
}

.result-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Animation "tampon" mais sans scale x2 qui coupait parfois le texte */
.result-text.stamped {
  animation: verdictStamp 0.45s ease-out forwards;
}

@keyframes verdictStamp {
  0% { transform: scale(0.9) rotate(-3deg); opacity: 0; }
  50% { transform: scale(1.05) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Bonus : ligne bien visible, en majuscules, couleur "punchy" */
.share-details {
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.share-label {
  opacity: 0.85;
}

.share-bonus-words {
  color: var(--accent-3);
  font-weight: 600;
  text-transform: uppercase;
}

/* Footer avec logo + "Teste ton niveau sur lemyto.com" */
.share-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.share-footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 0.75rem;
  background: #020617;
  object-fit: cover;
}

.share-footer strong {
  color: #ffffff;
}

/* Logo en haut de carte : taille maîtrisée pour la capture */
.share-logo-img {
  height: 50px;
  width: 50px;
  border-radius: 1rem;
  object-fit: cover;
}

/* Petits ajustements sur mobile */
@media (max-width: 480px) {
  .share-card {
    padding: 1.5rem 1.25rem 1.5rem;
  }
  .share-phrase {
    font-size: 0.95rem;
  }
  .result-text {
    font-size: 0.95rem;
    max-width: 320px;
  }
}


/* ===========================
   PAGES CONTENU (About, FAQ, Legal, Contact)
   =========================== */

.main.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
}

/* Hero texte + illustration */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.page-hero-text {
  max-width: 640px;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.page-subtitle {
  color: var(--text-muted);
  max-width: 52rem;
}

.page-hero-illustration {
  justify-self: center;
}

.page-hero-illustration img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.8);
}

/* Layout mobile */

@media (max-width: 900px) {
  .main.page-shell {
    padding-inline: var(--space-md);
  }
  .page-hero {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .page-hero-illustration {
    order: -1;
  }
  .page-hero-illustration img {
    max-width: 220px;
  }
}

/* Contenu central */

.page-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about-section,
.faq-section,
.legal-section,
.contact-section {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.about-section h2,
.faq-section h2,
.legal-section h2,
.contact-section h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-1);
  margin-bottom: var(--space-xs);
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.8);
}

.faq-question {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.faq-question span.icon {
  margin-top: 2px;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer strong {
  color: #e5e7eb;
}

/* Barre CTA commune (FAQ / About) */

.page-cta-bar {
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(90deg, #34d399, #6366f1, #ec4899);
}

.page-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: #020617;
  border-radius: 999px;
  padding: var(--space-sm) var(--space-md);
}

.page-cta-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Bouton fantôme générique */

.btn-ghost {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.9rem;
  background: transparent;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
}

/* Legal */

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-bottom: var(--space-md);
}

.legal-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-list li::before {
  content: "•";
  color: var(--accent-1);
  margin-right: 0.4rem;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

.contact-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.85);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.contact-field {
  margin-bottom: var(--space-sm);
}

.contact-label {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
  display: block;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: #020617;
  color: #e5e7eb;
  padding: 0.6rem 0.75rem;
  font: inherit;
}

.contact-textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-hint {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}



/* =========================================================
   PAGES DE CONTENU (about, FAQ, IA, RGPD, CGU, contact, 404)
   Objectif : plus d'air entre les blocs, meilleure lisibilité
   ========================================================= */

/* Hero des pages secondaires (titre + texte + illustration) */
.page-hero {
  max-width: 1120px;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto
          clamp(2.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
}

.page-hero-illustration {
  justify-self: flex-end;
  max-width: 320px;
}

.page-hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
}

/* Colonne principale de texte (toutes les pages de contenu) */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: clamp(3rem, 5vw, 4rem);
}

/* GROSSE différence : espace régulier entre chaque “bloc / tableau” */
.page-content > * + * {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

/* Aération interne des blocs de texte */
.page-content section,
.page-content .legal-block,
.page-content .faq-block,
.page-content .contact-section {
  line-height: 1.7;
}

.page-content h2,
.page-content h3 {
  margin-bottom: 0.8rem;
}

.page-content p + p {
  margin-top: 0.7rem;
}

.page-content ul {
  margin-top: 0.4rem;
  padding-left: 1.25rem;
}

/* CONTACT : grille + air entre colonne formulaire / colonne infos */
.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.25rem);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    align-items: flex-start;
  }
}

/* Cartes de la colonne de droite sur la page contact */
.contact-panel + .contact-panel {
  margin-top: 1.5rem;
}

/* Formulaire : champs moins serrés */
.contact-form .form-row,
.contact-form .form-group {
  margin-bottom: 1.15rem;
}

/* 404 : bloc central plus aéré */
.error-container {
  max-width: 960px;
  margin: clamp(2rem, 4vw, 3rem) auto clamp(3rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.error-container .card {
  margin-top: 1.25rem;
}

/* Petits resserrages pour mobile : on reste lisible sans être tassé */
@media (max-width: 768px) {
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .page-hero-illustration {
    justify-self: flex-start;
    max-width: 260px;
  }

  .page-content {
    padding-inline: 0.75rem;
  }
}



/* =========================================
   CTA BARRE (About, FAQ, IA, RGPD, CGU)
   ========================================= */

.page-cta-bar {
  margin: clamp(1.75rem, 3vw, 2.5rem) auto;
  padding-inline: var(--space-md);
}

.page-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #22c55e33, transparent 55%),
              radial-gradient(circle at 100% 100%, #a855f733, transparent 55%),
              #020617;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Texte "Ce projet te fait rire ?" */
.page-cta-inner > p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1 1 auto;
}

/* Zone boutons */
.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Boutons dans la barre */
.page-cta-actions .btn-coffee,
.page-cta-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Version mobile : tout centré, boutons full width */
@media (max-width: 768px) {
  .page-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1rem 1.1rem;
  }

  .page-cta-inner > p {
    flex: 0 0 auto;
    font-size: 0.9rem;
  }

  .page-cta-actions {
    width: 100%;
  }

  .page-cta-actions .btn-coffee,
  .page-cta-actions .btn-ghost {
    width: 100%;
  }
}




/* =========================================
   HERO PAGES SECONDAIRES (About / FAQ / etc.)
   ========================================= */

.page-hero {
  max-width: 1120px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  padding-top: var(--space-xl);
}

/* Bloc texte */
.page-hero-text {
  margin-bottom: var(--space-lg);
}

.page-hero .page-title {
  margin-bottom: 0.75rem;
}

.page-hero .page-subtitle {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Illustration */
.page-hero-illustration {
  text-align: center;
  margin: var(--space-lg) auto 0;
}

.page-hero-illustration img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.9);
}

/* Desktop : texte à gauche, visuel à droite */
@media (min-width: 900px) {
  .page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(2rem, 4vw, 3rem);
  }

  .page-hero-text {
    margin-bottom: 0;
  }

  .page-hero-illustration {
    margin: 0;
    text-align: right;
  }

  .page-hero-illustration img {
    margin: 0 0 0 auto;
  }
}



/* Hero 404 : mobile first, centré, image responsive */
.page-hero-404 {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero-404 .page-hero-text {
  max-width: 40rem;
}

.page-hero-404 .page-hero-illustration img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .page-hero-404 {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .page-hero-404 .page-hero-illustration {
    max-width: 420px;
    margin-left: auto;
  }
}

