/* =============================================================
   Involve Evolve — Custom CSS
   =============================================================
   Tout ce que theme.json ne peut pas exprimer :
   - effets signature (hero, badges, cards hover)
   - animations reveal
   - composants UI custom (eyebrow, chips, etc.)
   - micro-interactions

   Les couleurs/polices/espacements viennent de theme.json
   via les variables --wp--preset--*.
   ============================================================= */

/* ---------- Reset léger ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; height: auto; }

/* Focus visible accessible */
:focus-visible {
  outline: 3px solid var(--wp--preset--color--teal-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.ie-section {
  padding-block: var(--wp--preset--spacing--80);
}

.ie-section--soft {
  background: var(--wp--preset--color--off-white);
}

.ie-section--teal-tint {
  background: var(--wp--preset--color--teal-tint);
}

.ie-section--purple-tint {
  background: var(--wp--preset--color--purple-tint);
}

.ie-section--dark {
  background: var(--wp--preset--color--dark);
  color: rgba(255, 255, 255, 0.8);
}

.ie-section--brand {
  background: var(--wp--preset--gradient--brand);
  color: var(--wp--preset--color--white);
  position: relative;
  overflow: hidden;
}

.ie-section--brand::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 134, 185, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ie-section--brand::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(136, 206, 221, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ie-section--brand > * {
  position: relative;
  z-index: 1;
}

/* ---------- Eyebrow (kicker au-dessus des titres) ---------- */
.ie-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wp--preset--color--teal-dark);
  margin-bottom: 1.25rem;
}

.ie-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.ie-eyebrow--on-dark {
  color: var(--wp--preset--color--teal-light);
}

/* ---------- Text gradient (pour mettre en exergue un mot) ---------- */
.ie-text-gradient-teal {
  background: var(--wp--preset--gradient--teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ie-text-gradient-purple {
  background: var(--wp--preset--gradient--purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.ie-text-gradient-purple::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 0.12em;
  background: var(--wp--preset--gradient--purple);
  opacity: 0.18;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.ie-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--80);
}

.ie-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(136, 206, 221, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ie-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 134, 185, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ie-hero > * {
  position: relative;
  z-index: 1;
}

/* Hero photo : ratio + bordures asymétriques + ombre */
.ie-hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--ie-radius-asym, 2.5rem 0.75rem 2.5rem 0.75rem);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(26, 29, 46, 0.14);
  background: var(--wp--preset--gradient--brand);
}

.ie-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero badge flottant */
.ie-hero-badge {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(26, 29, 46, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
}

.ie-hero-badge-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wp--preset--gradient--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ie-hero-badge-text strong {
  display: block;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  line-height: 1.3;
}

.ie-hero-badge-text small {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--text-muted);
}

/* ---------- Cards (offres, bénéfices, témoignages) ---------- */
.ie-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--wp--preset--color--border);
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.ie-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--wp--preset--gradient--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 29, 46, 0.1);
  border-color: transparent;
}

.ie-card:hover::before {
  transform: scaleX(1);
}

.ie-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: var(--wp--preset--color--teal-tint);
  color: var(--wp--preset--color--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ie-card:hover .ie-card-icon {
  background: var(--wp--preset--gradient--teal);
  color: white;
}

.ie-card--complement .ie-card-icon {
  background: var(--wp--preset--color--purple-tint);
  color: var(--wp--preset--color--purple-dark);
}

.ie-card--complement:hover .ie-card-icon {
  background: var(--wp--preset--gradient--purple);
  color: white;
}

/* ---------- Credentials / chips ---------- */
.ie-credential {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--wp--preset--color--teal-tint);
  color: var(--wp--preset--color--teal-dark);
  border-radius: 999px;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
}

.ie-credential svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ie-zone-chip {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: white;
  border-radius: 999px;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--preset--color--teal-dark);
  border: 1px solid rgba(42, 139, 159, 0.15);
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.ie-zone-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26, 29, 46, 0.08);
}

.ie-zone-chip--primary {
  background: var(--wp--preset--gradient--teal);
  color: white;
  border-color: transparent;
}

/* ---------- Stats (sous le hero) ---------- */
.ie-stat strong {
  display: block;
  font-size: var(--wp--preset--font-size--2xl);
  font-weight: 700;
  color: var(--wp--preset--color--purple-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ie-stat span {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
}

/* ---------- Testimonials ---------- */
.ie-testi-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.ie-testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wp--preset--gradient--purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  flex-shrink: 0;
}

/* ---------- Quote bubble ---------- */
.ie-quote-bubble {
  background: var(--wp--preset--color--purple-dark);
  color: white;
  padding: 1.5rem;
  border-radius: 1.5rem;
  max-width: 280px;
  box-shadow: 0 12px 32px rgba(75, 43, 134, 0.3);
  font-size: var(--wp--preset--font-size--sm);
  font-style: italic;
  line-height: 1.5;
  position: relative;
}

.ie-quote-bubble::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--wp--preset--color--mauve);
  line-height: 1;
}

/* ---------- Audience items ---------- */
.ie-audience-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--wp--preset--color--purple-tint);
  color: var(--wp--preset--color--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ie-audience-item:hover .ie-audience-icon {
  background: var(--wp--preset--gradient--purple);
  color: white;
  transform: scale(1.05);
}

/* ---------- Header ---------- */
.ie-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 280ms ease;
}

.ie-site-header.is-scrolled {
  border-bottom-color: var(--wp--preset--color--border);
}

.ie-site-header nav a {
  position: relative;
  text-decoration: none;
  color: var(--wp--preset--color--text);
  font-weight: 500;
  font-size: var(--wp--preset--font-size--sm);
  padding-block: 0.25rem;
  transition: color 180ms ease;
}

.ie-site-header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--wp--preset--gradient--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ie-site-header nav a:hover { color: var(--wp--preset--color--teal-dark); }
.ie-site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.ie-site-header nav .current-menu-item > a::after { transform: scaleX(1); }

/* Mobile menu toggle (rendu via JS) */
.ie-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.ie-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wp--preset--color--text);
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ie-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ie-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ie-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .ie-menu-toggle { display: none; }
}

/* Mobile nav panel */
.ie-mobile-nav {
  display: none;
}

.ie-mobile-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--wp--preset--color--border);
  box-shadow: 0 12px 32px rgba(26, 29, 46, 0.1);
}

@media (min-width: 1024px) {
  .ie-mobile-nav.is-open { display: none; }
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ie-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ie-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Footer ---------- */
.ie-site-footer {
  background: var(--wp--preset--color--dark);
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--30);
  font-size: var(--wp--preset--font-size--sm);
}

.ie-site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.ie-site-footer a:hover {
  color: var(--wp--preset--color--teal-light);
}

.ie-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ie-social-link:hover {
  background: var(--wp--preset--gradient--teal);
  transform: translateY(-2px);
}

/* ---------- Tarif card ---------- */
.ie-tarif-card {
  background: white;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.ie-tarif-card.is-highlight {
  border-color: transparent;
  background: var(--wp--preset--gradient--brand);
  color: white;
  box-shadow: 0 12px 32px rgba(75, 43, 134, 0.3);
}

.ie-tarif-card .ie-tarif-price {
  font-size: var(--wp--preset--font-size--4xl);
  font-weight: 700;
  line-height: 1;
}

.ie-tarif-card .ie-tarif-unit {
  font-size: var(--wp--preset--font-size--sm);
  opacity: 0.7;
}

/* ---------- Utility : impair flex sur le badge floating ---------- */
.ie-floating {
  position: relative;
}

.ie-floating-bottom-left {
  position: absolute;
  bottom: -24px;
  left: -24px;
}

.ie-floating-bottom-right {
  position: absolute;
  bottom: -32px;
  right: -16px;
}

@media (max-width: 781px) {
  .ie-floating-bottom-left,
  .ie-floating-bottom-right {
    position: static;
    margin-top: 1rem;
  }
}

/* ---------- Print ---------- */
@media print {
  .ie-site-header, .ie-site-footer, .ie-section--brand { display: none; }
  body { color: #000; background: #fff; }
}
