/* =============================================
   CuriousBent — Le laboratoire de l'IA appliquée
   Rose pâle · Moderne · Esprit maker
   ============================================= */

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Custom properties */
:root {
  --bg-site: #fffbfc;
  --surface-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --border-light: #f3e8ec;
  --accent: #e8628c;
  --accent-soft: #fdf2f8;
  --accent-hover: #d14d77;
  --accent-light: #fce7f3;
  --accent-glow: rgba(232, 98, 140, 0.12);
  --gradient-hero: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 50%, #fdf2f8 100%);
  --gradient-text: linear-gradient(135deg, #e8628c, #a855f7);
  --gradient-btn: linear-gradient(135deg, #e8628c, #c026d3);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-card-hover: 0 20px 40px rgba(232,98,140,0.12), 0 8px 16px rgba(0,0,0,0.04);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background-color: var(--bg-site);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main { flex: 1; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 252, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo-emoji { font-size: 1.3rem; }

.dot-light {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
  padding: 5rem 0 3rem;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.75;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* Floating emojis */
.hero-emojis {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}

.floating-emoji:nth-child(1) { top: 10%; right: 8%; animation-delay: 0s; }
.floating-emoji:nth-child(2) { top: 55%; right: 4%; animation-delay: 1.2s; }
.floating-emoji:nth-child(3) { top: 25%; right: 22%; animation-delay: 2.4s; }
.floating-emoji:nth-child(4) { top: 68%; right: 28%; animation-delay: 0.8s; }
.floating-emoji:nth-child(5) { top: 12%; right: 38%; animation-delay: 3.6s; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 4px 15px rgba(232, 98, 140, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 98, 140, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ========== VALUES / BENEFITS ========== */
.values-section {
  padding: 4rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  background: var(--surface-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.benefit-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-btn);
  opacity: 0;
  transition: opacity var(--transition);
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.benefit-item:hover::before { opacity: 1; }

.benefit-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.benefit-item h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
}

.benefit-item p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ========== SECTION HEADERS ========== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.65;
}

.section-sub.centered { margin: 0 auto; }

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 4rem 0;
}

.cta-card {
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.cta-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ========== SOLUTIONS / LAB ========== */
.solutions-header {
  text-align: center;
  padding: 3rem 0 1rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.solution-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.solution-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.solution-card::after {
  content: '\2192';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-light);
}

.solution-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.solution-card .card-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.8rem;
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.solution-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.93rem;
  line-height: 1.6;
}

.license-badge {
  background: var(--accent-soft);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
  color: var(--accent);
}

/* ========== NEWS ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.news-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.news-card-inner {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-content { padding: 1.8rem; }

.news-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  font-size: 0.93rem;
}

.news-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
}

/* ========== NEWS ARTICLE ========== */
.news-article {
  max-width: 780px;
  margin: 2rem auto;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
}

.news-article h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news-article .news-date { margin-bottom: 1.5rem; }

.news-article p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.news-article a { font-weight: 600; }

/* ========== SOLUTION DETAIL ========== */
.solution-detail {
  padding: 2rem 0 3rem;
}

.solution-hero {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

.solution-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.solution-hero p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

.solution-hero ul {
  list-style: none;
  padding: 1rem 0;
}

.solution-hero ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  padding-left: 1.8rem;
  position: relative;
  line-height: 1.6;
}

.solution-hero ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  font-size: 0.93rem;
}

.back-link:hover { background: var(--accent-soft); }

/* ========== ABOUT PAGE ========== */
.about-section {
  padding: 3rem 0;
}

.about-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.about-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-card strong { color: var(--text-primary); }

.manifesto-list {
  list-style: none;
  padding: 0;
}

.manifesto-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.manifesto-list li:last-child { border-bottom: none; }

.manifesto-list .manifesto-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ========== CONTACT ========== */
.contact-page {
  padding: 3rem 0 4rem;
}

.contact-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--border-light);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-card .section-title { font-size: 1.8rem; }

.contact-email-large {
  font-size: 1.3rem;
  margin: 2rem 0;
}

.contact-email-large a {
  color: var(--accent);
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  transition: all var(--transition);
  display: inline-block;
}

.contact-email-large a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 98, 140, 0.3);
}

.contact-note {
  color: var(--text-secondary);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.93rem;
}

/* ========== FAQ ========== */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--accent-light);
}

.faq-question {
  background: transparent;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  border: none;
  font-family: inherit;
  color: var(--text-primary);
  transition: all var(--transition);
  gap: 1rem;
}

.faq-question:hover { color: var(--accent); }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform var(--transition);
  color: var(--accent);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.faq-item.open .faq-question::after { content: '\2212'; }

.faq-reponse {
  max-height: 0;
  padding: 0 1.5rem;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-item.open .faq-reponse {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-reponse a { font-weight: 600; }

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--surface-card);
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-inner { text-align: center; }

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-credit {
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.footer-credit a { color: var(--accent); }

/* ========== STATS ========== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { max-width: 100%; font-size: 1.02rem; }

  .hamburger { display: block; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface-card);
    padding: 5rem 2rem 2rem;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .primary-nav.open { right: 0; }

  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1.02rem;
  }

  .benefits-grid,
  .solutions-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }

  .about-card { padding: 1.5rem; }
  .section-title { font-size: 1.8rem; }
  .hero-emojis { display: none; }
  .stats-row { gap: 2rem; }

  .contact-card { padding: 2rem 1.5rem; }
  .cta-card { padding: 2.5rem 1.5rem; }
}

@media (max-width: 400px) {
  .news-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
}

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 99;
}

.nav-overlay.active { display: block; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-site); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ========== SELECTION ========== */
::selection {
  background: var(--accent-light);
  color: var(--text-primary);
}
