/* Couche haute couture — sobriété FINMA, rythme maîtrisé, effets discrets */

:root {
  --elevate-brass: var(--color-brass, #c4a572);
  --elevate-ink: var(--color-teal-ink, #0a1f24);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sticky : laisse main.css gérer fond / blur / hauteur (évite conflit) */

/* Hero : entrée douce, pas de Ken Burns permanent */
.hero--home {
  overflow: hidden;
  isolation: isolate;
  background-image: none;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #0a2a32 url("../images/AdobeStock_611360842-1.jpeg") center / cover
    no-repeat;
}

.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 31, 36, 0.38) 0%,
    rgba(10, 31, 36, 0.08) 50%,
    rgba(10, 31, 36, 0.28) 100%
  );
  pointer-events: none;
}

.hero__title,
.hero__cta-bar {
  z-index: 1;
}

/* Titre : rideau vertical lettre à lettre (inspiré RS chars y:110% + mask) */
/* Masque le flash avant split JS ; is-hero-ready révèle la scène */
.hero--home[data-hero-animate]:not(.is-hero-ready) .hero__title,
.hero--home[data-hero-animate]:not(.is-hero-ready) .hero__cta-bar {
  visibility: hidden;
}

.hero__title {
  opacity: 1;
}

.hero__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero__char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 110%, 0) rotate(-2deg);
  will-change: transform, opacity;
}

.hero--home.is-hero-ready .hero__char {
  animation: hero-char-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  /* Live ~970ms start + ~4ms/char — ici un peu plus court pour un chargement local */
  animation-delay: calc(0.45s + (var(--i, 0) * 0.028s));
}

@keyframes hero-char-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

/* Bouton : après le titre (live st:1520 / sp:1000, depuis la gauche) */
.hero__cta-bar {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
}

.hero--home.is-hero-ready .hero__cta-bar {
  animation: hero-cta-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

@keyframes hero-cta-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.btn--cream {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--cream:hover {
  transform: none;
  box-shadow: none;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 0;
}

.hero--home.is-hero-ready .hero__scroll {
  animation: hero-fade-in 0.8s var(--ease-out) 2.1s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(196, 165, 114, 0.8), transparent);
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
  }
}

/* Titres : filet laiton discret */
.section__title.reveal-up::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: var(--space-3);
  background: var(--elevate-brass);
  transition: width 0.7s var(--ease-out) 0.12s;
}

.section__title.reveal-up.is-in::after {
  width: 48px;
}

.reveal-up {
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

/* Univers : ombre très légère */
.univers__photos figure {
  box-shadow: none;
}

.univers__photos figure:hover {
  box-shadow: none;
}

/* Processus : pas de halo / glow sur les numéros */
.process__num {
  box-shadow: none;
}

/* Équipe */
.team-card__media {
  box-shadow: none;
}

.team-card h3 {
  font-family: var(--font-heading);
}

.team__grid .team-card {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.team__grid.is-in .team-card {
  opacity: 1;
  transform: none;
}

.team__grid.is-in .team-card:nth-child(2) {
  transition-delay: 0.08s;
}

.team__grid.is-in .team-card:nth-child(3) {
  transition-delay: 0.16s;
}

/* Stats : pas de radial flashy */
.stats::before {
  display: none;
}

.stats__item:hover span {
  transform: none;
}

/* Articles */
.news {
  padding: var(--space-section) 0;
  background: var(--color-bg);
}

.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Sommaire catégories — accès rapide aux blocs */
.news-toc {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(22, 56, 64, 0.1);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
}

.news-toc__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  padding: 0.7rem 0;
}

.news-toc__link {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #163840;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}

.news-toc__link:hover {
  background: rgba(22, 56, 64, 0.08);
}

.page-content.news {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.news-section {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(22, 56, 64, 0.1);
}

.news-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.news-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
}

.news-section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-heading, #163840);
}

.news-section__count {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #7a8588);
  white-space: nowrap;
}

.news-section__empty {
  margin: 0;
  color: var(--color-text-muted, #7a8588);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 2.8vw, 36px);
  align-items: start;
}

.news__grid > .news-card[hidden] {
  display: none !important;
}

.news-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.news-pager__btn {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border: 0;
  background: transparent;
  color: #163840;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.news-pager__btn:hover {
  color: #c45c26;
}

.news-pager__btn.is-active {
  color: #fff;
  background: #c45c26;
}

.news-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  min-width: 0;
}

.news-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #163840 center / cover no-repeat;
  transition: opacity 0.4s ease;
}

/* Pas de voile global : les covers HTML gèrent leur propre contraste */
.news-card__media.news-cover::after {
  content: none;
}

.news-card:hover .news-card__media {
  transform: none;
  opacity: 0.96;
}

.news-card__label {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: #fff;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.15rem 0 0;
  flex: 1;
}

.news-card h3 {
  margin: 0 0 0.85rem;
  font-family: "Lato", var(--font-heading), sans-serif;
  font-size: clamp(1.125rem, 1.35vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: #131c26;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.news-card:hover h3 {
  color: #163840;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin: 0 0 1rem;
  font-family: "Lato", var(--font-ui), sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1c4950;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.news-card__more .link-text {
  opacity: 1;
  max-width: none;
}

.news-card__more [aria-hidden] {
  font-weight: 400;
  transition: transform 0.25s ease;
}

.news-card:hover .news-card__more {
  color: #163840;
  border-bottom-color: var(--elevate-brass, #c4a572);
}

.news-card:hover .news-card__more [aria-hidden] {
  transform: translateX(3px);
}

.news-card__meta {
  margin: auto 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(22, 56, 64, 0.12);
  font-family: "Lato", var(--font-ui), sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #adadad;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* —— Couvertures HTML (BG + calques) —— */
.news-cover {
  --cover-bg: none;
  background-image: var(--cover-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

.news-cover__badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(40, 44, 48, 0.78);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.news-cover__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.news-cover__logo {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.news-cover__tagline {
  font-family: var(--font-ui);
  font-size: clamp(0.48rem, 0.85vw, 0.62rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.92;
}

/* Market Insight */
.news-cover--market-insight {
  display: flex;
  align-items: stretch;
}

.news-cover--market-insight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 14, 22, 0.35) 0%,
    rgba(6, 14, 22, 0.15) 45%,
    rgba(6, 14, 22, 0.55) 100%
  );
  pointer-events: none;
}

.news-cover__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18% 1rem 12%;
  text-align: center;
}

.news-cover__kicker {
  margin: 0;
}

.news-cover__kicker span {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: rgba(8, 18, 28, 0.55);
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 1.35vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.news-cover__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem 0.55rem 1.35rem;
  border-radius: 999px;
  background: #b7b89a;
  color: #14202c;
  font-family: var(--font-ui);
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.news-cover__cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
}

.news-cover__cta-arrow::before {
  content: "→";
}

/* Presse / Allnews */
.news-cover--presse {
  display: flex;
  flex-direction: column;
  background-color: #e8e8e8;
  background-image: none;
}

.news-cover__presse-top {
  position: relative;
  flex: 1.15;
  display: grid;
  place-items: center;
  background-image: var(--cover-bg);
  background-position: center;
  background-size: cover;
  min-height: 0;
}

.news-cover__presse-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 34, 0.28);
}

.news-cover__presse-top .news-cover__brand {
  position: relative;
  z-index: 1;
  padding: 0.65rem 1rem;
  background: rgba(12, 28, 34, 0.55);
}

.news-cover__partner {
  flex: 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: #ececec;
  color: #333;
}

.news-cover__allnews {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
}

.news-cover__allnews-all {
  color: #e31c23;
}

.news-cover__allnews-all::before {
  content: "“";
  position: absolute;
  left: -0.35em;
  top: -0.35em;
  font-size: 0.55em;
  color: #b0b0b0;
  font-weight: 400;
}

.news-cover__allnews-news {
  color: #6b6b6b;
}

.news-cover__partner-tag {
  font-family: var(--font-ui);
  font-size: clamp(0.58rem, 1vw, 0.72rem);
  font-weight: 500;
  color: #e31c23;
  letter-spacing: 0.01em;
}

/* Vidéos / Radio — panneau type « News alert » */
.news-cover--videos,
.news-cover--radio {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  background-image: none;
  background-color: #fff;
}

.news-cover__media-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.25rem 1rem 1.25rem 1.15rem;
  background: #fff;
  color: #1a1a1a;
}

.news-cover__mosaic {
  background-image: var(--cover-bg);
  background-position: center;
  background-size: cover;
  min-height: 100%;
}

.news-cover__alert {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem 0.35rem 0.9rem;
  background: #d81920;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  box-shadow: -6px 0 0 #142033;
}

.news-cover__play {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: #163840;
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 56, 64, 0.28);
}

.news-cover__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent #fff;
}

.news-cover__media-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #163840;
}

.news-cover__rts {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.news-cover__rts-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: #e31c23;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-cover__rts-name {
  max-width: 6.5rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: #333;
}

.news__all {
  margin-top: var(--space-6);
  text-align: center;
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* cible tactile WCAG 2.5.5 / AAA recommandé */
  padding: 0 28px;
  border: 1px solid rgba(22, 56, 64, 0.45);
  color: #163840;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: transparent;
  transition: background var(--duration, 0.35s) var(--ease-out, ease),
    color var(--duration, 0.35s) var(--ease-out, ease),
    border-color var(--duration, 0.35s) var(--ease-out, ease);
}

.btn--ghost:hover {
  background: #163840;
  border-color: #163840;
  color: #fff;
  transform: none;
}

/* Contact — filet laiton discret sur la carte */
.contact-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--elevate-brass);
}

.contact-card .field input:focus,
.contact-card .field textarea:focus {
  outline: 1px solid rgba(196, 165, 114, 0.7);
  outline-offset: 2px;
}

.btn--dark:hover {
  background: #163840;
}

.to-top {
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.to-top:hover {
  border-color: var(--elevate-brass);
  transform: none;
}

/* Footer typo */
.site-footer h6 {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer address {
  font-style: normal;
  font-size: var(--text-small);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .hero__char,
  .hero__cta-bar,
  .hero__scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .process__step {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .news__grid {
    grid-template-columns: 1fr 1fr;
  }

  .news__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__scroll {
    display: none;
  }

  .univers__photos {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .univers__photos figure,
  .univers__photos img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

@media (max-width: 640px) {
  .news__grid {
    grid-template-columns: 1fr;
  }

  .news-toc__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news-toc__inner::-webkit-scrollbar {
    display: none;
  }

  .news-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  :root {
    --page-gutter: 24px;
  }
}
