/* Astuces de pannes : bascule, colonne des thématiques (pastilles sur mobile), cartes, onglets par appareil, bloc en direct.
   Couleurs : variables --oe-* d'OEIL (redéfinies en mode clair), rouge réservé aux alertes. */

.mtp-as { padding-top: 18px; padding-bottom: 48px; color: var(--oe-texte, #DCE5EF); }
.mtp-as a { color: inherit; }

/* La bascule « Incidents | Astuces | Actualités » est dans oeil.css (partagée par les trois pages). */

/* En-tête de page */
.mtp-as-tete { margin: 0 0 22px; max-width: 760px; }
.mtp-as-tete h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; color: var(--oe-encre, #F4F8FC); }
.mtp-as-surtitre { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oe-bleu-fonce, #5FD8DE); }
.mtp-as-intro { margin: 0; font-size: 17px; line-height: 1.55; color: var(--oe-texte-2, #C5D0DE); }

/* Grille : colonne des thématiques + contenu */
.mtp-as-grille { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.mtp-as-cote { position: sticky; top: 90px; padding: 14px; border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-radius: var(--oe-rayon, 18px); background: var(--oe-surface, rgba(22, 31, 44, .88)); }
.mtp-as-cote-titre { margin: 0 0 8px; padding: 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oe-discret, #AAB8C9); }
.mtp-as-cote ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mtp-as-cote a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 10px; font-size: 15px; line-height: 1.25; text-decoration: none; color: var(--oe-texte, #DCE5EF); }
.mtp-as-cote a:hover { background: var(--oe-surface-2, rgba(31, 43, 60, .92)); color: var(--oe-encre, #F4F8FC); }
.mtp-as-cote a[aria-current="page"] { background: var(--oe-bleu-clair, rgba(18, 181, 189, .16)); color: var(--oe-encre, #F4F8FC); font-weight: 700; box-shadow: inset 3px 0 0 var(--oe-bleu, #12B5BD); }
.mtp-as-cote a:focus-visible { outline: 2px solid var(--oe-bleu, #12B5BD); outline-offset: 1px; }
.mtp-as-nb { flex: none; min-width: 26px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; background: var(--oe-surface-3, rgba(42, 58, 80, .94)); color: var(--oe-texte-2, #C5D0DE); }

/* Sections et cartes */
.mtp-as-principal { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.mtp-as-section-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 12px; }
.mtp-as-section-tete h2 { margin: 0; font-size: 22px; line-height: 1.2; color: var(--oe-encre, #F4F8FC); }
.mtp-as-section-tete h2 a { text-decoration: none; }
.mtp-as-section-tete h2 a:hover { text-decoration: underline; }
.mtp-as-tout { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--oe-bleu-fonce, #5FD8DE) !important; }
.mtp-as-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mtp-as-carte { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-radius: 14px; background: var(--oe-surface, rgba(22, 31, 44, .88)); transition: transform .2s ease, border-color .2s ease; }
.mtp-as-carte:hover { transform: translateY(-2px); border-color: var(--oe-bord-3, rgba(140, 175, 205, .45)); }
.mtp-as-carte-titre { margin: 0; font-size: 17px; line-height: 1.3; color: var(--oe-encre, #F4F8FC); }
.mtp-as-carte-titre a { text-decoration: none; }
.mtp-as-carte-titre a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.mtp-as-carte-titre a:focus-visible::after { outline: 2px solid var(--oe-bleu, #12B5BD); outline-offset: 2px; }
.mtp-as-carte p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--oe-texte-2, #C5D0DE); }
.mtp-as-etq { align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--oe-bleu-clair, rgba(18, 181, 189, .16)); color: var(--oe-bleu-fonce, #5FD8DE); }
.mtp-as-vide { margin: 0; padding: 18px; border: 1px dashed var(--oe-bord-3, rgba(140, 175, 205, .45)); border-radius: 14px; color: var(--oe-texte-2, #C5D0DE); }
.mtp-as-vide a { text-decoration: underline; }

/* Colonne : titres de familles (masqués sur mobile) */
.mtp-as-fam { margin-top: 8px; padding: 6px 10px 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oe-discret, #AAB8C9); }

/* Vitrine : familles, cartes de thèmes, dernières astuces */
.mtp-as-famille { margin: 0 0 12px; font-size: 22px; line-height: 1.2; color: var(--oe-encre, #F4F8FC); }
.mtp-as-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mtp-as-theme { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-radius: 14px; background: var(--oe-surface, rgba(22, 31, 44, .88)); }
.mtp-as-theme-titre { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; line-height: 1.25; color: var(--oe-encre, #F4F8FC); }
.mtp-as-theme-titre a { text-decoration: none; }
.mtp-as-theme-titre a:hover { text-decoration: underline; }
.mtp-as-icone { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; background: var(--oe-bleu-clair, rgba(18, 181, 189, .16)); }
.mtp-as-theme-nb { margin: 0; font-size: 14px; font-weight: 700; color: var(--oe-bleu-fonce, #5FD8DE); }
.mtp-as-theme-liens, .mtp-as-derniers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mtp-as-theme-liens a, .mtp-as-derniers a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--oe-texte, #DCE5EF); }
.mtp-as-theme-liens a:hover, .mtp-as-derniers a:hover { text-decoration: underline; color: var(--oe-encre, #F4F8FC); }
.mtp-as-theme-liens li + li, .mtp-as-derniers li + li { border-top: 1px solid var(--oe-bord-2, rgba(130, 170, 200, .2)); }
.mtp-as-derniers li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* Page de thème : onglets par appareil et tri */
.mtp-as-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mtp-as-barre ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mtp-as-barre-lib { font-size: 14px; font-weight: 600; color: var(--oe-texte-2, #C5D0DE); }
.mtp-as-barre a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-radius: 999px; font-size: 15px; text-decoration: none; background: var(--oe-surface, rgba(22, 31, 44, .88)); color: var(--oe-texte, #DCE5EF); }
.mtp-as-barre a:hover { background: var(--oe-surface-2, rgba(31, 43, 60, .92)); }
.mtp-as-barre a[aria-current="true"] { border-color: var(--oe-bleu, #12B5BD); background: var(--oe-bleu-clair, rgba(18, 181, 189, .16)); color: var(--oe-encre, #F4F8FC); font-weight: 700; }
.mtp-as-barre a:focus-visible { outline: 2px solid var(--oe-bleu, #12B5BD); outline-offset: 1px; }

/* Recherche dans les astuces et compteur */
.mtp-as-recherche { margin: 0; }
.mtp-as-recherche label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--oe-texte-2, #C5D0DE); }
.mtp-as-recherche-ligne { display: flex; gap: 8px; }
.mtp-as-recherche input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-radius: 12px; background: var(--oe-surface, rgba(22, 31, 44, .88)); font: inherit; font-size: 16px; color: var(--oe-encre, #F4F8FC); }
.mtp-as-recherche input[type="search"]:focus-visible, .mtp-as-recherche button:focus-visible { outline: 2px solid var(--oe-bleu, #12B5BD); outline-offset: 1px; }
.mtp-as-recherche button { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--oe-accent-fort, #0E7C86); font: inherit; font-size: 15px; font-weight: 700; color: #FFFFFF; cursor: pointer; }
.mtp-as-recherche button:hover { filter: brightness(1.12); }
.mtp-as-recherche-fin { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: underline; }
.mtp-as-compte { margin: 0; font-size: 15px; color: var(--oe-texte-2, #C5D0DE); }

/* Mobile : la colonne devient une rangée de pastilles qui défile (sans défilement horizontal de la page) */
@media (max-width: 900px) {
	.mtp-as-grille { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.mtp-as-cote { position: static; padding: 0; border: 0; background: none; }
	.mtp-as-cote-titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.mtp-as-cote ul { flex-direction: row; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
	.mtp-as-cote li { flex: none; scroll-snap-align: start; }
	.mtp-as-fam { display: none; }
	.mtp-as-barre ul { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; max-width: 100%; }
	.mtp-as-barre li { flex: none; }
	.mtp-as-barre { flex-wrap: wrap; min-width: 0; }
	.mtp-as-cote a { white-space: nowrap; padding: 8px 14px; border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-radius: 999px; background: var(--oe-surface, rgba(22, 31, 44, .88)); }
	.mtp-as-cote a[aria-current="page"] { box-shadow: none; border-color: var(--oe-bleu, #12B5BD); }
}
@media (max-width: 480px) {
	.mtp-as-cartes, .mtp-as-themes { grid-template-columns: minmax(0, 1fr); }
	.mtp-as-recherche-ligne { flex-wrap: wrap; }
	.mtp-as-recherche button { flex: 1 1 100%; }
}

/* Article : bloc en direct « Est-ce une panne générale ? » */
.mtp-statut { margin: 0 0 1.2em; padding: 14px 16px; border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-left: 4px solid var(--oe-bleu, #12B5BD); border-radius: 12px; background: var(--oe-surface, rgba(22, 31, 44, .88)); }
.mtp-statut p { margin: 0; }
.mtp-statut p + p, .mtp-statut ul { margin-top: 8px; }
.mtp-statut ul { padding-left: 20px; }
.mtp-statut-pt { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; vertical-align: middle; background: var(--oe-discret, #AAB8C9); }
.mtp-statut--ok { border-left-color: #2E8B57; }
.mtp-statut--ok .mtp-statut-pt { background: #2E8B57; }
.mtp-statut--alerte { border-left-color: var(--oe-rouge-marque, #C8281D); }
.mtp-statut--alerte .mtp-statut-pt { background: var(--oe-rouge-marque, #C8281D); }
.mtp-statut-maj { font-size: 14px; color: var(--oe-discret, #AAB8C9); }
.mtp-liens-oeil { padding-left: 20px; }

/* Article : onglets par appareil (sans JS, toutes les sections restent visibles l'une sous l'autre) */
.mtp-onglets { margin: 0 0 1.4em; }
.mtp-onglet > h3 { margin: 1em 0 .4em; font-size: 18px; }
.mtp-onglet ol { margin-top: 0; }
.mtp-onglet li { margin-bottom: .6em; }
.mtp-variantes { margin: .4em 0 0; padding-left: 18px; font-size: .95em; }
.mtp-variantes li { margin-bottom: .25em; }
.mtp-onglets--js { border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-radius: 14px; background: var(--oe-surface, rgba(22, 31, 44, .88)); overflow: hidden; }
.mtp-onglets-barre { display: flex; gap: 4px; padding: 6px; overflow-x: auto; border-bottom: 1px solid var(--oe-bord-2, rgba(130, 170, 200, .2)); background: var(--oe-surface-2, rgba(31, 43, 60, .92)); scrollbar-width: thin; }
.mtp-onglets-barre button { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--oe-texte-2, #C5D0DE); cursor: pointer; }
.mtp-onglets-barre button:hover { color: var(--oe-encre, #F4F8FC); background: var(--oe-surface-3, rgba(42, 58, 80, .94)); }
.mtp-onglets-barre button[aria-selected="true"] { background: var(--oe-accent-fort, #0E7C86); color: #FFFFFF; }
.mtp-onglets-barre button:focus-visible { outline: 2px solid var(--oe-bleu, #12B5BD); outline-offset: 1px; }
.mtp-onglets-barre small { margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.mtp-onglets--js .mtp-onglet { padding: 6px 18px 4px; }
.mtp-onglets--js .mtp-onglet[hidden] { display: none; }
.mtp-onglets--js .mtp-onglet > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mtp-onglets--js .mtp-onglet ol { padding-left: 22px; margin: 12px 0; }

/* Article : « Pour aller plus loin » */
.mtp-maillage { margin-top: 2em; padding: 18px 20px; border: 1px solid var(--oe-bord, rgba(130, 170, 200, .26)); border-radius: 14px; background: var(--oe-surface, rgba(22, 31, 44, .88)); }
.mtp-maillage h2 { margin-top: 0; }
.mtp-maillage-fin { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.mtp-as-carte { transition: none; }
	.mtp-as-carte:hover { transform: none; }
}
