/* ══════════════════════════════════════
   Noozly – style.css  v3
   ══════════════════════════════════════ */

:root {
  --navy:       #0d1b3e;
  --navy-dark:  #07112a;
  --blue:       #1a6fc4;
  --blue-mid:   #2fa8e0;
  --sky:        #3dbff0;
  --bg:         #eae6df;
  --white:      #ffffff;
  --muted:      #6b7a99;
  --border:     rgba(13,27,62,.08);
  --r:          16px;
  --font:       'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--navy); overflow-x: hidden; }
img  { display: block; max-width: 100%; }
strong { font-weight: 800; }

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 28px 100px;
  overflow: hidden;
  background: var(--bg);
}

/* Background blobs - blue glows */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.blob--tl {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(61,191,240,.28) 0%, rgba(47,168,224,.1) 40%, transparent 70%);
  top: -200px; left: -200px;
}
.blob--br {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(26,111,196,.22) 0%, rgba(13,27,62,.08) 40%, transparent 70%);
  bottom: -160px; right: -160px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Logo */
.hero-logo {
  height: 120px;
  margin: 0 auto 36px;
  filter: drop-shadow(0 8px 24px rgba(13,27,62,.25));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}

/* Title */
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-title__accent {
  color: var(--blue-mid);
}

/* Desc */
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 600;
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-desc strong { color: var(--navy); }

/* Buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(13,27,62,.28);
}
.btn--primary:hover {
  background: var(--navy-dark);
  box-shadow: 0 8px 30px rgba(13,27,62,.36);
}

.btn--outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(13,27,62,.07);
}
.btn--outline:hover {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
  box-shadow: 0 8px 24px rgba(61,191,240,.3);
}

/* Pills */
.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(13,27,62,.06);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2px;
}

/* ════════════════════════════════
   FEATURES
════════════════════════════════ */
.features {
  background: var(--white);
  padding: 100px 0 110px;
  position: relative;
}

/* Subtle blue glow hint at top of features */
.features::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 200px;
  background: radial-gradient(ellipse, rgba(61,191,240,.1) 0%, transparent 70%);
  pointer-events: none;
}

.features-header {
  margin-bottom: 56px;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--sky); }

.section-h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
}
.section-h2--light { color: var(--white); }

/* Feature rows */
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feat-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 20px;
  border-radius: 12px;
  position: relative;
  transition: background .2s;

  /* reveal */
  opacity: 0;
  transform: translateX(-16px);
}
.feat-row.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Alternating subtle backgrounds */
.feat-row:nth-child(even) {
  background: rgba(61,191,240,.05);
}
.feat-row:nth-child(odd) {
  background: rgba(13,27,62,.03);
}

.feat-row:hover {
  background: rgba(61,191,240,.1) !important;
}

/* Number badge */
.feat-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(47,168,224,.1);
  color: var(--blue-mid);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.feat-row:hover .feat-num {
  background: var(--navy);
  color: var(--white);
}

/* Text */
.feat-body {
  flex: 1;
  min-width: 0;
}
.feat-body h3 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}
.feat-body p {
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.6;
}

/* Tag badge (right) */
.feat-tag {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(61,191,240,.1);
  color: var(--blue-mid);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.feat-row:hover .feat-tag {
  background: var(--sky);
  color: var(--white);
}

/* ════════════════════════════════
   FAQ
════════════════════════════════ */
.faq {
  background: var(--navy);
  padding: 100px 0 110px;
}

.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.faq-head {
  text-align: center;
}
.faq-head__sub {
  margin-top: 10px;
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  font-weight: 600;
}

/* FAQ items */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--r);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  transition: background .25s, border-color .25s;
}
.faq-item.open {
  background: rgba(61,191,240,.1);
  border-color: rgba(61,191,240,.25);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font);
  font-weight: 800;
  font-size: .95rem;
  text-align: left;
}

/* + / - icon */
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  position: relative;
  transition: background .25s, transform .3s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--white);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after  { width: 2px; height: 10px; transition: transform .3s, opacity .3s; }

.faq-item.open .faq-icon { background: rgba(61,191,240,.3); transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease, padding .3s ease;
  padding: 0 20px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 18px;
}
.faq-a p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.7;
}
.faq-a code {
  background: rgba(255,255,255,.1);
  color: var(--sky);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .85rem;
}

/* GIF */
.gif-wrap {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gif-wrap img { width: 100%; display: block; }
.gif-caption {
  background: var(--bg);
  padding: 9px 16px;
  font-size: .73rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gif-caption::before {
  content: '▶';
  color: var(--blue-mid);
  font-size: .6rem;
}

.copy-btn {
  background: rgba(61,191,240,.12);
  border: 1px solid rgba(61,191,240,.2);
  color: var(--sky);
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  letter-spacing: .04em;
}
.copy-btn:hover {
  background: rgba(61,191,240,.25);
  border-color: var(--sky);
}
.copy-btn.copied {
  background: rgba(40,200,90,.15);
  border-color: rgba(40,200,90,.3);
  color: #4ade80;
}

pre {
  padding: 24px 20px;
  overflow-x: auto;
  margin: 0;
}
code {
  font-family: 'Courier New', Courier, monospace;
  font-size: .83rem;
  line-height: 1.85;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  height: 34px;
  opacity: .75;
  transition: opacity .2s;
}
.footer-logo:hover { opacity: 1; }
.footer-copy {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
}
.footer-nav {
  display: flex;
  gap: 18px;
}
.footer-nav a {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--sky); }

/* ════════════════════════════════
   RESPONSIVE – Tablette (≤ 768px)
════════════════════════════════ */
@media (max-width: 768px) {

  /* Wrap padding réduit */
  .wrap { padding: 0 20px; }

  /* Hero */
  .hero { padding: 70px 20px 90px; min-height: auto; }
  .hero-logo { height: 100px; margin-bottom: 28px; }
  .hero-title { font-size: 2rem; }
  .hero-desc  { font-size: .97rem; margin-bottom: 28px; }

  /* Hero pills : wrap si besoin */
  .hero-pills { gap: 8px; }
  .pill { font-size: .75rem; padding: 5px 12px; }

  /* Features */
  .features { padding: 70px 0 80px; }
  .features-header { margin-bottom: 40px; }

  /* Feature row : tag à droite disparaît sur tablette aussi */
  .feat-tag { display: none; }
  .feat-row { gap: 16px; padding: 20px 16px; }
  .feat-num { width: 42px; height: 42px; border-radius: 12px; font-size: .75rem; }
  .feat-body h3 { font-size: .95rem; }
  .feat-body p  { font-size: .85rem; }

  /* FAQ */
  .faq { padding: 70px 0 80px; }
  .faq-wrap { gap: 36px; }
  .faq-head__sub { font-size: .85rem; }
  .faq-q { font-size: .9rem; padding: 16px 18px; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-nav { justify-content: center; flex-wrap: wrap; gap: 14px; }
}

/* ════════════════════════════════
   RESPONSIVE – Mobile (≤ 480px)
════════════════════════════════ */
@media (max-width: 480px) {

  .wrap { padding: 0 16px; }

  /* ── Hero ── */
  .hero { padding: 52px 16px 70px; }

  /* Blobs trop grands sur mobile = overflow */
  .blob--tl { width: 300px; height: 300px; top: -100px; left: -100px; }
  .blob--br { width: 260px; height: 260px; bottom: -80px; right: -80px; }

  .hero-logo { height: 80px; margin-bottom: 24px; }

  .hero-title {
    font-size: 1.65rem;
    /* Empêche le retour à la ligne forcé sur petits écrans */
    hyphens: auto;
  }

  .hero-desc {
    font-size: .92rem;
    margin-bottom: 24px;
    /* Texte aligné à gauche sur tout petit écran = plus lisible */
    text-align: left;
  }

  /* Boutons : full width empilés */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: .92rem;
  }

  /* Pills : 1 par ligne si trop petit */
  .hero-pills {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .pill { font-size: .73rem; }

  /* ── Features ── */
  .features { padding: 56px 0 64px; }
  .features-header { margin-bottom: 28px; }
  .section-h2 { font-size: 1.5rem; }

  .feat-list { gap: 4px; }
  .feat-row {
    gap: 14px;
    padding: 18px 14px;
    border-radius: 10px;
    /* Sur mobile, on aligne le texte en haut du badge */
    align-items: flex-start;
  }
  .feat-num {
    width: 36px; height: 36px;
    border-radius: 10px;
    font-size: .7rem;
    /* Fixe en haut */
    margin-top: 2px;
    flex-shrink: 0;
  }
  .feat-body h3 { font-size: .92rem; margin-bottom: 3px; }
  .feat-body p  { font-size: .82rem; line-height: 1.55; }

  /* ── FAQ ── */
  .faq { padding: 56px 0 64px; }
  .faq-wrap { gap: 28px; }

  .faq-list { gap: 8px; }
  .faq-item { border-radius: 12px; }
  .faq-q {
    font-size: .88rem;
    padding: 15px 16px;
    gap: 12px;
  }
  .faq-icon { width: 24px; height: 24px; }
  .faq-a { padding: 0 16px; }
  .faq-item.open .faq-a { padding: 0 16px 16px; }
  .faq-a p { font-size: .85rem; }

  /* ── Footer ── */
  .footer { padding: 20px 0; }
  .footer-logo { height: 28px; }
  .footer-copy { font-size: .75rem; }
  .footer-nav a { font-size: .75rem; }
}
