/* ================================================================
   AMPLIFY – Thème "Hello Monday"
   Inspiré de : hellomonday.co
   Chargé APRÈS style.css : surcharge les tokens et les composants.
   Esthétique : Readex Pro, grands titres serrés, prune foncé +
   jaune chaud, chiffres fins géants, pastilles contour, halos.
   ================================================================ */

:root {
  /* Palette Hello Monday */
  --plum:        #211B21;
  --plum-2:      #2C232B;
  --plum-glow:   #382629;
  --yellow:      #FFBF40;
  --yellow-2:    #FFD071;
  --yellow-soft: #FFF4DC;
  --teal:        #42B4B5;
  --teal-dark:   #2E9A9B;
  --teal-light:  #E3F4F4;
  --line:        #E0DBD4;

  /* Neutres */
  --white:    #FFFFFF;
  --cream:    #F9F3EC;
  --gray-100: #F3EEE8;
  --gray-200: #E0DBD4;
  --gray-400: #8F888C;
  --gray-600: #4E4A4C;
  --ink:      #0A0A0A;

  --dark-bg:   var(--plum);
  --dark-card: var(--plum-2);

  /* Typo */
  --f-display: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-body:    'Readex Pro', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-5xl: clamp(2.6rem, 1.8rem + 3.6vw, 5rem);
  --fs-4xl: clamp(2rem, 1.55rem + 2.2vw, 3.5rem);
  --fs-xl:  clamp(1.19rem, 1.06rem + .63vw, 1.625rem);
  --fs-lg:  clamp(1rem, .93rem + .36vw, 1.25rem);

  --section-pad: clamp(4rem, 2.9rem + 4.6vw, 7.5rem);

  /* Formes : plus rectangulaires */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-btn: .3em;

  --shadow-md: 0 10px 30px rgba(33,27,33,0.08);
  --shadow-lg: 0 18px 48px rgba(33,27,33,0.12);
  --shadow-teal: none;
  --rings: 2px 2px 0 .3em #ffb9403b, -2px 2px 0 .4em #ffb9405e, 2px -3px 0 .4em #ffb94070;
}

/* Mode sombre : tout bascule sur le prune */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white:    #17121A;
    --cream:    #211B21;
    --gray-100: #2C232B;
    --gray-200: #3A2F38;
    --gray-400: #9C9198;
    --gray-600: #CFC6CB;
    --ink:      #F9F3EC;
    --line:     #3A2F38;
    --teal-light: #1E3536;
    --yellow-soft: #3A2E1A;
    --dark-bg:  #0F0B0F;
    --dark-card:#1C161C;
  }
}
:root[data-theme="dark"] {
  --white:    #17121A;
  --cream:    #211B21;
  --gray-100: #2C232B;
  --gray-200: #3A2F38;
  --gray-400: #9C9198;
  --gray-600: #CFC6CB;
  --ink:      #F9F3EC;
  --line:     #3A2F38;
  --teal-light: #1E3536;
  --yellow-soft: #3A2E1A;
  --dark-bg:  #0F0B0F;
  --dark-card:#1C161C;
}

/* ── Base ─────────────────────────────────────────────────────── */
body {
  font-family: var(--f-body);
  font-weight: 300;
  background: var(--white);
  color: var(--ink);
  letter-spacing: -0.005em;
}
strong, b { font-weight: 500; }
::selection { background: var(--yellow); color: var(--plum); }

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar { background: color-mix(in srgb, var(--white) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.navbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.logotype, .footer-brand__logo { font-weight: 600; letter-spacing: -0.04em; }
.logotype em, .footer-brand__logo em { color: var(--yellow); }
.nav-item > a {
  font-weight: 400;
  font-size: .92rem;
  color: color-mix(in srgb, var(--ink) 64%, transparent);
  background: none !important;
}
.nav-item > a:hover, .nav-item.active > a { color: var(--ink); }
.nav-item.active > a { box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
.dropdown { border-color: var(--line); border-radius: var(--r-md); }
.dropdown a { font-weight: 400; }
.dropdown a:hover { background: var(--yellow-soft); color: var(--ink); }

/* ── Boutons ──────────────────────────────────────────────────── */
.btn, .nav-cta {
  font-family: var(--f-display);
  font-weight: 400;
  border-radius: var(--r-btn);
  padding: .95em 1.3em;
  border: 1px solid transparent;
  line-height: 1;
  transition: background-color .2s, border-color .2s, opacity .2s, color .2s;
}
.btn:hover, .nav-cta:hover { transform: none; box-shadow: none; }
.btn--teal, .nav-cta, .form-submit {
  background: var(--yellow);
  border-color: #FFB940;
  color: var(--plum);
}
.btn--teal:hover, .nav-cta:hover, .form-submit:hover {
  background: var(--yellow-2);
  border-color: var(--yellow-2);
  color: var(--plum);
}
.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 300;
}
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--outline-white {
  border-color: rgba(255,255,255,.8);
  color: #fff;
  font-weight: 300;
}
.btn--outline-white:hover { background: #fff; color: var(--plum); border-color: #fff; }

.link-arrow { font-weight: 500; color: var(--ink); }
.link-arrow:hover { color: var(--ink); }
.link-arrow .arr {
  display: inline-grid; place-items: center;
  width: 1.8em; height: 1.8em;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--plum);
  font-size: .8rem;
}

/* ── Titres & sections ───────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section--cream { background: var(--cream); }

.section-eyebrow, .hero__eyebrow {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .08em;
  color: color-mix(in srgb, var(--ink) 64%, transparent);
  gap: 10px;
}
.section-eyebrow::before, .hero__eyebrow::before {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow) !important;
  box-shadow: 0 0 0 4px rgba(255,191,64,.25);
}
.eyebrow--blue, .eyebrow--orange, .eyebrow--green, .eyebrow--purple, .eyebrow--coral {
  color: color-mix(in srgb, var(--ink) 64%, transparent);
}

.section-title, .cta-band h2, .page-banner h1, .hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-title { font-size: var(--fs-4xl); }
.section-lead {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.65;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  max-width: 680px;
}
.section-lead strong { color: var(--ink); }

/* Sections sombres prune + halo jaune */
.section--dark, .footer, .section--teal {
  background: var(--plum);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section--dark::before, .section--teal::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,191,64,.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.section--dark .section-title, .cta-band h2 { color: #fff; }
.section--dark .section-lead, .cta-band p { color: rgba(255,255,255,.64); }
.section--dark .section-eyebrow { color: rgba(255,255,255,.64); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: clamp(8rem, 6rem + 8vw, 12rem) 0 clamp(3rem, 2rem + 4vw, 6rem);
  text-align: center;
  background:
    radial-gradient(40% 50% at 50% 0%, rgba(255,191,64,.22), transparent 70%),
    var(--white);
}
.hero::before, .hero::after { display: none; }
.hero__inner { margin: 0 auto; max-width: 980px; }
.hero__title { font-size: var(--fs-5xl); text-wrap: balance; }
.hero__word-wrap { color: var(--ink); height: 1.1em; }
.hero__words span {
  line-height: 1.1;
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  width: max-content;
  margin: 0 auto;
  padding: 0 .1em;
}
@keyframes wordScroll {
  0%,  20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-1.1em); }
  50%, 70% { transform: translateY(-2.2em); }
  75%, 95% { transform: translateY(-3.3em); }
  100%      { transform: translateY(0); }
}
.hero__sub {
  font-size: var(--fs-lg);
  font-weight: 300;
  max-width: 640px;
  margin: 28px auto 36px;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.hero__cta { justify-content: center; }

/* Rangée de mots sous le hero (style Hello Monday) */
.hero-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.hero-words span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xl);
  font-weight: 250;
  color: color-mix(in srgb, var(--ink) 56%, transparent);
  letter-spacing: -0.02em;
}
.hero-words span::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ── Statistiques : chiffres fins géants ─────────────────────── */
.hero-stats { background: var(--white); }
.hero-stats__row { border-top: 1px solid var(--line); }
.stat-item { text-align: left; border-right: 1px solid var(--line); padding: 0 28px; }
.stat-item__number, .stat-box__num {
  font-weight: 200;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.stat-item__number { font-size: clamp(3rem, 2rem + 4vw, 5.4rem); }
.stat-box__num     { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 4rem); }
.stat-item__number sup, .stat-box__num sup { color: var(--yellow); font-weight: 400; }
.stat-item__label, .stat-box__label {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: color-mix(in srgb, var(--ink) 56%, transparent);
}
.stat-box { border-color: var(--line) !important; }

/* ── Visuels : rectangles arrondis au lieu des blobs ─────────── */
.who-visual, .page-banner__img {
  border-radius: var(--r-lg);
  box-shadow: none;
  background: var(--cream);
}
.who-visual::after { display: none; }
.who-visual img, .page-banner__img img { border-radius: var(--r-lg) !important; }

.who-list li { font-weight: 400; }
.who-list__dot { background: var(--yellow-soft); }
.who-list__dot::after { background: var(--yellow); }

/* ── Cartes ───────────────────────────────────────────────────── */
.vm-card, .eco-card, .approach-item, .service-card, .pillar-card,
.training-item, .commit-card, .comp-card, .hub-service, .role-item,
.philo-card, .contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: none;
  transition: border-color .25s, transform .35s var(--ease), background-color .25s;
}
.vm-card:hover, .eco-card:hover, .approach-item:hover, .service-card:hover,
.pillar-card:hover, .training-item:hover, .commit-card:hover, .comp-card:hover,
.hub-service:hover, .role-item:hover, .philo-card:hover {
  border-color: var(--ink) !important;
  box-shadow: none;
  transform: translateY(-4px);
}
.section--cream .vm-card, .section--cream .approach-item,
.section--cream .training-item, .section--cream .pillar-card,
.section--cream .hub-service { background: var(--white); }

.vm-card h3, .eco-card h3, .approach-item h4, .service-card h3,
.pillar-card h3, .training-item h4, .commit-card h4, .hub-service h3,
.role-item h4, .philo-card h3, .flow-node h4, .comp-header h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}
.vm-card__label, .pillar-card__num, .role-source {
  font-family: var(--f-mono);
  font-weight: 400;
  letter-spacing: .06em;
  color: color-mix(in srgb, var(--ink) 56%, transparent);
}

/* Icônes : pastille ronde avec anneaux jaunes */
.vm-card__icon, .approach-item__icon, .service-card__icon, .contact-item__icon {
  background: var(--yellow-soft) !important;
  border-radius: 50%;
  box-shadow: var(--rings);
  margin: 6px;
}

/* Écosystème : grandes cartes, pastilles contour */
.eco-card { border-radius: var(--r-lg); }
.eco-card__visual {
  height: 220px;
  background: var(--cream) !important;
  background-image: radial-gradient(45% 60% at 50% 100%, rgba(255,191,64,.35), transparent 70%) !important;
  font-size: 4.4rem;
}
.eco-card__tag {
  background: transparent !important;
  color: color-mix(in srgb, var(--ink) 72%, transparent) !important;
  border: 1px solid currentColor;
  border-radius: 2em;
  font-family: var(--f-body);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: .78rem;
  padding: .3em .9em;
}
.eco-card h3 { font-size: var(--fs-xl); font-weight: 500; }
.eco-card p, .vm-card p, .approach-item p, .service-card p, .hub-service p,
.role-item p, .commit-card p, .flow-node p, .philo-card p {
  font-weight: 300;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}

/* Étapes numérotées 01–04 */
.flow-grid::before { background: var(--line); }
.flow-node__num {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: .95rem;
  box-shadow: var(--rings);
}

/* Cartes sur fond sombre */
.exp-item, .approach-point, .mobility-item, .syn-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
}
.exp-item:hover, .approach-point:hover, .mobility-item:hover, .syn-card:hover {
  background: rgba(255,191,64,.08) !important;
  border-color: rgba(255,191,64,.45) !important;
}
.exp-item h4, .approach-point h4, .mobility-item h4, .syn-card h4 { color: #fff; font-weight: 500; }

/* ── Bannières des pages internes ─────────────────────────────── */
.page-banner--com, .page-banner--acad, .page-banner--green, .page-banner--hub {
  background:
    radial-gradient(45% 60% at 85% 10%, rgba(255,191,64,.25), transparent 70%),
    var(--cream);
}
.page-banner::before { display: none; }
.page-banner h1 { color: var(--ink); font-size: var(--fs-5xl); }
.page-banner p.lead { font-weight: 300; font-size: var(--fs-lg); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.page-banner__breadcrumb, .page-banner__breadcrumb a { color: color-mix(in srgb, var(--ink) 56%, transparent); font-weight: 400; }
.page-banner__tag {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  border-radius: 2em;
  font-family: var(--f-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: .82rem;
}

/* Bandeaux d'accent des pages internes → jaune */
.pillar-card, .commit-card, .role-item, .philo-card { border-top: 1px solid var(--line) !important; }
.comp-header { background: var(--plum) !important; }
.pillar-card ul li::before, .comp-body ul li::before { background: var(--yellow) !important; }

/* ── Formulaire ───────────────────────────────────────────────── */
.form-group input, .form-group textarea, .form-group select {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-weight: 300;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255,191,64,.35);
}
.contact-item { border-color: var(--line) !important; }
.contact-item a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--yellow); }

/* ── CTA ──────────────────────────────────────────────────────── */
.cta-band { padding: clamp(5rem, 3.5rem + 6vw, 9rem) 0; }
.cta-band h2 { font-size: var(--fs-5xl); max-width: 900px; margin: 0 auto 18px; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid rgba(255,255,255,.06); }
.footer-col h4 { font-family: var(--f-mono); font-weight: 400; color: rgba(255,255,255,.48); }
.footer-col ul li a { font-weight: 300; color: rgba(255,255,255,.72); }
.footer-col ul li a:hover, .footer-brand__contact a:hover { color: var(--yellow); }
.footer-brand p { color: rgba(255,255,255,.56); font-weight: 300; }
.footer-brand__tagline { font-style: normal; color: var(--yellow) !important; opacity: .85; }

/* ── Animation d'apparition plus douce ───────────────────────── */
.reveal { transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stat-item { border-right: none; padding: 0 12px 24px; }
}
@media (max-width: 640px) {
  .hero-words span { font-size: 1.05rem; }
  .stat-item { text-align: center; }
}

/* Espace sous l'icône des cartes de service (anneaux jaunes) */
.service-card__icon { margin: 8px 8px 24px; }
