/* Page Google Ads du Pilotage — s'appuie sur les jetons de style.css. */

.page-sea { display: block; height: calc(100vh - 53px); }
.page-sea .contenu { height: 100%; }
.sea { max-width: 1180px; margin: 0 auto; }
.sea-attente { opacity: .55; transition: opacity .2s; pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.sea-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sea-titre h1 { font-size: 1.45rem; margin: 0 0 .25rem; }
.sea-titre p { margin: 0; }
.sea-outils { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pastille.ok { background: var(--ok-doux); color: var(--ok); }

.segment { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; }
.segment button { background: none; border: 0; border-radius: 7px; padding: .35rem .7rem; font-size: .9rem; color: var(--discret); font-weight: 600; white-space: nowrap; }
.segment button.actif { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(16,32,42,.08); }
.segment button span { font-weight: 400; color: var(--discret); margin-left: .2rem; }
.segment.petit button { font-size: .82rem; padding: .28rem .6rem; }
.secondaire.petit { font-size: .82rem; padding: .3rem .7rem; }
.secondaire:disabled { opacity: .5; cursor: not-allowed; }

.sea-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 18px 16px; margin-bottom: 14px; }
.sea-carte-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--bord); }
.sea-carte-tete h2 { font-size: 1.05rem; margin: 0; }

/* test */
.sea-test-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 18px; }
.sea-test-grille .etiquette { display: block; font-size: .78rem; color: var(--discret); }
.sea-test-grille b { display: block; font-family: var(--titre); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; margin: .1rem 0 .35rem; }
.sea-test-grille small { font-family: var(--corps); font-size: .8rem; font-weight: 400; color: var(--discret); }
.jauge { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.jauge i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.jauge.vert i { background: var(--ok); }
.jauge.orange i { background: var(--attention); }
.jauge.rouge i { background: var(--alerte); }
.sea-regle { margin: .9rem 0 0; }

/* alertes */
.sea-alertes { display: grid; gap: 8px; margin-bottom: 14px; }
.sea-alerte { display: flex; gap: .7rem; align-items: flex-start; border-radius: var(--rayon); padding: .6rem .9rem; background: var(--surface-2); border: 1px solid transparent; }
.sea-alerte > div, .sea-alerte { font-size: .92rem; }
.sea-alerte b { display: inline; }
.sea-alerte span:not(.ico):not(.sr) { display: block; color: var(--texte); opacity: .85; }
.sea-alerte .ico { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; background: var(--discret); margin-top: 1px; }
.sea-alerte.rouge { background: var(--alerte-doux); border-color: color-mix(in srgb, var(--alerte) 30%, transparent); }
.sea-alerte.rouge .ico { background: var(--alerte); }
.sea-alerte.rouge b { color: var(--alerte); }
.sea-alerte.orange { background: var(--attention-doux); }
.sea-alerte.orange .ico { background: var(--attention); }
.sea-alerte.orange b { color: var(--attention); }
.sea-alerte.vert { background: var(--ok-doux); }
.sea-alerte.vert .ico { background: var(--ok); }
.sea-alerte.vert b { color: var(--ok); }
.sea-alerte.info .ico { background: var(--accent); }

/* tuiles */
.sea-tuiles { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.sea-tuiles .tuile small { display: block; font-size: .78rem; color: var(--discret); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sea-secondaires { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .9rem; font-size: .86rem; color: var(--discret); }
.sea-secondaires b { color: var(--texte); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: .25rem; }

/* graphe */
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; font-size: .8rem; color: var(--discret); }
.legende i { display: inline-block; vertical-align: middle; margin-right: .35rem; }
.l-barre { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.l-budget { width: 16px; border-top: 2px dashed var(--discret); }
.l-point { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--surface); }
.sea-graphe-zone { position: relative; }
.sea-graphe { width: 100%; height: auto; display: block; overflow: visible; }
.sea-graphe .barre { fill: var(--accent); }
.sea-graphe .grille { stroke: var(--bord); stroke-width: 1; }
.sea-graphe .base { stroke: var(--discret); stroke-width: 1; opacity: .6; }
.sea-graphe .budget { stroke: var(--discret); stroke-width: 1.5; stroke-dasharray: 5 4; }
.sea-graphe .axe { fill: var(--discret); font: 11px var(--corps); }
.sea-graphe .point-demande { fill: var(--ok); stroke: var(--surface); stroke-width: 2; }
.sea-graphe .zone { fill: transparent; cursor: default; }
.sea-graphe .zone.survol { fill: var(--texte); fill-opacity: .05; }
.sea-bulle { position: absolute; top: 0; transform: translateX(-50%); background: var(--texte); color: var(--surface); border-radius: 8px; padding: .4rem .6rem; font-size: .8rem; pointer-events: none; white-space: nowrap; box-shadow: var(--ombre); z-index: 2; }
.sea-bulle b, .sea-bulle span { display: block; }
.sea-bulle .ok { color: #8fe0b5; }

/* tableaux */
.sea .tableau { overflow-x: auto; margin-top: .4rem; }
.sea-table { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
.sea-table th, .sea-table td { border-bottom: 1px solid var(--bord); padding: .45rem .6rem; text-align: left; vertical-align: top; white-space: nowrap; }
.sea-table th { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--discret); border-bottom: 2px solid var(--bord); }
.sea-table th.n, .sea-table td.n { text-align: right; }
.sea-table td.long { white-space: normal; min-width: 12em; }
.sea-table tbody tr:hover { background: var(--surface-2); }
.sea-table .sous { display: block; font-size: .8rem; color: var(--discret); }
.sea-table a { text-decoration: none; }
.attention { color: var(--attention); }
.puce.signe { background: var(--ok-doux); color: var(--ok); }
.puce.annule { text-decoration: line-through; }

.sea-filtres-termes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: .4rem; }
.avis { display: inline-block; font-size: .78rem; font-weight: 600; padding: .05rem .5rem; border-radius: 99px; background: var(--surface-2); color: var(--discret); }
.avis.negatif { background: var(--alerte-doux); color: var(--alerte); }
.avis.examiner { background: var(--attention-doux); color: var(--attention); }
.avis.ok { background: var(--ok-doux); color: var(--ok); }
.sea-pied { margin: 6px 0 24px; }

/* annonces telles qu'affichées — classes neutres (voir sea.js) */
.sea-rendus { display: grid; gap: 12px; }
.sea-rendu { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 12px 14px; }
.sea-rendu-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin-bottom: .6rem; }
.sea-apercus { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.sea-apercu { background: var(--surface-2); border-radius: 8px; padding: .65rem .8rem; font-family: Arial, var(--corps); line-height: 1.4; }
.sea-apercu-haut { font-size: .8rem; color: var(--texte); }
.sea-apercu-url { font-size: .78rem; color: var(--discret); overflow-wrap: anywhere; }
.sea-apercu-titre { font-size: 1.12rem; color: var(--accent); margin: .15rem 0 .2rem; }
.sea-apercu-texte { font-size: .86rem; color: var(--texte); opacity: .85; }
.sea-apercu-plus { font-size: .82rem; color: var(--discret); margin-top: .2rem; }
.sea-apercu-liens { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .35rem; font-size: .86rem; color: var(--accent); }
.sea-apercu-compte { font-size: .76rem; color: var(--discret); margin-top: .45rem; font-family: var(--corps); }
.sea-elements, .sea-replie { margin-top: .7rem; font-size: .88rem; }
.sea-elements summary, .sea-replie summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.sea-elements-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; margin-top: .5rem; }
.sea-elements-grille .etiquette { display: block; font-size: .78rem; color: var(--discret); margin-bottom: .2rem; }
.sea-elements ul { margin: 0; padding-left: 1.1rem; }
.sea-elements li { margin: .15rem 0; }
.sea-elements li.refuse { text-decoration: line-through; color: var(--alerte); }
.sea-rendu-lien { display: inline-block; margin-top: .5rem; font-size: .85rem; }

@media (max-width: 760px) {
  .page-sea { height: auto; }
  .sea-tete { align-items: flex-start; }
  .segment button { padding: .35rem .5rem; font-size: .85rem; }
  .sea-carte { padding: 12px; }
  .sea-graphe-zone { overflow-x: auto; }
  .sea-graphe { min-width: 560px; }
  .segment { flex-wrap: wrap; }
}
