/* D282 : outils gratuits de studio-solaire.fr (page commune, résultats, aperçus, QR code, mentions légales). Aucun style en ligne (CSP). */
.ot { max-width: 980px; }
.ot .surtitre a { color: inherit; }
.ot h1 { margin-bottom: var(--e-3); }
.ot .chapeau { max-width: 62ch; margin-bottom: var(--e-5); }
.ot h2 { font-size: var(--t-lg); margin: var(--e-6) 0 var(--e-3); }
.ot-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--e-3); }
.ot-form .ot-bouton { white-space: nowrap; }
.ot-form-large { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ot-form-large .ot-plein, .ot-form-large .ot-actions { grid-column: 1 / -1; }
.ot-form fieldset { border: 0; margin: 0; padding: 0; }
.ot-actions { display: flex; flex-wrap: wrap; gap: var(--e-2); align-items: center; }
.ot-resultat { margin-top: var(--e-5); }
.ot-resultat:empty { display: none; }
.ot-resultat[aria-busy="true"] { min-height: 4rem; }
.ot-etat { display: flex; align-items: center; gap: .6rem; margin: 0 0 var(--e-4); padding: .9rem 1.1rem; border: 1px solid var(--ligne); border-radius: var(--rayon); font-weight: 600; }
.ot-etat .ico { flex: none; }
.ot-ok { background: var(--succes-fond); border-color: #9fd8bb; color: #0b5134; }
.ot-ko { background: var(--danger-fond); border-color: #f0b4ae; color: #8a1c12; }
.ot-att, .ot-limite, .ot-invalide { background: var(--alerte-fond); border-color: #f2d08a; color: #6b4a00; }
.ot-info { background: var(--info-fond); border-color: #b9cbf6; color: #1b3a8a; }
.ot-attente { color: var(--texte-doux); font-weight: 400; background: var(--fond-alt); }
.ot-detail { display: block; color: var(--texte-doux); font-size: var(--t-sm); }
.ot-conseil { display: block; margin-top: .2rem; font-size: var(--t-sm); }
.ot-note { margin-top: var(--e-5); font-size: var(--t-sm); color: var(--texte-doux); max-width: 75ch; }
/* Liste de contrôles */
.ot-controles { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ot-c { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .8rem; align-items: start; padding: .75rem .9rem; border: 1px solid var(--ligne); border-radius: var(--rayon-sm); background: var(--blanc); }
.ot-c .badge { justify-content: center; }
.ot-c strong { display: block; }
/* Bilan et jauges */
.ot-bilan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--e-5); align-items: center; }
.ot-bilan h2 { margin: 0; }
.ot-jauges { display: flex; flex-wrap: wrap; gap: var(--e-4); margin: var(--e-3) 0 var(--e-2); }
.ot-jauge { position: relative; display: grid; justify-items: center; gap: .2rem; width: 92px; text-align: center; }
.ot-jauge svg { width: 64px; height: 64px; }
.ot-jauge circle { fill: none; stroke-width: 3.2; }
.ot-j-fond { stroke: var(--ligne); }
.ot-j-val { stroke-linecap: round; }
.ot-jauge strong { position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.ot-jauge span { font-size: var(--t-xs); color: var(--texte-doux); line-height: 1.25; }
.ot-j-bon .ot-j-val { stroke: #11875a; } .ot-j-bon strong { color: #0b6b47; }
.ot-j-moyen .ot-j-val { stroke: #d08a00; } .ot-j-moyen strong { color: #8a5a00; }
.ot-j-faible .ot-j-val { stroke: #d33b2c; } .ot-j-faible strong { color: #a52a1d; }
.ot-jauge-grande { width: 140px; }
.ot-jauge-grande svg { width: 120px; height: 120px; }
.ot-jauge-grande strong { height: 120px; font-size: 2.2rem; }
.ot-jauge-grande span { font-size: var(--t-sm); }
.ot-mesures { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: var(--e-3) 0 0; }
.ot-mesures div { padding: .7rem .9rem; border: 1px solid var(--ligne); border-radius: var(--rayon-sm); background: var(--fond-alt); }
.ot-mesures dt { font-size: var(--t-xs); color: var(--texte-doux); }
.ot-mesures dd { margin: .15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.ot-chaine { padding-left: 1.2rem; display: grid; gap: .35rem; }
.ot-chaine code { overflow-wrap: anywhere; }
.ot-compteurs { list-style: none; margin: 0 0 var(--e-3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--e-4); }
.ot-table-defile { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon-sm); }
.ot-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.ot-table th, .ot-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.ot-table th { background: var(--fond-alt); font-weight: 600; }
.ot-table td a { overflow-wrap: anywhere; }
.ot-l-casse td:first-child { border-left: 3px solid #d33b2c; }
.ot-cta { display: flex; flex-wrap: wrap; gap: var(--e-4); align-items: center; justify-content: space-between; margin-top: var(--e-6); background: var(--fond-alt); }
.ot-cta p { margin: .25rem 0 0; color: var(--texte-doux); }
/* Autres outils */
.ot-autres { margin-top: var(--e-7); padding-top: var(--e-5); border-top: 1px solid var(--ligne); }
.ot-autres ul { list-style: none; margin: 0 0 var(--e-3); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.ot-autre { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; border: 1px solid var(--ligne); border-radius: var(--rayon-sm); color: inherit; text-decoration: none; font-weight: 600; }
.ot-autre:hover, .ot-autre:focus-visible { border-color: var(--accent); }
.ot-autre .ico { color: var(--accent); flex: none; }
/* Page /outils */
.ot-index-cat { margin-top: var(--e-6); }
.ot-index-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--e-3); }
.ot-index-carte { display: grid; gap: .4rem; height: 100%; padding: var(--e-4); border: 1px solid var(--ligne); border-radius: var(--rayon); color: inherit; text-decoration: none; background: var(--blanc); }
.ot-index-carte:hover, .ot-index-carte:focus-visible { border-color: var(--accent); box-shadow: 0 6px 18px rgba(10,22,48,.08); }
.ot-index-carte .ico { color: var(--accent); }
.ot-index-carte strong { font-size: var(--t-md); }
.ot-index-carte span { color: var(--texte-doux); font-size: var(--t-sm); }
/* Aperçu Google */
.ot-serp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-4); }
.ot-serp-cadre { padding: var(--e-4); border: 1px solid var(--ligne); border-radius: var(--rayon); background: #fff; color: #202124; font-family: Arial, Helvetica, sans-serif; }
.ot-serp-cadre > p.ot-serp-quoi { margin: 0 0 .8rem; font-family: inherit; font-size: 12px; color: #70757a; text-transform: uppercase; letter-spacing: .06em; }
.ot-serp-site { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.ot-serp-ico { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: flex; align-items: center; justify-content: center; color: #5f6368; flex: none; }
.ot-serp-nom { font-size: 14px; color: #202124; line-height: 1.2; }
.ot-serp-url { font-size: 12px; color: #4d5156; line-height: 1.3; overflow-wrap: anywhere; }
.ot-serp-titre { margin: 0; font-size: 20px; line-height: 1.3; color: #1a0dab; font-weight: 400; }
.ot-serp-desc { margin: .25rem 0 0; font-size: 14px; line-height: 1.58; color: #4d5156; }
.ot-serp-mobile .ot-serp-titre { font-size: 18px; }
.ot-serp-ordi { grid-column: auto; }
.ot-compteur { font-size: var(--t-xs); color: var(--texte-doux); }
.ot-compteur.ot-trop { color: #a52a1d; font-weight: 600; }
/* Aperçu de partage */
.ot-cartes-sociales { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--e-4); }
.ot-social { border: 1px solid #dadde1; border-radius: 8px; overflow: hidden; background: #fff; color: #1c1e21; font-family: Helvetica, Arial, sans-serif; }
.ot-social-quoi { margin: 0; padding: .45rem .8rem; font-size: 12px; font-weight: 600; color: #606770; background: #f0f2f5; }
.ot-social-img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #e4e6eb; }
.ot-social-vide { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.91 / 1; background: #e4e6eb; color: #606770; font-size: 13px; text-align: center; padding: 1rem; }
.ot-social-texte { padding: .6rem .8rem .75rem; display: grid; gap: .15rem; }
.ot-social-dom { font-size: 12px; color: #606770; text-transform: uppercase; }
.ot-social-titre { font-size: 16px; font-weight: 600; line-height: 1.25; }
.ot-social-desc { font-size: 14px; color: #606770; line-height: 1.35; }
.ot-social-linkedin .ot-social-dom { text-transform: none; order: 2; }
.ot-social-whatsapp { background: #d9fdd3; border-color: #c4e8bd; }
.ot-social-whatsapp .ot-social-quoi { background: #c4e8bd; color: #1f4f1a; }
.ot-social-whatsapp .ot-social-wa { display: grid; grid-template-columns: 84px minmax(0, 1fr); margin: .5rem; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.05); }
.ot-social-whatsapp .ot-social-img, .ot-social-whatsapp .ot-social-vide { aspect-ratio: 1; height: 100%; font-size: 11px; padding: .3rem; }
/* QR code et carte d'avis */
.ot-qr { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--e-5); align-items: start; }
.ot-qr-apercu { display: grid; gap: var(--e-3); justify-items: center; padding: var(--e-4); border: 1px solid var(--ligne); border-radius: var(--rayon); background: #fff; position: sticky; top: 96px; }
.ot-qr-image { width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; color: var(--texte-doux); font-size: var(--t-sm); text-align: center; }
.ot-qr-image svg { width: 100%; height: 100%; }
.ot-qr-types { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--e-3); }
.ot-qr-types label { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1px solid var(--ligne-forte); border-radius: 999px; cursor: pointer; font-size: var(--t-sm); }
.ot-qr-types input { margin: 0; }
.ot-qr-types label:has(input:checked) { border-color: var(--accent); background: var(--info-fond); font-weight: 600; }
.ot-qr-champs[hidden] { display: none; }
.ot-qr-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-3); }
.ot-qr-champs .ot-plein { grid-column: 1 / -1; }
.ot-qr-boutons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.ot-lien-resultat { display: flex; gap: .5rem; align-items: stretch; }
.ot-lien-resultat input { flex: 1 1 auto; min-width: 0; }
.ot-carte-avis { display: grid; justify-items: center; gap: .6rem; max-width: 360px; margin: var(--e-4) auto 0; padding: var(--e-5); border: 2px dashed var(--ligne-forte); border-radius: var(--rayon); text-align: center; background: #fff; color: #111; }
.ot-carte-avis .ot-etoiles { font-size: 1.6rem; letter-spacing: .15em; color: #f4b400; }
.ot-carte-avis strong { font-size: 1.25rem; }
.ot-carte-avis .ot-qr-image { width: 200px; height: 200px; }
/* Mentions légales */
.ot-ml-texte { padding: var(--e-5); border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--blanc); }
.ot-ml-texte h3 { font-size: var(--t-md); margin: var(--e-4) 0 var(--e-2); }
.ot-ml-texte h3:first-child { margin-top: 0; }
.ot-ml-texte p { margin: 0 0 .5rem; }
.ot-entreprise { display: grid; gap: var(--e-3); }
.ot-entreprise-tete { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.ot-entreprise-tete h3 { margin: 0; font-size: var(--t-md); }
@media (max-width: 900px) {
  .ot-qr { grid-template-columns: 1fr; }
  .ot-qr-apercu { position: static; }
  .ot-serp { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ot-form, .ot-form-large, .ot-qr-champs { grid-template-columns: 1fr; }
  .ot-form .ot-bouton { width: 100%; justify-content: center; }
  .ot-bilan { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ot-jauges { justify-content: center; }
  .ot-c { grid-template-columns: 1fr; gap: .4rem; }
  .ot-c .badge { justify-self: start; }
}
/* Impression de la carte d'avis : seule la carte sort sur papier */
@media print {
  body.page-impression-avis * { visibility: hidden; }
  body.page-impression-avis .ot-carte-avis, body.page-impression-avis .ot-carte-avis * { visibility: visible; }
  body.page-impression-avis .ot-carte-avis { position: absolute; top: 2cm; left: 0; right: 0; border-style: solid; }
}
.ot > form + form, .ot > form + .ot-etat, .ot > .ot-etat + form { margin-top: var(--e-3); }
.ot-etapes { display: grid; gap: .4rem; padding-left: 1.3rem; }
.ot-qr-boutons { margin-top: var(--e-3); }
.ot fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ot input[type="color"] { padding: .25rem; cursor: pointer; }

/* D295 : guide et questions fréquentes sous chaque outil */
.ot-guide { margin-top: var(--e-7); max-width: 820px; }
.ot-guide h2 { font-size: var(--t-xl); margin: 0 0 var(--e-3); }
.ot-guide > p { color: var(--texte-doux); line-height: 1.7; }
.ot-guide-points { list-style: none; margin: var(--e-4) 0; padding: 0; display: grid; gap: var(--e-2); }
.ot-guide-points li { display: flex; gap: var(--e-2); align-items: flex-start; }
.ot-guide-points .ico { color: var(--succes); flex: none; margin-top: .15rem; }
.ot-guide-faq-t { margin-top: var(--e-6) !important; }
/* D306 : suite donnée au résultat (offre adaptée), sous la zone de résultat */
.ot-suite { display: flex; flex-wrap: wrap; gap: var(--e-4); align-items: center; justify-content: space-between; margin-top: var(--e-5); padding: var(--e-5); border-radius: var(--rayon-lg);
  background: var(--sv3-nuit, #061024); color: var(--blanc); }
.ot-suite-probleme { background: linear-gradient(135deg, #061024, #10295c); border-left: 4px solid #f2b84b; }
.ot-suite-texte { flex: 1 1 320px; min-width: 0; }
.ot-suite strong { display: block; font-size: 1.15rem; color: var(--blanc); }
.ot-suite p { margin: .35rem 0 0; color: rgba(255,255,255,.84); }
.ot-suite-actions { display: flex; flex-wrap: wrap; gap: var(--e-3); align-items: center; }
.ot-suite .btn-accent { background: var(--blanc); color: var(--sv3-nuit, #061024); border-color: var(--blanc); }
.ot-suite .btn-accent:hover, .ot-suite .btn-accent:focus-visible { background: #e3ecfa; }
.ot-suite-lien { color: var(--blanc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ot-suite-lien:hover, .ot-suite-lien:focus-visible { color: #cfe0fb; }
