/* KommIA : guide « Les meilleures applis pour gérer Instagram quand on est indépendant » (maquette du 2026-10-09, version 2).
   Chargée après site.css et comparatifs.css (haut de page .chero, sommaire collant, kicker). Version allégée après la relecture
   de Bruno : un guide en haut de page, un tableau de trois colonnes, une fiche courte par appli. Pas de carte blanche à contour :
   des lignes fines, un fond qui se teinte au survol, KommIA signalé par un filet en dégradé. */

/* ────── Logos des applis (logo officiel quand on l'a, sinon un monogramme sobre) ────── */
.tlogo {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px rgba(14, 14, 20, 0.08), 0 10px 20px -14px rgba(40, 28, 96, 0.45);
}
.tlogo img { width: 100%; height: 100%; object-fit: cover; }
.tlogo--pad img { padding: 7px; object-fit: contain; }
.tlogo--mono { font-size: 17px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink-70); background: #F4F3FA; }
.tlogo--k { background: transparent; box-shadow: none; }
.tlogo--sm { width: 26px; height: 26px; border-radius: 8px; }
.tlogo--sm.tlogo--mono { font-size: 12px; }
.tlogo--sm.tlogo--pad img { padding: 3px; }

/* ────── Haut de page : un titre plus long que celui du hub, donc un corps plus petit ────── */
.chero__title--long { font-size: clamp(2rem, 8.6cqi, 3.9rem); letter-spacing: -0.04em; line-height: 1.04; }
.chero__lead .chero__ours { display: block; margin: 12px 0 0; font-size: 1rem; font-weight: 500; color: var(--ink); }

/* ────── Le guide « Quelle appli pour toi ? » : le besoin à gauche, l'appli à droite ────── */
.guide { animation: fx-up 1000ms var(--ease-out) both 380ms; }
.guide__title { font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem); font-weight: 620; letter-spacing: -0.03em; margin-bottom: 12px; }
.guide__list { list-style: none; margin: 0; padding: 0; }
.guide__list li { border-top: 1px solid var(--line); }
.guide__list li:last-child { border-bottom: 1px solid var(--line); }
.guide__list a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px) 16px; align-items: center; gap: 16px;
  padding: 14px 6px; text-decoration: none; color: var(--ink); transition: background-color 250ms var(--ease-out);
}
.guide__need { font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty; }
.guide__app { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-70); line-height: 1.2; }
.guide__tag { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--violet-ink); }
.guide__arrow { position: relative; width: 16px; height: 16px; color: var(--ink-60); transition: transform 300ms var(--ease-spring), color 200ms var(--ease-out); }
.guide__arrow::before {
  content: ''; position: absolute; left: 3px; top: 5px; width: 6px; height: 6px;
  border-right: 1.4px solid currentColor; border-top: 1.4px solid currentColor; transform: rotate(45deg);
}
/* KommIA : la première ligne, sur un fond qui se fond vers la droite, filet en dégradé à gauche */
.guide__k a { background: linear-gradient(90deg, rgba(135, 106, 255, 0.10), rgba(22, 142, 255, 0.04) 60%, rgba(253, 253, 255, 0)); box-shadow: inset 2px 0 0 #876AFF; padding-left: 14px; }
.guide__k .guide__app { color: var(--ink); }
@media (hover: hover) {
  .guide__list li:not(.guide__k) a:hover { background-color: rgba(135, 106, 255, 0.04); }
  .guide__list a:hover .guide__arrow { transform: translateX(3px); color: var(--violet-ink); }
}

/* ────── Les prix : trois colonnes, des montants lisibles d'un coup d'œil ────── */
.recap { position: relative; max-width: 1120px; margin: 0 auto; padding: var(--section-y) var(--gutter); }
.recap .sec-head { margin-bottom: 32px; }
.recap__table { width: 100%; border-collapse: collapse; }
.recap__table th, .recap__table td { padding: 18px 16px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.recap__table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.recap__table thead th {
  position: sticky; top: calc(var(--nav-h) + var(--vnav-h)); z-index: 2;
  padding-top: 12px; padding-bottom: 12px; border-top: 0;
  font-size: 13px; font-weight: 600; color: var(--ink-60); line-height: 1.35;
  background: rgba(253, 253, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.recap__table thead th:nth-child(n+2) { width: 24%; }
.recap__app { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.recap__app .tlogo { width: 34px; height: 34px; border-radius: 10px; }
.recap__app .tlogo--mono { font-size: 14px; }
.recap__app .tlogo--pad img { padding: 5px; }
.recap__app span { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.recap__app small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--violet-ink); }
.recap__app:hover span { color: var(--violet-ink); }
.recap__table td b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.recap__table td .note { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ink-60); }
.recap__table td .note--peu { color: #B83E0A; font-weight: 600; }
.recap__table tr.is-k > * { background-color: rgba(135, 106, 255, 0.055); }
.recap__table tr.is-k > th { box-shadow: inset 2px 0 0 #876AFF; }
@media (hover: hover) { .recap__table tbody tr:not(.is-k):hover > * { background-color: rgba(135, 106, 255, 0.03); } }
.recap__foot { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--ink-60); text-wrap: pretty; }

/* ────── Les sept applis : un sommaire collant à gauche, les fiches à droite (refonte du 2026-10-09, « plus agréable à lire ») ──────
   Chaque fiche se lit en trois temps : qui (logo, nom, « Idéale si » en phrase) et combien (le prix en repère, à droite),
   puis la phrase qui la résume, puis ce qu'on aime et ce qu'il faut savoir. Serré dans la fiche, large entre les fiches. */
.apps { position: relative; max-width: 1240px; margin: 0 auto; padding: var(--section-y) var(--gutter); }
.apps .sec-head { margin-bottom: 40px; }
.apps__layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 clamp(48px, 6vw, 88px); align-items: start; }
.apps__rail { position: sticky; top: calc(var(--nav-h) + var(--vnav-h) + 36px); }
.apps__rail ol { list-style: none; margin: 0; padding: 0; }
.apps__rail a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 16px;
  font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--ink-60); text-decoration: none;
  transition: color 250ms var(--ease-out);
}
.apps__rail a::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #168EFF, #876AFF); transform: scaleY(0); transition: transform 350ms var(--ease-out);
}
.apps__rail a .tlogo { opacity: 0.72; transition: opacity 250ms var(--ease-out); }
.apps__rail a:hover, .apps__rail a[aria-current="true"] { color: var(--ink); }
.apps__rail a:hover .tlogo, .apps__rail a[aria-current="true"] .tlogo { opacity: 1; }
.apps__rail a[aria-current="true"] { font-weight: 600; }
.apps__rail a[aria-current="true"]::before { transform: scaleY(1); }
.apps__rail a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
.apps__rail-note { margin-top: 18px; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: var(--ink-60); }

.apps__list { list-style: none; margin: 0; padding: 0; }
.app { position: relative; padding: 52px 0 56px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + var(--vnav-h) + 16px); }
.app:first-child { padding-top: 8px; border-top: 0; }
.app:last-child { padding-bottom: 8px; }
/* Qui et combien sur une même ligne : on compare les prix en faisant défiler */
.app__head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 230px); align-items: start; gap: 6px 18px; }
.tlogo--lg { width: 52px; height: 52px; border-radius: 14px; }
.tlogo--lg.tlogo--mono { font-size: 20px; }
.tlogo--lg.tlogo--pad img { padding: 9px; }
.app__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.15rem); font-weight: 620; letter-spacing: -0.035em; line-height: 1.1; }
.app__ours { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--violet-ink); }
.app__ours::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #876AFF, #168EFF); box-shadow: 0 0 0 3px rgba(135, 106, 255, 0.14); }
.app__ideal { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-70); text-wrap: pretty; }
.app__ideal strong { font-weight: 600; color: var(--violet-ink); }
.app__price { text-align: right; padding-top: 2px; }
.app__price b { display: block; font-size: clamp(1.5rem, 1.25rem + 0.6vw, 1.85rem); font-weight: 620; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.app__price span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--ink-60); text-wrap: balance; }
.app__summary { margin-top: 24px; max-width: 40rem; font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.32rem); font-weight: 450; line-height: 1.5; letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.app__lists { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 44px; max-width: 46rem; }
.app__lists h4 { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ink-60); }
.app__lists ul { list-style: none; margin: 0; padding: 0; }
.app__lists li { position: relative; padding: 5px 0 5px 26px; font-size: 16px; line-height: 1.5; color: var(--ink-70); text-wrap: pretty; }
.app__plus li::before {
  content: ''; position: absolute; left: 3px; top: 0.72em; width: 10px; height: 5px;
  border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg);
}
.app__minus li::before { content: ''; position: absolute; left: 3px; top: 1.02em; width: 10px; height: 2px; border-radius: 2px; background: #B83E0A; opacity: 0.7; }
.app__more { margin-top: 18px; font-size: 14.5px; color: var(--ink-60); }
.app__more a { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(91, 63, 224, 0.4); }
.app__more a:hover { text-decoration-color: currentColor; }
.app__cta { margin-top: 26px; }
/* KommIA : un halo lilas qui se fond sous l'en-tête de la fiche, jamais un encadré */
.app--k::after {
  content: ''; position: absolute; z-index: -1; left: -8%; top: -90px; width: 78%; height: 360px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(135, 106, 255, 0.14), rgba(22, 142, 255, 0.05) 60%, rgba(253, 253, 255, 0) 100%);
}

/* ────── Tablette et téléphone ────── */
@media (max-width: 1099px) {
  /* Plus de place pour le sommaire latéral : celui du haut de page suffit */
  .apps__layout { grid-template-columns: minmax(0, 1fr); }
  .apps__rail { display: none; }
}
@media (max-width: 899px) {
  .app { padding: 40px 0 44px; }
  .app__head { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
  .app__price { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 12px; padding-top: 0; text-align: left; }
  .app__price b { font-size: 1.4rem; }
  .app__price span { margin-top: 0; text-wrap: pretty; }
  .app__summary { margin-top: 16px; }
  .app__lists { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .app__lists li { font-size: 15.5px; }
  .tlogo--lg { width: 46px; height: 46px; border-radius: 12px; }
  .guide__list a { grid-template-columns: minmax(0, 1fr) minmax(0, 150px) 14px; gap: 12px; padding: 13px 4px; }
  .guide__k a { padding-left: 12px; }
  .guide__need { font-size: 15px; }
  /* Le tableau devient une pile : une appli par bloc, ses trois valeurs côte à côte, sous un en-tête collant écrit une seule fois */
  .recap__table, .recap__table tbody, .recap__table tr, .recap__table th { display: block; width: 100%; }
  .recap__table thead {
    display: block; position: sticky; top: calc(var(--nav-h) + var(--vnav-h)); z-index: 2;
    background: rgba(253, 253, 255, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line);
  }
  .recap__table thead th { position: static; width: auto !important; padding: 0; border: 0; background: none; box-shadow: none; font-size: 12px; line-height: 1.3; }
  .recap__table thead th:first-child { display: none; }
  .recap__table thead tr, .recap__table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding-left: 12px; padding-right: 8px; }
  .recap__table thead tr { padding-top: 10px; padding-bottom: 10px; }
  .recap__table tbody tr { padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--line); }
  .recap__table tbody tr:first-child { border-top: 0; }
  .recap__table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .recap__table th, .recap__table td, .recap__table tbody tr:last-child > * { border: 0; padding: 0; }
  .recap__table tbody th { grid-column: 1 / -1; }
  .recap__table td b { font-size: 1.02rem; }
  .recap__table td .note { font-size: 12.5px; }
  .recap__table tr.is-k { background: linear-gradient(90deg, rgba(135, 106, 255, 0.08), rgba(22, 142, 255, 0.03) 70%, rgba(253, 253, 255, 0)); box-shadow: inset 2px 0 0 #876AFF; }
  .recap__table tr.is-k > * { background: none; box-shadow: none; }
}
@media (max-width: 479px) {
  .guide__list a { grid-template-columns: minmax(0, 1fr) 14px; row-gap: 6px; }
  .guide__need { grid-column: 1; }
  .guide__app { grid-column: 1; grid-row: 2; }
  .guide__arrow { grid-column: 2; grid-row: 1 / span 2; }
}
