/* Gabarit v5 des guides (3 déc. 2026), sur le modèle de l'article d'Instantly donné par Elian
   (instantly.ai/blog/ai-sales-agent-use-cases-agencies) : titre à gauche et chapô à droite, une image de couverture,
   le sommaire collé à gauche, l'article à droite, des tableaux teintés, les logos des outils, des angles arrondis.
   Mêmes couleurs et polices que le site (Inter ; Charter pour le texte de lecture). Se charge après guides.css,
   sans guides-v2.css. */

.v5 {
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --teinte: #eef2e9;
  --teinte-2: #f6f8f3;
  --bord: #dbe2d4;
  --bord-fin: #e7ece2;
  --vert: #3f5537;
  --vert-fond: #e5eddd;
  --doux: #6f7968;
}

/* ── En-tête : étiquette et titre à gauche, chapô et date à droite ───────── */
.v5-tete {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "titre texte";
  gap: 18px 64px;
  /* Le titre est calé en haut, jamais plus bas que la partie droite (Elian, 5 déc.). La partie droite est calée en bas,
     et sa marge du bas fait tomber la ligne de la date sur la dernière ligne du titre (Elian, 3 déc. au soir). */
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 0 0;
}
.v5-etiquette {
  grid-area: etiquette;
  justify-self: start;
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--vert-fond);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--vert);
}
.v5-tete h1 {
  grid-area: titre;
  align-self: start;
  margin: 0;
  font-size: clamp(34px, 3.9vw, 46px);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.v5-tete-texte {
  grid-area: texte;
  align-self: end;
  /* 0,122 fois la taille du titre : l'écart entre le bas de sa dernière ligne et sa ligne de base. */
  margin-bottom: calc(clamp(34px, 3.9vw, 46px) * 0.122);
}
.v5-chapo {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.v5-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--doux);
}
.v5-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.v5-meta svg {
  width: 15px;
  height: 15px;
}

/* ── Couverture ─────────────────────────────────────────────────────────── */
.v5-couverture {
  max-width: 1040px;
  margin: 40px auto 0;
}
.v5-couverture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ── Corps : sommaire collé à gauche, article à droite ──────────────────── */
.v5 .article-layout {
  grid-template-columns: 220px minmax(0, 720px);
  gap: 72px;
  margin-top: 64px;
}
@media (min-width: 981px) {
  .v5 .toc ol {
    gap: 2px;
    border-left: 0;
  }
  .v5 .toc a {
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
  }
  .v5 .toc a:hover {
    background: var(--teinte-2);
  }
  .v5 .toc a.is-active {
    background: var(--teinte);
    font-weight: 500;
  }
  .v5 .toc summary {
    padding-left: 12px;
  }
}

/* ── Texte ──────────────────────────────────────────────────────────────── */
.v5 .prose h2 {
  margin-top: 72px;
  font-size: 30px;
  font-weight: 540;
  letter-spacing: -0.035em;
}
.v5 .prose > section:first-child h2 {
  margin-top: 0;
}
.v5 .prose h3 {
  margin-top: 40px;
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.v5 .prose > section > p,
.v5 .prose > section > ul > li,
.v5 .prose .v5-faq p {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.7;
  color: #2b3027;
}
.v5 .prose > section > p {
  margin-top: 18px;
}
.v5 .prose strong {
  font-weight: 700;
}

/* Atouts (coche verte) et limites (tiret gris). */
.v5 .prose ul.oui,
.v5 .prose ul.non {
  padding: 0;
  list-style: none;
}
.v5 .prose ul.oui > li,
.v5 .prose ul.non > li {
  position: relative;
  padding-left: 36px;
}
.v5 .prose ul.oui > li + li,
.v5 .prose ul.non > li + li {
  margin-top: 12px;
}
.v5 .prose ul.oui > li::before,
.v5 .prose ul.non > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vert-fond) center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.6l2.9 2.9 6-6.6' fill='none' stroke='%233f5537' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.v5 .prose ul.non > li::before {
  background-color: #eceee9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8h7.2' fill='none' stroke='%236d7468' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Tableaux : en-tête teinté, lignes alternées, bords fins ────────────── */
.v5 .tableau {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--bord);
  border-radius: 14px;
  background: #fff;
}
.v5 .tableau table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}
.v5 .tableau th,
.v5 .tableau td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--bord-fin);
  text-align: left;
  vertical-align: top;
  color: #3a4235;
}
.v5 .tableau th + th,
.v5 .tableau th + td,
.v5 .tableau td + td {
  border-left: 1px solid var(--bord-fin);
}
.v5 .tableau thead th {
  background: var(--teinte);
  border-bottom-color: var(--bord);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.v5 .tableau tbody th {
  font-weight: 600;
  color: var(--ink);
}
.v5 .tableau tbody tr:nth-child(even):not(.groupe) {
  background: #f7f9f3;
}
.v5 .tableau tbody tr:last-child > * {
  border-bottom: 0;
}
.v5 .tableau tr.groupe th {
  padding: 9px 15px;
  background: var(--teinte-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5d6656;
}
.v5 .tableau b {
  font-weight: 600;
  color: var(--ink);
}
.v5 .tableau small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--doux);
}
.v5 .t-outils {
  min-width: 600px;
}
.v5 .t-outils td:nth-child(2) {
  width: 31%;
}
.v5 .t-outils td:nth-child(2):last-child {
  width: 68%;
}
.v5 .t-outils td:nth-child(3) {
  width: 23%;
}
.v5 .t-outils td:nth-child(4) {
  width: 24%;
}
/* Tableau des connecteurs à trois colonnes, adapté au sujet de la page : connecteur, ce qui compte pour le sujet, prix. */
.v5 .t-sujet td:nth-child(2) {
  width: 50%;
}
.v5 .t-sujet td:nth-child(3) {
  width: 24%;
}
.v5 .t-besoin tbody th {
  width: 40%;
}
.v5 .t-criteres tbody th {
  width: 22%;
}
.v5 .prose .note {
  margin-top: 10px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--doux);
}

/* Logos : un nom d'outil avec son logo, et des pastilles dans le texte des tableaux. */
.v5 img.logo {
  flex: none;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgb(37 41 34 / 8%);
}
.v5 .nom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.v5 .puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  padding: 3px 9px 3px 4px;
  border: 1px solid var(--bord-fin);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.v5 .puce .logo {
  border-radius: 50%;
}
/* Outil sans logo dans gabarit/logos : son initiale dans une pastille (page 2). */
.v5 .logo.lettre {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgb(37 41 34 / 8%);
  background: var(--vert-fond);
  color: var(--vert);
  font-family: Inter, sans-serif;
  font-weight: 600;
  line-height: 1;
}
.v5 .logo.lettre::before {
  content: attr(data-lettre);
}

/* ── Fiches par outil : logo, nom, type et prix, puis atout et limite ───── */
.v5 .fiches {
  margin-top: 8px;
}
.v5 .fiche {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bord-fin);
}
.v5 .fiche:last-child {
  border-bottom: 0;
}
.v5 .fiche .logo {
  border-radius: 11px;
}
.v5 .prose .fiche h4 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.v5 .prose .fiche h4 a {
  text-decoration: none;
}
.v5 .prose .fiche h4 a:hover {
  text-decoration: underline;
}
.v5 .prose .fiche p {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: #2b3027;
}
.v5 .prose .fiche .fiche-type {
  margin-top: 2px;
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  color: var(--doux);
}

/* ── Encadré d'essai ─────────────────────────────────────────────────────── */
.v5 .article-cta {
  margin-top: 48px;
  padding: 30px 32px;
  border-radius: 20px;
}

/* ── Questions fréquentes, dans la colonne de l'article ──────────────────── */
.v5 .v5-faq {
  margin-top: 16px;
  border-top: 1px solid var(--bord);
}
.v5 .v5-faq details {
  border-bottom: 1px solid var(--bord);
}
.v5 .v5-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
}
.v5 .v5-faq summary::-webkit-details-marker {
  display: none;
}
.v5 .v5-faq summary svg {
  width: 16px;
  height: 16px;
  color: var(--doux);
  transition: transform 0.2s var(--ease);
}
.v5 .v5-faq details[open] summary svg {
  transform: rotate(45deg);
}
.v5 .prose .v5-faq p {
  margin: 0;
  padding: 0 0 20px;
  font-size: 17.5px;
}

/* ── Auteur ──────────────────────────────────────────────────────────────── */
.v5 .prose .author-box {
  margin-top: 64px;
  border-radius: 16px;
}

/* ── Fil d'Ariane, en bas de page ────────────────────────────────────────── */
.fil {
  margin-top: 48px;
  padding-bottom: 28px;
}
.fil ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.4;
  color: #7a8471;
}
.fil li + li::before {
  content: "›";
  margin-right: 6px;
  color: #aab3a1;
}
.fil a {
  color: inherit;
  text-decoration: none;
}

/* ── Écrans moyens et téléphone ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .v5-tete {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "titre" "texte";
    max-width: 720px;
  }
  .v5-tete-texte {
    margin-bottom: 0;
  }
  .v5-couverture {
    max-width: 720px;
  }
}
@media (max-width: 980px) {
  .v5 .article-layout {
    grid-template-columns: minmax(0, 720px);
    gap: 32px;
    margin-top: 48px;
  }
}
@media (max-width: 640px) {
  .v5-tete {
    padding-top: 32px;
  }
  .v5-couverture {
    margin-top: 28px;
  }
  .v5-couverture img {
    border-radius: 14px;
  }
  .v5 .prose h2 {
    margin-top: 56px;
    font-size: 25px;
  }
  .v5 .prose > section > p,
  .v5 .prose > section > ul > li {
    font-size: 17.5px;
  }
  .v5 .tableau table {
    font-size: 14px;
  }
  /* Le tableau des outils défile de côté : la colonne des noms reste en place. */
  .v5 .t-outils tbody th:first-child,
  .v5 .t-outils thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 1px 0 0 var(--bord-fin);
  }
  .v5 .t-outils thead th:first-child {
    background: var(--teinte);
  }
  .v5 .t-outils tr.groupe th {
    position: static;
    background: var(--teinte-2);
  }
  .v5 .t-besoin,
  .v5 .t-criteres {
    min-width: 480px;
  }
}

/* ── Phrase d'entrée de l'article, avant la première section ─────────────── */
.v5 .prose .v5-intro p {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.65;
  color: #2b3027;
}
.v5 .prose .v5-intro + section h2 {
  margin-top: 40px;
}

/* ── Dépliant : les trois premières fiches, puis un lien discret « Voir les N autres » ── */
.v5 .plus summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid var(--bord-fin);
  list-style: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--doux);
  cursor: pointer;
  transition: color 0.2s;
}
.v5 .plus summary::-webkit-details-marker {
  display: none;
}
.v5 .plus summary:hover {
  color: var(--ink);
}
.v5 .plus summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  order: 2;
  transition: transform 0.2s var(--ease);
}
.v5 .plus[open] summary::after {
  transform: rotate(180deg);
}
.v5 .plus-cacher,
.v5 .plus[open] .plus-voir,
.v5 .plus[open] .plus-logos {
  display: none;
}
.v5 .plus[open] .plus-cacher {
  display: inline;
}
.v5 .plus-logos {
  display: flex;
  order: 1;
  margin-left: 4px;
  opacity: 0.85;
}
.v5 .plus-logos .logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--paper);
}
.v5 .plus-logos .logo + .logo {
  margin-left: -4px;
}
.v5 .plus .fiches {
  margin-top: 8px;
}
@media (max-width: 640px) {
  .v5 .plus-logos {
    display: none;
  }
}

/* ── Encadré d'essai v5 : la marque, « Équipez votre IA pour le droit. », les IA compatibles ── */
.v5 .prose .v5-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "marque ." "titre bouton" "ia note";
  align-items: center;
  column-gap: 28px;
  margin-top: 48px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(160deg, #363c32 0%, var(--ink) 75%);
  color: #fff;
}
.v5 .prose .v5-cta p,
.v5 .prose .v5-cta ul {
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
  color: #fff;
}
.v5 .prose .v5-cta .v5-cta-marque {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 540;
  letter-spacing: -0.01em;
  color: #c9cfc2;
  grid-area: marque;
  margin-bottom: 12px;
}
.v5 .v5-cta-marque svg {
  width: 18px;
  height: 18px;
}
.v5 .prose .v5-cta .v5-cta-titre {
  grid-area: titre;
  font-size: 28px;
  font-weight: 540;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.v5 .prose .v5-cta .v5-cta-ia {
  display: flex;
  flex-wrap: wrap;
  grid-area: ia;
  gap: 6px;
  margin-top: 18px;
  list-style: none;
}
.v5 .prose .v5-cta-ia li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 9%);
  font-family: Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  color: #eef2e9;
}
.v5 .prose .v5-cta-ia li::before {
  content: none;
}
.v5 .v5-cta-ia img {
  box-sizing: content-box;
  width: 14px;
  height: 14px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
}
.v5 .v5-cta .btn {
  grid-area: bouton;
  justify-self: center;
  min-height: 46px;
  padding-inline: 20px;
  border-color: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.v5 .prose .v5-cta .v5-cta-note {
  grid-area: note;
  justify-self: center;
  margin-top: 18px;
  font-size: 13px;
  color: #aeb7a5;
}
@media (max-width: 640px) {
  .v5 .prose .v5-cta {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "marque" "titre" "ia" "bouton" "note";
    padding: 26px 22px;
  }
  .v5 .v5-cta .btn {
    justify-self: stretch;
    margin-top: 24px;
  }
  .v5 .prose .v5-cta .v5-cta-note {
    margin-top: 10px;
  }
  .v5 .prose .v5-cta .v5-cta-titre {
    font-size: 24px;
  }
}

/* Capture d'une vraie source (page 17, reprise de la v4) : l'image tient dans la colonne, légende en dessous. */
.v5 .prose figure.capture {
  margin: 28px 0 0;
}
.v5 .prose figure.capture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(37 41 34 / 10%), 0 2px 6px rgb(37 41 34 / 6%);
}
.v5 .prose figure.capture figcaption {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #4d5448;
}
.v5 .prose figure.capture figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #8a9580;
}
/* Repère : la règle pratique à retenir, sur fond vert pâle. */
.v5 .prose > section > p.repere {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--vert-fond);
  font-size: 17.5px;
}
