/* Disposition locale. Palette et commandes héritées des composants existants. */
#tp-mc-page { grid-column:1/-1; grid-row:6; order:8; margin:0; padding:0 14px 24px; min-width:0; background:transparent; }
#tp-mc-page .tp-mc-fil { margin:0 0 14px 6px; color:#ffffcc; font:14px/1.6 Arial,sans-serif; text-align:left; overflow-wrap:anywhere; }
#tp-mc-page .tp-mc-cadre { padding:24px; border-radius:12px; background:#f8f7ef; min-width:0; }
#tp-mc-page #tp-mc-titre { margin:0 0 20px; padding:0; color:var(--tp-cm-ink); text-align:left; font:bold clamp(1.25rem,2.2vw,1.625rem)/1.3 Arial,sans-serif; }
#tp-mc-page .tp-mc-layout { min-width:0; }
#tp-mc-page .tp-mc-jeu { margin:0; min-width:0; background:var(--tp-cm-white); }
#tp-mc-page .tp-mc-jeu h2 { font-size:clamp(1.2rem,2vw,1.5rem); }
#tp-mc-page .tp-mc-consigne { text-align:center; font-size:1rem; margin:18px 0 12px; }
#tp-mc-page .tp-mc-indices { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:12px 0 22px; }
#tp-mc-page button.tp-mc-indice { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:8px; min-width:90px; font-size:.875rem; border:1px solid var(--tp-cm-soft-line); }
#tp-mc-page .tp-mc-indice img { width:60px; height:60px; object-fit:contain; }
#tp-mc-page [data-mode="saisie"] .tp-mc-indice[aria-pressed="true"] { border-color:var(--tp-cm-blue); box-shadow:0 0 0 2px var(--tp-cm-blue); background:var(--tp-cm-blue-soft); }
#tp-mc-page .tp-mc-image-indisponible { max-width:130px; font-size:.8rem; }
#tp-mc-page .tp-mc-grille { display:grid; grid-template-columns:repeat(var(--tp-mc-colonnes),56px); grid-auto-rows:56px; gap:2px; justify-content:center; margin:8px auto 22px; }
#tp-mc-page .tp-mc-position { position:relative; min-width:0; }
#tp-mc-page .tp-mc-repere { position:absolute; top:1px; left:4px; font:800 13px/1.1 Arial,sans-serif; white-space:nowrap; color:var(--tp-cm-ink); pointer-events:none; z-index:3; }
#tp-mc-page .tp-mc-grille .tp-construction-proto-case { display:block; min-width:0; width:100%; height:100%; min-height:0; margin:0; padding:9px 2px 0; border-radius:6px; text-align:center; font-size:1.875rem; line-height:1.1; }
#tp-mc-page .tp-mc-grille input { touch-action:manipulation; user-select:text; }
#tp-mc-page .tp-mc-mot-actif .tp-construction-proto-case { background:#edf5ff; border-color:var(--tp-cm-blue); }
#tp-mc-page .tp-mc-grille :focus-visible { outline-offset:2px; position:relative; z-index:2; }
#tp-mc-page .tp-construction-proto-reserve { gap:8px; }
#tp-mc-page .tp-construction-proto-reserve button { width:48px; height:52px; font-size:1.75rem; }
#tp-mc-page .tp-mc-suivant { box-sizing:border-box; padding:14px 18px; border:2px solid var(--tp-cm-green-dark); border-radius:var(--tp-cm-radius); color:white; text-decoration:none; font-size:1.15rem; }
#tp-mc-page .tp-mc-grilles { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:18px 0 0; }
#tp-mc-page .tp-mc-grilles a { display:inline-flex; min-width:44px; min-height:44px; align-items:center; justify-content:center; box-sizing:border-box; color:var(--tp-cm-blue-dark); background:white; border:1px solid var(--tp-cm-line); border-radius:8px; text-decoration:none; }
#tp-mc-page .tp-mc-grilles [aria-current="page"] { background:var(--tp-cm-blue); color:white; }
#tp-mc-page .tp-mc-grilles :focus-visible { outline:3px solid var(--tp-cm-focus); outline-offset:3px; }
#tp-mc-page .tp-mc-annonce-gauche { display:none; width:160px; padding:0; background:transparent; text-align:center; }
#tp-mc-page .tp-mc-annonce-gauche .tp-ad-label { display:block; color:var(--tp-cm-muted); font:12px/1.4 Arial,sans-serif; margin-bottom:8px; }
#tp-mc-page .tp-mc-annonce-gauche .pubVerticaleGauche { margin:0; width:160px; height:600px; }
#tp-mc-page .tp-mc-annonce-verticale-factice { box-sizing:border-box; display:grid; place-content:center; width:160px; height:600px; padding:8px; border:1px solid #c9cec3; color:#51584e; background:#eeeee9; font:14px/1.5 Arial,sans-serif; }
#tp-mc-page .tp-mc-annonce-bas { margin-top:160px; text-align:center; }
#tp-mc-page .tp-mc-annonce-bas>p { color:#ffffcc; font:12px Arial,sans-serif; text-align:center; }
#tp-mc-page .tp-mc-annonce-factice { display:grid; place-items:center; min-height:280px; width:90%; margin:15px auto; padding:15px; box-sizing:border-box; color:#374151; background:#eee; border:1px dashed #777; font:14px Arial,sans-serif; }
#tp-mc-page .tp-mc-erreur { padding:24px; color:var(--tp-cm-ink); background:#fffdf7; border-radius:12px; }
#tp-mc-page [hidden] { display:none!important; }
.tp-mc-hote #affichage728x90 .tp-mc-ad-label { display:block; text-align:center; color:#ffffcc; font:12px/1.4 Arial,sans-serif; }
.tp-mc-hote #affichage728x90 .pubHorizontaleHeader { width:728px; height:90px; }
.tp-mc-hote #affichage728x90 .tp-mc-header-factice { display:grid; place-items:center; box-sizing:border-box; border:1px dashed #ffffcc; color:#ffffcc; font:14px Arial,sans-serif; }
@media(min-width:1100px) {
 #tp-mc-page #tp-mc-titre { margin-left:310px; }
 #tp-mc-page .tp-mc-layout { display:grid; grid-template-columns:160px minmax(0,1fr); column-gap:150px; }
 #tp-mc-page .tp-mc-jeu { grid-column:2; grid-row:1; }
 #tp-mc-page .tp-mc-annonce-gauche { display:block; grid-column:1; grid-row:1; align-self:center; }
}
@media(max-width:1199px) { .tp-mc-hote #affichage728x90 { display:none; } }
@media(max-width:600px) {
 #tp-mc-page .tp-mc-repere { font-size:12px; }
 #tp-mc-page { padding:0 8px 24px; }
 #tp-mc-page .tp-mc-fil { margin-left:12px; }
 #tp-mc-page .tp-mc-cadre { padding:16px 4px 12px; }
 #tp-mc-page #tp-mc-titre { padding:0 8px; }
 #tp-mc-page .tp-mc-jeu { padding:16px 8px; }
 #tp-mc-page .tp-mc-indices { gap:6px; }
 #tp-mc-page button.tp-mc-indice { min-width:0; width:80px; padding:6px; }
 #tp-mc-page .tp-mc-grille { grid-template-columns:repeat(var(--tp-mc-colonnes),44px); grid-auto-rows:50px; }
 #tp-mc-page .tp-mc-grille .tp-construction-proto-case { font-size:1.625rem; }
 #tp-mc-page .tp-construction-proto-reserve button { width:44px; min-width:44px; height:48px; font-size:1.5rem; }
 #tp-mc-page [data-vue="reserve-zone"] { padding:10px 0; }
 #tp-mc-page .tp-mc-suivant { width:100%; }
}
