/* ==========================================================================
   Micro-interactions — apparitions au scroll, survols, halo de souris
   Tout est désactivé si l'utilisateur préfère réduire les animations.
   ========================================================================== */

:root {
  --mi-ease: cubic-bezier(.22, 1, .36, 1);
  --mi-accent: 37, 99, 235;      /* #2563eb */
  --mi-secondary: 232, 96, 76;   /* #e8604c */
}

/* ---------- Offres : 3 colonnes sur desktop ---------- */

/* ---------- Section Design Partner ---------- */

/* ---------- Apparition au scroll (blocs) ---------- */
.mi-ready .mi-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .9s var(--mi-ease),
    transform .9s var(--mi-ease);
  transition-delay: var(--mi-delay, 0ms);
  will-change: opacity, transform;
}
.mi-ready .mi-reveal.mi-in {
  opacity: 1;
  transform: none;
}

/* ---------- Apparition des titres mot par mot ---------- */
.mi-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* marge invisible pour ne pas couper les italiques (lettres qui débordent à gauche et à droite) */
  padding: 0 .2em .12em;
  margin: 0 -.2em -.12em;
}
.mi-word > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  opacity: 0;
  transition:
    transform .9s var(--mi-ease),
    opacity .9s var(--mi-ease);
  transition-delay: var(--mi-delay, 0ms);
}
.mi-split.mi-in .mi-word > span {
  transform: none;
  opacity: 1;
}

/* ---------- Boutons ---------- */
.button-primary,
.button-secondary {
  position: relative;
  overflow: hidden;
  transition:
    background-color .35s var(--mi-ease),
    color .35s var(--mi-ease),
    transform .35s var(--mi-ease),
    box-shadow .35s var(--mi-ease) !important;
}
.button-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.button-primary:hover::after {
  animation: mi-shine .8s var(--mi-ease);
}
.button-primary:hover {
  box-shadow: 0 12px 28px -10px rgba(var(--mi-secondary), .55);
}
.button-secondary:hover {
  box-shadow: 0 12px 28px -12px rgba(var(--mi-secondary), .45);
}
.button-primary:active,
.button-secondary:active {
  transform: translate3d(0, -1px, 0) scale(.98) !important;
}
@keyframes mi-shine {
  to { left: 125%; }
}

/* ---------- Cartes : élévation + lumière qui suit la souris ---------- */
.offers---card,
.mi-card {
  position: relative;
  transition:
    transform .5s var(--mi-ease),
    box-shadow .5s var(--mi-ease) !important;
}
.offers---card:hover,
.mi-card:hover {
  transform: translate3d(0, -6px, 0) !important;
  box-shadow: 0 24px 48px -20px rgba(16, 24, 40, .22), 0 0 0 1px rgba(var(--mi-accent), .12);
}
.offers---card::before,
.mi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--mi-accent), .09), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--mi-ease);
  pointer-events: none;
  z-index: 0;
}
.offers---card:hover::before,
.mi-card:hover::before {
  opacity: 1;
}
.offers---card > * {
  position: relative;
  z-index: 1;
}

/* Image des projets : léger zoom */

/* Listes ✓ : la coche réagit au survol */
.icon-list-item-wrapper .body.accent {
  transition: transform .35s var(--mi-ease);
}
.icon-list-item-wrapper:hover .body.accent {
  transform: scale(1.25) rotate(-8deg);
}

/* ---------- Liens : soulignement animé ---------- */
.header-nav-link.nav-link,
.footer-link,
.paragraph-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .4s var(--mi-ease), color .3s var(--mi-ease);
}
.header-nav-link.nav-link:hover,
.footer-link:hover,
.paragraph-link:hover {
  background-size: 100% 1px;
}


/* ---------- Halo qui suit la souris ---------- */
.mi-halo {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--mi-accent), .07) 0%, rgba(var(--mi-accent), .025) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity .5s var(--mi-ease), width .5s var(--mi-ease), height .5s var(--mi-ease), margin .5s var(--mi-ease);
  will-change: transform;
}
.mi-halo.is-visible { opacity: 1; }
.mi-halo.is-hover {
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  background: radial-gradient(circle, rgba(var(--mi-accent), .09) 0%, rgba(var(--mi-accent), .03) 40%, transparent 70%);
}

/* Pas de halo sur écrans tactiles */
@media (hover: none), (pointer: coarse) {
  .mi-halo { display: none !important; }
}

/* ---------- Accessibilité : animations réduites ---------- */
@media (prefers-reduced-motion: reduce) {
  .mi-ready .mi-reveal,
  .mi-word > span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .mi-halo { display: none !important; }
  .button-primary:hover::after { animation: none; }
  .hm-window { animation: none !important; }
}

/* Bouton secondaire sur fond sombre (fin des études de cas) */


/* ==========================================================================
   Refonte de l'accueil (oct. 2026)
   ========================================================================== */

/* ---------- Couleurs : bleu pour structurer, corail pour les accents ----------
   Bleu  : liens, titres en italique, étapes, éléments d'interface.
   Corail : survol des boutons, coches, numéros, pastilles des offres.
   Le corail foncé (#c4432f) garantit un texte blanc lisible (contraste 5:1). */
:root {
  --mi-coral-dark: #c4432f;
}
.button-primary:hover,
.button-secondary:hover {
  background-color: var(--mi-coral-dark) !important;
  border-color: var(--mi-coral-dark) !important;
  color: #fff !important;
}

/* ---------- Titres : l'italique bleu devient l'exception ---------- */
.h2 .h2---span {
  font-style: normal;
  color: inherit;
  font-weight: inherit;
}
.h2.mi-accent .h2---span {
  font-style: italic;
  color: var(--_color---accent);
}
.section-wrapper-dark-blue .h2 .h2---span {
  font-style: italic;
  color: var(--_color---accent-light);
}

/* ---------- Hero : plus de bandeau du haut ---------- */
@media (min-width: 992px) {
  .section-hero-primary { padding-top: 10rem; padding-bottom: 6rem; }
}
@media (max-width: 991px) {
  .section-hero-primary { padding-bottom: 3rem; }
}

/* ---------- Hero : maquettes produit ---------- */
.hero---grid---right.hero-mockups {
  background-image: none !important;
  position: relative;
  height: auto;
  min-height: 520px;
  width: 100%;
  display: flex;
  align-items: center;
}
.hm-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / .9;
  perspective: 1600px;
}
.hm-window {
  position: absolute;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(26, 26, 46, .35), 0 0 0 1px rgba(26, 26, 46, .06);
  transition: transform .8s var(--mi-ease);
}
.hm-window img { display: block; width: 100%; height: auto; }
.hm-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #f1f1f4;
  border-bottom: 1px solid #e6e6ee;
}
.hm-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d4d4dc; }
.hm-back {
  top: 0;
  right: 0;
  width: 82%;
  transform: rotate(2deg);
  animation: hm-float 9s ease-in-out infinite;
}
.hm-front {
  bottom: 0;
  left: 0;
  width: 84%;
  transform: rotate(-1.5deg);
  animation: hm-float 9s ease-in-out -4.5s infinite;
}
@keyframes hm-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@media (max-width: 991px) {
  .hero---grid---right.hero-mockups { min-height: 0; width: 100%; max-width: 620px; margin: 0 auto; padding-bottom: 3rem; }
}

/* ---------- Logos : une seule ligne, uniquement les produits ---------- */
.mi-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
}
.mi-logos img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: .75;
  filter: grayscale(1) brightness(1.6);
  mix-blend-mode: screen;
  transition: opacity .35s var(--mi-ease), filter .35s var(--mi-ease), transform .35s var(--mi-ease);
}
.mi-logos img:hover { opacity: 1; filter: none; transform: translateY(-2px); }
@media (max-width: 767px) {
  .mi-logos { gap: 1.75rem 2.25rem; }
  .mi-logos img { height: 22px; }
}

/* ---------- Section problème ---------- */
.mi-problem-card .title-section.tag { margin-bottom: .75rem; }
.problem---grid-2-columns-2 { align-items: stretch; }
.mi-problem-card { height: 100%; }
.mi-problem-cta { margin-top: 3rem; }

/* ---------- Témoignages : extraits courts, cartes de même hauteur ---------- */
.mi-quote {
  font-family: Fraunces, serif;
  font-size: 1.05rem !important;
  line-height: 1.55 !important;
  color: var(--_color---text) !important;
}

/* Les carrousels débordent volontairement : on coupe à la largeur de l'écran */
.section-wrapper-cream,
.section-wrapper-cream-light,
.section-wrapper-dark-blue {
  overflow-x: clip;
}

/* ---------- Pourquoi moi ---------- */
.mi-why-grid { display: block; margin-bottom: 4rem; }
.mi-why-text { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.mi-why-text .h2 { text-align: center; }
.mi-why-text .body { margin-bottom: 1rem; }
.mi-why-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.mi-why-point {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 2px 7px #14142b0f;
}
.mi-why-point .h4 { margin: 0 0 .6rem; }
.mi-why-point .body-small { margin: 0; flex: 1; }
@media (max-width: 991px) {
  .mi-why-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mi-why-points { grid-template-columns: 1fr; }
}

/* ---------- Avant / après (glisser pour comparer) ---------- */
.mi-ba { margin: 0; }
.mi-ba-frame {
  --pos: 50%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(26, 26, 46, .35), 0 0 0 1px rgba(26, 26, 46, .06);
  user-select: none;
}
.mi-ba-frame img { display: block; width: 100%; height: auto; }
.mi-ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.mi-ba-before-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mi-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(26, 26, 46, .15);
  transform: translateX(-1px);
  pointer-events: none;
}
.mi-ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--_color---accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .6);
  transition: transform .3s var(--mi-ease);
}
.mi-ba-frame:hover .mi-ba-handle span { transform: translate(-50%, -50%) scale(1.1); }
.mi-ba-label {
  position: absolute;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: JetBrains Mono, monospace;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.mi-ba-label-before { left: 14px; background: rgba(26, 26, 46, .8); color: #fff; }
.mi-ba-label-after { right: 14px; background: var(--_color---accent); color: #fff; }
.mi-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.mi-ba-range:focus-visible + * , .mi-ba-frame:focus-within { outline: 3px solid rgba(37, 99, 235, .4); outline-offset: 4px; }
.mi-ba figcaption { margin-top: 1rem; text-align: center; }

/* ---------- À propos : chiffres discrets ---------- */
.mi-about-stats {
  display: flex;
  gap: 2.5rem;
  margin: 1.5rem 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.mi-about-stats > div { display: flex; flex-direction: column; gap: .25rem; }
.mi-about-num { font-family: Fraunces, serif; font-size: 1.75rem; font-weight: 600; color: #fff; line-height: 1.1; }
.mi-about-label { font-family: DM Sans, sans-serif; font-size: .9rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 991px) { .mi-about-stats { justify-content: center; text-align: center; } }


/* Halo : il s'efface sur les cartes, qui ont déjà leur propre lumière */
.mi-halo.is-muted { opacity: 0 !important; }

/* ---------- Badges des offres : une pastille, pas une barre ---------- */

/* ---------- Projets : cartes de même hauteur, flèches et points sous le carrousel ---------- */
.mi-projects-slider { padding-bottom: 88px; }
.mi-projects-slider .portfolio-project-card .div-block-34 { min-height: 150px; }
.mi-projects-slider .portfolio-project-card-link-image { margin-bottom: 1rem !important; }

/* ---------- Témoignages : un avis mis en avant + bandeau défilant ---------- */
.mi-t-feature {
  position: relative;
  max-width: 900px;
  margin: 0 auto 3.5rem;
  padding: 3rem 3.5rem;
  border-radius: 1.5rem;
  background: var(--_color---black);
  color: #fff;
  overflow: hidden;
}
.mi-t-feature-mark {
  position: absolute;
  top: -1.5rem;
  right: 2rem;
  font-family: Fraunces, serif;
  font-size: 12rem;
  line-height: 1;
  color: rgba(96, 165, 250, .18);
  pointer-events: none;
}
.mi-t-feature-quote {
  position: relative;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  font-family: Fraunces, serif;
  font-size: 1.6rem;
  line-height: 1.4;
  font-weight: 500;
}
.mi-t-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mi-t-feature .mi-t-person strong { color: #fff; }
.mi-t-feature .mi-t-person span span { color: rgba(255, 255, 255, .65); }
.mi-t-feature .button-secondary { color: #fff; border-color: rgba(255, 255, 255, .3); }

.mi-t-person { display: flex; align-items: center; gap: .85rem; }
.mi-t-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.mi-t-person > span { display: flex; flex-direction: column; font-family: DM Sans, sans-serif; font-size: .9rem; line-height: 1.3; }
.mi-t-person strong { color: var(--_color---text); font-weight: 600; }
.mi-t-person span span { color: var(--_color---text-light); font-size: .82rem; }

.mi-t-marquee {
  display: flex;
  overflow: hidden;
  gap: 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mi-t-track {
  display: flex;
  flex: none;
  gap: 1.5rem;
  animation: mi-marquee 70s linear infinite;
}
.mi-t-marquee:hover .mi-t-track { animation-play-state: paused; }
@keyframes mi-marquee { to { transform: translateX(calc(-100% - 1.5rem)); } }
.mi-t-card {
  flex: none;
  width: 380px;
  height: 300px;
  margin: 0;
  padding: 1.75rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 7px #14142b0f;
  transition: transform .4s var(--mi-ease), box-shadow .4s var(--mi-ease);
}
.mi-t-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(16, 24, 40, .25); }
.mi-t-quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: Fraunces, serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--_color---text);
}
@media (max-width: 767px) {
  .mi-t-feature { padding: 2rem 1.5rem; }
  .mi-t-feature-quote { font-size: 1.25rem; }
  .mi-t-card { width: 300px; height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .mi-t-track { animation: none; }
  .mi-t-marquee { overflow-x: auto; }
  .mi-t-track[aria-hidden="true"] { display: none; }
}

/* ---------- Méthode ---------- */
.mi-step-link { display: inline-block; margin-top: .75rem; color: var(--_color---accent); text-decoration: none; }
.mi-step-link:hover { text-decoration: underline; }
.mi-practical {
  max-width: 900px;
  margin: 3.5rem auto 0;
  padding: 1.25rem 1.75rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 7px #14142b0f;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.mi-practical-label {
  font-family: JetBrains Mono, monospace;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--_color---accent);
}
.mi-practical ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-family: DM Sans, sans-serif;
  font-size: .9rem;
  color: var(--_color---text);
}
.mi-practical li { counter-increment: step; display: flex; align-items: center; gap: .4rem; }
.mi-practical li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8effd;
  color: var(--_color---accent);
  font-size: .7rem;
  font-weight: 600;
}

/* Projets : ajustements */
.mi-projects-slider .portfolio-project-card { min-height: 520px; box-sizing: border-box; }
.mi-projects-slider .portfolio-project-card .div-block-34 { min-height: 0; }
@media (max-width: 767px) {
  .mi-projects-slider .portfolio-project-card { min-height: 0; }
}

/* Offres : coches en bleu */
.offers---card .icon-list-item-wrapper .body.accent { color: var(--_color---accent); }

/* Projets : avant → après */
.mi-proof { display: flex; flex-direction: column; gap: .6rem; white-space: normal; }
.mi-proof-row { display: flex; align-items: flex-start; gap: .6rem; line-height: 1.45; }
.mi-proof-tag {
  flex: none;
  margin-top: .1rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ececf3;
  color: var(--_color---text-light);
  font-family: JetBrains Mono, monospace;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mi-proof-tag.mi-proof-after { background: #e8effd; color: var(--_color---accent); }

/* Méthode : étiquette de phase */
.mi-phase { margin-bottom: .35rem !important; }

/* ---------- Avant / après : cadre fixe, haut des écrans ---------- */
.mi-ba-frame { aspect-ratio: 16 / 11; }
.mi-ba-frame > .mi-ba-after,
.mi-ba-before-wrap img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Cartes projets : composition « avant → après » ---------- */
/* le zoom générique des images ne s'applique plus aux compositions */
.mi-ba { max-width: 1040px; margin-left: auto; margin-right: auto; }
.mi-ba-frame:focus-within { outline: none; }
.mi-ba-range:focus-visible { outline: none; }
.mi-ba-frame:has(.mi-ba-range:focus-visible) { outline: 3px solid rgba(37, 99, 235, .4); outline-offset: 4px; }


/* ---------- Performance & accessibilité ---------- */
/* Logo : ancien h6, même rendu */
.mi-h6 { display: block; margin: 10px 0; }
.mi-h6-logo { line-height: 18px; }
/* Hero : apparition en CSS pur, sans attendre le JavaScript */
.mi-hero-in { animation: mi-hero-in .8s var(--mi-ease) both; }
@keyframes mi-hero-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mi-hero-in { animation: none; } }
/* Photo « À propos » allégée (829 Ko → 107 Ko) */

/* Flèches du carrousel : pas de déplacement, uniquement le contour au survol */

/* Témoignages : nom et rôle alignés à gauche, ensemble */
.mi-t-person, .mi-t-person > span, .mi-t-person strong, .mi-t-person span span { text-align: left !important; }
.mi-t-person > span { align-items: flex-start; }

/* Pastilles du hero : icône de résultat */

/* Hero : l'ombre des maquettes n'est plus coupée par le conteneur */
.section-hero-primary .stats---container-default { overflow: visible; }

/* ---------- Étude de cas Qevlar : preuves et avant / après ---------- */
.mi-proof-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.mi-proof-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border-radius: 999px; background: #fff;
  box-shadow: 0 6px 18px -10px rgba(26, 26, 46, .25), 0 0 0 1px rgba(26, 26, 46, .05);
  font-family: DM Sans, sans-serif; font-size: .9rem; font-weight: 500; color: var(--_color---text);
}
.mi-qv-proof { padding-top: 5rem; padding-bottom: 5rem; }
.mi-qv-compare {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem;
  margin: 2rem 0 2.5rem; text-align: left;
}
.mi-qv-compare > div:not(.mi-qv-arrow) { background: #fff; border-radius: 1rem; padding: 1.1rem 1.25rem; box-shadow: 0 2px 7px #14142b0f; }
.mi-qv-compare p { margin: .5rem 0 0; }
.mi-qv-label { font-family: JetBrains Mono, monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--_color---text-light); }
.mi-qv-label.is-after { color: var(--_color---accent); }
.mi-qv-arrow { font-size: 1.5rem; color: var(--_color---accent); }
.mi-qv-quote {
  max-width: 820px; margin: 3.5rem auto 0; padding: 2rem 2.25rem; border: 0;
  border-left: 3px solid var(--_color---accent); background: #fff; border-radius: 0 1rem 1rem 0;
  box-shadow: 0 2px 7px #14142b0f;
}
.mi-qv-quote p { margin: 0 0 .75rem; font-family: Fraunces, serif; font-size: 1.3rem; line-height: 1.45; color: var(--_color---text); }
.mi-qv-quote footer { font-family: DM Sans, sans-serif; font-size: .85rem; color: var(--_color---text-light); }
@media (max-width: 767px) {
  .mi-qv-compare { grid-template-columns: 1fr; }
  .mi-qv-arrow { transform: rotate(90deg); justify-self: center; }
  .mi-qv-quote p { font-size: 1.1rem; }
}
.mi-qv-compare { align-items: stretch; }
.mi-qv-arrow { align-self: center; }

/* Barre d'onglets : collée à l'en-tête, coins droits (plus de jour entre les deux) */

/* Ponctuation des titres animés : reste sur la même ligne que le mot précédent */
.mi-punct { opacity: 0; transition: opacity .9s var(--mi-ease); transition-delay: var(--mi-delay, 0ms); }
.mi-split.mi-in .mi-punct { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mi-punct { opacity: 1 !important; } }

/* Étude de cas Klyxor : problème → décision → résultat */
.mi-kx-decision { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 1000px; margin: 2.5rem auto 0; }
.mi-kx-decision > div { position: relative; background: #fff; border-radius: 1rem; padding: 1.25rem 1.4rem; box-shadow: 0 2px 7px #14142b0f; }
.mi-kx-decision > div:not(:last-child)::after {
  content: "→"; position: absolute; right: -1.05rem; top: 50%; transform: translateY(-50%);
  color: var(--_color---accent); font-size: 1.1rem; z-index: 1;
}
.mi-kx-decision p { margin: .5rem 0 0; }
@media (max-width: 767px) {
  .mi-kx-decision { grid-template-columns: 1fr; }
  .mi-kx-decision > div:not(:last-child)::after { right: 50%; top: auto; bottom: -1.15rem; transform: translateX(50%) rotate(90deg); }
}

/* ---------- Études de cas : composition 3 écrans en haut de page ---------- */
.cs-stage {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 8.2;
}
.cs-win {
  position: absolute;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -26px rgba(26, 26, 46, .35), 0 0 0 1px rgba(26, 26, 46, .06);
  transition: transform .8s var(--mi-ease);
}
.cs-win img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.cs-left  { left: 0;  top: 8%;  width: 44%; transform: rotate(-4deg); animation: hm-float 10s ease-in-out -2s infinite; }
.cs-right { right: 0; top: 8%;  width: 44%; transform: rotate(4deg);  animation: hm-float 10s ease-in-out -6s infinite; }
.cs-front { left: 50%; top: 14%; width: 60%; translate: -50% 0; z-index: 2; box-shadow: 0 40px 80px -30px rgba(26, 26, 46, .45), 0 0 0 1px rgba(26, 26, 46, .06); }
.cs-stage:hover .cs-left  { transform: rotate(-6deg) translate(-10px, -6px); }
.cs-stage:hover .cs-right { transform: rotate(6deg) translate(10px, -6px); }
.cs-stage:hover .cs-front { transform: translateY(-6px); }
@media (max-width: 767px) {
  .cs-stage { aspect-ratio: 16 / 11; }
  .cs-left, .cs-right { width: 52%; top: 4%; }
  .cs-front { width: 78%; top: 26%; }
}
@media (prefers-reduced-motion: reduce) { .cs-left, .cs-right { animation: none; } }

/* Études de cas : titre sur 2 lignes (bloc plus large), sous-titre garde une largeur de lecture */

/* Études de cas : tags posés sur la composition */
.cs-chip { z-index: 3; }
.cs-chip-1 { top: 9%; left: 8%; animation-delay: -2s; }
.cs-chip-2 { bottom: 4%; right: 10%; animation-delay: -5s; }
@media (max-width: 767px) {
  .cs-chip-1 { top: 0; left: 0; }
  .cs-chip-2 { bottom: 0; right: 0; }
}

/* Études de cas : pas de bande blanche entre la barre d'onglets et l'en-tête */

/* CTA de fin d'étude de cas : titre et texte centrés */
.section-wrapper-dark-blue .inner-container-700px-center .offer---h3---container,
.section-wrapper-dark-blue .inner-container-700px-center .offers---body---container,
.section-wrapper-dark-blue .inner-container-700px-center .offer---h3---container .h2,
.section-wrapper-dark-blue .inner-container-700px-center .offers---body---container .body { text-align: center; }

/* Accueil mobile : en-tête centré et boutons rapprochés */
@media (max-width: 767px) {
  .section-hero-primary .hero---grid---left p.body { text-align: center; }
  .section-hero-primary .button---container { gap: 12px; }
  .section-hero-primary .button---container .button-row-left { margin-bottom: 0; }
}

/* Titres de blocs centrés : le h2 suit l'alignement de son bloc (le modèle d'origine le forçait à gauche en mobile) */
.text-container-3 > .h2 { text-align: inherit; }

/* Pages offres : titre sur 2 lignes (bloc plus large), texte en largeur de lecture */
.hero---text---container { max-width: 960px; }
.hero---text---container .body { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Hero : avant / après Qevlar + notes De → À (oct. 2026) ---------- */
.hero---grid---right.hero-mockups:has(.hm-ba) { flex-direction: column; justify-content: center; }
.hm-ba { aspect-ratio: 1 / .86; }
.hm-ba .hm-before { top: 0; left: 0; right: auto; width: 74%; transform: rotate(-2deg); }
.hm-ba .hm-before img { filter: grayscale(.35) contrast(.95); }
.hm-note-de { background: #ececf1; color: #8a8a99; box-shadow: 0 8px 18px -12px rgba(26, 26, 46, .2), 0 0 0 1px rgba(26, 26, 46, .06); }
.hm-ba .hm-after { bottom: 0; right: 0; left: auto; width: 80%; transform: rotate(1.5deg); }
.hm-note {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  max-width: 210px; padding: 10px 14px;
  border-radius: 12px; background: #fff;
  color: var(--_color---text); font-family: DM Sans, sans-serif; font-size: .85rem; font-weight: 500; line-height: 1.3;
  box-shadow: 0 14px 30px -12px rgba(26, 26, 46, .3), 0 0 0 1px rgba(26, 26, 46, .05);
  animation: hm-float 7s ease-in-out infinite;
}
.hm-note-de { top: 8%; right: 0; animation-delay: -2s; }
.hm-note-a { bottom: 18%; left: -6%; animation-delay: -5s; }
@media (max-width: 991px) {
  .hm-note-a { left: 0; }
}
@media (max-width: 479px) {
  .hm-note { font-size: .74rem; max-width: 160px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .hm-note { animation: none !important; } }

/* Bulle "après" mise en avant */
.hm-note-a { background: var(--_color---accent); color: #fff; box-shadow: 0 16px 32px -12px rgba(37, 99, 235, .55); }
#pourquoi-moi .mi-why-text, #pourquoi-moi .mi-why-text .h2, #pourquoi-moi .mi-why-text .body, #pourquoi-moi .mi-why-text .title-section { text-align: center; }

/* ---------- Mes expertises (oct. 2026) ---------- */
#expertises .mi-exp-intro { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
#expertises .mi-exp-intro .h2, #expertises .mi-exp-intro .body, #expertises .mi-exp-intro .title-section { text-align: center; }
.mi-exp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.mi-exp-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 1rem; padding: 2rem;
  box-shadow: 0 2px 7px #14142b0f;
}
.mi-exp-head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .35rem; }
.mi-exp-num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .85rem; letter-spacing: .1em; color: var(--_color---accent); }
.mi-exp-head .h4 { margin: 0; }
.mi-exp-tagline { margin: 0 0 .75rem; font-family: DM Sans, sans-serif; font-weight: 500; color: var(--_color---text); }
.mi-exp-card .body-small { margin: 0; }
.mi-exp-label { margin: 1.5rem 0 .75rem; }
.mi-exp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.25rem; flex: 1; align-content: start; }
.mi-exp-list li { position: relative; padding-left: 1.1rem; font-family: DM Sans, sans-serif; font-size: .9rem; line-height: 1.4; color: var(--_color---text); }
.mi-exp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--_color---accent); font-weight: 700; }
.mi-exp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #ececf1; }
.mi-exp-chips span {
  padding: 5px 10px; border-radius: 999px; background: #eef3fe; color: var(--_color---accent);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .7rem; letter-spacing: .06em;
}
@media (max-width: 991px) { .mi-exp-grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .mi-exp-card { padding: 1.5rem; } .mi-exp-list { grid-template-columns: 1fr; } }
/* Expertises : 4 cartes sur une ligne */
.mi-exp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.mi-exp-card { padding: 0; overflow: hidden; }
.mi-exp-card > *:not(.mi-exp-head) { margin-left: 1.5rem; margin-right: 1.5rem; }
.mi-exp-head { flex-direction: column; align-items: flex-start; gap: .5rem; margin: 0 0 1.25rem; padding: 1.5rem; background: #eef3fe; border-bottom: 1px solid #dfe8fc; }
.mi-exp-num { font-size: .75rem; }
.mi-exp-num::before { content: "[ "; } .mi-exp-num::after { content: " ]"; }
.mi-exp-tagline { font-size: .95rem; line-height: 1.4; }
.mi-exp-list { grid-template-columns: 1fr; }
.mi-exp-chips { margin-bottom: 1.5rem; }
@media (max-width: 1199px) { .mi-exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mi-exp-grid { grid-template-columns: 1fr; } }
@media (min-width: 1200px) { .mi-exp-head { min-height: 8rem; } .mi-exp-tagline { min-height: 4.2em; } }
/* Expertises : le nom passe en étiquette mono, l'accroche devient le titre */
.mi-exp-num { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; }
.mi-exp-num::before, .mi-exp-num::after { content: none; }
.mi-exp-card .body-small { margin-top: 0; }
@media (min-width: 1200px) { .mi-exp-head { min-height: 9.5rem; } }
@media (min-width: 1200px) { .mi-exp-head { min-height: 11rem; } }
/* Expertises : en-tête sans fond, comme les autres cartes */
.mi-exp-head { background: none; border-bottom: 0; padding: 2rem 1.5rem 0; margin-bottom: 1rem; }
@media (min-width: 1200px) { .mi-exp-head { min-height: 9.5rem; } }

/* CTA en corail pour ressortir (oct. 2026) */
.button-primary[href*="calendly.com"], .button-primary[href^="mailto:"] { background-color: var(--_color---secondary) !important; color: #fff !important; }

/* ---------- À propos : collage photos (oct. 2026) ---------- */
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
#profil--section .grid-2-columns-text { align-items: center; }
.mi-about-collage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.08; margin: 0 auto; color: #fff; }
.mi-polaroid {
  position: absolute; margin: 0; width: 46%;
  padding: 10px 10px 34px; background: #fff; border-radius: 4px;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .55);
  transition: transform .5s var(--mi-ease), z-index 0s;
}
.mi-polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.mi-polaroid:hover { z-index: 5; transform: rotate(0deg) scale(1.04); }
.mi-pol-1 { top: 13%; left: 0; transform: rotate(-6deg); z-index: 1; }
.mi-pol-2 { top: 3%; right: 2%; transform: rotate(5deg); z-index: 2; }
.mi-pol-3 { bottom: 0; left: 27%; transform: rotate(-2deg); z-index: 3; }
.mi-hand { position: absolute; margin: 0; font-family: "Caveat", cursive; font-weight: 600; line-height: 1.05; color: #fff; z-index: 4; }
.mi-hand span { color: var(--_color---accent-light); }
.mi-hand-1 { top: 0; left: 4%; font-size: 1.9rem; transform: rotate(-6deg); }
.mi-hand-2 { top: 54%; right: -2%; width: 30%; font-size: 1.35rem; text-align: center; transform: rotate(4deg); }
.mi-hand-3 { bottom: 9%; left: -4%; width: 28%; font-size: 1.35rem; transform: rotate(-5deg); }
.mi-doodle { position: absolute; z-index: 4; }
.mi-doodle-arrow { width: 13%; top: 5%; left: 25%; color: var(--_color---accent-light); }
.mi-doodle-spark { width: 7%; top: 47%; left: 47%; color: #fff; opacity: .85; }
.mi-doodle-heart { width: 9%; bottom: 3%; right: 6%; color: var(--_color---secondary); }
@media (max-width: 991px) { .mi-about-collage { margin-bottom: 3rem; } }
@media (max-width: 479px) {
  .mi-polaroid { padding: 6px 6px 22px; }
  .mi-hand-1 { font-size: 1.5rem; }
  .mi-hand-2, .mi-hand-3 { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .mi-polaroid { transition: none; } }
.mi-hand-2 { top: auto; bottom: 20%; right: -6%; width: 27%; text-align: left; }
.mi-doodle-spark { top: 4%; left: 44%; width: 6%; }
@media (max-width: 479px) { .mi-hand-2 { right: -2%; bottom: 22%; } }
/* À propos : collage 4 photos */
.mi-about-collage { aspect-ratio: 1 / 1.22; max-width: 540px; }
.mi-polaroid { width: 44%; }
.mi-pol-1 { top: 7%; left: 2%; bottom: auto; right: auto; transform: rotate(-6deg); z-index: 1; }
.mi-pol-2 { top: 3%; right: 2%; left: auto; bottom: auto; transform: rotate(5deg); z-index: 2; }
.mi-pol-3 { bottom: 6%; left: 5%; top: auto; right: auto; transform: rotate(3deg); z-index: 3; }
.mi-pol-4 { bottom: 2%; right: 4%; top: auto; left: auto; transform: rotate(-4deg); z-index: 4; }
.mi-hand { z-index: 6; }
.mi-hand-1 { top: -1%; left: 0; bottom: auto; right: auto; width: 40%; font-size: 1.45rem; text-align: left; transform: rotate(-6deg); }
.mi-hand-2 { top: -4%; right: 0; bottom: auto; left: auto; width: 40%; font-size: 1.45rem; text-align: right; transform: rotate(4deg); }
.mi-hand-3 { bottom: -3%; left: 0; top: auto; right: auto; width: 46%; font-size: 1.35rem; text-align: left; transform: rotate(-3deg); }
.mi-hand-4 { bottom: -5%; right: 6%; top: auto; left: auto; width: auto; font-size: 1.9rem; transform: rotate(-6deg); }
.mi-doodle-arrow { width: 11%; top: 2%; left: 34%; transform: scaleX(-1) rotate(-20deg); }
.mi-doodle-spark { width: 6%; top: 47%; left: 48%; }
.mi-doodle-heart { width: 8%; bottom: -4%; right: 36%; }
.mi-about-link { color: var(--_color---accent-light); text-decoration: underline; text-underline-offset: 3px; }
.mi-about-link:hover { color: #fff; }
@media (max-width: 991px) { .mi-about-collage { margin-bottom: 4rem; } }
@media (max-width: 479px) {
  .mi-hand-1, .mi-hand-2 { font-size: 1.1rem; }
  .mi-hand-3 { font-size: 1.05rem; }
  .mi-hand-4 { font-size: 1.45rem; }
}
@media (max-width: 991px) { .mi-about-collage { margin-top: 2.5rem; } }
