/* Outils SEO gratuits (/outils-seo/, /en/seo-tools/), Nemo Ciment
   Se charge après styles.css et landing.css, dont il reprend le socle (.lp, .lp-body, .btn,
   .lp-cta). Ne contient que ce qui est propre aux outils : hero sans photo, formulaire,
   jauges et aperçu des résultats Google. */

.outil-hero { padding: 150px 0 8px; }
.outil-hero h1 { font-size: clamp(30px, 4.2vw, 46px); }
.outil-hero .lp-lead { margin-bottom: 0; }
.outil-body { margin-top: 44px; }

/* --- formulaire --- */
.outil { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); padding: 26px 24px 8px; }
.champ { margin: 0 0 22px; }
.champ label { display: block; font-family: var(--font-display); font-size: 17px; color: var(--ink); margin: 0 0 8px; }
.champ input, .champ textarea {
  width: 100%; box-sizing: border-box; display: block;
  font: 16px/1.5 var(--font-body); color: var(--ink);
  background: #0d0d0f; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px;
}
.champ textarea { resize: vertical; min-height: 96px; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.champ .aide { font-size: 13.5px; color: var(--muted-2); margin: 6px 0 0; }

.mesure { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 10px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mesure b { color: var(--ink); font-weight: 600; }
.jauge { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); margin: 10px 0 0; overflow: hidden; }
.jauge i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--pink); transition: width .15s linear; }
.jauge.coupe i { background: #f5a524; }
.verdicts { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14.5px; line-height: 1.5; color: #d0d0d4; }
.verdicts li { position: relative; padding-left: 18px; margin: 3px 0; }
.verdicts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.verdicts li.ok::before { background: var(--pink); }
.verdicts li.coupe::before { background: #f5a524; }

/* --- récupération depuis une adresse --- */
.outil form.source { display: block; }
.source { margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.source-ligne { display: flex; gap: 10px; }
.source-ligne input { flex: 1; min-width: 0; }
.source-ligne .btn { flex: none; white-space: nowrap; }
.source-ligne .btn:disabled { opacity: .6; cursor: progress; }
.source .verdicts:empty { display: none; }
.source .verdicts li { overflow-wrap: anywhere; }
@media (max-width: 500px) {
  .source-ligne { flex-direction: column; }
}

/* --- aperçus --- */
.apercu-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 22px 0 8px; }
.apercu-tete .apercu-titre { margin: 0; }
.apercu-tete label { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.apercu-tete select { font: 14px var(--font-body); color: var(--ink); background: #0d0d0f; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 7px 10px; }
.apercu-tete select:focus { outline: none; border-color: var(--pink); }
.apercus h2 { margin-top: 38px; }
.apercu-titre { font-family: var(--font-display); font-size: 15px; color: var(--muted); margin: 22px 0 8px; }
/* width:100% : même raison que .lp dans landing.css, sinon le cadre de 652 px élargit la page
   au lieu de défiler dans son conteneur sur petit écran. */
.defile { width: 100%; overflow-x: auto; border-radius: 14px; scrollbar-width: thin; scrollbar-color: rgba(34,197,94,.45) transparent; }

/* Valeurs relevées sur google.fr le 16/10/2026 (mode clair). Ordinateur : colonne de 652 px,
   titre Google Sans 22/28, extrait Arial 14/22 sur 2 lignes. Mobile : zone de
   « écran - 32 px » (328 px à 360 px), titre Google Sans Flex 22/28 en 342 sur 2 lignes, extrait Roboto 14/20 sur 3 lignes.
   Arimo remplace Arial : mêmes largeurs de caractères, et disponible sur tous les systèmes. */
.serp { background: #fff; color: #1f1f1f; padding: 20px 24px; box-sizing: content-box; text-align: left; }
.serp.ordi { width: 652px; }
.serp.mobile { width: 328px; padding: 18px 16px; }
.serp .site { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.serp .ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; box-sizing: border-box; display: grid; place-items: center; font: 600 12px/1 'Google Sans', Arial, sans-serif; color: #4d5156; text-transform: uppercase; }
.serp .nom { font: 14px/20px 'Google Sans', Arial, sans-serif; color: #1f1f1f; }
.serp .url { font: 12px/18px Arimo, Arial, sans-serif; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp .site > div { min-width: 0; }
.serp .t { font: 400 22px/28px 'Google Sans', Arial, sans-serif; color: #1a0dab; margin: 0 0 4px; overflow-wrap: anywhere; }
.serp .d { font: 14px/22px Arimo, Arial, sans-serif; color: #6c6c6c; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.serp.mobile .t { font-family: 'Google Sans Flex', 'Google Sans', Roboto, sans-serif; font-weight: 342; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.serp.mobile .d { font: 14px/20px Roboto, Arial, sans-serif; -webkit-line-clamp: 3; }
.serp .vide { color: #9aa0a6; }

.lp-cta .sub a { color: var(--pink); font-style: italic; }

/* --- accès des robots IA --- */
.outil details.colle { margin: 4px 0 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.outil details.colle summary { cursor: pointer; font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.outil details.colle summary:hover { color: var(--pink); }
.outil details.colle[open] summary { margin-bottom: 14px; }
.outil form.form-colle { display: block; }
.champ textarea.code, .fichier ol { font: 13.5px/1.55 ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; }
.champ textarea.code { min-height: 170px; }
.resultats h2 { margin-top: 34px; }
.r-table { width: 100%; border-collapse: collapse; margin: 14px 0 0; }
.r-table th, .r-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(34,197,94,.12); font-size: 15px; color: #d0d0d4; }
.r-table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.r-table .r-sep th { padding-top: 22px; font-family: var(--font-display); font-size: 16px; color: var(--pink); border-bottom-color: var(--line); }
.r-table tbody th[scope] { font-weight: 400; width: 34%; }
.r-table code { font: 600 14.5px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); }
.r-ed { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.r-note { display: block; font-size: 13px; color: #f5c264; margin-top: 6px; line-height: 1.5; }
.r-statut { white-space: nowrap; width: 1%; }
.pastille { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.r-ok .pastille { background: rgba(34,197,94,.16); color: #4ade80; }
.r-bloque .pastille { background: rgba(245,165,36,.16); color: #f5c264; }
.r-detail { overflow-wrap: anywhere; }
.fichier { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.fichier summary { cursor: pointer; padding: 14px 16px; font-family: var(--font-display); color: var(--ink); }
.fichier .corps { max-height: 420px; overflow: auto; border-top: 1px solid var(--line); }
.fichier ol { margin: 0; padding: 10px 14px 10px 56px; color: #c9c9cf; white-space: pre-wrap; overflow-wrap: anywhere; }
.fichier ol li::marker { color: var(--muted-2); }
.fichier ol li.decisive { background: rgba(34,197,94,.12); color: var(--ink); }
.lp-body pre.exemple { font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: #d0d0d4; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; overflow-x: auto; margin: 6px 0 20px; }
.lp-table-wrap .lp-table td a { word-break: break-word; }
@media (max-width: 640px) {
  .r-table, .r-table tbody { display: block; width: 100%; }
  .r-table thead { display: none; }
  .r-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid rgba(34,197,94,.12); }
  .r-table th, .r-table td { border: 0; padding: 0; }
  .r-table tbody th[scope] { width: auto; }
  .r-table .r-sep { display: block; padding: 18px 0 4px; }
  .r-table .r-detail { grid-column: 1 / -1; font-size: 14px; }
}

/* --- page d'accueil des outils --- */
.liste-outils { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-body .liste-outils a { font-style: normal; }
.liste-outils a { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; background: rgba(255,255,255,.02); text-decoration: none; transition: border-color .2s; }
.liste-outils a:hover { border-color: rgba(34,197,94,.5); text-decoration: none; }
.liste-outils h2 { font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.liste-outils p { margin: 0; font-size: 16px; color: #d0d0d4; line-height: 1.65; }
.liste-outils .lien { display: inline-block; margin-top: 12px; color: var(--pink); font-size: 15px; }

@media (max-width: 900px) {
  .outil-hero { padding: 150px 0 4px; }
  .outil-body { margin-top: 34px; }
}
@media (max-width: 500px) {
  .outil { padding: 20px 16px 4px; }
}

/* --- notes et bloc Sources : même principe que les articles du blog (voir /blog/article.css) ---
   Un petit numéro dans le texte, la liste numérotée repliée en bas de page. */
sup.ref { font-size: 11px; line-height: 0; vertical-align: super; white-space: nowrap; scroll-margin-top: 100px; }
.lp-body sup.ref a { font-style: normal; font-weight: 600; padding: 0 1px; }
.lp-body .sources details { border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); overflow: hidden; }
.sources summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.sources summary::-webkit-details-marker { display: none; }
.lp-body .sources summary h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0; color: var(--ink); transition: color .2s; }
.sources summary:hover h2, .sources details[open] summary h2 { color: var(--pink); }
.sources .chev { flex: none; width: 22px; height: 22px; margin-left: auto; position: relative; }
.sources .chev::before { content: ""; position: absolute; left: 50%; top: 42%; width: 9px; height: 9px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translate(-50%, -50%) rotate(45deg); transition: transform .35s var(--ease-out), border-color .2s; }
.sources details[open] .chev::before { transform: translate(-50%, -20%) rotate(-135deg); border-color: var(--pink); }
.sources-in { padding: 2px 18px 16px; }
.lp-body .sources .note { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { font-size: 14px; line-height: 1.75; color: #b9b9c0; margin-bottom: 11px; scroll-margin-top: 110px; }
.sources li:last-child { margin-bottom: 0; }
.lp-body .sources li a { font-weight: 500; font-style: italic; }
.lp-body .sources .back { font-style: normal; font-weight: 400; margin-left: 7px; opacity: .65; }
.sources li:target, .sources li.cible { background: rgba(34,197,94,.09); border-radius: 6px; box-shadow: 0 0 0 6px rgba(34,197,94,.09); transition: background .3s, box-shadow .3s; }

/* --- contrôles de formulaire communs à tous les outils ---
   Menus déroulants, cases à cocher et barres de défilement aux couleurs du site. Les feuilles
   propres à un outil ne redéfinissent pas ces contrôles : elles ne gèrent que leur disposition. */
.outil-body { color-scheme: dark; }
.outil-body select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 15px/1.4 var(--font-body); color: var(--ink);
  background-color: #0d0d0f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%2322c55e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 9px 36px 9px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.outil-body select:hover { border-color: rgba(34,197,94,.45); }
.outil-body select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.outil-body select option { background: #0d0d0f; color: var(--ink); }

.outil-body input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; cursor: pointer;
  width: 20px; height: 20px; margin: 0; padding: 0; display: inline-grid; place-content: center;
  background: #0d0d0f; border: 1.5px solid rgba(255,255,255,.28); border-radius: 6px;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.outil-body input[type="checkbox"]::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px; border-left: 2px solid #0a0a0a; border-bottom: 2px solid #0a0a0a;
  transform: rotate(-45deg) scale(0); transition: transform .12s ease-out;
}
.outil-body input[type="checkbox"]:hover { border-color: rgba(34,197,94,.6); }
.outil-body input[type="checkbox"]:checked { background: var(--pink); border-color: var(--pink); }
.outil-body input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.outil-body input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
.outil-body input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }

/* barres de défilement : fines, vertes, coins arrondis (zones de texte, code, tableaux, aperçus) */
.outil-body * { scrollbar-width: thin; scrollbar-color: rgba(34,197,94,.45) transparent; }
.outil-body ::-webkit-scrollbar { width: 10px; height: 10px; }
.outil-body ::-webkit-scrollbar-track { background: transparent; }
.outil-body ::-webkit-scrollbar-thumb { background: rgba(34,197,94,.4); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.outil-body ::-webkit-scrollbar-thumb:hover { background: rgba(34,197,94,.65); background-clip: padding-box; }
.outil-body ::-webkit-scrollbar-corner { background: transparent; }

/* aperçus Google : coins arrondis des deux côtés, que la carte tienne dans la page ou défile */
.defile { width: fit-content; max-width: 100%; }
.serp { border-radius: 14px; }

/* boutons d'appel à l'action posés après chaque deuxième section de texte (outils/cta-outils.py) */
.cta-section { display: flex; justify-content: center; margin: 44px 0 0; }
.cta-section + section { margin-top: 62px; }
.lp-body .cta-section a.btn { color: #0a0a0a; text-decoration: none; text-align: center; max-width: 100%; }
.lp-body .cta-section a.btn-ghost { color: var(--ink); }
.lp-body .cta-section a.btn:hover { text-decoration: none; }
