/* =========================================================
   VAKOF : style.css (version unique, sans doublons)
   Palette : bleu nuit #0c0e1a | or #c9a866 / #d9bd85 / #9a7a2e / #8a6a1f
   ========================================================= */

/* ===== Base (commune à toutes les pages) ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fafafa;
}

/* ===== Bannière résultat ===== */
.result-banner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;

  width: 100%;
  min-height: 60px !important;

  padding: 15px 25px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  font-weight: 700;

  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;

  background: rgba(201, 168, 102, 0.08);
  border-top: 1px solid rgba(201, 168, 102, 0.3);
  border-bottom: 1px solid rgba(201, 168, 102, 0.3);
  color: #0c0e1a;
}

.result-banner-item { white-space: nowrap; }

.result-banner-sep {
  color: #c9a866;
  font-weight: 400;
}

@media (max-width: 500px) {
  .result-banner {
    font-size: 11.5px !important;
    gap: 6px;
    padding: 6px 10px !important;
    min-height: 0 !important;
  }
}

/* ===== Navigation ===== */
.main-nav {
  background: #0c0e1a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-toggle-check { display: none; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  position: relative;
}

.nav-brand {
  color: #d9bd85;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #d8d8de;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #d8d8de;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover { color: #d9bd85; }

@media (max-width: 700px) {
  .nav-burger {
    display: flex;
    order: 1;
  }

  .nav-brand { order: 0; }

  .nav-links {
    order: 2;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #0c0e1a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle-check:checked ~ .nav-inner .nav-links { max-height: 300px; }

  .nav-toggle-check:checked ~ .nav-inner .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-check:checked ~ .nav-inner .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-check:checked ~ .nav-inner .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ===== Hero (fond blanc, version compacte) ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 26px 24px 28px;
  text-align: center;
  --mx: 50%;
  --my: 30%;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mx) var(--my),
    rgba(201, 168, 102, 0.22),
    transparent 60%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

/* Badge */
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a1f;
  border: 1px solid rgba(201, 168, 102, 0.55);
  border-radius: 999px;
  background: rgba(201, 168, 102, 0.1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* H1 */
.hero-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0c0e1a;
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.word-inner {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i) * 90ms + 200ms);
}

/* Accent doré animé */
.hero-title-accent .word-inner {
  background: linear-gradient(90deg, #9a7a2e, #c9a866, #9a7a2e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Paragraphe */
.hero-text {
  max-width: 560px;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a4d5e;
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

/* État de départ de l'animation : uniquement si le JS est actif
   (la classe "js" est ajoutée par script.js), sinon le texte reste visible */
.js .hero-eyebrow {
  opacity: 0;
  transform: translateY(12px);
}

.js .hero-text {
  opacity: 0;
  transform: translateY(16px);
}

.js .word-inner { transform: translateY(115%); }

/* État visible (déclenché par le JS) */
.hero.is-visible .hero-eyebrow,
.hero.is-visible .hero-text {
  opacity: 1;
  transform: none;
}

.hero.is-visible .word-inner { transform: none; }

@media (max-width: 500px) {
  .hero { padding: 20px 14px 22px; }
  .hero-text { font-size: 13.5px; }
}

/* ===== Section avis ===== */
.reviews {
  background: #ffffff;
  padding: 36px 24px 48px;
  border-top: 1px solid rgba(201, 168, 102, 0.3);
}

.reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.reviews-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a1f;
  border: 1px solid rgba(201, 168, 102, 0.55);
  border-radius: 999px;
  background: rgba(201, 168, 102, 0.1);
}

.reviews-title {
  position: relative;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0c0e1a;
}

/* Trait doré centré sous le titre */
.reviews-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #9a7a2e, #c9a866, #9a7a2e);
}

.reviews-subtitle {
  margin: 14px 0 0;
  max-width: 480px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #4a4d5e;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  border: 1px solid rgba(201, 168, 102, 0.35);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(12, 14, 26, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(12, 14, 26, 0.12);
}

.review-name {
  margin: 0;
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #0c0e1a;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .reviews { padding: 28px 14px 36px; }
  .reviews-header { margin-bottom: 24px; }
  .reviews-subtitle { font-size: 13.5px; }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== Grille YouTube Shorts (vidéos verticales 9:16, 5 par ligne) ===== */
.reviews-grid--shorts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
}

.reviews-grid--shorts .review-card {
  flex: 0 0 calc((100% - 80px) / 5);
}

/* Pas d'affichage du temps dans les petits lecteurs verticaux */
.reviews-grid--shorts .yt-time { display: none; }

@media (max-width: 900px) {
  .reviews-grid--shorts .review-card {
    flex-basis: calc((100% - 40px) / 3);
  }
}

@media (max-width: 500px) {
  .reviews-grid--shorts { gap: 12px; }
  .reviews-grid--shorts .review-card {
    flex-basis: calc((100% - 12px) / 2);
  }
}

/* ===== Lecteur YouTube personnalisé ===== */
.yt-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0e1a;
  overflow: hidden;
  --p: 0%;
}

.yt-frame,
.yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bloque les clics vers YouTube */
.yt-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* Miniature + bouton lecture */
.yt-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0c0e1a center / cover no-repeat;
}

.yt-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 26, 0.1), rgba(12, 14, 26, 0.55));
  transition: opacity 0.3s ease;
}

.yt-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.yt-big-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9bd85, #c9a866);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.yt-big-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: #0c0e1a;
}

.yt-cover:hover .yt-big-play,
.yt-cover:focus-visible .yt-big-play {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(201, 168, 102, 0.5);
}

.yt-cover:focus-visible {
  outline: 3px solid #c9a866;
  outline-offset: -3px;
}

/* Barre de contrôles */
.yt-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 10px 8px;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(transparent, rgba(12, 14, 26, 0.85));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.yt-player:hover .yt-controls,
.yt-player:focus-within .yt-controls,
.yt-player.is-paused .yt-controls {
  opacity: 1;
  transform: none;
}

/* Pas de contrôles tant que la miniature est visible */
.yt-player.is-idle .yt-controls {
  opacity: 0;
  pointer-events: none;
}

.yt-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.yt-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.yt-btn:hover { background: rgba(255, 255, 255, 0.15); }

.yt-btn:focus-visible {
  outline: 2px solid #c9a866;
  outline-offset: 1px;
}

/* Barre de progression dorée */
.yt-seek {
  flex: 1;
  min-width: 0;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    90deg,
    #c9a866 var(--p),
    rgba(255, 255, 255, 0.3) var(--p)
  );
}

.yt-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9bd85;
  border: 0;
}

.yt-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9bd85;
  border: 0;
}

.yt-seek:focus-visible {
  outline: 2px solid #c9a866;
  outline-offset: 4px;
}

/* Plein écran */
.yt-player:fullscreen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

@media (max-width: 500px) {
  .yt-time { display: none; }
  .yt-big-play { width: 56px; height: 56px; }
}

/* ===== Barre de progression de lecture ===== */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #9a7a2e, #c9a866, #d9bd85);
  transform: scaleX(0);
  transform-origin: left;
}

/* ===== Pages article ===== */
.article {
  background: #ffffff;
  padding: 48px 24px 64px;
  border-top: 1px solid rgba(201, 168, 102, 0.3);
}

.article-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Sommaire */
.toc-wrap {
  position: sticky;
  top: 80px;
}

.toc {
  border: 1px solid rgba(201, 168, 102, 0.35);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(12, 14, 26, 0.06);
  overflow: hidden;
}

.toc summary {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6a1f;
  background: rgba(201, 168, 102, 0.1);
  cursor: pointer;
  list-style: none;
}

.toc summary::-webkit-details-marker { display: none; }

.toc-list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  counter-reset: toc;
}

.toc-list li { counter-increment: toc; }

.toc-list a {
  display: block;
  padding: 8px 18px 8px 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #4a4d5e;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-weight: 700;
  color: #c9a866;
}

.toc-list a:hover {
  color: #0c0e1a;
  background: rgba(201, 168, 102, 0.08);
}

.toc-list a.is-active {
  color: #0c0e1a;
  font-weight: 700;
  border-left-color: #c9a866;
  background: rgba(201, 168, 102, 0.12);
}

/* Contenu */
.article-content {
  max-width: 780px;
  font-size: 17px;
  line-height: 1.75;
  color: #3a3d4e;
}

.article-content h2 {
  position: relative;
  margin: 56px 0 18px;
  padding-bottom: 14px;
  scroll-margin-top: 80px;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0c0e1a;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #9a7a2e, #c9a866);
}

.article-content h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0c0e1a;
}

.article-content h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #8a6a1f;
}

.article-content p { margin: 0 0 16px; }
.article-content strong { color: #0c0e1a; }

/* Introduction mise en avant */
.article-content .lead {
  margin-bottom: 20px;
  padding-left: 18px;
  font-size: 19px;
  line-height: 1.7;
  color: #0c0e1a;
  border-left: 3px solid #c9a866;
}

/* Liens dans le texte */
.article-content p a,
.article-content li a {
  color: #8a6a1f;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 102, 0.6);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-content p a:hover,
.article-content li a:hover { color: #0c0e1a; }

/* Listes à puces dorées */
.check-list,
.info-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.check-list li,
.info-card li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 26px;
}

.check-list li::before,
.info-card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9bd85, #9a7a2e);
}

/* Cartes */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 0 24px;
}

.info-card {
  padding: 22px 22px 8px;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid rgba(201, 168, 102, 0.35);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(12, 14, 26, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(12, 14, 26, 0.12);
}

.info-card h3 { margin: 0 0 12px; font-size: 17px; }

/* Tableau */
.table-wrap {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid rgba(201, 168, 102, 0.35);
  border-radius: 12px;
}

.salary-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.salary-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: #d9bd85;
  background: #0c0e1a;
}

.salary-table td {
  padding: 14px 16px;
  border-top: 1px solid rgba(201, 168, 102, 0.25);
}

.salary-table tbody tr:nth-child(even) { background: rgba(201, 168, 102, 0.06); }
.salary-table td:first-child { font-weight: 700; color: #0c0e1a; }

/* Chiffres clés */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  text-align: center;
  border: 1px solid rgba(201, 168, 102, 0.35);
  border-radius: 12px;
  background: #0c0e1a;
  box-shadow: 0 4px 16px rgba(12, 14, 26, 0.12);
}

.stat-value {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, #c9a866, #f1dcaa, #c9a866);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 13.5px;
  line-height: 1.5;
  color: #b9b9c4;
}

/* Encadré d'alerte */
.callout {
  margin: 0 0 24px;
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.65;
  color: #0c0e1a;
  border: 1px solid rgba(201, 168, 102, 0.55);
  border-left: 5px solid #c9a866;
  border-radius: 12px;
  background: rgba(201, 168, 102, 0.1);
}

/* Étapes numérotées */
.steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 48px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 800;
  color: #d9bd85;
  background: #0c0e1a;
  border-radius: 50%;
}

/* ===== Footer ===== */
.site-footer {
  background: #0c0e1a;
  color: #b9b9c4;
  border-top: 3px solid #c9a866;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 800;
  color: #d9bd85;
  text-decoration: none;
}

.footer-col p {
  max-width: 340px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
}

.footer-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9bd85;
}

.footer-col ul,
.footer-bottom ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a,
.footer-bottom a {
  font-size: 14.5px;
  color: #d8d8de;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-bottom a:hover { color: #d9bd85; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a { font-size: 13px; }

/* ===== Bouton retour en haut ===== */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9bd85, #c9a866);
  box-shadow: 0 8px 24px rgba(12, 14, 26, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: #0c0e1a;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:focus-visible {
  outline: 3px solid #0c0e1a;
  outline-offset: 2px;
}

/* ===== Responsive (articles et footer) ===== */
@media (max-width: 900px) {
  .article-inner { grid-template-columns: 1fr; gap: 28px; }
  .toc-wrap { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .article-content .lead { font-size: 17px; }
}

@media (max-width: 600px) {
  .article { padding: 32px 16px 48px; }
  .article-content { font-size: 16px; }
  .cards-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 40px 16px 28px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 18px 16px; }
}

/* ===== Accessibilité : réduction des animations ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero *,
  .hero-title-accent .word-inner {
    transition: none !important;
    animation: none !important;
  }

  .js .hero-eyebrow,
  .js .hero-text,
  .js .word-inner {
    opacity: 1;
    transform: none;
  }

  .yt-player * { transition: none !important; }
  .info-card, .review-card, .to-top, .toc-list a { transition: none; }
}
  .whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 160;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .whatsapp-float svg { width: 28px; height: 28px; fill: #fff; flex-shrink: 0; }
  .whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: wa-pulse 2.2s ease-out infinite;
  }
  .whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  }
  .whatsapp-float:focus-visible { outline: 3px solid #0c0e1a; outline-offset: 3px; }
  @keyframes wa-pulse {
    0%   { transform: scale(1);              opacity: 0.5; }
    100% { transform: scale(1.25, 1.5);      opacity: 0; }
  }
  /* Remonte le bouton "retour en haut" au-dessus du WhatsApp */
  .to-top { bottom: 88px !important; }
  @media (max-width: 500px) {
    .whatsapp-float { right: 14px; bottom: 14px; height: 50px; padding: 0 16px 0 13px; font-size: 14px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before { animation: none; display: none; }
    .whatsapp-float { transition: none; }
  }

  /* =========================================================
   Vidéo YouTube dans la section hero
   À ajouter à la fin de style.css (ou à lier après lui)
   ========================================================= */

.hero-video {
  position: relative;
  max-width: 760px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 2px solid rgba(201, 168, 102, 0.55);
  border-radius: 14px;
  background: #0c0e1a;
  box-shadow: 0 12px 36px rgba(12, 14, 26, 0.18);
}

.hero-video .yt-player {
  aspect-ratio: 16 / 9;
}

/* Pas de voile sombre sur la miniature */
.hero-video .yt-cover::before {
  display: none;
}

/* Bouton play transparent : toute la miniature reste cliquable,
   mais aucune icône n'est visible */
/* =========================================================
   Vidéo YouTube dans le hero (à coller à la fin de style.css)
   ========================================================= */

/* Sécurité : l'API YouTube remplace .yt-frame par un <iframe>.
   Sans cette règle, l'iframe garde sa taille par défaut (640px)
   et déborde sur mobile. */
.yt-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

.hero-video {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 24px auto 0;
  overflow: hidden;
  border: 2px solid rgba(201, 168, 102, 0.55);
  border-radius: 14px;
  background: #0c0e1a;
  box-shadow: 0 12px 36px rgba(12, 14, 26, 0.18);
}

.hero-video .yt-player {
  width: 100%;
  max-width: 100%;
}

/* Pas de voile sur la miniature */
.hero-video .yt-cover::before { display: none; }

/* Gros bouton play transparent (toute la miniature reste cliquable) */
.hero-video .yt-big-play {
  background: transparent;
  box-shadow: none;
}
.hero-video .yt-big-play svg { opacity: 0; }
.hero-video .yt-cover:hover .yt-big-play,
.hero-video .yt-cover:focus-visible .yt-big-play {
  transform: none;
  box-shadow: none;
}

/* Petit bouton play de la barre de contrôles masqué aussi
   (un clic sur la vidéo = lecture / pause) */
.hero-video .yt-controls .yt-play { display: none; }

@media (max-width: 500px) {
  .hero-video { margin-top: 18px; border-radius: 10px; }
}

/* ===== Anti-débordement mobile ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.hero-inner,
.hero-video,
.hero-video .yt-player {
  min-width: 0;
  max-width: 100%;
}

.hero-video .yt-player,
.hero-video .yt-player iframe {
  width: 100%;
}

@media (max-width: 900px) {
  /* "1fr" peut s'élargir selon le contenu : on le force à rester dans l'écran */
  .article-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 500px) {
  .hero-video .yt-controls { padding: 14px 8px 6px; gap: 6px; }
}


/* Bouton play invisible sur la vidéo du hero (la miniature reste cliquable) */
.hero-video .yt-play {
  background: transparent;
}
.hero-video .yt-play::before {
  display: none;
}
