/* École VD : copie isolée du style accueil, sans modification des CSS partagées. */
/* Accueil Tres Palmas uniquement. Aucun style partagé n'est modifié. */
.tp-school {
  --bg: #111413; --panel: #1b201e; --line: #343d37;
  --text: #f1f2e9; --muted: #b6beb7; --cyan: #65dbd0;
  --yellow: #f5ce62; --orange: #f29b72; --green: #9edb96;
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tp-school *, .tp-school *::before, .tp-school *::after { box-sizing: border-box; }
.tp-school [hidden] { display: none !important; }
.tp-school a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.tp-school a:hover { color: var(--cyan); }
.tp-school :focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
.tp-school img { display: block; max-width: 100%; height: auto; }
.tp-school h1, .tp-school h2, .tp-school h3, .tp-school p { margin: 0; }
.tp-school h1, .tp-school h2, .tp-school h3 { line-height: 1.15; text-wrap: balance; }
.tp-school button { font: inherit; }
.tp-school .shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.tp-school .skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--yellow); color: #111; transform: translateY(-160%); }
.tp-school .skip-link:focus { transform: translateY(0); }
.tp-school .site-header { position: sticky; top: 0; z-index: 5; background: #111413f5; border-bottom: 1px solid var(--line); }
.tp-school .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; }
.tp-school .brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: .07em; line-height: 1.3; }
.tp-school .brand small { display: block; margin-top: 4px; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }
.tp-school .brand-palms { width: 52px; height: 47px; flex-shrink: 0; object-fit: contain; }
.tp-school .site-nav > ul { display: flex; align-items: center; gap: 5px; list-style: none; padding: 0; margin: 0; }
.tp-school .site-nav a { display: block; padding: 10px 12px; font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 6px; }
.tp-school .site-nav a[aria-current="page"] { background: #26332e; color: var(--cyan); }
.tp-school .site-nav a:hover { background: #252c28; }
.tp-school .menu-toggle { padding: 8px 12px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.tp-school .menu-toggle span { margin-left: 9px; }
.tp-school .hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 60px; padding-block: 64px 74px; }
.tp-school .eyebrow { color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tp-school h1 { margin-top: 20px; font-size: clamp(40px, 4.9vw, 65px); font-weight: 650; letter-spacing: -.055em; }
.tp-school h1 span { color: var(--yellow); }
.tp-school .hero-lead { margin-top: 24px; max-width: 480px; font-size: 20px; line-height: 1.5; }
.tp-school .hero-copy > p:not(.eyebrow):not(.hero-lead) { max-width: 490px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.tp-school .signature { white-space: nowrap; color: var(--text); }
.tp-school .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.tp-school .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 19px; border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; }
.tp-school .button-primary { background: var(--yellow); color: #191c16; }
.tp-school .button-primary:hover { background: #ffdf88; color: #191c16; }
.tp-school .text-link { font-size: 13px; font-weight: 650; }
.tp-school .text-link span { margin-left: 9px; }
.tp-school .hero-logo { display: grid; place-items: center; }
.tp-school .hero-logo img { width: 340px; }
.tp-school .section-block { padding-block: 42px; scroll-margin-top: 110px; }
.tp-school .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.tp-school h2 { margin-top: 9px; font-size: clamp(26px, 3vw, 35px); font-weight: 600; letter-spacing: -.035em; }
.tp-school .section-heading > p { color: var(--muted); font-size: 13px; }
.tp-school .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-school .universe-card { --accent: var(--cyan); display: flex; flex-direction: column; min-width: 0; padding: 25px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 10px; background: var(--panel); }
.tp-school .accent-yellow { --accent: var(--yellow); }
.tp-school .accent-orange { --accent: var(--orange); }
.tp-school .accent-green { --accent: var(--green); }
.tp-school .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-school .category { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.tp-school .card-number { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.tp-school .card-media { display: flex; align-items: center; justify-content: center; height: 162px; margin-block: 20px 24px; padding: 10px; border-radius: 6px; background: #f0eee5; text-decoration: none; overflow: hidden; }
.tp-school .card-media img { max-width: 90%; max-height: 142px; width: auto; height: auto; object-fit: contain; }
.tp-school .book-media { background: #252f2b; }
.tp-school .book-media img { height: 142px; width: auto; }
.tp-school .school-mark { flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px; color: #25332b; background: #e9e5ce; }
.tp-school .school-mark > span:first-child { font-size: 38px; font-weight: 750; line-height: 1; letter-spacing: -.06em; }
.tp-school .school-vd { color: #526c39; margin-left: 8px; }
.tp-school .school-line { margin-top: 16px; font-size: 10px; letter-spacing: .02em; }
.tp-school h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.tp-school h3 a { text-decoration: none; }
.tp-school .universe-card > p { margin-top: 13px; font-size: 13px; color: var(--muted); }
.tp-school .resource-links { padding-left: 16px; margin-block: 15px 0; font-size: 12px; line-height: 1.9; }
.tp-school .resource-links a, .tp-school .book-links a { color: var(--text); }
.tp-school .card-action { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 22px; margin-top: auto; font-size: 12px; font-weight: 650; text-decoration: none; color: var(--accent); }
.tp-school .universe-card > p:last-of-type { margin-bottom: 18px; }
.tp-school .inspiration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tp-school .feature-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.tp-school .feature-copy { padding: 26px; }
.tp-school .feature-copy h3 { margin-top: 8px; }
.tp-school .feature-copy p { margin-block: 12px 18px; font-size: 14px; color: var(--muted); }
.tp-school .preservation-card { display: grid; grid-template-columns: 40% 60%; align-items: center; }
.tp-school .preservation-card > img { height: 100%; min-height: 310px; width: 100%; object-fit: cover; }
.tp-school .history-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 62px; margin-top: 24px; border-top: 1px solid var(--line); }
.tp-school .history-intro > p:not(.eyebrow) { margin-block: 18px; max-width: 470px; font-size: 14px; color: var(--muted); }
.tp-school .history-logo { margin-top: 24px; }
.tp-school .past-projects { padding-top: 8px; }
.tp-school .past-project { display: flex; align-items: center; gap: 18px; padding-block: 24px; border-bottom: 1px solid var(--line); text-decoration: none; }
.tp-school .past-project > span:first-child, .tp-school .past-project > span:nth-child(2) { flex: 1; }
.tp-school .past-project strong { font-size: 17px; font-weight: 550; }
.tp-school .past-project small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.tp-school .past-project img { max-height: 56px; width: auto; }
.tp-school .advertising { margin-bottom: 24px; }
.tp-school .advertising:has(ins:empty) { display: none; }
.tp-school .site-footer { padding-block: 38px; border-top: 1px solid var(--line); background: #0c100e; }
.tp-school .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.tp-school .footer-name { font-weight: 700; letter-spacing: .12em; font-size: 15px; text-decoration: none; }
.tp-school .site-footer p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.tp-school .site-footer .copyright { font-size: 11px; }
.tp-school .site-footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
@media (max-width: 1050px) {
  .tp-school .header-inner { flex-wrap: wrap; padding-block: 18px; gap: 14px; }
  .tp-school .site-nav { width: 100%; }
  .tp-school .site-nav > ul { flex-wrap: wrap; }
  .tp-school .hero { gap: 24px; }
  .tp-school .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-school .history-section { gap: 40px; }
}
@media (max-width: 760px) {
  .tp-school .shell { width: calc(100% - 36px); }
  .tp-school .header-inner { min-height: 74px; padding-block: 15px; }
  .tp-school .brand { font-size: 14px; }
  .tp-school .brand small { font-size: 9px; }
  .tp-school.js .site-nav[data-open="false"] { display: none; }
  .tp-school .site-nav > ul { display: block; }
  .tp-school .site-nav a { padding: 13px 12px; }
  .tp-school .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 34px 38px; }
  .tp-school .hero-logo { grid-row: 1; }
  .tp-school .hero-logo img { width: 210px; }
  .tp-school h1 { font-size: clamp(38px, 10vw, 56px); }
  .tp-school .hero-lead { font-size: 18px; }
  .tp-school .hero-actions { gap: 20px; }
  .tp-school .section-block { padding-block: 30px; }
  .tp-school .section-heading { display: block; }
  .tp-school .section-heading > p { margin-top: 12px; }
  .tp-school .card-grid, .tp-school .inspiration-grid, .tp-school .history-section { grid-template-columns: 1fr; }
  .tp-school .universe-card { padding: 23px; }
  .tp-school .card-media { height: 156px; }
  .tp-school .history-section { gap: 28px; }
  .tp-school .preservation-card { grid-template-columns: 35% 65%; }
  .tp-school .preservation-card .feature-copy { padding: 20px; }
  .tp-school .preservation-card h3 { font-size: 18px; overflow-wrap: anywhere; }
  .tp-school .footer-inner { grid-template-columns: 1fr 1fr; }
  .tp-school .footer-inner > div { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .tp-school .universe-card { transition: border-color .18s ease; }
  .tp-school .universe-card:hover { border-color: var(--accent); }
}

/* Native disclosures: click, Enter/Space and touch, including without JS. */
.tp-school .school-nav-item { position: relative; }
.tp-school .school-menu > summary { padding: 10px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tp-school .school-menu[open] > summary { background: #26332e; color: var(--cyan); }
.tp-school .school-menu > summary:hover { background: #252c28; }
.tp-school .school-years { display: block; position: absolute; left: 0; top: calc(100% + 12px); width: 320px; max-width: calc(100vw - 36px); max-height: min(65vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: 10px; margin: 0; list-style: none; background: #1b201e; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px #0006; }
.tp-school .school-menu:not([open]) > .school-years { display: none; }
.tp-school .school-year > summary, .tp-school .school-subject > summary { padding: 10px; cursor: pointer; font-size: 13px; border-radius: 4px; }
.tp-school .school-year > summary { color: var(--yellow); font-weight: 650; }
.tp-school .school-year > summary:hover, .tp-school .school-subject > summary:hover { background: #28322d; }
.tp-school .year-content { margin: 0 0 8px 12px; border-left: 1px solid var(--line); padding-left: 8px; }
.tp-school .school-subject ul { display: block; list-style: none; margin: 0; padding: 0 0 8px 12px; }
.tp-school .school-subject a { font-size: 12px; font-weight: 400; padding: 9px 10px; overflow-wrap: anywhere; }
.tp-school .school-empty { padding: 8px; font-size: 12px; color: var(--muted); }
.tp-school .universe-card > .activity-status { display: inline-block; align-self: flex-start; padding: 6px 10px; border: 1px solid #6b6243; border-radius: 5px; color: var(--yellow); background: #302c20; font-size: 12px; font-weight: 600; }
.tp-school .video-preview { aspect-ratio: 16 / 9; background: #0c100e; position: relative; }
.tp-school .video-preview > a { display: block; height: 100%; }
.tp-school .video-preview img { width: 100%; height: 100%; object-fit: contain; }
.tp-school .video-preview-label { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 6px; background: #111413ed; color: var(--text); font-weight: 650; font-size: 13px; }
.tp-school .video-preview a:hover .video-preview-label { background: #26332e; color: var(--cyan); }
.tp-school .video-inline { margin: 18px 26px 0; }
.tp-school .video-inline > summary { cursor: pointer; color: var(--cyan); padding-block: 8px; font-size: 13px; }
.tp-school .video-inline p { margin-top: 10px; color: var(--muted); font-size: 12px; }
.tp-school .video-player { aspect-ratio: 16 / 9; background: #0c100e; }
.tp-school .video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) {
  .tp-school .school-menu > summary { padding: 13px 12px; }
  .tp-school .school-years { position: static; width: 100%; max-width: none; max-height: 45vh; margin-top: 6px; box-shadow: none; }
  .tp-school .site-nav { max-height: calc(100dvh - 100px); overflow-y: auto; }
  .tp-school .brand-palms { width: 42px; height: 38px; }
}

/* Simple X link: no feed, widget or extra third-party script. */
.tp-school .x-media { flex-direction: column; gap: 16px; background: #252f2b; color: var(--text); }
.tp-school .x-icon { flex-shrink: 0; color: var(--muted); }
.tp-school .x-handle { font-size: clamp(17px, 2vw, 23px); font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.tp-school .x-follow { align-self: flex-start; margin-top: 24px; }
.tp-school .x-media + h3 { margin-bottom: auto; }
.tp-school .past-project img[src$="scalogo.gif"] { max-width: 80px; height: auto; }

.tp-school .school-main { padding-block: 28px 64px; }
.tp-school .school-intro { max-width: 760px; padding-block: 28px; }
.tp-school .school-intro h1 { margin-bottom: 24px; }
.tp-school .school-intro p + p { margin-top: 16px; color: var(--muted); }
.tp-school .school-lead { font-size: 22px; }
.tp-school .year-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.tp-school .year-grid h2 a { text-decoration: none; }
.tp-school .year-grid h2 { font-size: 40px; }
.tp-school .subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-block: 24px; }
.tp-school .subject-section { scroll-margin-top: 190px; }
.tp-school .subject-section h2, .tp-school .pending h3 { font-size: 27px; }
.tp-school .exercise-list { list-style: none; padding: 0; margin: 20px 0 0; }
.tp-school .exercise-list li + li { border-top: 1px solid var(--line); }
.tp-school .exercise-list a { display: block; padding-block: 14px; font-size: 16px; overflow-wrap: anywhere; }
.tp-school .exercise-list small { display: block; color: var(--muted); margin-bottom: 12px; }
.tp-school .year-tabs, .tp-school .subject-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 20px; }
.tp-school .year-tabs a, .tp-school .subject-tabs a { border: 1px solid var(--line); padding: 10px 18px; border-radius: 7px; text-decoration: none; }
.tp-school .year-tabs a[aria-current] { background: var(--yellow); color: #191c16; border-color: var(--yellow); font-weight: 700; }
.tp-school .breadcrumb, .tp-school .school-note, .tp-school .back-link { font-size: 14px; color: var(--muted); }
.tp-school .back-link { margin-top: 32px; }
.tp-school .school-note { margin-top: 12px; scroll-margin-top: 190px; }
.tp-school .pending > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); max-width: 750px; }
.tp-school .empty-state { padding: 32px; margin-block: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.tp-school .empty-state p { margin-block: 20px; }
.tp-school .old-version { margin-top: 20px; color: var(--muted); font-size: 14px; }
.tp-school .old-version summary { cursor: pointer; padding-block: 10px; }
.tp-school .school-subject-links { list-style: none; padding-left: 10px; }
@media (max-width: 1050px) { .tp-school .year-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
 .tp-school .year-grid, .tp-school .subject-grid { grid-template-columns: 1fr; }
 .tp-school .school-intro { padding-block: 20px; }
 .tp-school .school-lead { font-size: 19px; }
 .tp-school .school-main { padding-top: 20px; }
 .tp-school .empty-state { padding: 24px; }
 .tp-school .subject-section { scroll-margin-top: 110px; }
}

.tp-school .school-subject-links { list-style: none; padding: 0 0 8px 18px; margin: 0; }
.tp-school .school-subject-links a { font-weight: 400; font-size: 12px; }
