/* ==========================================================================
   Fiche d'un logiciel en grandes sections (MagManager) : titres centrés,
   captures en grand, blocs anthracite pour les temps forts. Style sobre :
   coins peu arrondis, ombres légères, pas d'effets.
   ========================================================================== */

.fiche {
  --fiche-sombre-fond: #1f2124;
  --fiche-sombre-texte: #f3f3f3;
  --fiche-sombre-doux: #b8babd;
  --fiche-sombre-lien: #8cc4ff;
  --fiche-nouveau: var(--accent);
}

.fiche .bouton--grand { min-height: 48px; padding-inline: 1.6rem; font-weight: 600; }

/* ---------- Haut de page ---------- */

.fiche-heros {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  text-align: center;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--fond-doux);
  overflow: hidden;
}
/* Logo du logiciel au-dessus du titre (dessin sur fond transparent, lisible dans les deux thèmes). */
.fiche-heros__logo { display: block; width: clamp(5rem, 10vw, 7rem); height: auto; margin: 0 auto 1rem; }
.fiche-heros__surtitre {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--texte-doux);
}
.fiche-heros h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fiche-heros__accroche {
  margin: 0.75rem auto 0;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fiche-heros__texte {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--texte-doux);
}
.fiche-heros .fiche-actions { justify-content: center; margin-top: 2rem; }
/* Vidéo de présentation, juste sous le texte du haut de page */
.fiche-heros .video { max-width: 1000px; margin: clamp(2rem, 5vw, 3rem) auto 0; text-align: left; }
.fiche-heros .video__lecteur { box-shadow: var(--ombre-forte); }
.fiche-heros .video__transcription { text-align: center; }

/* ---------- Barre de la fiche, collée sous l'en-tête ---------- */

.fiche-nav__ligne { display: flex; align-items: center; gap: 1rem; min-height: 52px; }
.fiche-nav__nom { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.fiche-nav ul { flex: 1; justify-content: flex-end; padding: 0; }
.fiche-nav a:not(.bouton) { font-size: 0.85rem; font-weight: 500; padding: 0.35rem 0.6rem; }
.fiche-nav .bouton { flex: none; color: var(--sur-primaire); }
@media (max-width: 760px) {
  .fiche-nav ul { display: none; }
  .fiche-nav__ligne { justify-content: space-between; }
}

/* ---------- Grandes sections ---------- */

.fiche-bloc { padding: clamp(4rem, 9vw, 7rem) 0; }
.fiche-bloc--doux { background: var(--fond-doux); }
.fiche-bloc--sombre { background: var(--fiche-sombre-fond); color: var(--fiche-sombre-texte); }
.fiche-bloc--sombre .fiche-texte,
.fiche-bloc--sombre .video__transcription { color: var(--fiche-sombre-doux); }
.fiche-bloc--sombre a,
.fiche-bloc--sombre .video__transcription summary { color: var(--fiche-sombre-lien); }

.fiche-surtitre {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--texte-doux);
}
.fiche-bloc--sombre .fiche-surtitre { color: var(--fiche-sombre-doux); }
.fiche-surtitre--nouveau,
.fiche-bloc--sombre .fiche-surtitre--nouveau { color: var(--fiche-nouveau); }
.fiche-titre {
  margin: 0 auto;
  max-width: 26ch;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}
.fiche-texte {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--texte-doux);
  text-align: center;
}
.fiche-bloc > .conteneur > .fiche-texte + * { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* Section centrée : texte au-dessus, capture en grand dessous */
.fiche-bloc--centre .fiche-bloc__texte { text-align: center; }
.fiche-bloc--centre .fiche-bloc__images { margin-top: clamp(2rem, 5vw, 3.5rem); }
.fiche-bloc--centre .fiche-capture { max-width: 980px; margin-inline: auto; }

/* Section côte à côte : texte d'un côté, capture(s) de l'autre */
.fiche-bloc--cote .fiche-bloc__grille,
.fiche-bloc--cote-inverse .fiche-bloc__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.fiche-bloc--cote-inverse .fiche-bloc__grille { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.fiche-bloc--cote-inverse .fiche-bloc__texte { order: 2; }
.fiche-bloc--cote .fiche-titre,
.fiche-bloc--cote .fiche-texte,
.fiche-bloc--cote-inverse .fiche-titre,
.fiche-bloc--cote-inverse .fiche-texte { text-align: left; margin-inline: 0; }
.fiche-bloc--cote .fiche-titre,
.fiche-bloc--cote-inverse .fiche-titre { font-size: clamp(1.8rem, 3vw, 2.5rem); }
@media (max-width: 860px) {
  .fiche-bloc--cote .fiche-bloc__grille,
  .fiche-bloc--cote-inverse .fiche-bloc__grille { grid-template-columns: minmax(0, 1fr); }
  .fiche-bloc--cote-inverse .fiche-bloc__texte { order: 0; }
}

.fiche-capture {
  overflow: hidden;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  background: var(--surface);
  box-shadow: var(--ombre);
}
.fiche-capture img { display: block; width: 100%; height: auto; }
.fiche-bloc--sombre .fiche-capture { border-color: #3a3c40; }
.fiche-bloc__images--2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: end; }
@media (max-width: 560px) {
  .fiche-bloc__images--2 { grid-template-columns: minmax(0, 1fr); }
}

/* Chiffres clés d'une section sombre */
.fiche-chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem;
  max-width: 980px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.fiche-chiffres strong {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700;
}
.fiche-chiffres span { display: block; margin-top: 0.4rem; color: var(--fiche-sombre-doux); line-height: 1.45; }

/* Tuiles côte à côte (inventaire, statistiques) */
.fiche-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; }
.fiche-tuile {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem) 0;
  border-radius: var(--rayon);
  border: 1px solid var(--bordure);
  background: var(--fond-doux);
  text-align: center;
  overflow: hidden;
}
.fiche-tuile h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.fiche-tuile p { margin: 0.6rem auto 0; max-width: 30rem; color: var(--texte-doux); line-height: 1.5; }
.fiche-tuile .fiche-capture { margin-top: auto; transform: translateY(1px); border-bottom: 0; border-radius: var(--rayon-petit) var(--rayon-petit) 0 0; }
.fiche-tuile p + .fiche-capture { margin-top: 2rem; }

/* ---------- Parties reprises du reste du site ---------- */

.fiche .atouts { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.fiche .video { margin-top: clamp(2rem, 5vw, 3rem); }
.fiche .video__lecteur { border-radius: var(--rayon); }

.fiche .liste-fonctions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.fiche .fonction { flex-direction: column; gap: 0.75rem; }
.fiche .fonction h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }

.fiche .formules { margin-top: clamp(2rem, 5vw, 3rem); }
.fiche .formule { text-align: center; padding: 2.25rem 1.75rem 2rem; box-shadow: none; }
.fiche .formule--avant { box-shadow: var(--ombre); }
.fiche .formule__prix { font-size: clamp(2.2rem, 4vw, 2.75rem); }
.fiche .formule .liste-coches { text-align: left; margin-inline: auto; }
.fiche .formule .bouton { align-self: center; min-width: 11rem; }
.fiche .tarifs-infos .carte,
.fiche #licence .carte { box-shadow: none; }

.fiche .faq { margin-top: clamp(2rem, 5vw, 3rem); }
.fiche .faq__item { border: 0; border-bottom: 1px solid var(--bordure); border-radius: 0; background: transparent; margin: 0; }
.fiche .faq__item summary { padding: 1.4rem 3rem 1.4rem 0; font-size: 1.15rem; }
.fiche .faq__item summary::after {
  content: "+";
  width: auto; height: auto;
  border: 0;
  right: 0.25rem;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
}
.fiche .faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fiche .faq__reponse { padding: 0 0 1.4rem; }
.fiche .faq + .fiche-texte { margin-top: 2rem; }

.fiche-fin { text-align: center; }
.fiche-fin img { margin: 0 auto 1.25rem; }
.fiche-fin .fiche-actions { justify-content: center; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .fiche .faq__item summary::after { transition: none; }
}
.fiche-nav .bouton:hover { background: var(--primaire-survol); color: var(--sur-primaire); }
