/* ==========================================================================
   Passe « premium » de l'accueil
   - menu : 3 liens discrets + 1 bouton orange, plus de hamburger sur ordinateur
   - hero : un seul accent orange, vidéo sans halo
   - offre : réassurance lisible
   - réalisations : cartes plus sobres
   - section équipe « Derrière Pulse IA »
   ========================================================================== */

:root {
  --pi-orange: #ff4b36;
  --pi-ink: #14171a;
  --pi-dark: #0f1216;
  --pi-editorial: var(--_typography---h2--h2-font-family, "Mona Sans", Arial, sans-serif);
  --pi-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pi-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Menu ---------- */
@media screen and (min-width: 992px) {
  .navbar .menu-button { display: none !important; }
  .navbar .nav-wrapper,
  .navbar .nav-link-block { display: flex !important; }
}
.navbar .nav-link {
  background-color: transparent;
  padding: .6rem 1rem;
}
.navbar .nav-link:hover { background-color: rgba(255, 255, 255, .06); }
.navbar .nav-link .nav-text { font-size: .85rem; letter-spacing: .02em; color: #c7cbd1; }
.navbar .nav-link:hover .nav-text { color: #fff; }
.navbar .nav-link--cta {
  margin-left: .5rem;
  background-color: var(--pi-orange);
  padding: .7rem 1.25rem;
  box-shadow: 0 0 24px rgba(255, 75, 54, .35);
}
.navbar .nav-link--cta:hover { background-color: #ff6a57; }
.navbar .nav-link--cta .nav-text,
.navbar .nav-link--cta:hover .nav-text { color: var(--pi-ink); font-weight: 600; }
/* Barre qui se resserre au scroll */
.navbar .nav-content-wrapper,
.navbar .nav-background { transition: padding .35s var(--pi-ease), background-color .35s, box-shadow .35s; }
.navbar.is-scrolled .nav-content-wrapper { padding-top: .2rem; padding-bottom: .2rem; }
.navbar.is-scrolled .nav-background {
  background-color: rgba(15, 18, 22, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

/* ---------- Hero : un seul accent, vidéo sans halo ---------- */
.is-video-hero .header-title { color: #fff; }
.is-video-hero .header-title-accent { color: var(--pi-orange); text-shadow: 0 0 28px rgba(255, 75, 54, .3); }
.hero-grow__media {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 100px rgba(0, 0, 0, .55);
}

/* ---------- Offre : réassurance lisible ---------- */
.benefit-block.is-checklist > div {
  position: relative;
  padding-left: 1.9rem;
  color: #f2f2f2;
}
.benefit-block.is-checklist > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--pi-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* ---------- Réalisations : cartes plus sobres ---------- */
.browser-frame-dot { background-color: rgba(255, 255, 255, .22) !important; }
.case-study-content-grid { align-items: center; }
.case-study-item:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  min-width: 0;
}
.case-study-item:first-child .text-style-allcaps { display: none; }
.case-study-item .project-name { font-size: 1.15rem; letter-spacing: .01em; }
.case-study-item .project-detail-text {
  font-family: "Mona Sans", Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  line-height: 1.4;
  color: #b9bec6;
  white-space: normal;
  max-width: 32ch;
}
@media screen and (max-width: 479px) {
  .case-view-label { display: none; }
}

/* ---------- Section équipe ---------- */
.team-section {
  margin-top: 3rem;
  border-radius: var(--_sizes---border-radius--xhuge, 2rem);
  background: var(--pi-dark);
  color: #fff;
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow: hidden;
}
@media screen and (max-width: 767px) { .team-section { margin-top: 2rem; } }
.team-wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.team-head { max-width: 42rem; }
.team-label, .team-num, .team-name, .team-hint, .team-keyword {
  font-family: var(--pi-mono);
  text-transform: uppercase;
}
.team-label { margin: 0; font-size: .75rem; letter-spacing: .08em; color: var(--pi-orange); }
/* Titre : même style que les autres titres de section (heading-style-h2) */
.team-title { margin: 1rem 0 0; color: #fff; }
.team-lead { margin: 1.25rem 0 0; color: #b9bec6; font-size: 1.125rem; line-height: 1.65; }

.team-deck {
  margin-top: 4rem;
  display: grid;
  gap: 3rem;
  border-radius: 1.5rem;
  outline: none;
}
.team-deck:focus-visible { box-shadow: 0 0 0 2px var(--pi-orange); }
@media (min-width: 1024px) {
  .team-deck { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; column-gap: clamp(48px, 6vw, 100px); }
}
.team-deck__viewport {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  overflow: hidden;
  touch-action: pan-y;
}
@media (min-width: 640px) { .team-deck__viewport { max-width: 380px; } }
@media (min-width: 1024px) { .team-deck__viewport { max-width: none; height: 560px; margin: 0; } }
@media (min-width: 1280px) { .team-deck__viewport { height: 600px; } }
.team-deck__stage { position: relative; aspect-ratio: 4 / 5; width: 100%; margin-inline: auto; }
@media (min-width: 1024px) { .team-deck__stage { height: 100%; width: auto; } }

.team-keyword {
  position: absolute;
  z-index: 0;
  display: none;
  font-size: .75rem;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .1);
  transition: color .7s;
  pointer-events: none;
}
@media (min-width: 1024px) { .team-keyword { display: block; } }
.team-keyword.is-tl { top: .75rem; left: .75rem; }
.team-keyword.is-br { bottom: .75rem; right: .75rem; }
.team-keyword.is-on { color: rgba(255, 75, 54, .25); }

.team-card {
  position: absolute;
  inset: 0;
  cursor: pointer;
  transition: transform .6s var(--pi-ease), opacity .6s var(--pi-ease);
  will-change: transform;
  user-select: none;
}
.team-card.is-active { cursor: grab; }
.team-card.is-dragging { transition: none; cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .team-card { transition-duration: .25s; } }

.team-portrait {
  position: relative;
  height: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #171b21;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: grayscale(0.3) contrast(1.08) saturate(0.92) sepia(0.06);
}
.team-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(255, 75, 54, .12) 0%, transparent 55%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.team-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Panneau texte synchronisé */
.team-panel { min-width: 0; }
.team-panel__live { position: relative; min-height: 340px; }
.team-panel__item[hidden] { display: none; }
.team-num { margin: 0; font-size: .75rem; letter-spacing: .08em; color: #8b929c; }
.team-name { margin: .5rem 0 0; font-size: .875rem; letter-spacing: .1em; color: #b9bec6; font-weight: 500; }
.team-action-mask { margin-top: .5rem; overflow: hidden; }
.team-action {
  margin: 0;
  font-family: var(--pi-editorial);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: var(--_typography---h2--h2-font-weight, 600);
  text-transform: uppercase;
  color: #fff;
}
.team-expertise { margin: 1rem 0 0; font-size: .9rem; color: #b9bec6; }
.team-desc { margin: 1rem 0 0; max-width: 28rem; color: #b9bec6; line-height: 1.65; }
/* Entrée échelonnée, comme la version React */
.team-panel__item.is-in { animation: team-in .4s var(--pi-ease) both; }
.team-panel__item.is-in .team-num,
.team-panel__item.is-in .team-name { animation: team-fade .3s .08s both; }
.team-panel__item.is-in .team-action { animation: team-rise .5s .14s var(--pi-ease) both; }
.team-panel__item.is-in .team-expertise { animation: team-fade .3s .2s both; }
.team-panel__item.is-in .team-desc { animation: team-fade .3s .26s both; }
@keyframes team-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes team-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes team-rise { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .team-panel__item.is-in, .team-panel__item.is-in * { animation-duration: .2s !important; animation-delay: 0s !important; }
  .team-panel__item.is-in .team-action { animation-name: team-fade; }
}

.team-controls { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.team-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.team-arrow:hover { background: rgba(255, 255, 255, .1); }
.team-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.team-arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.team-hint { margin: 0; font-size: .75rem; letter-spacing: .08em; color: #8b929c; transition: opacity .5s; }
.team-hint.is-faded { opacity: .3; }

.team-closing {
  margin: 4rem 0 0;
  max-width: 36rem;
  font-family: var(--pi-editorial);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  font-weight: var(--_typography---h2--h2-font-weight, 600);
  text-transform: uppercase;
  color: #fff;
}

/* Titre du hero « Votre savoir-faire fait la différence. » : 2 lignes sans débordement sous 992 px */
@media screen and (max-width: 991px) {
  .is-video-hero .header-title { font-size: clamp(1.25rem, 6.8vw, 3.75rem); }
}

/* ---------- Vidéo du hero : cadre orange premium ----------
   Liseré fin (1,5 px) en dégradé orange, reflet lumineux qui fait lentement
   le tour du cadre (12 s), halo très diffus. Sobre : pas de contour épais. */
@property --frame-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.hero-grow__media {
  box-shadow:
    0 0 0 1px rgba(255, 75, 54, .28),
    0 0 50px rgba(255, 75, 54, .16),
    0 40px 100px rgba(0, 0, 0, .55);
}
.hero-grow__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--frame-angle),
    rgba(255, 75, 54, .35) 0deg,
    rgba(255, 75, 54, .35) 200deg,
    #ff8a6b 250deg,
    #ffffff 270deg,
    #ff4b36 290deg,
    rgba(255, 75, 54, .35) 340deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hero-frame-spin 12s linear infinite;
  pointer-events: none;
}
@keyframes hero-frame-spin { to { --frame-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .hero-grow__media::after { animation: none; }
}
