@font-face {
  font-family: 'Starborn';
  src: url('../fonts/Super%20Kidpop.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: ABC Favorit, Avenir, Montserrat, Corbel, URW Gothic, source-sans-pro, sans-serif;
  background: #f4f4f0;
  color: #111;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  padding: 0 1rem 0 2rem;
  background: #f4f4f0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.brand {
  font-family: 'Starborn', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: underline;
}
.brand-pink { color: #fe8ce3; }
.header-right { display: flex; align-items: center; height: 100%; }
.btn-toggle {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 1rem; background: transparent; border: none;
  cursor: pointer; color: inherit; transition: all 0.2s;
}
.btn-toggle:hover { background: #ff90e8; color: #000; }
.btn-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-link {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 1rem; font-size: 1.05rem; font-weight: 600;
  color: inherit; text-decoration: none; transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }
.btn-commencer {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 1.5rem; background: #fe8ce3; color: #000 !important;
  font-size: 1.05rem; font-weight: 600; transition: opacity 0.2s;
}
.btn-commencer:hover { opacity: 0.8; }

.commu-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.commu-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  background: rgba(254,140,227,0.12);
  color: #c0369e;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}
.commu-hero h1 {
  font-family: 'Starborn', sans-serif;
  font-size: 4.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #111 30%, #fe8ce3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.commu-hero p {
  font-size: 1.1rem;
  color: rgba(0,0,0,0.5);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.commu-grid {
  max-width: 700px;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.commu-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1.25rem;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.commu-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 100px;
  transition: opacity 0.3s;
  opacity: 0;
}
.card-hub::before { background: #0088cc; }
.card-chat::before { background: #fe8ce3; }
.card-vouch::before { background: #f5a623; }

.commu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.commu-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-hub .card-icon {
  background: rgba(0,136,204,0.08);
  color: #0088cc;
}
.card-chat .card-icon {
  background: rgba(254,140,227,0.1);
  color: #d44fb6;
}
.card-vouch .card-icon {
  background: rgba(245,166,35,0.1);
  color: #d4920f;
}
.card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.card-title {
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card-desc {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.4);
  font-weight: 500;
}

.card-arrow {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
  transition: opacity 0.2s, transform 0.2s;
}
.card-arrow svg { width: 1.2rem; height: 1.2rem; }
.commu-card:hover .card-arrow {
  opacity: 0.6;
  transform: translate(2px, -2px);
}

body.dark-mode {
  background: #0a0a0a !important;
  color: #e8e8e8 !important;
}
body.dark-mode .header {
  background: rgba(10,10,10,0.85);
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .brand { color: #fff; }
body.dark-mode .hero-badge {
  background: rgba(254,140,227,0.1);
  color: #f0a0d8;
}
body.dark-mode .commu-hero h1 {
  background: linear-gradient(135deg, #fff 30%, #fe8ce3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
body.dark-mode .commu-hero p { color: rgba(255,255,255,0.4); }
body.dark-mode .commu-card {
  background: #151515;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .commu-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(254,140,227,0.1);
}
body.dark-mode .card-desc { color: rgba(255,255,255,0.35); }
body.dark-mode .card-arrow { color: rgba(255,255,255,0.3); }
body.dark-mode .btn-toggle:hover { background: #ff90e8; color: #000; }

@media (max-width: 768px) {
  .commu-hero h1 { font-size: 3rem; }
  .commu-grid { padding: 1rem; }
  .header { padding: 0 0.75rem 0 1rem; }
}
@media (max-width: 480px) {
  .commu-hero h1 { font-size: 2.3rem; }
  .commu-hero { padding: 3.5rem 1rem 2rem; }
  .commu-card { padding: 1.25rem; }
}
