/* =============================================================
   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: #EAEFF4;   /* gris-bleu doux (avant : off-white #FAFBFC quasi blanc) → détache les cartes blanches */
}

/* Pages villes (landing) : varier les fonds — sinon 3 sections gris-bleu s'enchaînent
   (contenu · benefits · offres). On passe benefits en teal-tint : les cartes blanches
   ressortent toujours, et le rythme devient blanc · gris-bleu · teal · gris-bleu · violet · dégradé. */
.ie-landing .ie-benefits.ie-section--soft {
  background: var(--wp--preset--color--teal-tint);
}

.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 {
  /* Ratio par défaut = 4:5, celui des photos des pages villes.
     Le cadre très étroit 11/20 est réservé au hero de l'ACCUEIL (voir plus bas) :
     il est taillé pour sa photo à lui. Appliqué partout, il massacrait les photos
     4:5 des pages villes — régression introduite le 2026-09-25, signalée le 26. */
  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);
}

/* ACCUEIL uniquement : cadre au ratio réel de la photo (0,55), dans une colonne
   resserrée. Sans la borne de largeur, 42 % donneraient un cadre de ~850 px de haut,
   disproportionné par rapport au bloc texte (~700 px).
   ⚠️ Ces deux règles doivent rester sous `--home` : `.ie-hero` sert AUSSI aux pages
   villes, dont les photos sont en 4:5. */
.ie-hero--home .ie-hero-photo {
  /* Ratio réel de la photo du hero (2:3 depuis le 2026-09-27, 11/20 avant).
     À réaligner sur la photo à chaque remplacement : c'est ce qui évite que
     `cover` rogne le sujet. */
  aspect-ratio: 2 / 3;
}

.ie-hero--home .ie-floating {
  max-width: 400px;
  margin-left: auto;
}

.ie-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ancrage haut : le sujet du hero est une personne debout, plus haute que le cadre 4:5.
     Sans cela, `cover` rogne symétriquement et mange le visage en premier (signalé le
     2026-09-25). En ancrant en haut, c'est toujours le bas de l'image qui est sacrifié. */
  object-position: center top;
}

/* 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 rgba(42, 139, 159, 0.22);   /* filet teal : détache la carte du fond */
  /* ombre à deux couches : définition rapprochée + portée franche → présence nette au repos */
  box-shadow: 0 2px 8px rgba(26, 29, 46, 0.06), 0 14px 34px -8px rgba(26, 29, 46, 0.15);
  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: 4px;
  background: var(--wp--preset--gradient--brand);
  /* barre dégradée PERMANENTE (avant : visible au survol seulement) → signal de carte immédiat */
}

.ie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(26, 29, 46, 0.07), 0 24px 48px -10px rgba(26, 29, 46, 0.22);
  border-color: rgba(42, 139, 159, 0.35);
}

.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--2-xl);
  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;
}

/* ---------- Témoignages : carrousel (scroll-snap) ---------- */
.ie-testi-carousel-wrap {
  position: relative;
}

.ie-testi-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
  padding: 8px 4px 12px;          /* laisse respirer ombres + focus ring */
  margin: 0 -4px;
}

.ie-testi-carousel::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari */
}

.ie-testi-carousel:focus-visible {
  outline: 3px solid var(--wp--preset--color--teal-dark);
  outline-offset: 4px;
  border-radius: 1.5rem;
}

.ie-testi-slide {
  flex: 0 0 calc((100% - 3rem) / 3);   /* 3 par vue (2 gaps de 1.5rem) */
  scroll-snap-align: start;
  margin: 0;
}

@media (max-width: 1024px) {
  .ie-testi-slide { flex-basis: calc((100% - 1.5rem) / 2); }  /* 2 par vue */
}

@media (max-width: 680px) {
  .ie-testi-slide { flex-basis: 87%; }                        /* 1 + aperçu du suivant */
}

.ie-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.ie-carousel-nav[hidden] {
  display: none;
}

.ie-carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 29, 46, 0.08);
  transition: transform 200ms, box-shadow 200ms, opacity 200ms;
}

.ie-carousel-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 29, 46, 0.12);
}

.ie-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.ie-carousel-arrow svg {
  width: 20px;
  height: 20px;
}

/* ---------- 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: relative; }

/* La barre (1er enfant) porte le sticky + le flou — PAS le <header> lui-même,
   sinon son backdrop-filter piégerait le position:fixed du menu plein écran. */
.ie-site-header > .wp-block-group {
  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, background 280ms ease;
}

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

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

.ie-desktop-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-desktop-nav a:hover { color: var(--wp--preset--color--teal-dark); }
.ie-desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.ie-desktop-nav .current-menu-item > a::after { transform: scaleX(1); }

/* ---------- Sous-menu déroulant « Offres » (desktop, hover/focus) ---------- */
.ie-desktop-nav .wp-block-navigation-item.has-child { position: relative; }

/* Chevron du parent : pivote quand le panneau est ouvert */
.ie-desktop-nav .wp-block-navigation__submenu-icon { margin-left: 0.3rem; }
.ie-desktop-nav .wp-block-navigation__submenu-icon svg { transition: transform 240ms ease; }
.ie-desktop-nav .has-child:hover .wp-block-navigation__submenu-icon svg,
.ie-desktop-nav .has-child:focus-within .wp-block-navigation__submenu-icon svg { transform: rotate(180deg); }

/* Pont invisible : évite de perdre le survol dans le vide entre le lien et le panneau */
.ie-desktop-nav .has-child::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 0.7rem;
}

/* Le panneau déroulant, à la charte */
.ie-desktop-nav .wp-block-navigation__submenu-container {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 240px;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid rgba(42, 139, 159, 0.16);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(26, 29, 46, 0.12);
}

/* Items du panneau : pas d'underline dégradé (réservé au top-level), pastille teal-tint au survol */
.ie-desktop-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 0.6rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
  color: var(--wp--preset--color--ink);
  transition: background 160ms ease, color 160ms ease;
}
.ie-desktop-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.ie-desktop-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--teal-tint);
  color: var(--wp--preset--color--teal-dark);
}

/* 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--ink);
  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); }

/* Breakpoint unique à 1024px : desktop = nav inline + bouton Contact ; mobile = burger seul */
@media (min-width: 1024px) {
  .ie-menu-toggle { display: none; }
}
@media (max-width: 1023.98px) {
  .ie-desktop-nav { display: none !important; }
  .ie-site-header .wp-block-buttons { display: none; }   /* Contact passe dans le menu plein écran */
}

/* ---------- Menu mobile : overlay plein écran immersif ---------- */
.ie-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;                 /* sous la barre header (z-index:100) → croix cliquable */
  background: var(--wp--preset--gradient--brand-vertical);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 6rem 1.5rem 3rem;
  overflow-y: auto;
}

.ie-mobile-nav.is-open { display: flex; animation: ie-nav-fade 320ms ease both; }
@keyframes ie-nav-fade { from { opacity: 0; } to { opacity: 1; } }

.ie-mobile-nav__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem; width: 100%;
}
.ie-mobile-nav__list a {
  display: block; padding: 0.7rem 1rem;
  font-size: clamp(2.1rem, 7.5vw, 2.7rem); font-weight: 600; letter-spacing: -0.01em;
  color: #fff; text-decoration: none;
  transition: opacity 180ms ease;
}
.ie-mobile-nav__list a:hover,
.ie-mobile-nav__list a:active { opacity: 0.7; }

/* Offres dépliable dans l'overlay mobile */
.ie-mobile-nav__has-sub { width: 100%; display: flex; flex-direction: column; align-items: center; }
.ie-mobile-nav__row { display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.ie-mobile-nav__sub-toggle {
  background: none; border: 0; color: #fff; cursor: pointer;
  padding: 0.5rem; display: inline-flex; align-items: center;
  opacity: 0.85; transition: transform 240ms ease;
}
.ie-mobile-nav__sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.ie-mobile-nav__sublist {
  list-style: none; margin: 0; padding: 0; width: 100%; text-align: center;
  max-height: 0; overflow: hidden; transition: max-height 320ms ease;
}
.ie-mobile-nav__sublist.is-open { max-height: 60vh; }
.ie-mobile-nav__sublist a {
  display: block; padding: 0.4rem 1rem;
  font-size: clamp(1.35rem, 5vw, 1.65rem); font-weight: 500;
  color: #fff; text-decoration: none; opacity: 0.9;
  transition: opacity 180ms ease;
}
.ie-mobile-nav__sublist a:hover,
.ie-mobile-nav__sublist a:active { opacity: 0.65; }

.ie-mobile-nav__cta {
  margin-top: 0.75rem; display: inline-block;
  padding: 0.9rem 2.75rem; border-radius: 999px;
  background: #fff; color: var(--wp--preset--color--purple-dark);
  font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.ie-mobile-nav__socials { display: flex; gap: 1.25rem; margin-top: 1.25rem; }
.ie-mobile-nav__socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background 180ms ease, color 180ms ease;
}
.ie-mobile-nav__socials a:hover { background: #fff; color: var(--wp--preset--color--purple-dark); }

body.ie-nav-open { overflow: hidden; }   /* fige le fond quand le menu est ouvert */

/* Quand le menu est ouvert : barre transparente + logo blanc + croix blanche (immersif) */
body.ie-nav-open .ie-site-header > .wp-block-group {
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent;
}
body.ie-nav-open .ie-menu-toggle span { background: #fff; }
body.ie-nav-open .ie-site-header .ie-logo--color { display: none; }
body.ie-nav-open .ie-site-header .ie-logo--white { display: block; }

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

/* ---------- 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: #d6d9e3; /* hex solide (un rgba blanc était mal rendu — extension mode sombre / alpha) */
  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;
}

/* ---------- Tarifs : groupes par catégorie + badge crédit d'impôt ---------- */
.ie-tarif-group {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ie-tarif-group:last-child {
  margin-bottom: 0;
}

.ie-tarif-group__title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--wp--preset--color--teal-tint);
}

.ie-tarif-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Le badge utilise #22788C et non le token teal-dark (#2A8B9F) : à 13 px, blanc sur
   teal-dark ne donne que 3,97:1, sous le seuil AA de 4,5:1. #22788C monte à 5,08:1
   pour une différence invisible à l'œil. Ne pas « corriger » en remettant le token. */
.ie-tarif-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1rem;
  background: #22788C;
  color: var(--wp--preset--color--white);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(34, 120, 140, 0.28);
}

.ie-tarif-badge svg {
  flex-shrink: 0;
}

.ie-tarif-badge--on-dark {
  background: var(--wp--preset--color--white);
  color: #22788C; /* même raison que ci-dessus : 5,08:1 sur blanc */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ---------- 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) {
  /* Les encarts flottants gardent leur chevauchement sur mobile (ils retombaient dans
     le flux, sous la photo). Décalages resserrés pour ne pas sortir de l'écran.
     ⚠️ `position: static` cassait aussi le guillemet décoratif de la bulle : son ::before,
     en absolute, remontait se caler sur la colonne et atterrissait en haut de la photo
     (signalé le 2026-09-25). En absolute, la bulle redevient son propre référent. */
  .ie-floating-bottom-left  { bottom: -18px; left: 8px; right: auto; }
  .ie-floating-bottom-right { bottom: -18px; right: 8px; left: auto; }

  /* Place pour l'encart qui déborde sous la photo */
  .ie-floating { padding-bottom: 2.5rem; }
  .ie-hero-badge, .ie-quote-bubble { max-width: min(280px, calc(100% - 16px)); }

  /* Hero mobile : titre maîtrisé, photo moins haute, badge propre */
  .ie-hero { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
  .ie-hero h1 { font-size: clamp(2rem, 8.5vw, 2.85rem) !important; }
  /* Même ratio qu'en desktop (le sujet reste entier), mais largeur bornée et centrée :
     en pleine largeur, un cadre 11/20 donnerait un hero de ~700 px de haut sur mobile. */
  .ie-hero-photo { max-width: 340px; margin-inline: auto; }
  .ie-hero .ie-stat strong { font-size: 1.6rem; }

  /* Ordre mobile : texte → photo → badge.
     La photo passait en premier ; on arrivait sur le site sans savoir de quoi il parle
     (signalé le 2026-09-25). Le titre et l'accroche viennent donc avant. Cet ordre est
     aussi celui du DOM (colonne texte déclarée en premier) : ordre visuel et ordre de
     lecture coïncident, ce qui sert l'accessibilité.
     display:contents fait remonter photo + badge comme items directs des colonnes. */
  .ie-hero .wp-block-column:not(.ie-floating) { order: 1; flex-basis: 100%; }
  /* La colonne photo reste un vrai bloc positionné (plus de display:contents) : c'est elle
     qui sert de référent au badge en chevauchement. Bornée et centrée comme la photo. */
  .ie-hero .ie-floating {
    order: 2;
    flex-basis: 100%;
    width: 100%;
    max-width: 340px;
    margin: 2rem auto 0;
  }
  .ie-hero-photo { width: 100%; max-width: none; margin-inline: 0; }
}

/* Ancre sections : décalage pour le header sticky */
#zones, [id] { scroll-margin-top: 90px; }

/* ---------- Logo (image) ---------- */
.ie-logo-link { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.ie-logo__img { height: 50px; width: auto; display: block; }
.ie-logo--white { display: none; }            /* masqué par défaut (header clair) */
.ie-site-footer .ie-logo--color { display: none; }
.ie-site-footer .ie-logo--white { display: block; }   /* footer sombre → version blanche */
.ie-site-footer .ie-logo__img { height: 50px; }
@media (max-width: 600px) { .ie-logo__img { height: 42px; } }

/* ---------- Page Offres : sections détaillées ---------- */
.ie-offre-row img { transition: transform 0.6s ease; }
.ie-offre-row:hover img { transform: scale(1.03); }
@media (max-width: 781px) {
  .ie-offre-row { grid-template-columns: 1fr !important; }
  .ie-about-row { grid-template-columns: 1fr !important; }
}

/* ---------- Formulaire de contact (Fluent Forms) ---------- */
.fluentform .ff-el-group { margin-bottom: 1.4rem; }

.fluentform .ff-el-input--label label {
  font-weight: 600;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.4rem;
}

.fluentform .ff-el-form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--off-white);
  border: 1.5px solid var(--wp--preset--color--border);
  border-radius: 0.75rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.fluentform .ff-el-form-control::placeholder { color: var(--wp--preset--color--text-muted); }

.fluentform .ff-el-form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--wp--preset--color--teal-dark);
  box-shadow: 0 0 0 3px rgba(42, 139, 159, 0.15);
}

.fluentform textarea.ff-el-form-control { min-height: 140px; resize: vertical; }

/* Consentement RGPD : texte discret */
.fluentform .ff-el-form-check label {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--text-soft);
  line-height: 1.5;
}
.fluentform .ff-el-form-check a { color: var(--wp--preset--color--teal-dark); }

/* Bouton d'envoi : même langage que les boutons du thème (pill violet → teal au hover) */
.fluentform .ff-btn-submit {
  display: inline-block;
  padding: 0.9rem 2.75rem;
  border: none;
  border-radius: 999px;
  background: var(--wp--preset--color--purple-dark);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--wp--preset--font-size--md);
  cursor: pointer;
  transition: background 280ms cubic-bezier(0.4, 0, 0.2, 1), transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.fluentform .ff-btn-submit:hover { background: var(--wp--preset--color--teal-dark); transform: translateY(-1px); }

/* Messages d'état */
.fluentform .ff-message-success,
.ff-message-success {
  background: var(--wp--preset--color--teal-tint);
  border: 1.5px solid var(--wp--preset--color--teal-light);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  color: var(--wp--preset--color--teal-dark);
  font-weight: 500;
}
.fluentform .ff-el-is-error .ff-el-form-control { border-color: #d4537e; }
.fluentform .error.text-danger { color: #d4537e; font-size: var(--wp--preset--font-size--xs); }

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

/* ---------- Feed Instagram (accueil) ----------
   Section volontairement SANS variante de fond : elle s'intercale entre
   `ie-section--purple-tint` (témoignages) et `ie-section--brand` (CTA final).
   Trois bandes colorées d'affilée écrasent les photos, qui portent déjà
   toute la couleur de la section. */
.ie-instagram-handle {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

.ie-instagram-handle a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wp--preset--color--teal-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ie-instagram-handle a:hover,
.ie-instagram-handle a:focus-visible {
  background: var(--wp--preset--color--teal-tint);
}

/* Spotlight impose ses propres marges : on les neutralise pour que la grille
   s'aligne sur la largeur `alignwide` du reste de l'accueil. */
.ie-instagram-feed .sli-feed {
  margin: 0 !important;
}

/* Coins arrondis sur chaque vignette, cohérents avec les cartes du site.
   ⚠️ Spotlight rend sa grille en JavaScript, avec des classes générées du type
   `MediaTile__root` — PAS les `.sli-*` du HTML initial, qui ne sont qu'une coquille.
   On vise donc en `[class*=]` : si le plugin renomme `MediaTile__root` en
   `MediaTile__root-a1b2`, la règle tient encore. Vérifier après une mise à jour
   majeure de Spotlight (constaté en 1.7.5, le 2026-09-26). */
.ie-instagram-feed [class*="MediaTile__root"],
.ie-instagram-feed [class*="MediaThumbnail__root"] {
  border-radius: 0.75rem;
  overflow: hidden;
}

@media (max-width: 781px) {
  /* 2 colonnes x 2 rangées : 4 vignettes lisibles plutôt que 4 timbres-poste. */
  .ie-instagram-handle { font-size: 0.95rem; }
}

/* Titres de colonnes du footer : hauteur de deux lignes réservée.
   « Secteurs d'intervention » passe sur deux lignes alors que « SITE » et
   « CONTACT » tiennent sur une : sans cela, la colonne des secteurs démarre
   une ligne plus bas que ses voisines (constaté le 2026-09-27, après le
   renommage de « Zones »). */
.ie-site-footer .wp-block-column > h4.wp-block-heading {
  min-height: calc(2 * 1.3em);
}

/* ---------- Page 404 : cartes de réorientation ----------
   La 404 n'offrait qu'un seul bouton « retour à l'accueil ». Quelqu'un qui
   arrive là a déjà une intention : on lui propose les trois pages qui la
   servent plutôt que de le renvoyer au début. */
.ie-404-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  padding: 1.75rem;
}

.ie-404-card strong {
  font-size: 1.125rem;
  color: var(--wp--preset--color--ink);
}

.ie-404-card span {
  color: var(--wp--preset--color--text-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.ie-404-card:hover,
.ie-404-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(42, 139, 159, 0.5);
}
