/* Même organisation que Lecture de notes : accueil, choix, puis activité. */
body[data-accords-navigation] { --accord-plum:#592b45; --accord-green:#285a50; --accord-gold:#8b5930; }
body[data-accords-navigation] main,body[data-accords-navigation] main > .section { width:100%; max-width:none; }
body[data-accords-navigation]:not([data-chord-construction]) main > .section { margin:8px auto; padding:22px; border:1px solid #d1c4af; border-radius:17px; background:#efe6d7; }
body[data-accords-landing] .screen { display:none!important; }
body[data-accords-navigation] [hidden] { display:none!important; }
.accord-banner,body[data-accords-navigation] #home .home-intro,body[data-chord-construction] .construction-heading { position:relative; isolation:isolate; overflow:hidden; border:1px solid #735465; border-radius:14px; padding:26px 30px; color:#fff8ee; background:#452138; text-align:left; }
.accord-banner::before,body[data-accords-navigation] #home .home-intro::before,body[data-chord-construction] .construction-heading::before { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#452138 0%,#452138e6 35%,#45213844 100%),url('../assets/home-ecrire.jpg') right center/cover; }
.accord-banner h1,body[data-accords-navigation] #home .home-intro h2,body[data-chord-construction] .construction-heading h1 { font-size:clamp(1.7rem,3.2vw,2.4rem); color:inherit; margin:5px 0; }
.accord-banner p,body[data-accords-navigation] #home .home-intro p { color:#fff8ee; margin:6px 0 0; }
.accord-banner .section-eyebrow,body[data-chord-construction] .construction-heading .section-eyebrow,body[data-accords-navigation] #home .section-eyebrow { color:#f4d5a6; }
#accords-hub .accord-banner,body[data-construction-view="landing"] .construction-heading { min-height:190px; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; }
.accord-destinations { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.accord-destination { display:grid; grid-template-columns:50px 1fr 22px; gap:14px; align-items:center; min-height:130px; padding:22px; border:1px solid #754258; border-radius:13px; background:linear-gradient(110deg,#452138,#69364f); color:#fff8ee; text-decoration:none; text-align:left; font:inherit; cursor:pointer; }
.accord-destination:last-child { background:linear-gradient(110deg,#20483f,#356b5c); border-color:#477969; }
.accord-destination .accord-icon { display:grid; place-items:center; width:50px; height:50px; border-radius:11px; background:#ffffff25; font-size:1.8rem; }
.accord-destination strong { display:block; font-size:1.35rem; color:inherit; }
.accord-destination small { display:block; margin-top:5px; font-size:.88rem; color:inherit; line-height:1.4; }
.accord-destination:hover { filter:brightness(1.08); }
.accord-destination:focus-visible { outline:3px solid #ba8a2d; outline-offset:3px; }
body[data-accords-navigation] #home .home-intro { width:100%; max-width:none; min-height:104px; margin-bottom:14px; }
body[data-accords-navigation] #home .home-intro::before { background-image:linear-gradient(90deg,#452138,#452138cc,#45213844),url('../assets/home-ecouter.jpg'); }
body[data-accords-navigation] #home .notation-mode-panel { max-width:none; }
body[data-accords-navigation] #homeModes .mode-card { min-height:108px; border-radius:13px; border:1px solid #bbaa94; box-shadow:none; }
body[data-accords-navigation] #homeModes .mode-tuto { background:#efdbb8; color:#65431c; }
body[data-accords-navigation] #homeModes .mode-guided { background:#cce2d6; color:#204d40; }
body[data-accords-navigation] #homeModes .mode-custom { background:#e3d1e3; color:#58335e; }
body[data-accords-navigation] #homeModes .mode-card :is(strong,small,.mode-arrow) { color:inherit; }
body[data-chord-construction][data-construction-view="landing"] .construction-main,body[data-chord-construction][data-construction-view="setup"] .construction-main { width:100%; max-width:none; }
body[data-chord-construction]:is([data-construction-view="landing"],[data-construction-view="setup"]) .construction-card { display:flex; flex-direction:column; gap:12px; padding:22px; background:#efe6d7; }
body[data-construction-view="landing"] .construction-heading { order:0; }
body[data-construction-view="landing"] .construction-choices { order:1; display:block; margin:0; }
body[data-construction-view="landing"] .construction-choices > div:first-child,body[data-construction-view="landing"] .construction-mode-wrap > .construction-label { display:none; }
body[data-construction-view="landing"] .construction-mode-cards { grid-template-columns:repeat(4,1fr); margin:0; }
body[data-construction-view="landing"] .construction-mode-cards button { min-height:130px; padding:22px; border-width:1px; border-color:#c2b5a1; border-radius:13px; }
body[data-construction-view="landing"] .construction-mode-cards button strong { font-size:1.3rem; }
body[data-construction-view="landing"] #construction-setup { display:none!important; }
body[data-construction-view="setup"] .construction-choices { order:0; grid-template-columns:160px 1fr; margin:0; }
body[data-construction-view="setup"] .construction-heading { order:1; min-height:104px; padding:18px 25px; }
body[data-construction-view="setup"] #construction-setup { order:2; }
body:is([data-construction-view="session"],[data-construction-view="finished"]) > main .construction-choices { display:none!important; }
body[data-construction-view="setup"] .construction-mode-cards button { min-height:52px; padding:7px 12px; }
body[data-construction-view="setup"] .construction-mode-cards button small,body[data-construction-view="setup"] .construction-mode-wrap > .construction-label { display:none; }
body[data-chord-construction] .construction-card .construction-family-tabs button[aria-pressed="true"] { background:#755482; color:white; }
@media(max-width:700px) {
 body[data-accords-navigation]:not([data-chord-construction]) main > .section,body[data-chord-construction]:is([data-construction-view="landing"],[data-construction-view="setup"]) .construction-card { padding:10px; gap:10px; }
 .accord-banner,#accords-hub .accord-banner,body[data-construction-view="landing"] .construction-heading { min-height:145px; padding:20px; }
 .accord-destinations { grid-template-columns:1fr; gap:10px; margin-top:10px; }
 .accord-destination { min-height:108px; padding:17px; }
 body[data-construction-view="landing"] .construction-mode-cards { grid-template-columns:1fr 1fr; gap:10px; }
 body[data-construction-view="landing"] .construction-mode-cards button { display:flex; text-align:left; min-height:112px; padding:12px; }
 body[data-construction-view="landing"] .construction-mode-icon { display:grid; }
 body[data-construction-view="landing"] .construction-mode-cards button small { display:block; font-size:.72rem; }
 body[data-construction-view="landing"] .construction-mode-cards button strong { font-size:1rem; }
 body[data-construction-view="setup"] .construction-choices { grid-template-columns:1fr; }
 body[data-construction-view="setup"] .construction-mode-cards { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
 body[data-construction-view="setup"] .construction-mode-cards button { display:block; min-height:44px; padding:5px; font-size:.75rem; }
 body[data-construction-view="setup"] .construction-mode-icon { display:none; }
}

.foundation-explanation {display:flex!important;flex-direction:column;gap:16px;align-items:stretch;}
#tutorial-intervals.foundation-explanation > div {padding:0;border:0;background:transparent;}
.tutorial-name-steps {display:flex;gap:5px;flex-wrap:wrap;}
.tutorial-name-steps span {border:1px solid #bad0c5;border-radius:9px;padding:9px;background:#e7eee6;font-size:.9rem;}
.tutorial-name-steps .is-target {background:#286953;color:white;}
.tutorial-halfsteps {display:flex;gap:5px;}
.tutorial-halfsteps span {display:grid!important;place-items:center;flex:1;min-height:38px;border-radius:7px;background:#d7e9dc;color:#215846;font-weight:800;animation:halfstep-in .35s ease-out both;animation-delay:var(--step-delay);}
#tutorial-intervals .tutorial-fifth-summary {border-left:3px solid #aa812d;background:#f4e8c7;padding:10px;border-radius:9px;line-height:1.5;}
#tutorial-step {font-size:1.35rem;}
#tutorial-intro {font-size:1rem;max-width:900px;}
.tutorial-actions {gap:8px;justify-content:flex-start;}
#tutorial-try {margin-left:auto;}
@keyframes halfstep-in {from{opacity:.2;transform:translateX(-4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.tutorial-halfsteps span{animation:none;}}
@media(max-width:600px){#tutorial-step{font-size:1.05rem;}#tutorial-intro{font-size:.86rem;}#tutorial-try{margin-left:0;}.tutorial-name-steps span{font-size:.8rem;padding:6px;}}

body[data-accords-navigation] .accord-banner .section-eyebrow { color:#f4d5a6!important; }

@media(orientation:landscape) and (max-height:500px){
 body[data-construction-view="session"] .construction-question{height:46px;padding:0 8px;}
 body[data-construction-view="session"] .construction-question #question{font-size:1.2rem;min-height:24px;line-height:1.1;}
 body[data-construction-view="session"] .construction-question #question>strong{font-size:1.4rem;}
 body[data-construction-view="session"] .construction-question .construction-quality-badge{font-size:.8rem;padding:3px 6px;}
 body[data-construction-view="session"] .construction-question .construction-state{font-size:.65rem;line-height:16px;margin:0;}
 body[data-construction-view="session"] #chord-editor{grid-template-rows:44px minmax(44px,1fr) 44px;}
 body[data-construction-view="session"] #sheet{min-height:76px;}
}

#tutorial-intervals>button{padding:13px 16px;border:1px solid #c7d7cb;border-left:4px solid var(--interval-color);border-radius:10px;background:#e7eee5;color:#174a3c;text-align:left;font:inherit;cursor:pointer;min-height:74px;}#tutorial-intervals>button strong,#tutorial-intervals>button span{display:block;}#tutorial-intervals>button span{font-size:.8rem;margin-top:5px;}#tutorial-intervals>button:nth-child(even){background:#f1e9d6;color:#6b4c1b;}#tutorial-intervals>button:disabled{opacity:.28;cursor:default;}#tutorial-intervals>button:hover:enabled{box-shadow:0 0 0 2px var(--interval-color);} .tutorial-interval-bracket{animation:tutorial-bracket-in .25s ease-out;}@keyframes tutorial-bracket-in{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.tutorial-interval-bracket{animation:none;}}
