/* Page Outils — présentation des pages refondues (18 nov. 2026).
   Remplace le <style> inline de views/outils.html et la carte blanche Bootstrap.
   Le gros du style vient de refonte.css ; ici, seulement ce qui est propre à la page.
   Ordre : intro · L'esprit des outils + trois repères · En un coup d'œil + détail · Sur mesure. */

/* --------------------------------------------------------------------------
   Mention « Aperçu — à venir » — désormais dans l'en-tête « En un coup d'œil »
   -------------------------------------------------------------------------- */
.rf-page--outils .ot-soon {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: .5rem;
  margin: 18px auto 0;
  padding: .45rem 1rem;
  border: 1px solid #f2d3e2;
  border-radius: 999px;
  background: #fff;
  font-size: .95rem;
  line-height: 1.4;
  text-align: left;
}
.rf-page--outils .ot-soon i { color: var(--rf-pink-deep); }

/* --------------------------------------------------------------------------
   En-têtes de section (L'esprit des outils, En un coup d'œil)
   -------------------------------------------------------------------------- */
.rf-page--outils .ot-head { max-width: 760px; }
.rf-page--outils .ot-head p { max-width: 64ch; margin-inline: auto; font-size: 1.06rem; }
.rf-page--outils .ot-head .ot-soon {
  max-width: 100%;
  margin: 18px auto 0;
  font-size: .95rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Trois repères — bande nue sous « L'esprit des outils »
   -------------------------------------------------------------------------- */
/* L'esprit des outils + les trois repères : quatre cases teintées dans un même
   ensemble — l'esprit sur toute la largeur, puis les trois en colonnes.
   Pas de fond blanc : les cases reprennent le bleu très pâle des blocs d'origine. */
.ot-ensemble { display: grid; gap: 14px; }
.ot-case {
  background: #f4f6fc;
  border: 1px solid #e3e6f4;
  border-radius: 16px;
  padding: clamp(20px, 2.2vw, 26px) clamp(18px, 2.2vw, 24px);
}
.ot-case--esprit {
  display: grid;
  grid-template-columns: minmax(190px, 32%) minmax(0, 1fr);
  gap: 6px 14px;
  align-items: start;
}
.rf-page--outils .ot-case h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.2;
}
.rf-page--outils .ot-case h2 i { margin-right: .5em; font-size: .8em; color: #b8437e; }
.rf-page--outils .ot-case--esprit p {
  margin: 0;
  max-width: none;
  font-size: 1.03rem;
  line-height: 1.64;
  color: #3d4a5c;
}
.ot-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-page--outils .ot-band h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  line-height: 1.3;
}
.rf-page--outils .ot-band h3 i { margin-right: .45em; font-size: .95em; color: #6d4fa8; }
.rf-page--outils .ot-band p { margin: 0; max-width: 70ch; font-size: .99rem; line-height: 1.6; color: #3d4a5c; }

/* --------------------------------------------------------------------------
   Les quatre outils — deux colonnes, cartes dépliables (18 nov. 2026)
   Deux colonnes comme Services et Formations : les titres tiennent sur une ou
   deux lignes et le texte de lecture reste entre 55 et 70 caractères.
   -------------------------------------------------------------------------- */
.ot-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
  align-items: stretch;
}
.rf-page--outils .ot-card {
  padding: 0 0 22px;
  overflow: hidden;
  gap: 0;
  scroll-margin-top: 110px;
}
.rf-page--outils .ot-card:focus-within { border-color: #dfabc6; box-shadow: 0 0 0 3px rgba(184, 67, 126, .18); }

/* Aperçu : ratio conservé, jamais rogné */
.rf-page--outils .ot-card .ot-card__thumb {
  overflow: hidden;
  aspect-ratio: 864 / 500;
  border-bottom: 1px solid var(--rf-line);
  background: #f6f7fc;
}
.rf-page--outils .ot-card .ot-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.rf-page--outils .ot-card.is-open .ot-card__visual { display: none; }

/* En-tête : logo puis titre */
.rf-page--outils .ot-card .ot-card__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  padding: 22px 26px 0;
}
.rf-page--outils .ot-card__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f6f8fb;
  border: 1px solid var(--rf-line);
}
.rf-page--outils .ot-card__ico img { display: block; width: 26px; height: 26px; object-fit: contain; }
.rf-page--outils .ot-card__title {
  margin: 0;
  font-size: clamp(1.34rem, 1.7vw, 1.52rem);
  line-height: 1.22;
  text-wrap: balance;
}

/* À partir de 1280 px, les pastilles passent à côté du titre : l'en-tête
   tient sur une rangée, les pastilles s'alignent à droite et se replient
   au besoin. En dessous, elles restent sous le titre (deux colonnes trop
   étroites pour les porter sans écraser le titre). */
@media (min-width: 1280px) {
  .rf-page--outils .ot-card .ot-card__head {
    grid-template-columns: 44px minmax(0, 1fr) minmax(310px, 1.15fr);
    align-items: start;
  }
  .rf-page--outils .ot-card__head .ot-meta {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
  }
}

/* Pastilles : un seul système, trois rôles — public, gratuit, complet.
   Elles vivent dans l'en-tête de la carte ; sous 1280 px elles passent sous
   le titre, au-dessus passent à côté (colonne 3). */
.ot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 0;
}
.ot-pill {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  min-height: 30px;
  padding: .28rem .72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.ot-pill i { font-size: .92em; }
.ot-pill--aud { background: #f7f3f8; border-color: #e9dfe6; color: #55475a; }
.ot-pill--aud i { color: #8a6f7d; }
.ot-pill--free { background: #e9f6ee; border-color: #cfe9d9; color: #17663a; }
.ot-pill--paid { background: #fdeef4; border-color: #f4d6e4; color: #8c2f59; }

.rf-page--outils .ot-card__sum {
  margin: 0;
  padding: 14px 26px 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #3d4a5c;
}
.rf-page--outils .ot-card__more {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  align-self: flex-start;
  min-height: 44px;
  margin: 16px 26px 0;
  padding: .55rem .2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rf-pink-deep);
}
.rf-page--outils .ot-card__more:hover { text-decoration: underline; text-underline-offset: 4px; }
.rf-page--outils .ot-card__more:focus-visible { outline: 2px solid var(--rf-pink-deep); outline-offset: 3px; border-radius: 6px; }

/* Le résumé de carte n'est pas un chapô de service : il garde tout son texte.
   La règle globale de refonte.css coupe les paragraphes à deux lignes
   (-webkit-line-clamp) ; ici, la fin de phrase doit rester visible. */
.rf-page--outils .ot-cards .rf-card:not(.is-open) > .ot-card__sum {
  display: block;
  min-height: 0;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* Rangées alignées : dans une même rangée, les deux cartes partagent les
   hauteurs de leurs blocs (aperçu, en-tête, résumé, bouton).
   Un titre sur deux lignes ou des pastilles qui se replient n'écartent donc
   plus le résumé ni « Voir le détail » de la carte voisine.
   Dès qu'une carte s'ouvre, elle prend toute la largeur : la grille revient
   à un flux normal pour laisser le panneau se déployer librement. */
@media (min-width: 900px) {
  .rf-page--outils .ot-cards:not(:has(.is-open)) .ot-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
  }
}

/* Panneau ouvert : toute la largeur, l'écran réel à côté du texte */
.rf-page--outils .ot-card .rf-card__panel { padding: 0 26px; }
.rf-page--outils .ot-card.is-open { padding-bottom: 30px; }
.rf-page--outils .ot-card.is-open .ot-card__more { margin-bottom: 2px; }

.ot-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(26px, 3.4vw, 46px);
  align-items: start;
}
.rf-page--outils .out-shot { margin: 0; }
.rf-page--outils .out-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(37, 49, 86, .10);
}
.rf-page--outils .rf-detail__lead {
  margin: 0 0 12px;
  font-size: 1.16rem;
  line-height: 1.5;
  color: #2b3648;
}
.rf-page--outils .out-desc { margin: 0 0 16px; font-size: 1.03rem; line-height: 1.66; }
.rf-page--outils .out-list { margin: 0 0 18px; padding: 0; list-style: none; }
.rf-page--outils .out-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: .65rem;
  margin: 0 0 .6rem;
  font-size: 1rem;
  line-height: 1.6;
}
.rf-page--outils .out-list li > i { margin-top: .3rem; color: var(--rf-pink-deep); font-size: .92rem; text-align: center; }
.rf-page--outils .out-versfree { margin: 0 0 14px; font-size: .99rem; line-height: 1.6; }
.rf-page--outils .out-vers-paid {
  max-width: 40rem;
  margin: 0 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
  background: #fbfafb;
}
.rf-page--outils .out-vers h4.out-h { margin: 0 0 .4rem; font-size: 1.1rem; }
.rf-page--outils .out-vers p { margin: 0; font-size: .98rem; line-height: 1.6; }
.rf-page--outils .out-cta { margin-top: 16px; }

/* Le texte du détail reste justifié (demande de Léa, 15 oct. 2026), mais avec
   césure contrôlée : plus de grands trous entre les mots. */
.rf-page--outils .out-desc,
.rf-page--outils .out-list li span,
.rf-page--outils .out-versfree,
.rf-page--outils .out-vers p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphenate-limit-chars: 7 3 3;
  hyphenate-limit-chars: 7 3 3;
}

/* --------------------------------------------------------------------------
   Sur mesure — même panneau que la page Formations (ateliers.css, .mq-sm)
   -------------------------------------------------------------------------- */
.rf-page--outils .rf-kicker { margin: 0 0 8px; }
.rf-page--outils .mq-sm {
  padding: clamp(22px, 3.2vw, 40px) clamp(20px, 4.4vw, 52px);
  border: 1px solid #efe4ea;
  border-radius: 22px;
  background: linear-gradient(160deg, #e9f4fd 0%, #f9f5fa 55%, #fdeff5 100%);
  box-shadow: 0 18px 44px -30px rgba(10, 58, 85, .28);
}
.rf-page--outils .mq-sm__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.18;
}
.rf-page--outils .mq-sm__lead {
  margin: 0;
  max-width: 46rem;
  font-size: 1.1rem;
  line-height: 1.6;
}
.rf-page--outils .mq-sm__body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4.5vw, 64px);
  margin-top: clamp(18px, 2.2vw, 28px);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid #f0e4ea;
}
.rf-page--outils .mq-sm__publics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-page--outils .mq-sm__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 0;
  border-top: 0;
}
.rf-page--outils .mq-sm__row:first-child,
.rf-page--outils .mq-sm__row:last-child { padding: 0; }
.rf-page--outils .mq-sm__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef5fb;
  color: #036798;
  font-size: 1rem;
}
.rf-page--outils .mq-sm__row h3 { margin: 0; font-size: 1.16rem; line-height: 1.3; }
.rf-page--outils .mq-sm__cta { margin: 0; }
.rf-page--outils .mq-sm__cta .rf-btn { justify-content: center; padding: .8rem 1.5rem; font-size: 1.06rem; }
.rf-page--outils .mq-sm__note {
  margin: 14px 0 0;
  max-width: 34rem;
  font-size: .95rem;
  line-height: 1.55;
}
/* Le bouton et sa note forment un seul bloc, centré sur la hauteur des quatre
   publics : plus de colonne de droite collée en haut avec 170 px de vide. */
@media (min-width: 761px) {
  .rf-page--outils .mq-sm__how {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Largeurs
   -------------------------------------------------------------------------- */
@media (max-width: 1099.98px) {
  .ot-cards { gap: 22px 18px; }
  .ot-case--esprit { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
}
@media (max-width: 991.98px) {
  .ot-detail { grid-template-columns: minmax(0, 1fr); }
  .rf-page--outils .out-shot { max-width: 380px; width: 100%; margin-inline: auto; }
}
@media (max-width: 1099.98px) {
  .ot-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760.98px) {
  .rf-page--outils .mq-sm__body { grid-template-columns: minmax(0, 1fr); }
  .rf-page--outils .mq-sm__how { padding-top: clamp(16px, 2vw, 24px); border-top: 1px solid #f0e4ea; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .rf-page--outils .mq-sm__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  .ot-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 619.98px) {
  .rf-page--outils .ot-card .ot-card__head { padding: 18px 18px 0; }
  .rf-page--outils .ot-card__sum { padding: 12px 18px 0; }
  .rf-page--outils .ot-card__more { margin: 12px 18px 0; }
  .rf-page--outils .ot-card .rf-card__panel { padding: 0 18px; }
}
@media (max-width: 575.98px) {
  .rf-page--outils .mq-sm { border-radius: 20px; }
  .rf-page--outils .mq-sm__publics { grid-template-columns: minmax(0, 1fr); }
  .rf-page--outils .mq-sm__row { grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; }
  .rf-page--outils .mq-sm__ico { width: 38px; height: 38px; font-size: .92rem; }
  .rf-page--outils .mq-sm__cta .rf-btn { display: flex; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-page--outils .ot-card { transition: none; }
}

/* Polissage mobile (22 nov. 2026) — sous 620 px seulement : pastilles au-dessus de 14,5 px. */
@media (max-width: 620px) {
  .ot-pill { font-size: .86rem; }
}
