/* Présentation de cette page uniquement. Les styles communs du site sont inchangés. */
#tp-francais-page {
  --tp-page-gutter: 14px;
  grid-column: 1 / -1;
  grid-row: 6;
  order: 8;
  min-width: 0;
}
#tp-francais-page > #module-tp-francais-majmin {
  margin-left: var(--tp-page-gutter);
  margin-right: var(--tp-page-gutter);
}

/* Commande sonore facultative : taille tactile, texte explicite et focus visible. */
#tp-francais-page #module-tp-francais-majmin .tp-tags { align-items: center; flex-wrap: wrap; }
#tp-francais-page #module-tp-francais-majmin .tp-sound-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  box-sizing: border-box; min-height: 44px; padding: 8px 12px; margin: 0;
  border: 1px solid #8fa395; border-radius: 8px; background: #fffdf8;
  color: #315447; font: bold 12px/1.3 Arial, sans-serif; cursor: pointer;
  touch-action: manipulation;
}
#tp-francais-page #module-tp-francais-majmin .tp-sound-toggle:focus-visible {
  outline: 3px solid #184e9b; outline-offset: 3px;
}
#tp-francais-page #module-tp-francais-majmin .tp-sound-icon,
#tp-francais-page #module-tp-francais-majmin .tp-sound-icon svg { display: block; width: 20px; height: 20px; }
#tp-francais-page #module-tp-francais-majmin .tp-sound-toggle[aria-pressed="true"] .tp-sound-cross,
#tp-francais-page #module-tp-francais-majmin .tp-sound-toggle[aria-pressed="false"] .tp-sound-waves { display: none; }
#tp-francais-page #module-tp-francais-majmin .tp-sound-toggle:disabled { cursor: default; opacity: .7; }


#tp-francais-page #module-tp-francais-majmin .tp-play-area {grid-template-columns:minmax(0,1fr); gap:0;}
#tp-francais-page #module-tp-francais-majmin .tp-ad-column {display:none;}
#tp-francais-page #module-tp-francais-majmin .tp-intro {margin-left:0;}
#tp-francais-page .tp-mots-accueil {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  box-sizing: border-box;
  margin: 18px var(--tp-page-gutter);
  padding: clamp(20px, 4vw, 44px);
  border-radius: 10px;
  background: #f8f7ef;
  color: #263b39;
  text-align: left;
  font: 16px/1.5 Arial, sans-serif;
}
.tp-mots-accueil h1 { margin: 0; color: #203d31; text-align: left; font: bold clamp(26px, 4vw, 38px)/1.15 Arial, sans-serif; }
.tp-mots-accueil p { margin: 14px 0; text-align: left; color: #354b3e; font: inherit; }
.tp-mots-accueil .tp-mots-exemple { display: flex; gap: 10px; align-items: center; margin-bottom: 0; }
.tp-mots-exemple span:first-child, .tp-mots-exemple span:last-child {
  padding: 4px 14px; border-radius: 7px; background: #e5efff; color: #194987; font-size: 20px; font-weight: bold;
}
.tp-mots-exemple span:last-child { background: #ddf3f0; color: #175c55; }
.tp-mots-accueil form { padding: clamp(16px, 2.5vw, 30px); background: #fffdf8; border: 1px solid #b7c8bd; border-radius: 10px; }
.tp-mots-accueil fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tp-mots-accueil legend { margin: 0 0 10px; padding: 0; font-weight: bold; font-size: 19px; }
.tp-mots-accueil label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #82978d; border-radius: 7px; cursor: pointer; }
.tp-mots-accueil label:has(input:checked) { background: #e6f2ec; border-color: #31654e; }
.tp-mots-accueil input[type="radio"] { accent-color: #215d43; }
.tp-mots-accueil small { display: block; font-size: 14px; }
.tp-mots-accueil button { min-height: 44px; padding: 10px 24px; border: 2px solid #936108; border-radius: 8px; background: #ffcc4d; color: #25392e; font: bold 18px Arial, sans-serif; cursor: pointer; }
.tp-mots-accueil :focus-visible { outline: 3px solid #2459a6; outline-offset: 3px; }
.tp-mots-hote .tp-mots-annonce { margin-top: 150px; text-align: center; }
.tp-mots-hote .tp-bottom-ad-label { display: block; margin: 0 auto 5px; color: #ffffcc; font: 12px/1.5 Arial,sans-serif; }
@media (max-width: 1199px) {
  .tp-mots-hote #affichage728x90 { display: none; }
}
@media (max-width: 720px) {
  #tp-francais-page .tp-mots-accueil { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  #tp-francais-page { --tp-page-gutter: 8px; }
}
