/* Habillage des guides PTEM et AMP — classes réelles des pages. */
.guide-corps{padding:var(--s-lg) 0 var(--s-md);display:block}
.guide-corps > .corps-guide{min-width:0}

.content-section.guide-bandeau,
.guide-bandeau{
  margin:0 calc(-1 * var(--gutter));
  padding:clamp(1.5rem,3.2vw,2.2rem) var(--gutter);
  scroll-margin-top:110px;
  background:#fff;
}
.content-section.guide-bandeau--pale,
.guide-bandeau.guide-bandeau--pale{background:var(--teal-pale)}
.content-section h2{
  font-size:clamp(1.55rem,2.4vw + .7rem,2.125rem);
  font-weight:700;margin:0 0 .85rem;max-width:none;line-height:1.2;color:var(--navy);
}
.content-section h3,.content-section h4{
  font-size:1.12rem;font-weight:700;margin:1.4rem 0 .45rem;line-height:1.3;color:var(--navy);
}
.content-section p{
  max-width:none;font-size:1.125rem;line-height:1.68;margin:0 0 1.05rem;
}
.section-number{
  font-size:.78rem!important;font-weight:800;letter-spacing:.14em;color:var(--teal-texte);
  margin:0 0 .35rem!important;max-width:none;
}

.source-row{margin:-.25rem 0 1.05rem!important;display:flex;flex-wrap:wrap;gap:.4rem;max-width:none}
.source-chip{display:inline-flex;align-items:center;gap:.25rem;width:fit-content;max-width:100%;
  background:var(--teal-pale);border:1px solid rgba(6,156,156,.32);color:var(--teal-texte);border-radius:999px;
  padding:.16rem .55rem;font-size:.74rem;font-weight:600;text-decoration:none;line-height:1.25}
.source-chip::before{content:none}
.source-chip::after{content:"↗";font-size:.72em;opacity:.75}
.source-chip:hover{background:var(--teal-texte);color:#fff;border-color:var(--teal)}
.inline-sources{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0 1.1rem;max-width:none}
.fact-card .source-chip,.card .source-chip{align-self:flex-start;width:fit-content}

.status-line{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1rem}
.status-badge{display:inline-block;background:#FFF3CF;border:1px solid #E0BE55;color:#5A3E00;
  border-radius:999px;padding:.32rem .9rem;font-size:.81rem;font-weight:700}
.status-note{font-size:.85rem}

.step{margin:1rem 0;max-width:none;background:#fff;border:1px solid var(--teal-zone);border-radius:12px;box-shadow:inset 3px 0 0 var(--teal)}
.cta-row{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.15rem 0}
.button{display:inline-flex;align-items:center;gap:.5rem;border-radius:999px;text-decoration:none;
  font-weight:650;min-height:46px;padding:.8rem 1.6rem;font-size:.95rem}
.button.primary{background:var(--navy);color:#fff}
.button.primary:hover{background:var(--navy-2)}
.button.secondary{background:transparent;color:var(--navy);border:2px solid var(--navy)}
.button.secondary:hover{background:var(--navy);color:#fff}
.button.ghost{background:transparent;color:var(--navy);border:2px solid var(--navy)}

.hero-guide{
  background:var(--teal-zone);
  margin:0 calc(-1 * var(--gutter));
  padding:clamp(1.4rem,3vw,2rem) var(--gutter) clamp(1.6rem,3.4vw,2.3rem);
}
.hero-guide h1{color:var(--navy);max-width:none}
.hero-guide .lead{font-size:1.125rem;line-height:1.65;max-width:none}
.hero-guide .lead-small{font-size:1.05rem;opacity:.9}

.card-grid{display:grid;gap:1rem;margin:1.1rem 0 1.3rem}
.card-grid.two{grid-template-columns:1fr}
@media(min-width:720px){.card-grid{grid-template-columns:repeat(2,1fr)}}
.card{
  background:#fff;border:1px solid var(--teal-zone);border-radius:12px;
  padding:clamp(1.5rem,2.4vw,2rem);
}
.card h3,.card h4{font-size:1.06rem;font-weight:700;margin:0 0 .55rem;line-height:1.25;color:var(--navy)}
.card p{margin:0 0 .7rem;font-size:1.05rem;max-width:none}
.card p:last-child{margin:0}
.card.accent-blue,.card.accent-teal,.card.accent-mint,.card.accent-violet{
  border-color:var(--teal-zone);background:#fff;
}
.card.accent-teal{box-shadow:inset 3px 0 0 var(--teal)}
.card.accent-blue,.card.accent-mint,.card.accent-violet{box-shadow:inset 3px 0 0 var(--teal)}

.fact-grid{display:grid;gap:.9rem;margin:1.1rem 0 1.4rem}
@media(min-width:720px){.fact-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.fact-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.fact-card{
  background:#fff;border:1px solid var(--teal-zone);border-radius:12px;
  padding:clamp(1.5rem,2.4vw,2rem);margin:0;
  display:flex;flex-direction:column;gap:.35rem;align-items:flex-start;
}
.fact-grid .fact-card:nth-child(even){background:#fff;border-color:var(--teal-zone)}
.fact-card p{margin:0;font-size:1.05rem;max-width:none}
.fact-kicker{
  display:block;font-size:.72rem;font-weight:800;letter-spacing:.09em;
  text-transform:uppercase;color:var(--teal-texte);opacity:.95;margin-bottom:.2rem;
}

.callout{
  background:#fff;border:1px solid var(--teal-zone);border-radius:12px;
  padding:clamp(1.5rem,2.4vw,2rem);margin:1.1rem 0 1.3rem;max-width:none;
  font-size:1.05rem;line-height:1.65;
}
.callout strong{display:block;margin-bottom:.4rem;color:var(--navy);font-size:1.05rem}
.callout.official{background:#fff;border-color:var(--teal-zone);box-shadow:inset 3px 0 0 var(--teal)}
.callout.correction{background:#FFF6E3;border-color:#E0BE55;color:#5A3E00}
.callout.warning{background:var(--warning-bg);border-color:#d48b16;color:#66440d}

.content-section ul,.content-section ol{max-width:none;margin:.5rem 0 1.15rem;padding-left:1.3rem}
.content-section li{margin-bottom:.45rem;line-height:1.65;font-size:1.125rem}
.feature-section{margin:0}
.rich p{margin-bottom:1.05rem}
.note{font-size:.95rem;opacity:.8;max-width:none}
.text-cta{display:inline-block;font-weight:700;text-decoration:none;
  border-bottom:2px solid var(--teal);margin-top:.3rem}
.source-list{list-style:none;margin:.7rem 0 0;padding:0;max-width:none}
.source-list li{padding:.7rem 0;border-bottom:1px solid rgba(18,6,114,.14);font-size:1.02rem;line-height:1.55}
.source-list li:last-child{border-bottom:0;padding-bottom:0}
.source-list li > a{display:block;margin-bottom:.22rem;font-weight:700;text-decoration:none;
  border-bottom:2px solid var(--teal);width:fit-content;padding-bottom:1px}
.source-list li > a:hover{color:var(--teal-texte)}
.sources-panel{border:0;border-radius:0;max-width:none}
.sources-panel h3{font-size:1.05rem;margin-bottom:.8rem;color:var(--navy)}
.content-section a+*{margin-left:.15rem}

.toc{
  background:#fff;border:1px solid var(--teal-zone);border-radius:12px;
  padding:clamp(1.5rem,2.4vw,2rem);margin:1.2rem 0 1.4rem;max-width:none;
}
.toc-accent{box-shadow:inset 3px 0 0 var(--teal)}
.toc > strong{
  display:block;margin:0 0 1rem;padding:0 0 .75rem;
  border-bottom:1px solid var(--teal-zone);
  font-size:1.08rem;font-weight:700;letter-spacing:0;text-transform:none;
  color:var(--navy);
}
.toc ul{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:1fr;gap:.15rem 2rem;
}
.toc li{margin:0;padding:0;break-inside:avoid}
.toc a{
  display:block;text-decoration:none;font-weight:600;color:var(--navy);
  padding:.45rem 0;line-height:1.4;
}
.toc a:hover{color:var(--teal-texte);text-decoration:underline}
@media(min-width:1100px){
  .toc ul{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

.compact{margin-block:.6rem}
.sqb-wrap{margin:1.1rem 0}
.sqb-photo{display:block;border-radius:14px;overflow:hidden}
.sqb-photo img{width:100%;height:auto;display:block}
.carte-est .banniere img,.cliniques-carte .banniere img{width:100%;height:auto;display:block}

/* Retouche visuelle des guides PTEM et AMP — 21 septembre 2026.
   Palette Santé Québec conservée, contenu et structure inchangés. */

/* Le guide commence par une zone blanche, puis alterne avec le vert pâle. */
.hero-guide{
  background:#fff;
  border-top:1px solid var(--teal-zone);
  border-bottom:1px solid var(--teal-zone);
  padding-top:clamp(2rem,4vw,3.8rem);
  padding-bottom:clamp(2.2rem,5vw,4.6rem);
}
.hero-guide h1{
  font-size:clamp(2.2rem,4.2vw,4rem);
  line-height:1.1;
}
.hero-guide .eyebrow{
  font-size:.86rem;
  letter-spacing:.1em;
}
.hero-guide .lead{
  font-size:clamp(1.15rem,1vw + .9rem,1.4rem);
  line-height:1.58;
}
.hero-guide .status-line{margin-bottom:1.35rem}
.hero-guide .status-badge.status-ok{
  background:var(--teal-pale);
  color:#055f59;
  border-color:#9de8e1;
  font-size:.92rem;
  padding:.42rem .9rem;
}
.hero-guide .status-note{font-size:.98rem}

/* Sections pleines largeur, avec une alternance visible et institutionnelle. */
.content-section.guide-bandeau,
.guide-bandeau{
  padding-top:clamp(2.1rem,4vw,4rem);
  padding-bottom:clamp(2.1rem,4vw,4rem);
  background:#fff;
}
.content-section.guide-bandeau--pale,
.guide-bandeau.guide-bandeau--pale{
  background:var(--teal-zone);
}
.content-section h2{
  font-size:clamp(1.8rem,2vw + 1rem,2.65rem);
  line-height:1.16;
}
.content-section p,
.content-section li{
  font-size:clamp(1.08rem,.55vw + .98rem,1.22rem);
  line-height:1.68;
}
.content-section h3,.content-section h4{
  font-size:clamp(1.2rem,.55vw + 1rem,1.45rem);
}
.section-number{font-size:1rem!important}

/* Cartes de faits : blanches, aérées, sans effet carré lourd. */
.fact-grid{gap:1.15rem;margin:clamp(1.5rem,3vw,2.4rem) 0}
.fact-card{
  min-height:100%;
  background:#fff;
  border:1px solid rgba(6,156,156,.3);
  border-radius:16px;
  padding:clamp(1.45rem,2.2vw,2.2rem);
  box-shadow:0 8px 24px rgba(18,6,114,.07);
}
.fact-card strong{font-size:clamp(1.35rem,1vw + 1rem,1.7rem)}
.fact-card p{font-size:1.08rem;line-height:1.58}
.fact-kicker{font-size:.82rem}

/* Sommaire et repères : une bande verte entre le héros blanc et le premier chapitre. */
.toc{
  background:#fff;
  border:1px solid rgba(6,156,156,.3);
  border-radius:16px;
  box-shadow:0 8px 24px rgba(18,6,114,.06);
  padding:clamp(1.45rem,2.4vw,2.15rem);
  margin:clamp(1.5rem,3vw,2.4rem) 0;
}
.toc-accent{box-shadow:inset 4px 0 0 var(--teal),0 8px 24px rgba(18,6,114,.06)}
.toc > strong{font-size:1.25rem;padding-bottom:.9rem}
.toc a{font-size:1.08rem;padding:.52rem 0}

/* Les encadrés explicatifs suivent le même langage blanc/vert. */
.callout{
  background:#fff;
  border:1px solid rgba(6,156,156,.3);
  border-left:4px solid var(--teal);
  border-radius:14px;
  box-shadow:0 6px 18px rgba(18,6,114,.05);
  padding:clamp(1.35rem,2.3vw,2rem);
  font-size:1.08rem;
}
.callout.official{background:#fff;border-color:rgba(6,156,156,.3);box-shadow:inset 4px 0 0 var(--teal),0 6px 18px rgba(18,6,114,.05)}
.callout.correction{
  background:var(--teal-pale);
  border-color:rgba(6,156,156,.3);
  border-left-color:var(--teal);
  color:var(--navy);
}
.callout.warning{
  background:var(--warning-bg);
  border-color:#e4c77b;
  border-left-color:#d48b16;
}

/* Sources : vert pâle, au lieu de blocs bleu clair. */
.sources-panel{
  background:var(--teal-pale);
  padding-top:clamp(2rem,4vw,3.5rem);
  padding-bottom:clamp(2rem,4vw,3.5rem);
}
.source-list li{font-size:1.08rem}
.source-chip{font-size:.84rem;padding:.24rem .62rem}

/* Bannière Montérégie-Est commune, large et alignée sur le cadre du site. */
.zone-action.carte-est{
  background:var(--teal-zone);
  padding-top:clamp(2rem,4vw,3.6rem);
  padding-bottom:clamp(2.2rem,4vw,4rem);
}
.zone-action.carte-est .banniere{
  width:100%;
  max-width:none;
}
.zone-action.carte-est .banniere img{
  width:100%;
  height:auto;
}

/* À 320 px, on conserve une lecture simple et aucune ligne ne déborde. */
@media(max-width:680px){
  .hero-guide h1{font-size:clamp(2rem,8.5vw,2.8rem)}
  .hero-guide .lead{font-size:1.12rem}
  .content-section p,.content-section li{font-size:1.08rem}
  .toc a{font-size:1.04rem}
  .fact-grid{gap:.85rem}
}

main > .hero-guide ~ .fact-grid,
main > .hero-guide ~ .toc{
  background:var(--teal-zone);
  margin:0 calc(-1 * var(--gutter));
  padding:clamp(1.6rem,3vw,3rem) var(--gutter);
  border:0;
  border-radius:0;
  box-shadow:none;
  max-width:none;
}
main > .hero-guide ~ .fact-grid{padding-bottom:1rem}
main > .fact-grid + .toc{padding-top:1.25rem}
main > .hero-guide ~ .toc > strong{border-bottom-color:rgba(6,156,156,.28)}
.fact-card > span:not(.fact-kicker){font-size:1.05rem;line-height:1.6;opacity:1}
.fact-card .source-chip{margin-top:auto}
.content-section.guide-bandeau:not(.guide-bandeau--pale) .callout:not(.warning){background:var(--teal-pale)}
.content-section.guide-bandeau--pale .callout:not(.warning){background:#fff}

/* Places PTEM 2027 de l'Est (audit P15) : tableau daté dans la section Montérégie. */
.places-ptem{
  margin:1.2rem 0 1.4rem;max-width:52rem;
  background:#fff;border:1px solid rgba(6,156,156,.3);border-left:4px solid var(--teal);border-radius:14px;
  box-shadow:0 6px 18px rgba(18,6,114,.05);padding:clamp(1.2rem,2.2vw,1.8rem);
}
.places-ptem h3{margin:0 0 .5rem}
.places-ptem p{margin:.2rem 0 .6rem;max-width:none}
.places-defile{overflow-x:auto;margin:.4rem 0 .8rem}
.places{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.35}
.places th,.places td{padding:.5rem .45rem;border-bottom:1px solid rgba(18,6,114,.12);text-align:left;vertical-align:top}
.places thead th{font-size:.88rem;font-weight:700;color:var(--navy)}
.places thead th+th,.places td{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.places thead th+th{white-space:normal;min-width:6.5rem}
.places tbody th{font-weight:500}
.places tfoot th,.places tfoot td{font-weight:700;border-bottom:0}
.places tfoot tr:first-child th,.places tfoot tr:first-child td{border-top:2px solid rgba(6,156,156,.45)}
.places tfoot tr+tr th,.places tfoot tr+tr td{font-weight:500;opacity:.85}
.places sup,.places-ptem .note sup{font-size:.7em;margin-left:.1em}
@media(max-width:520px){
  .places{font-size:.95rem}
  .places th,.places td{padding:.45rem .25rem}
  .places thead th+th{min-width:0}
}
/* Besoins en établissement (DTMF) : coches centrées, en-têtes de sous-territoire compacts. */
.besoins-pem td,.besoins-pem thead th+th{text-align:center}
.besoins-pem thead th{font-size:.78rem}
.besoins-pem thead th[scope="colgroup"]{text-align:center;border-bottom:2px solid var(--teal)}
.besoins-pem tbody th{min-width:12rem;font-size:.92rem}
.besoins-pem .besoin-oui{display:inline-grid;place-items:center;width:1.4rem;height:1.4rem;border-radius:50%;background:var(--teal);color:#fff;font-weight:700;font-size:.8rem}
.besoins-pem .besoin-non{display:inline-grid;place-items:center;width:1.4rem;height:1.4rem;border-radius:50%;border:1.5px solid var(--muted,#64748b);color:var(--muted,#64748b);font-weight:700;font-size:.8rem;opacity:.7}
.besoins-pem td em{font-size:.78rem;color:var(--muted,#64748b);white-space:normal}
