/* ============================================================
   ChatFR — feuille de style
   Design fluide, moderne, cohérent (refonte complète)
   ============================================================ */

:root {
  --bg-0: #05070f;
  --bg-1: #0a0e1c;
  --bg-2: #0e1426;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef2fb;
  --muted: #98a2b8;
  --muted-2: #6f7890;

  --accent: #ff5a8f;
  --accent-2: #7c5cff;
  --accent-3: #22d9c4;
  --accent-4: #ffb84d;

  --gradient-brand: linear-gradient(120deg, var(--accent), var(--accent-2));
  --gradient-mesh:
    radial-gradient(circle at 12% 8%, rgba(255, 90, 143, 0.16), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(124, 92, 255, 0.18), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(34, 217, 196, 0.10), transparent 50%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --gap: clamp(14px, 2.2vw, 24px);

  --shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.35);
  --shadow-lift: 0 22px 55px rgba(2, 6, 23, 0.5);

  --ease: cubic-bezier(.22, .9, .3, 1);

  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* ------------------------- Reset & base ------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background:
    var(--gradient-mesh),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: inherit; letter-spacing: -0.02em; }
p { line-height: 1.65; }

.wrap {
  max-width: var(--max-width);
  margin: clamp(16px, 3vw, 32px) auto;
  padding: 0 clamp(14px, 4vw, 20px);
  width: 100%;
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

/* Douce texture de grain/particules, très discrète, en fond fixe */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ------------------------- Composants réutilisables ------------------------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ------------------------- Bandeau logo ------------------------- */
.header-logo-card {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto clamp(14px, 2.5vw, 20px) auto;
  padding: clamp(12px, 2vw, 16px) clamp(16px, 3vw, 22px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.header-logo-card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.header-logo-card .brand-name {
  font-size: 19px;
  font-weight: 800;
}

.header-logo-card .brand-tag {
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------- Hero ------------------------- */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: min(58vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-2);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lift);
}

.hero .hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(0.95);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 22, 0.55) 0%, rgba(7, 10, 22, 0.72) 55%, rgba(6, 8, 18, 0.92) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  gap: clamp(20px, 3vw, 30px);
  align-items: center;
}

.hero-left {
  animation: fade-up 700ms var(--ease) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-brand);
  font-weight: 700;
  color: white;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.25);
}

.hero-title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 800;
  margin: 16px 0 12px;
  line-height: 1.08;
  background: linear-gradient(120deg, #ffffff, #ffd7e6, #d9c9ff, #ffffff);
  background-size: 260% 260%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-gradient 10s ease-in-out infinite;
}

p.lead {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  margin: 0 0 20px;
  max-width: 56ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 90, 143, 0.22);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 90, 143, 0.32);
  filter: brightness(1.05);
}

.btn:active { transform: translateY(0); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  animation: fade-up 700ms var(--ease) 120ms both;
}

.promo {
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 14px;
  backdrop-filter: blur(8px);
}

/* ------------------------- Connect cards ------------------------- */
.connect-section {
  margin-top: clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

.connect-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}

.connect-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(255, 255, 255, 0.16);
}

.connect-card .top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.icon.discord { background: linear-gradient(135deg, #5865F2, #4752C4); }
.icon.irc { background: linear-gradient(135deg, #22d9c4, #0fa89a); }

.connect-card h3 { margin: 0 0 4px; font-size: 19px; }
.connect-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.connect-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.connect-card .meta-label {
  color: var(--muted);
  font-size: 13px;
}

.connect-card .meta-label span {
  color: var(--text);
  font-weight: 700;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.big-btn {
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.big-btn.primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.22);
}

.big-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(124, 92, 255, 0.3); }

.big-btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--muted);
}

.big-btn.ghost:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }

/* ------------------------- Intro / contenu texte ------------------------- */
.intro {
  margin-top: clamp(20px, 3vw, 30px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intro h2 {
  margin: 8px 0 2px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.intro h2:first-child { margin-top: 0; }

.intro p, .intro li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.intro ul { padding-left: 20px; margin: 0; }
.intro strong { color: var(--text); }
.intro a { color: var(--accent-3); text-decoration: underline; text-underline-offset: 3px; }
.intro a:hover { color: #6df0dd; }

/* ------------------------- Cercles d'avantages ------------------------- */
.features-rounds {
  margin-top: clamp(20px, 3vw, 30px);
  padding: clamp(24px, 4vw, 36px) clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.rounds-grid {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  z-index: 1;
}

.round-card {
  flex: 1 1 220px;
  max-width: 250px;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  animation: fade-up 650ms var(--ease) forwards;
}

.round-card:nth-child(1) { animation-delay: 100ms; }
.round-card:nth-child(2) { animation-delay: 220ms; }
.round-card:nth-child(3) { animation-delay: 340ms; }

.round-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lift);
}

.round-badge {
  width: clamp(72px, 10vw, 92px);
  height: clamp(72px, 10vw, 92px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.round-badge img { width: 100%; height: 100%; object-fit: cover; }

.round-badge.free { background: linear-gradient(135deg, var(--accent), #ff8fb3); }
.round-badge.noauth { background: linear-gradient(135deg, var(--accent-2), #9fd8ff); }
.round-badge.live { background: linear-gradient(135deg, var(--accent-3), #0fa89a); }

.round-title { font-weight: 800; margin-bottom: 6px; font-size: 15.5px; }
.round-desc { font-size: 13px; color: var(--muted); max-width: 175px; line-height: 1.35; }

.ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.08;
  filter: blur(10px);
  animation: spin 26s linear infinite;
}

.ring.r1 { width: 420px; height: 420px; left: calc(50% - 210px); top: calc(50% - 210px); background: conic-gradient(from 0deg, var(--accent), transparent 40%); }
.ring.r2 { width: 520px; height: 520px; left: calc(50% - 260px); top: calc(50% - 260px); background: conic-gradient(from 180deg, var(--accent-2), transparent 30%); animation-duration: 34s; animation-direction: reverse; }

/* ------------------------- Pourquoi nous choisir ------------------------- */
.why {
  margin-top: clamp(20px, 3vw, 30px);
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--card-border);
}

.why h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.why-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.why-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}

.why-card h4 { margin: 0 0 8px; font-size: 15.5px; }
.why-card p { margin: 0; color: var(--muted); font-size: 13.8px; }

/* ------------------------- Footer ------------------------- */
footer {
  margin-top: clamp(20px, 3vw, 30px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.footer-top {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-about { flex: 1 1 480px; color: var(--muted); font-size: 13.8px; line-height: 1.6; }
.footer-about p { margin: 0 0 12px; }
.footer-about strong { color: var(--text); }

.footer-links { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }

.footer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.footer-links a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-2);
  font-size: 12.5px;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
}

.footer-bottom .brand-row { display: flex; align-items: center; gap: 10px; }
.footer-bottom .brand-row img { border-radius: 6px; object-fit: cover; }

/* ------------------------- Formulaire de contact ------------------------- */
.contact-container {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 30px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.contact-container h2 {
  text-align: center;
  margin: 0 0 22px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-form label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

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

.contact-form button {
  width: 100%;
  padding: 13px;
  margin-top: 22px;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 90, 143, 0.22);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), filter 200ms var(--ease);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 90, 143, 0.3);
  filter: brightness(1.05);
}

.robot { display: none; }

/* ------------------------- Animations ------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------- Responsive ------------------------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .connect-section { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-logo-card { flex-direction: column; text-align: center; gap: 10px; }
  .connect-card .top { flex-direction: column; text-align: center; align-items: center; }
  .connect-card .meta-row { flex-direction: column; align-items: stretch; text-align: center; }
  .actions { justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-bottom { justify-content: center; text-align: center; }
  .rounds-grid { gap: 20px; }
}
