/* Tous les styles sont isolés : aucun changement à la charte ou aux extensions existantes. */
.sel-od, .sel-od-invite { --sod-dark: #163d37; --sod-green: #14685a; --sod-emerald: #e9f5ef; --sod-line: #cfe0d7; --sod-ink: #203b35; --sod-muted: #556f66; --sod-warm: #fff5dc; box-sizing: border-box; color: var(--sod-ink); font-family: inherit; }
.sel-od *, .sel-od-invite * { box-sizing: border-box; }
.sel-od { max-width: 1080px; margin: 0 auto 3rem; line-height: 1.57; }
.sel-od h1, .sel-od h2, .sel-od h3, .sel-od-invite h2 { font-family: inherit; color: var(--sod-dark); margin-top: 0; line-height: 1.24; }
.sel-od h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.035em; color: white; margin: .55rem 0 1.1rem; }
.sel-od h2, .sel-od-invite h2 { font-size: clamp(1.4rem, 2.35vw, 1.9rem); letter-spacing: -.018em; margin-bottom: .65rem; }
.sel-od h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.sel-od p, .sel-od-invite p { margin: 0 0 .8rem; }
.sel-od-hero { color: white; background: linear-gradient(118deg, #0e5449 0%, #287e6c 100%); border-radius: 21px; padding: clamp(1.5rem, 4vw, 3.5rem); margin: 1rem 0 1.6rem; }
.sel-od-hero p { font-size: 1.09rem; max-width: 780px; }
.sel-od-hero-small { font-size: .95rem !important; color: #e0f8ea; }
.sel-od-eyebrow { font-weight: 800; font-size: .77rem; letter-spacing: .11em; text-transform: uppercase; color: #cef3e0; }
.sel-od-eyebrow.dark { color: #2b7764; }
.sel-od-action { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border: 1px solid #176352; border-radius: 11px; background: #186e5d; color: #fff !important; text-decoration: none !important; padding: .8rem 1.12rem; font: inherit; font-weight: 750; line-height: 1.3; cursor: pointer; box-shadow: none; transition: transform .12s ease, filter .12s ease; }
.sel-od-action:hover, .sel-od-action:focus-visible { transform: translateY(-1px); filter: brightness(1.07); }
.sel-od-action-light { color: var(--sod-dark) !important; background: white; border-color: white; margin-top: .35rem; }
.sel-od-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; margin: 1.5rem 0; }
.sel-od-principle { border: 1px solid var(--sod-line); border-radius: 16px; padding: 1.25rem; background: #fbfdfc; }
.sel-od-principle h2 { font-size: 1.17rem; }
.sel-od-principle p { font-size: .97rem; margin-bottom: 0; }
.sel-od-step { font-weight: 800; color: #17806a; font-size: .9rem; margin-bottom: .5rem; }
.sel-od-spontaneous { background: var(--sod-warm); border-left: 5px solid #e5ac3f; padding: 1.45rem 1.5rem; border-radius: 0 15px 15px 0; margin: 1.3rem 0; }
.sel-od-spontaneous h2 { font-size: 1.34rem; }
.sel-od-spontaneous p { margin-bottom: 0; }
.sel-od-guidance { background: #f0f8f5; padding: 1.4rem 1.5rem; border: 1px solid var(--sod-line); border-radius: 15px; margin: 1.3rem 0; }
.sel-od-guidance h2 { font-size: 1.32rem; }
.sel-od-private { font-size: .87rem; color: var(--sod-muted); border-top: 1px solid var(--sod-line); padding-top: .75rem; margin-bottom: 0 !important; }
.sel-od-section { margin: 2rem 0; }
.sel-od-section-heading { display: flex; justify-content: space-between; align-items: end; gap: .8rem; margin-bottom: .6rem; }
.sel-od-section-heading h2 { margin-bottom: .25rem; }
.sel-od-count-tag { white-space: nowrap; border-radius: 50px; color: #1c6255; background: var(--sod-emerald); padding: .4rem .8rem; font-size: .84rem; font-weight: 750; }
.sel-od-entry-list { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-top: 1rem; }
.sel-od-entry { background: white; border: 1px solid #d8e5dc; border-radius: 12px; padding: .92rem 1.05rem; }
.sel-od-entry.is-chosen { border-color: #67ac92; background: #fcfffd; box-shadow: inset 3px 0 0 #32866c; }
.sel-od-entry-top { display: flex; gap: .5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: .45rem; }
.sel-od-entry-name { font-size: 1.01rem; color: var(--sod-dark); }
.sel-od-soft-tag { border-radius: 40px; background: var(--sod-emerald); font-size: .73rem; color: #336b55; padding: .23rem .55rem; font-weight: 700; }
.sel-od-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; font-size: .9rem; color: #3e5d51; margin: .45rem 0 .7rem; }
.sel-od-starter-list .sel-od-examples { grid-template-columns: 1fr; }
.sel-od-choices { display: flex; gap: .5rem; flex-wrap: wrap; }
.sel-od-choice { display: inline-flex !important; align-items: center; cursor: pointer; gap: .4rem; border: 1px solid #d4e2d9; border-radius: 8px; padding: .48rem .7rem; background: #f5faf7; font-size: .92rem; margin: 0 !important; font-weight: 650; }
.sel-od-choice:has(input:checked) { background: #daf1e2; border-color: #3e9a73; }
.sel-od-choice input { margin: 0 !important; width: 18px; height: 18px; accent-color: #176d57; }
.sel-od-precision { display: none !important; font-weight: 600; color: var(--sod-muted); font-size: .83rem; margin-top: .65rem !important; }
.sel-od-entry.is-chosen .sel-od-precision { display: block !important; }
.sel-od-precision input { display: block; margin: .2rem 0 0 !important; max-width: 100%; width: 100%; font: inherit; font-size: .91rem; background: white; border: 1px solid var(--sod-line); border-radius: 8px; padding: .55rem .7rem; color: var(--sod-ink); }
.sel-od-tools { background: #f0f8f4; border: 1px solid var(--sod-line); padding: 1rem 1.15rem; border-radius: 12px; display: flex; gap: 1rem; justify-content: space-between; align-items: end; flex-wrap: wrap; }
.sel-od-search-label { flex: 1; min-width: 210px; font-size: .9rem; font-weight: 700; color: var(--sod-dark); }
.sel-od-search-label input { display: block; width: 100%; margin: .35rem 0 0; padding: .65rem .85rem; border: 1px solid #a9c9bb; border-radius: 8px; background: white; color: var(--sod-ink); font: inherit; font-weight: 400; }
.sel-od-tool-buttons, .sel-od-summary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sel-od-small-button { border: 1px solid #accabc; color: #1b584e; background: #fff; border-radius: 9px; padding: .65rem .85rem; font: inherit; font-size: .91rem; font-weight: 700; cursor: pointer; }
.sel-od-small-button:hover { background: #e9f7ee; }
.sel-od-results { margin: .55rem 0; color: #526c60; font-size: .88rem; }
.sel-od-families { display: flex; flex-direction: column; gap: .6rem; }
.sel-od-family { border: 1px solid var(--sod-line); border-radius: 12px; overflow: hidden; background: #fff; }
.sel-od-family > summary { display: flex; align-items: center; gap: .65rem; padding: .8rem 1.05rem; background: #f5faf7; color: #234f43; font-size: 1.01rem; font-weight: 780; cursor: pointer; list-style: none; }
.sel-od-family > summary::marker { display:none; }
.sel-od-family > summary::-webkit-details-marker { display:none; }
.sel-od-family > summary::after { content: '+'; margin-left: .2rem; font-size: 1.35rem; font-weight: 500; color: #1b695a; }
.sel-od-family[open] > summary::after { content: '−'; }
.sel-od-family-number { background: #d9ede1; color: #276653; border-radius: 6px; padding: .22rem .43rem; font-size: .76rem; min-width: 29px; text-align:center; }
.sel-od-family-count { margin-left: auto; font-size: .77rem; font-weight: 650; color: #607b6b; white-space: nowrap; }
.sel-od-family > .sel-od-entry-list { margin: 0; padding: 1rem; background: white; }
.sel-od-family > .sel-od-entry-list .sel-od-entry { box-shadow: none; }
.sel-od-hint { font-size: .9rem; color: var(--sod-muted); margin-top: .85rem !important; }
.sel-od-mychoices { padding: 1.3rem; border-radius: 17px; border: 1px solid var(--sod-line); background: #f8fbf9; }
.sel-od-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.sel-od-kpi { background: white; border-radius: 12px; border: 1px solid var(--sod-line); padding: 1.1rem; text-align: center; }
.sel-od-kpi span { display: block; font-size: 1.85rem; color: var(--sod-green); font-weight: 850; line-height: 1.2; }
.sel-od-kpi small { font-size: .86rem; color: var(--sod-muted); }
.sel-od-selected { display: grid; gap: .8rem; margin: 1rem 0; }
.sel-od-selected > p { color: var(--sod-muted); }
.sel-od-picked-group { background: white; padding: 1rem 1.2rem; border: 1px solid var(--sod-line); border-radius: 12px; }
.sel-od-picked-group ul { list-style: disc !important; padding-left: 1.15rem; margin: .5rem 0 0; }
.sel-od-picked-group li { margin: .32rem 0; }
.sel-od-picked-group small, .sel-od-picked-group em { display: block; font-size: .84rem; color: var(--sod-muted); }
.sel-od-summary-actions { margin-top: 1rem; }
.sel-od-reset { color: #814b42; border-color: #e7cbc7; }
.sel-od-downloads-section { padding: 1.5rem; background: var(--sod-emerald); border-radius: 16px; }
.sel-od-download-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
.sel-od-download { display: flex; flex-direction: column; background: white; border: 1px solid var(--sod-line); border-radius: 12px; padding: 1.15rem; color: var(--sod-green) !important; text-decoration: none !important; }
.sel-od-download:hover { outline: 2px solid #99c7b0; }
.sel-od-download strong { font-size: 1.03rem; }
.sel-od-download span { color: var(--sod-muted); font-size: .85rem; }
.sel-od-next { padding: 1.45rem; background: #1b5f50; color: #fff; border-radius: 17px; margin-top: 2rem; }
.sel-od-next h2 { color: white; }
.sel-od-next-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.sel-od-next-links a { color: #173e34 !important; background: white; border-radius: 8px; padding: .6rem .8rem; text-decoration: none !important; font-size: .87rem; font-weight: 750; }
/* Invitations : priorité à la lisibilité, visibles dès l'entrée des pages. */
.sel-od-invite { display: block; width: min(1100px, calc(100% - 2rem)); margin: 1.15rem auto 1.4rem; border-radius: 15px; background: linear-gradient(105deg,#e9f5ec,#fdf6e5); border: 1px solid #c9dfd1; padding: 1.25rem 1.45rem; clear: both; }
.sel-od-invite-flag { font-size: .76rem; color: #1c6555; font-weight: 850; letter-spacing: .085em; margin-bottom: .3rem; }
.sel-od-invite-body { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1.5rem; }
.sel-od-invite h2 { font-size: clamp(1.25rem, 2.1vw, 1.75rem); }
.sel-od-invite p { font-size: .93rem; margin-bottom: .45rem; }
.sel-od-invite .sel-od-invite-note { font-style: italic; margin-bottom: 0; }
.sel-od-invite .sel-od-action { background: #126453; color: white !important; border-color: #126453; margin: 0; white-space: normal; max-width: 240px; text-align: center; }
.sel-od [hidden], .sel-od-family[hidden] { display: none !important; }
.sel-od :focus-visible, .sel-od-invite :focus-visible { outline: 3px solid #edb744 !important; outline-offset: 3px; }
@media (max-width: 760px) {
  .sel-od { padding: 0 .5rem; }
  .sel-od-principles { grid-template-columns: 1fr; }
  .sel-od-examples { grid-template-columns: 1fr; gap: .2rem; }
  .sel-od-hero { border-radius: 15px; }
  .sel-od-download-grid { grid-template-columns: 1fr; }
  .sel-od-section-heading { flex-direction: column; align-items: start; }
  .sel-od-invite-body { grid-template-columns: 1fr; gap: .75rem; }
  .sel-od-invite .sel-od-action { max-width: none; width: 100%; }
  .sel-od-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sel-od-kpi { padding: .6rem .3rem; }
  .sel-od-kpi small { font-size: .73rem; }
  .sel-od-family > summary { flex-wrap: wrap; }
  .sel-od-family-count { display: none; }
}
@media (max-width: 420px) {
  .sel-od-choice { width: 100%; }
  .sel-od-hero, .sel-od-guidance, .sel-od-mychoices, .sel-od-downloads-section { padding: 1.1rem; }
}
@media print {
  @page { margin: 15mm; }
  body { background: white !important; }
  .sel-od-invite, .sel-od-hero, .sel-od-principles, .sel-od-spontaneous, .sel-od-guidance, #sel-od-starters, #sel-od-catalogue, .sel-od-downloads-section, .sel-od-next, .sel-od-summary-actions { display: none !important; }
  .sel-od { margin: 0; max-width: none; color: #222; }
  .sel-od-mychoices { padding: 0; border: none; background: white; }
  .sel-od-picked-group { break-inside: avoid; border: 1px solid #bbb; }
  .sel-od-kpi { border: 1px solid #999; }
  .sel-od-selected { display: block; }
  .sel-od-selected section { margin-bottom: 12pt; }
}
