/* =========================================================
   Imagine Social — feuille de styles partagée
   Reconstruction autonome (sans Elementor / thème Sierra)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --c-blue:        #3883D7;
  --c-blue-dark:   #2D6FBE;
  --c-blue-darker: #245a9c;
  --c-coral:       #E98B66;
  --c-coral-soft:  #EFA386;
  --c-lavender:    #F5F5FF;
  --c-lavender-2:  #EEEFFB;
  --c-black:       #060608;
  --c-ink:         #1B2440;
  --c-ink-soft:    #2A3656;
  --c-body:        #5B647A;
  --c-body-light:  #8A92A6;
  --c-line:        #E6E8F2;
  --c-white:       #FFFFFF;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-card: 0 24px 60px -28px rgba(31, 45, 92, 0.28);
  --shadow-soft: 0 14px 40px -20px rgba(31, 45, 92, 0.22);
  --shadow-blue: 0 22px 50px -22px rgba(56, 131, 215, 0.55);

  --maxw: 1200px;
  --pad:  clamp(20px, 5vw, 64px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--c-lavender-2);
  color: var(--c-blue);
}
.eyebrow.on-blue   { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.eyebrow.on-black  { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.eyebrow.on-light  { background: var(--c-lavender-2); color: var(--c-blue); }

.h-accent  { color: var(--c-blue); }
.h-coral   { color: var(--c-coral); }

.section-head { text-align: center; max-width: 680px; margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.section-head p  { margin-top: 18px; color: var(--c-body); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--c-blue-dark); }
.btn-coral { background: var(--c-coral); color: #fff; }
.btn-coral:hover { background: #df7d57; }
.btn-white { background: #fff; color: var(--c-coral); box-shadow: var(--shadow-soft); }
.btn-white:hover { transform: translateY(-2px); }
.btn-ghost-blue { background: transparent; color: var(--c-blue); border-color: var(--c-blue); }
.btn-ghost-blue:hover { background: var(--c-blue); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: #fff; color: var(--c-ink); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
}
.site-header.solid {
  position: sticky; background: #fff; border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 22px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em;
  font-size: 15px; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: 8px;
}
.brand img { height: 30px; width: auto; display: block; }
/* header transparent (par-dessus le héro bleu) : logo bleu → blanc */
.site-header:not(.solid) .brand img { filter: brightness(0) invert(1); }
.footer-brand .brand img, .mobile-panel .brand img { height: 32px; }
.site-header.solid .brand { color: var(--c-coral); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .navbtn {
  font-family: var(--font-display); font-weight: 500; font-size: 15.5px;
  color: rgba(255,255,255,0.92); padding: 10px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  transition: background .15s, color .15s;
}
.site-header.solid .nav-links a, .site-header.solid .nav-links .navbtn { color: var(--c-ink-soft); }
.nav-links a:hover, .nav-links .navbtn:hover { background: rgba(255,255,255,0.14); }
.site-header.solid .nav-links a:hover, .site-header.solid .nav-links .navbtn:hover { background: var(--c-lavender-2); }
.nav-links a.active { font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* connexion button */
.btn-connexion {
  background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.32);
  padding: 11px 26px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  transition: background .15s, transform .15s;
}
.btn-connexion:hover { background: rgba(255,255,255,0.32); }
.site-header.solid .btn-connexion { background: var(--c-blue); border-color: var(--c-blue); }
.site-header.solid .btn-connexion:hover { background: var(--c-blue-dark); }

/* dropdown */
.nav-links li.has-dropdown::after {
  /* pont invisible qui comble l'espace bouton↔menu pour que le survol ne se coupe pas */
  content: "";
  position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  display: none;
}
.nav-links li.has-dropdown:hover::after,
.nav-links li.has-dropdown.open::after { display: block; }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 240px; background: #fff; border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow-card); border: 1px solid var(--c-line);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; z-index: 80;
}
.nav-links li.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a {
  display: flex; flex-direction: column; gap: 2px; color: var(--c-ink) !important;
  padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 15px;
}
.dropdown-menu a span { font-weight: 400; font-size: 13px; color: var(--c-body); font-family: var(--font-body); }
.dropdown-menu a:hover { background: var(--c-lavender) !important; }

/* lang switch */
.lang-switch { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.16); border-radius: 999px; padding: 4px; }
.site-header.solid .lang-switch { background: var(--c-lavender-2); }
.lang-switch button {
  border: none; background: none; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: rgba(255,255,255,0.8); padding: 5px 11px; border-radius: 999px; transition: background .15s, color .15s;
}
.site-header.solid .lang-switch button { color: var(--c-body); }
.lang-switch button.active { background: #fff; color: var(--c-blue); }

/* burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.site-header.solid .burger span { background: var(--c-ink); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: #fff; padding-top: clamp(56px, 8vw, 96px); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr) 1.4fr; gap: 36px;
}
.footer-brand .brand { color: var(--c-coral); margin-bottom: 18px; }
.footer-brand p { color: var(--c-body); font-size: 15.5px; max-width: 240px; }
.footer-col h4 { font-family: var(--font-display); font-size: 17px; margin-bottom: 18px; color: var(--c-ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--c-ink-soft); font-size: 15.5px; transition: color .15s; }
.footer-col a:hover { color: var(--c-blue); }
.footer-contact a.mail { color: var(--c-ink-soft); font-size: 15.5px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px; background: var(--c-lavender);
  display: grid; place-items: center; color: var(--c-blue); transition: background .15s, transform .15s;
}
.footer-social a:hover { background: var(--c-lavender-2); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--c-line);
  padding-block: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-bottom p { color: var(--c-body); font-size: 14.5px; }
.footer-legal { display: flex; gap: 26px; }
.footer-legal a { color: var(--c-ink-soft); font-size: 14.5px; }
.footer-legal a:hover { color: var(--c-blue); }

/* badge annuel */
.badge-free {
  display: none;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--c-coral); border-radius: 999px;
  padding: 3px 10px; white-space: nowrap;
  letter-spacing: 0.02em; text-transform: uppercase;
  flex-basis: 100%; align-self: flex-start; margin-top: 4px;
}
.pricing-grid.billing-year .badge-free { display: inline-block; }

/* scroll-top */
.scroll-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 50;
  width: 50px; height: 50px; border-radius: 999px; background: #fff; border: 1.5px solid var(--c-line);
  color: var(--c-blue); display: grid; place-items: center; box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s; transform: translateY(10px);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--c-blue); color: #fff; }

/* ---------- image-slot defaults ---------- */
image-slot {
  --is-bg: var(--c-lavender);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
/* Le composant impose en interne height:160px via :host (spécificité 0,1,0),
   ce qui écrase l'aspect-ratio des emplacements. On neutralise cette hauteur
   avec une règle de spécificité (0,1,1) pour que l'aspect-ratio (ou une
   hauteur définie plus loin) pilote réellement la taille. */
image-slot:not([data-fixed-h]) { height: auto; }

/* ---------- responsive (shared) ---------- */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-links, .nav-right .lang-switch, .nav-right .btn-connexion { display: none; }
  .nav-right { gap: 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- mobile menu drawer ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,16,32,0.5);
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: #fff; padding: 26px 24px; transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-panel .brand { color: var(--c-coral); margin-bottom: 18px; }
.mobile-panel a { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--c-ink); padding: 14px 8px; border-bottom: 1px solid var(--c-line); }
.mobile-panel .sub a { font-size: 15px; font-weight: 500; color: var(--c-body); padding-left: 22px; border: none; }
.mobile-panel .m-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.mobile-close { align-self: flex-end; background: none; border: none; font-size: 26px; color: var(--c-ink); margin-bottom: 6px; }

/* ============================================================
   Animations — apparition au scroll + flottement léger
   Sous prefers-reduced-motion: no-preference et html.js-anim
   (classe posée par un script synchrone dans <head>, donc pas
   de flash : si JS est désactivé, le contenu reste visible).
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim :is(
    .section-head, .hero-inner, .hero-sub,
    .feature, .split-text, .split-media, .steps-card, .accomp,
    .price-card, .tcard, .partner-cell, .cta-banner,
    .icard, .trust-card, .sol-text, .sol-media, .sol-overview-card,
    .aio-card, .persona-section, .rep-cloud, .cb-database, .cb-rating, .cb-channels,
    .compare, .faq-item, .blog-feature, .bcard, .contact-info, .contact-card, .contact-map,
    .about-story, .person, .brandwall span, .stat, .team-card, .toc, .article-cover
  ) {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  }
  html.js-anim :is(
    .section-head, .hero-inner, .hero-sub,
    .feature, .split-text, .split-media, .steps-card, .accomp,
    .price-card, .tcard, .partner-cell, .cta-banner,
    .icard, .trust-card, .sol-text, .sol-media, .sol-overview-card,
    .aio-card, .persona-section, .rep-cloud, .cb-database, .cb-rating, .cb-channels,
    .compare, .faq-item, .blog-feature, .bcard, .contact-info, .contact-card, .contact-map,
    .about-story, .person, .brandwall span, .stat, .team-card, .toc, .article-cover
  ).in {
    opacity: 1;
    transform: none;
  }

  /* flottement léger sur les visuels (image-slots) */
  @keyframes is-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  html.js-anim .floaty { animation: is-floaty 6s ease-in-out infinite; }
  html.js-anim .floaty.f2 { animation-duration: 7.2s; animation-delay: -1.6s; }
  html.js-anim .floaty.f3 { animation-duration: 5.4s; animation-delay: -.8s; }
}
