/* Fichier produit par Siteweb/assets.py à partir de : models/tools/style.css (product). Ne pas le modifier. */
/* ===== models/tools/style.css (product) */
/* Modèle tools : listes d’outils (plp/) et fiches outil (product/). Base et couleurs (thèmes jour et nuit) dans /common/style.css. */
:root {
  /* Largeur : celle du site (--max-width de common/style.css, 1280 px), sans valeur propre au modèle. */
  --radius: 16px;
  --radius-lg: 24px;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body { min-height: 100vh; min-height: 100svh; height: auto; display: flex; flex-direction: column; overflow-x: clip; font-family: var(--font-text); -webkit-font-smoothing: antialiased; }
body > main { flex: 1; padding: 0 0 80px; }
h1 { margin-bottom: 32px; font-size: clamp(36px, 7vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; color: var(--color-text); }
/* Liste des outils (plp/) : le H1 garde un peu d'air sous l'en-tête. */
main > h1, .tools-list h1 { padding-top: 40px; }

/* Modèle tarifaire : badge clair (contour), pour ne pas se confondre avec les badges noirs des catégories. */
.tool-pricing-model { display: inline-block; padding: 5px 13px; border: 1px solid currentColor; border-radius: 999px; background: var(--color-background); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.tool-pricing-model-free { color: var(--color-accent); }
.tool-pricing-model-freemium { color: var(--color-freemium); }
.tool-pricing-model-paid { color: var(--color-text-secondary); }
.tools-card .tool-pricing-model { padding: 3px 10px; font-size: 11px; }

/* Niveau de recommandation : cinq ronds, les premiers pleins, couleur selon le niveau (du rouge au vert de la marque). */
.tool-level { --level: var(--color-accent); display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 800; color: var(--level); }
.tool-level-1 { --level: var(--color-danger); }
.tool-level-2 { --level: var(--color-level-2); }
.tool-level-3 { --level: var(--color-level-3); }
.tool-level-4 { --level: var(--color-level-4); }
.tool-level-dots { display: inline-flex; gap: 4px; }
.tool-level-dots i { width: 12px; height: 12px; border: 2px solid var(--level); border-radius: 50%; }
.tool-level-dots i.on { background: var(--level); }
.tool-level-dots i.half { background: linear-gradient(90deg, var(--level) 50%, transparent 50%); }
.tool-hero .tool-level { margin: -8px 0 24px; padding: 8px 14px; border-radius: 999px; background: var(--color-card); box-shadow: 0 6px 20px rgba(var(--shadow-rgb), .06); }
#review > .tool-level { margin: -8px 0 24px; }

/* ==================================================
   Fiche outil (product/)
   ================================================== */

.tool { position: relative; }

/* Bandeau d'en-tête : pleine largeur de l'écran, fond teinté avec un halo vert. */
.tool-hero-band { position: relative; margin: 0 calc(50% - 50vw); padding: 24px calc(50vw - 50%) 200px; background: var(--color-surface); overflow: hidden; }
.tool-hero-band::before { content: ""; position: absolute; top: -220px; right: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, var(--color-hero-glow), transparent); pointer-events: none; }
.tool-hero-band > * { position: relative; z-index: 1; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 40px; color: var(--color-muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb [aria-current] { color: var(--color-text); }

.tool-hero { max-width: 860px; }
.tool-hero-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.tool-logo { width: 72px; height: 72px; padding: 12px; border: 1px solid var(--color-border); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(var(--shadow-rgb), .08); object-fit: contain; }

.tool-logo-text { display: grid; place-items: center; padding: 0; background: var(--color-primary); color: #121512; font-size: 32px; font-weight: 800; }

.tool-categories { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tool-categories li { padding: 6px 14px; border-radius: 999px; background: var(--color-ink); color: var(--color-on-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.tool-categories li.tool-subcategory { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text); letter-spacing: .02em; }
.tool-hero h1 { margin: 0 0 24px; font-size: clamp(34px, 6vw, 68px); line-height: 1; letter-spacing: -.04em; }

.tool-summary p { color: var(--color-text-secondary); font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; }

.tool-visit { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 16px 28px; border-radius: 999px; background: var(--color-primary); color: var(--color-ink); font-weight: 800; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tool-visit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 35%, transparent); }
/* Visuel principal : à cheval sur le bas du bandeau. */
.tool-media { position: relative; z-index: 2; margin: -160px 0 0; }
.tool-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 30px 80px rgba(var(--shadow-rgb), .16), 0 2px 8px rgba(var(--shadow-rgb), .06); }
.tool-media figcaption { margin-top: 14px; color: var(--color-muted); font-size: 14px; text-align: center; }
/* Barre de sections : collée en haut pendant le défilement, section active soulignée (script.js). */
.tool-nav { position: sticky; top: 0; z-index: 5; margin: 48px calc(50% - 50vw) 0; padding: 0 calc(50vw - 50%); background: var(--color-glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.tool-nav ol { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.tool-nav ol::-webkit-scrollbar { display: none; }
.tool-nav a { display: block; padding: 18px 14px 16px; border-bottom: 2px solid transparent; color: var(--color-muted); font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease); }
.tool-nav a:hover { color: var(--color-text); }
.tool-nav a[aria-current] { color: var(--color-accent); border-bottom-color: var(--color-accent); }

/* Sections : titres larges, rythme alterné (la section Avis est un bandeau teinté). */
.tool-section { position: relative; padding: 72px 0; scroll-margin-top: 56px; outline: none; }

.tool-section-band { margin: 0 calc(50% - 50vw); padding: 80px calc(50vw - 50%); background: var(--color-surface); }

.tool-section h2 { position: relative; margin-bottom: 32px; max-width: var(--max-reading); font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--color-text); }
.tool-section h2::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 20px; border-radius: 2px; background: var(--color-primary); }
.tool-section h3 { margin: 48px 0 20px; font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--color-text); }
.tool-section p, .tool-section li { color: var(--color-text-secondary); font-size: 17px; line-height: 1.75; }
.tool-section strong { color: var(--color-text); font-weight: 700; }
.tool-section a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.tool-prose { max-width: 720px; }
.tool-prose p { margin-bottom: 18px; }
.tool-prose p:last-child { margin-bottom: 0; }
.tool-prose ul { margin: 0 0 18px; list-style: none; }
.tool-prose li { position: relative; margin-bottom: 10px; padding-left: 22px; }
.tool-prose li::before { content: ""; position: absolute; top: .72em; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }

/* Qu'est-ce que : description à gauche, cartes « en un coup d'œil » à droite. */
.tool-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.tool-glance-block h3 { margin-top: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.tool-glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tool-glance div { padding: 16px 18px; border-radius: 14px; background: var(--color-card); box-shadow: 0 10px 24px rgba(var(--shadow-rgb), .08); }
.tool-glance dt { margin-bottom: 6px; color: var(--color-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-glance dd { color: var(--color-text); font-size: 15px; font-weight: 700; line-height: 1.4; }
/* À quoi sert : grille de cartes, icône de l'usage (lib/icons.php). */
.tool-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.tool-features li { padding: 24px 22px; border: 1px solid transparent; border-radius: var(--radius); background: var(--color-card); box-shadow: 0 16px 40px rgba(var(--shadow-rgb), .10); }
.tool-feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--color-tint-neutral); }
.tool-feature-icon img { width: 32px; height: 32px; object-fit: contain; }
/* Fond de la pastille selon le ton de l'usage (lib/icons.php : SLUAK_ICON_TONES). */
.tool-feature-icon:has(.icon-seo) { background: var(--color-tint-seo); }
.tool-feature-icon:has(.icon-sea) { background: var(--color-tint-sea); }
.tool-feature-icon:has(.icon-geo) { background: var(--color-tint-geo); }
.tool-feature-icon:has(.icon-web) { background: var(--color-tint-web); }
.tool-feature-icon:has(.icon-mail) { background: var(--color-tint-mail); }
.tool-features li strong { display: block; margin-bottom: 6px; font-size: 17px; }
.tool-section .tool-features p { margin: 0; font-size: 15px; line-height: 1.6; }
/* Avis : premier paragraphe en exergue, points forts et faibles en deux cartes. */
.tool-review > p:first-child { margin-bottom: 28px; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.5; font-weight: 600; color: var(--color-text); }
.tool-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.tool-pros, .tool-cons { padding: 28px 28px 20px; border-radius: var(--radius-lg); background: var(--color-accent-soft); }
.tool-cons { background: var(--color-danger-soft); }
.tool-section .tool-proscons h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 19px; color: var(--color-accent); }
.tool-section .tool-cons h3 { color: var(--color-danger); }
.tool-proscons h3::before { content: "✓"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--color-accent); color: var(--color-background); font-size: 15px; font-weight: 800; line-height: 30px; text-align: center; }
.tool-cons h3::before { content: "✕"; background: var(--color-danger); }
.tool-proscons ul { list-style: none; }
.tool-section .tool-proscons li { position: relative; margin: 0; padding: 12px 0 12px 26px; border-top: 1px solid rgba(var(--shadow-rgb), .07); color: var(--color-text); font-size: 15px; line-height: 1.55; }
.tool-section .tool-proscons li::before { content: ""; position: absolute; top: 20px; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.tool-section .tool-cons li::before { background: var(--color-danger); }
/* Vaut-il la peine : « Oui, si » et « Pas forcément, si » côte à côte. */
.tool-worth { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-worth p { padding: 32px 28px 28px; border-radius: var(--radius-lg); background: var(--color-accent-soft); font-size: 16px; line-height: 1.7; }
.tool-worth p + p { background: var(--color-danger-soft); }
.tool-worth p strong { display: block; margin-bottom: 12px; font-size: 24px; letter-spacing: -.02em; color: var(--color-accent); }
.tool-worth p + p strong { color: var(--color-danger); }
/* « Notre conseil » : paragraphes suivants (alternatives), pleine largeur sous les deux cas, fond neutre ; titre traduit dans data-advice. */
.tool-worth p:nth-child(n+3) { grid-column: 1 / -1; background: var(--color-surface); border: 1px solid var(--color-border); }
.tool-worth p:nth-child(3)::before { content: attr(data-advice); display: block; margin-bottom: 12px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--color-text); }
/* Prix : tableau arrondi, première formule payante mise en avant par le gras des mensuels. */
.tool-pricing { max-width: none; }
.tool-pricing > p:first-child { max-width: 720px; }
.tool-pricing table { width: 100%; margin: 24px 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 15px; }
.tool-pricing th, .tool-pricing td { padding: 16px 18px; border-bottom: 1px solid var(--color-border); color: var(--color-text-secondary); text-align: left; vertical-align: top; }
.tool-pricing tr:last-child td { border-bottom: 0; }
.tool-pricing tbody tr { transition: background .2s var(--ease); }
.tool-pricing tbody tr:hover { background: var(--color-surface); }
.tool-pricing th { background: var(--color-ink); color: var(--color-on-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-pricing td:first-child { color: var(--color-text); font-weight: 800; }
.tool-pricing td:nth-child(2) { color: var(--color-text); font-size: 17px; font-weight: 800; white-space: nowrap; }
.tool-section .tool-pricing-source { margin: 0 0 24px; color: var(--color-muted); font-size: 13px; }
.tool-pricing ul { max-width: 720px; }
/* FAQ : accordéon. */
/* FAQ centrée : badge (point vert + « FAQ »), titre sans filet, liste au milieu. */
.tool-section-faq { text-align: center; }
.tool-section-faq h2 { margin-inline: auto; }
.tool-section-faq h2::before { display: none; }
.tool-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 18px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-accent); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.tool-section .tool-badge { color: var(--color-accent); font-size: 15px; line-height: 1.2; }
.tool-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.tool-faq-list { max-width: var(--max-reading); margin-inline: auto; text-align: left; }
.tool-faq { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 10px; padding: 0 22px; background: var(--color-background); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.tool-faq[open] { border-color: transparent; box-shadow: 0 12px 32px rgba(var(--shadow-rgb), .08); }
.tool-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; color: var(--color-text); font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.tool-faq summary::-webkit-details-marker { display: none; }
.tool-section .tool-faq summary h3 { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.tool-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--color-surface); color: var(--color-accent); font-size: 20px; line-height: 28px; text-align: center; transition: transform .25s var(--ease); }
.tool-faq[open] summary::after { content: "−"; }
.tool-faq summary:hover { color: var(--color-accent); }
.tool-section .tool-faq p { margin: 0 0 20px; font-size: 16px; }
/* Appel à contact et date de vérification. */
.tool-cta { display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; align-items: center; margin-top: 24px; padding: 40px 44px; border-radius: var(--radius-lg); background: var(--color-ink); color: var(--color-on-ink); }
.tool-cta-title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--color-on-ink); }
.tool-cta p { color: var(--color-on-ink-secondary); font-size: 16px; }
.tool-cta-button { grid-row: 1 / span 2; grid-column: 2; justify-self: end; padding: 16px 28px; border-radius: 999px; background: var(--color-primary); color: var(--color-ink); font-weight: 800; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tool-cta-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 35%, transparent); }
.tool-checked { margin-top: 32px; color: var(--color-muted); font-size: 13px; text-align: center; }
/* Apparition des blocs au défilement (classes posées par script.js ; rien sans JavaScript ni avec reduced-motion). */
.tool-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tool-glance div:nth-child(2), .tool-features li:nth-child(2), .tool-proscons > div:nth-child(2), .tool-worth p:nth-child(2), .tool-faq:nth-child(2) { transition-delay: .08s; }
.tool-glance div:nth-child(3), .tool-features li:nth-child(3), .tool-faq:nth-child(3) { transition-delay: .16s; }
.tool-glance div:nth-child(4), .tool-features li:nth-child(4), .tool-faq:nth-child(4) { transition-delay: .24s; }
.tool-glance div:nth-child(n+5), .tool-features li:nth-child(n+5), .tool-faq:nth-child(n+5) { transition-delay: .32s; }
.tool-reveal-in { opacity: 1; transform: none; }


/* Tablette et mobile. */
@media (max-width: 960px) {
  .tool-columns { grid-template-columns: 1fr; gap: 40px; }
  .tool-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .tool-section { padding: 56px 0; }
}

@media (max-width: 760px) {
  .tool-section-band { padding: 56px calc(50vw - 50%); }
  .tool-proscons, .tool-worth, .tool-features { grid-template-columns: 1fr; }
  .tool-cta { grid-template-columns: 1fr; padding: 32px 28px; }
  .tool-cta-button { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 12px; }
  .tool-nav { margin-top: 32px; }
}

@media (max-width: 760px) {
  .tool-hero-band { padding-bottom: 120px; }
}

@media (max-width: 760px) {
  .tool-media { margin-top: -90px; }
}

@media (max-width: 760px) {
  .tool-nav a { padding: 14px 12px 12px; font-size: 13px; }
}

@media (max-width: 440px) {
  .tool-glance { grid-template-columns: 1fr; }
  .tool-logo { width: 60px; height: 60px; padding: 10px; border-radius: 16px; }
}

@media (max-width: 440px) {
  .tool-hero-band::before { width: 360px; height: 360px; top: -140px; right: -100px; }
}
