/* =====================================================================
   Page d'accueil (index.html) — complète assets/style.css.
   Toutes les règles sont propres à l'accueil : classes préfixées ou
   portées par main.acc, sans effet sur les autres pages.
   ===================================================================== */
:root { --or: #e7c98b; --clair: #c8d1de; --clair-2: #aab6c8; --ligne: #66748c; --rouge-vif: #ff6b5e; }

main.acc { padding: 0; }
main.acc p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn.or { background: var(--or); color: var(--marine-fonce); font-weight: 600; }

/* ---------- Hero ---------- */
.acc-heros { background: var(--marine-fonce); color: #fff; padding-block: 52px 48px; }
.acc-heros .etiquette { color: var(--or); }
.titre-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 10px; }
.acc-heros h1 { font-size: clamp(0.95rem, 5vw, 2.6rem); font-weight: 600; text-wrap: initial; color: #fff; }
.acc-heros h1 span { display: block; white-space: nowrap; }
/* Accroche manuscrite, rouge, inclinée */
.manuscrit { font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; color: var(--rouge-vif); transform: rotate(-6deg); transform-origin: center; max-width: 15ch; text-align: center; margin: 0 12px 0 auto !important; padding-block: 14px; }
@media (max-width: 760px) { .manuscrit { margin: 0 auto 0 8px !important; max-width: 22ch; text-align: left; padding-block: 16px 8px; } }
.acc-heros .chapo { color: var(--clair); max-width: 62ch; font-size: 1.08rem; margin: 14px 0 22px; }
.recherche { display: flex; gap: 8px; max-width: 640px; flex-wrap: wrap; }
.recherche input { flex: 1 1 280px; min-width: 0; padding: 13px 14px; border: 0; border-radius: var(--r); font: inherit; font-size: 1rem; color: var(--encre); background: #fff; }
.recherche .btn { padding-inline: 20px; }
.recherche-aide { margin-top: 10px; font-size: .85rem; color: var(--clair-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.recherche-aide button { font: inherit; font-size: .82rem; border: 1px solid #3a4b66; background: transparent; color: #dfe5ee; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.recherche-aide button:hover { border-color: var(--or); }

/* ---------- Module « Essayez l'assistant » ---------- */
.module-ia { margin-top: 36px; border: 1px solid rgba(231,201,139,.35); background: rgba(255,255,255,.04); border-radius: 10px; padding: 22px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; scroll-margin-top: 90px; }
.module-ia .col-g { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.module-ia .col-d { flex: 1.3 1 460px; min-width: 0; }
.module-tete { display: flex; flex-direction: column; gap: 4px; }
.module-tete h2 { color: #fff; font-size: 1.35rem; }
.module-tete p { color: var(--clair-2); font-size: .9rem; }
.etiq-clair { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--clair-2); }
.metiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.metier { font: inherit; min-height: 40px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ligne); background: transparent; color: #dfe5ee; font-size: 14px; font-weight: 500; cursor: pointer; }
.metier:hover { border-color: var(--or); }
.metier[aria-pressed="true"] { background: var(--or); border-color: var(--or); color: var(--marine-fonce); font-weight: 600; }
.questions { display: flex; flex-direction: column; gap: 6px; }
.question { font: inherit; text-align: left; padding: 11px 14px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--clair); font-size: 15px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.question:hover { border-color: rgba(231,201,139,.6); color: #fff; }
.question[aria-pressed="true"] { border-color: rgba(231,201,139,.6); background: rgba(231,201,139,.12); color: #fff; font-weight: 500; }
.question svg { flex: none; }
.lien-assistant { color: var(--or); font-weight: 600; font-size: .9rem; text-decoration: none; }
.lien-assistant:hover { text-decoration: underline; }

.reponse { background: #fff; color: var(--encre); border-radius: 10px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); min-height: 370px; }
.reponse-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.reponse-tete .etiquette { display: flex; align-items: center; gap: 8px; }
.reponse .enbref { margin: 0; padding: 14px 16px; }
.reponse .enbref p { margin-top: 4px; font-family: var(--f-titre); font-size: 17px; line-height: 1.55; font-weight: 500; min-height: 3.1em; }
.curseur::after { content: "▍"; color: var(--laiton); animation: clign 1s steps(1) infinite; margin-left: 1px; }
@keyframes clign { 50% { opacity: 0; } }
.reponse .donnees { font-size: 14px; }
.reponse .donnees caption { text-align: left; padding-bottom: 6px; }
.reponse .donnees th { width: 42%; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sources .etiquette { margin-right: 4px; }
.source { font-family: var(--f-mono); font-size: 12px; padding: 3px 10px; border: 1px solid var(--filet); border-radius: 999px; background: var(--papier); }
.reponse-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--filet); padding-top: 12px; font-size: 13px; color: var(--gris); }
.reponse-pied .num { color: var(--laiton); font-weight: 500; }
.reponse-pied a { font-weight: 600; }
.apparait { animation: apparait .35s ease both; }
@keyframes apparait { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Pastilles d'état (machine à dater et réponse) ---------- */
.badge.b-ok { background: var(--vert-pale); color: var(--vert); }
.badge.b-change { background: var(--rouge-pale); color: var(--rouge); }
.badge.b-nouveau { background: var(--marine-pale); color: var(--marine); }

/* ---------- Tuile Publications ---------- */
.acc-heros .tuile-publications { margin-top: 28px; }

/* ---------- Atouts ---------- */
.acc-section { padding-block: 44px 8px; }
.acc-section .titre-section h2 { font-size: 1.5rem; }

/* ---------- Machine à dater ---------- */
.veille { padding-block: 48px; }
.veille .conteneur { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.veille .col-g { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.veille .col-d { flex: 1.35 1 520px; min-width: 0; }
.surtitre { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--laiton); display: flex; align-items: center; gap: 10px; }
.surtitre::before { content: ""; width: 28px; height: 2px; background: var(--laiton); }
.veille h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.veille h2 em { font-style: italic; color: var(--rouge); font-weight: 500; }
.veille .chapo { color: var(--gris); font-size: 1.02rem; max-width: 52ch; }
.veille .chapo b { color: var(--encre); font-weight: 600; }
.liste-veille { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.liste-veille li { display: flex; gap: 10px; align-items: baseline; }
.liste-veille svg { flex: none; position: relative; top: 2px; }
.ctas { display: flex; flex-wrap: wrap; gap: 8px; }

.machine { background: var(--surface); border: 1px solid var(--filet); border-radius: 10px; box-shadow: 0 1px 0 var(--filet), 0 18px 40px rgba(20,38,64,.10); overflow: hidden; scroll-margin-top: 90px; }
.machine-tete { padding: 20px 24px 18px; background: var(--marine-fonce); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.machine-tete .ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.machine-tete label { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--clair-2); }
.date-op { font-family: var(--f-titre); font-size: 28px; font-weight: 600; color: var(--or); line-height: 1; }
.machine input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.machine input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--or) var(--pct, 50%), #3a4b66 var(--pct, 50%)); }
.machine input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: #3a4b66; }
.machine input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--or); }
.machine input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--or); border: 3px solid var(--marine-fonce); box-shadow: 0 0 0 2px var(--or); margin-top: -9px; }
.machine input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--or); border: 3px solid var(--marine-fonce); box-shadow: 0 0 0 2px var(--or); }
.reperes { position: relative; height: 20px; font-family: var(--f-mono); font-size: 11px; color: #8fa0b8; }
.reperes span { position: absolute; transform: translateX(-50%); top: 2px; }
.reperes span::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 5px; background: var(--ligne); }
.raccourcis { display: flex; flex-wrap: wrap; gap: 6px; }
.raccourci { font: inherit; min-height: 34px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--ligne); background: transparent; color: #dfe5ee; font-size: 13px; cursor: pointer; }
.raccourci:hover { border-color: var(--or); color: #fff; }
.regles { list-style: none; margin: 0; padding: 0; }
.regle { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 24px; border-top: 1px solid var(--filet); transition: background .3s ease; }
.regle:first-child { border-top: 0; }
.regle.flash { background: var(--laiton-pale); }
.regle-sujet { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gris); display: flex; gap: 8px; align-items: center; }
.regle-sujet a { font-family: var(--f-mono); color: var(--laiton); letter-spacing: 0; text-transform: none; font-weight: 500; text-decoration: none; }
.regle-sujet a:hover { text-decoration: underline; }
.regle-texte { grid-column: 1 / 2; font-family: var(--f-titre); font-size: 17px; line-height: 1.45; font-weight: 500; }
.regle-ancien { grid-column: 1 / 2; font-size: 13px; color: var(--gris); }
.regle-ancien s { text-decoration-color: var(--rouge); text-decoration-thickness: 1.5px; }
.regle-etat { grid-column: 2; grid-row: 1 / 4; align-self: start; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.regle-source { font-family: var(--f-mono); font-size: 11px; color: var(--gris); }
.bilan { padding: 16px 24px; background: var(--papier); border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.bilan b { font-family: var(--f-titre); font-size: 22px; color: var(--rouge); }
.bilan.ok b { color: var(--vert); }

/* ---------- Carte essai ---------- */
.carte-essai { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.carte-essai h2 { font-size: 1.3rem; }
.carte-essai p { color: var(--gris); margin-top: 4px !important; }
.carte-essai .btns { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .module-ia { padding: 16px; }
  .reponse { padding: 18px; }
  .regle { grid-template-columns: 1fr; padding: 14px 18px; }
  .regle-etat { grid-column: 1; grid-row: auto; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; }
  .machine-tete, .bilan { padding-inline: 18px; }
  .reperes span:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .apparait, .curseur::after { animation: none; } .regle { transition: none; } }

/* ---------- Dissertation IA et comparaison (novembre 2026) ---------- */
.acc-dissertation { padding-block: 40px 44px; }
.diss-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.acc-dissertation h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 6px 0 12px; }
.acc-dissertation h2 em { color: var(--laiton); font-style: italic; }
.chapo-sombre { color: var(--gris); max-width: 58ch; margin-bottom: 16px !important; }
.diss-etapes { list-style: none; counter-reset: e; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.diss-etapes li { counter-increment: e; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.diss-etapes li::before { content: counter(e); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--marine); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; }
.diss-etapes b { font-weight: 600; }
.diss-etapes span { color: var(--gris); font-size: .92rem; }
.diss-compare { padding: 0; overflow: hidden; }
.diss-compare .ligne { display: grid; grid-template-columns: 1.1fr .8fr 1.2fr; border-top: 1px solid var(--filet); }
.diss-compare .ligne > span { padding: 11px 14px; font-size: .9rem; }
.diss-compare .ligne > span:nth-child(2) { color: var(--gris); }
.diss-compare .ligne > span:nth-child(3) { background: var(--laiton-pale); font-weight: 500; }
.diss-compare .tete { border-top: 0; }
.diss-compare .tete > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--gris); background: var(--papier); }
.diss-compare .tete > span:nth-child(3) { background: var(--marine); color: #fff; }
.diss-compare [role="rowheader"] { font-weight: 600; }
@media (max-width: 900px) { .diss-grille { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .diss-compare .ligne { grid-template-columns: 1fr 1fr; } .diss-compare .ligne > span:first-child { grid-column: 1 / -1; padding-bottom: 0; } .diss-compare .tete > span:first-child { display: none; } }
