/* =========================================
   GLOBAL.CSS — Sky Social Agency
   Brand Kit : Light Mode | Gradient violet→rose→orange
   UI/UX Pro Max : Cards blanches | Glow doux | Inter
   ========================================= */

:root {
  /* — Couleurs brand — */
  --primary:     #9B59B6;   /* Violet */
  --primary-mid: #E91E8C;   /* Rose */
  --secondary:   #FF6B35;   /* Orange */
  --grad: linear-gradient(135deg, #9B59B6, #E91E8C, #FF6B35);
  --grad-h: linear-gradient(135deg, #B06BC8, #F02D9C, #FF7E50);

  /* — Fonds clairs — */
  --bg:          #FAFAFA;
  --bg-section:  #F3EEFF;   /* Lilas très léger */
  --bg-card:     #FFFFFF;
  --bg-glass:    rgba(255,255,255,0.92);

  /* — Textes — */
  --text:        #1A1A2E;   /* Navy sombre */
  --muted:       #4B5563;   /* Gris medium */
  --text-dim:    rgba(26,26,46,0.55);

  /* — Bordures — */
  --border:      rgba(155,89,182,0.15);
  --border-grad: rgba(155,89,182,0.30);

  /* — Ombres & glow — */
  --glow:        0 4px 20px rgba(233,30,140,0.18);
  --glow-hover:  0 8px 32px rgba(233,30,140,0.30);
  --shadow:      0 8px 30px rgba(0,0,0,0.07);

  /* — Legacy compat — */
  --dark:  #1A1A2E;
  --light: #FAFAFA;
  --white: #ffffff;
  --accent: #FF6B35;
}

/* =========================================
   BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Poppins', sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   HEADER — glassmorphism dark
   ========================================= */
header {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(155,89,182,0.12);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 12px;
}

.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

nav ul li a {
  font-weight: 500;
  padding: 6px 0;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: color 0.25s;
  cursor: pointer;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  border-radius: 3px;
  background: var(--grad);
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.nav-btn {
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--grad);
  box-shadow: var(--glow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-hover);
  background: var(--grad-h);
}

/* =========================================
   HAMBURGER
   ========================================= */
.nav-toggle {
  display: none;
  border: 0;
  background: rgba(155,89,182,0.08);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  position: relative;
  z-index: 1200;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad);
  background-image: var(--grad);
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
}

/* =========================================
   BUTTONS — CTA avec dégradé & glow
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-hover);
  background: var(--grad-h);
}

.btn-ghost {
  background: #FFFFFF;
  border: 1.5px solid var(--border-grad);
  color: var(--primary);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(155,89,182,0.06);
  border-color: rgba(155,89,182,0.50);
  box-shadow: 0 4px 16px rgba(155,89,182,0.14);
}

/* =========================================
   SECTIONS
   ========================================= */
section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-section);
}

.section-title {
  margin-bottom: 32px;
}

.section-title h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -.02em;
  color: var(--text);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.underline {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad);
  margin-top: 14px;
}

/* =========================================
   CARDS — glassmorphism
   ========================================= */
.card {
  border-radius: 20px;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(155,89,182,0.14);
  border-color: rgba(155,89,182,0.35);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(155,89,182,0.05), transparent 60%);
  pointer-events: none;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--text);
  position: relative;
}

.card p {
  margin: 0;
  color: var(--muted);
  position: relative;
  font-size: .95rem;
}

.card .mini {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.mini span {
  font-size: .8rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-grad);
  background: rgba(155,89,182,0.10);
  color: var(--muted);
}

/* =========================================
   TRUST CHIPS
   ========================================= */
.trust-chip {
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(155,89,182,0.20);
  background: rgba(155,89,182,0.06);
  color: var(--text);
}

/* =========================================
   FOOTER — dark brand
   ========================================= */
.footer-light {
  background: #1A1A2E;
  border-top: 1px solid rgba(155,89,182,0.20);
  padding: 60px 0 30px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.footer-light::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 5% 50%, rgba(155,89,182,0.12), transparent 40%),
    radial-gradient(circle at 95% 50%, rgba(255,107,53,0.10), transparent 40%);
  pointer-events: none;
}

.footer-light-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

.footer-light-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(155,89,182,0.15);
  border: 1px solid rgba(155,89,182,0.30);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C98FDC;
  margin-bottom: 14px;
}

.footer-light p {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
  font-size: .95rem;
}

.footer-light-socials {
  display: flex;
  gap: 10px;
}

.footer-light-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.footer-light-socials a:hover {
  transform: translateY(-3px);
  color: #E91E8C;
  border-color: rgba(233,30,140,0.50);
  box-shadow: 0 0 16px rgba(233,30,140,0.25);
}

.footer-light-links h4,
.footer-light-contact h4 {
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-light-links a {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  font-size: .95rem;
  transition: color 0.2s, padding-left 0.2s;
  cursor: pointer;
}

.footer-light-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-light-contact p {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.65);
  font-size: .95rem;
}

.footer-light-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: white;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: var(--glow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.footer-light-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-hover);
}

.footer-light-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

.footer-light-bottom p {
  margin: 0;
  font-size: .88rem;
  color: rgba(255,255,255,0.45);
  max-width: 100%;
}

.footer-light-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: rgba(255,255,255,0.45);
}

.footer-light-bottom-inner p {
  margin: 0;
}

.footer-light-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.footer-light-legal a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: .88rem;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-light-legal a:hover {
  color: #FFFFFF;
}

/* =========================================
   ANIMATIONS — fade-in au scroll
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================
   CAROUSELS TACTILES
   ========================================= */
.is-carousel::-webkit-scrollbar { height: 4px; }
.is-carousel::-webkit-scrollbar-thumb {
  background: rgba(233,30,140,0.30);
  border-radius: 999px;
}

/* =========================================
   FOCUS — accessibilité clavier
   ========================================= */
:focus-visible {
  outline: 2px solid #E91E8C;
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   RESPONSIVE — Tablette
   ========================================= */
@media (max-width: 980px) {
  .container { padding: 0 16px; }
}

/* =========================================
   RESPONSIVE — Mobile
   ========================================= */
@media (max-width: 768px) {
  body { padding-top: 72px; }
  :root { --header-h: 72px; }

  html, body { overflow-x: hidden; }

  .logo-img { width: 44px; height: 44px; }
  .logo span { font-size: .9rem; }

  h1 {
    font-size: clamp(1.95rem, 7vw, 2.35rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: clamp(1.45rem, 5.4vw, 1.85rem) !important;
    line-height: 1.15 !important;
  }

  p { font-size: 1rem; line-height: 1.7; }

  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }

  nav { position: relative; }
  nav ul {
    position: absolute;
    right: 0;
    top: calc(var(--header-h) - 6px);
    width: min(330px, 92vw);
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(155,89,182,0.15);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-radius: 18px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
  }
  nav ul.is-open { display: flex; }

  nav ul li a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text);
  }
  nav ul li a:hover { background: rgba(155,89,182,0.08); color: var(--primary); }
  .nav-btn { width: 100%; text-align: center; }

  /* Grilles → 1 colonne */
  .method-grid:not(.is-carousel),
  .services-grid:not(.is-carousel),
  .values-grid:not(.is-carousel),
  .team-grid:not(.is-carousel),
  .blog-grid:not(.is-carousel),
  .about-grid:not(.is-carousel),
  .diff-grid:not(.is-carousel),
  .test-grid:not(.is-carousel),
  .mockup-testimonial-grid:not(.is-carousel),
  .footer-light-grid:not(.is-carousel) {
    display: grid;
    grid-template-columns: 1fr !important;
  }

  .two-columns,
  .hero-grid,
  .process-steps,
  .hero-actions,
  .cta-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hero, .page-hero { text-align: left; }

  .hero-actions .btn,
  .hero-actions .nav-btn,
  .cta-buttons .btn,
  .cta-buttons .nav-btn {
    width: 100%;
    justify-content: center;
  }

  .service-card,
  .card,
  .blog-card,
  .method-card,
  .process-card { width: 100%; }

  .is-carousel {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .is-carousel > * {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .testimonial-card,
  .test-card { padding: 16px !important; }

  input, textarea, select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
  }

  img, video { max-width: 100%; height: auto; }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: start !important;
  }

  .hero { padding: 120px 0 55px !important; }

  .hero-badge { max-width: 100%; white-space: normal; }

  .hero-card { padding: 14px !important; }
  .hero-card .mock { height: 240px !important; }

  .hero-proof {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .hero-actions .btn { width: 100% !important; }

  body { padding-bottom: 0 !important; }

  .footer-light { padding: 34px 0 18px !important; }

  .footer-light-links { display: none; }

  .footer-light-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-light-legal { justify-content: center; }

  .footer-light-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-light p { max-width: 100%; }
  .footer-light-socials { justify-content: center; }
  .footer-light-bottom-inner {
    flex-direction: column;
    align-items: center;
  }

  /* Article hero */
  .article-hero { padding: 120px 0 44px !important; }
  .article-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
  }
  .article-hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem) !important;
    line-height: 1.05 !important;
  }
  .article-meta { font-size: .95rem !important; }
  .hero-intro { font-size: 1rem !important; line-height: 1.7 !important; }
  .hero-image-card img { aspect-ratio: 16/10; object-fit: cover; }
  .hero-floating-badge {
    position: static !important;
    margin-top: 12px;
    width: 100%;
    border-radius: 16px;
    padding: 12px 14px;
  }
  .hero-floating-badge p { margin: 0; font-size: .95rem; line-height: 1.45; }
}

/* Très petit */
@media (max-width: 420px) {
  .logo span { display: inline; font-size: .82rem; letter-spacing: .05em; }
}
