/* Accord refonte 2026 : organisation UI/UX - contenus (lot parallele) */
/* Pages dossiers (dossiers_nouveau.php), loi Lemoine, contrat de confiance, RGPD, actualites,
   Clic @nd Cheques, simulateur de pret. Surcharge accord-2026-pages.css sans le modifier. */

/* =====================================================================
   1. Pages dossiers : sommaire collant | texte | colonne utile
   (classes .ac-doc* ajoutees par js/ac-sommaire.js ; sans JS, l'ancienne mise en page reste)
   ===================================================================== */
main .str_colonne.ac-doc { grid-template-columns: 236px minmax(0, 1fr) 272px; gap: 40px; margin-top: 0 !important; padding-top: 28px !important; }
main .ac-services + * .str_colonne.ac-doc, main .ac-services + .str_colonne.ac-doc { padding-top: 24px !important; }
main .str_colonne.ac-doc > .ac-doc-gauche { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; min-width: 0; }
main .str_colonne.ac-doc > .ac-doc-gauche:empty { display: none; }
main .str_colonne.ac-doc > aside.ac-doc-cote { position: static; display: grid; gap: 12px; align-content: start; min-width: 0; }

/* sommaire (details/summary : ouvert en permanence sur ordinateur, replie sur mobile) */
.ac-sommaire { margin: 0; }
.ac-sommaire > summary { list-style: none; margin: 0 0 8px; font-family: var(--ac-police); font-size: 13px; font-weight: 700; color: var(--ac-gris); cursor: default; pointer-events: none; }
.ac-sommaire > summary::-webkit-details-marker { display: none; }
.ac-sommaire ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--ac-ligne); }
.ac-sommaire li { margin: 0; padding: 0; }
.ac-sommaire li:before { display: none !important; }
.ac-sommaire a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ac-texte); text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.ac-sommaire .ac-sommaire-sous a { padding-left: 26px; font-size: 13px; font-weight: 500; }
.ac-sommaire a:hover { color: var(--ac-encre); border-left-color: var(--ac-gris); }
.ac-sommaire a.ac-actif { color: var(--ac-encre); font-weight: 700; border-left-color: var(--ac-ambre); }
main .desc_content_statique_site .ac-ancre { scroll-margin-top: 140px; }

/* liste des dossiers (colonne de droite, ou de gauche quand la page n'a pas de sommaire) */
.ac-doc-liens { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--ac-ligne); border-radius: var(--ac-r); background: #fff; }
.ac-doc-groupe { margin: 10px 0 4px !important; font-size: 13px !important; font-weight: 700 !important; color: var(--ac-gris) !important; }
.ac-doc-groupe:first-child { margin-top: 0 !important; }
.ac-doc-liens a { display: block; padding: 5px 8px; margin: 0 -8px; border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ac-encre); text-decoration: none; }
.ac-doc-liens a:hover { background: var(--ac-fond); color: var(--ac-ardoise); }
.ac-doc-liens a.ac-actif { background: var(--ac-ambre-clair); box-shadow: inset 2px 0 0 var(--ac-ambre); }
.ac-doc-liens a:last-child { margin-top: 6px; color: var(--ac-ardoise); text-decoration: underline; text-underline-offset: 3px; }
.ac-doc-gauche .ac-doc-liens { padding: 0; border: 0; background: none; }

/* raccourcis compacts (remplacent les 2 grandes images-liens) */
.ac-doc-actions { display: grid; gap: 10px; }
.ac-doc-cote .ac-raccourci { padding: 12px 14px; gap: 12px; color: var(--ac-encre); text-decoration: none; }
.ac-doc-cote .ac-raccourci-ico { width: 38px; height: 38px; }
.ac-doc-cote .ac-raccourci-ico svg, .ac-doc-cote .ac-fleche { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-doc-cote .ac-raccourci > span:nth-child(2) { line-height: 1.3; gap: 2px; min-width: 0; }
.ac-doc-cote .ac-raccourci strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.ac-doc-cote .ac-raccourci small { line-height: 1.3; }
.ac-doc-cote .ac-raccourci:first-child { background: var(--ac-nuit); }
.ac-doc-cote .ac-raccourci:first-child strong { color: #fff; }
.ac-doc-cote .ac-raccourci:first-child small { color: rgba(255, 255, 255, .72); }
.ac-doc-cote .ac-raccourci:first-child .ac-raccourci-ico { background: var(--ac-ambre); color: var(--ac-nuit); }
main .ac-doc-cote .ac-raccourci:first-child .ac-fleche { color: var(--ac-ambre) !important; stroke: var(--ac-ambre) !important; }
main .ac-doc-cote .contact_home { box-sizing: border-box; width: auto !important; max-width: 100%; }
.ac-outil-lien > span:nth-child(2) small { line-height: 1.35; margin-top: 2px; }

/* texte : titres internes saisis en h1 (mentions legales) remis au niveau des h2, tableaux defilants */
main .ac-doc .desc_content_statique_site h1:not(.for_titre) { margin: 28px 0 10px !important; font-family: var(--ac-police) !important; font-size: 24px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -.01em; color: var(--ac-encre) !important; text-transform: none !important; }
main .ac-doc .desc_content_statique_site h1:not(.for_titre) *, main .ac-doc .desc_content_statique_site h2 font, main .ac-doc .desc_content_statique_site h2 span { font: inherit !important; color: inherit !important; background: none !important; }
main .ac-doc .desc_content_statique_site h1:not(.for_titre):empty { display: none; }
main .ac-doc .desc_content_statique_site > *:first-child, main .ac-doc .desc_content_statique_site > h2:first-child { margin-top: 0 !important; }
main .ac-doc .desc_content_statique_site table { width: 100% !important; max-width: 100%; margin: 12px 0 18px; border-collapse: collapse; font-size: 15px; }
main .ac-doc .desc_content_statique_site th, main .ac-doc .desc_content_statique_site td { padding: 8px 10px; border-bottom: 1px solid var(--ac-ligne); text-align: left; vertical-align: top; }
main .ac-doc .desc_content_statique_site th { color: var(--ac-encre); background: var(--ac-fond); }
main .ac-doc .desc_content_statique_site img { max-width: 100%; height: auto; }
/* polices et justification collees depuis un traitement de texte (mentions legales, infos clients) : police du site, texte aligne a gauche */
main .ac-doc .desc_content_statique_site font[face], main .ac-doc .desc_content_statique_site [style*="font-family"] { font-family: inherit !important; }
main .ac-doc .desc_content_statique_site [style*="justify"], main .ac-doc .desc_content_statique_site [align="justify"] { text-align: left !important; }

/* outil de calcul en haut des pages calcul (79, 80, 81, 82) et carte-lien (72) */
.ac-outil { display: block; margin: 0 0 32px; padding: 6px 12px 12px; border: 1px solid var(--ac-ligne); border-radius: var(--ac-r); background: #fff; box-shadow: var(--ac-ombre-1); }
.ac-outil-cadre { min-height: 260px; }
.ac-outil-cadre iframe { display: block; width: 100%; border: 0; }
.ac-outil-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; margin: 4px 8px 0; padding-top: 10px; border-top: 1px solid var(--ac-ligne); }
.ac-outil-aide { margin: 0 !important; font-size: 13.5px !important; line-height: 1.45 !important; color: var(--ac-texte) !important; }
.ac-outil-aide a { font-weight: 700; color: var(--ac-encre) !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ac-outil-plus { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ac-ardoise) !important; text-decoration: none; white-space: nowrap; }
.ac-outil-plus svg, .ac-outil-lien svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-outil-plus:hover { color: var(--ac-encre) !important; }
.ac-outil.ac-outil-lien { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none; color: var(--ac-encre); transition: box-shadow .2s ease; }
.ac-outil.ac-outil-lien:hover { box-shadow: var(--ac-ombre-2); }
.ac-outil-lien .ac-raccourci-ico svg { width: 22px; height: 22px; }
.ac-outil-lien > span:nth-child(2) { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ac-outil-lien strong { font-size: 18px; font-weight: 800; color: var(--ac-encre); }
.ac-outil-lien small { font-size: 13.5px; color: var(--ac-texte); }
.ac-outil-lien .ac-btn { flex: none; gap: 8px; }

@media (max-width: 1280px) {
	main .str_colonne.ac-doc { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
	main .str_colonne.ac-doc > .ac-doc-gauche { grid-row: 1 / span 2; }
	main .str_colonne.ac-doc > .str_for_left, main .str_colonne.ac-doc > aside.ac-doc-cote { grid-column: 2; }
	main .str_colonne.ac-doc > aside.ac-doc-cote { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	main .str_colonne.ac-doc > aside.ac-doc-cote .ac-doc-liens { grid-row: span 2; }
	main .str_colonne.ac-doc-avec-sommaire > aside.ac-doc-cote .ac-doc-liens { flex-flow: row wrap; gap: 0 18px; grid-column: 1 / -1; grid-row: auto; }
	main .str_colonne.ac-doc-avec-sommaire > aside.ac-doc-cote .ac-doc-groupe { flex-basis: 100%; }
	main .str_colonne.ac-doc-avec-sommaire > aside.ac-doc-cote .ac-doc-liens a { margin: 0; }
}
@media (max-width: 1140px) {
	main .str_colonne.ac-doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	main .str_colonne.ac-doc > .ac-doc-gauche { position: static; max-height: none; overflow: visible; grid-row: auto; order: 3; }
	main .str_colonne.ac-doc > .str_for_left, main .str_colonne.ac-doc > aside.ac-doc-cote { grid-column: 1; }
	main .str_colonne.ac-doc > aside.ac-doc-cote { order: 2; }
	main .str_colonne.ac-doc-sans-sommaire > .ac-doc-gauche .ac-doc-liens { flex-flow: row wrap; gap: 0 18px; padding: 14px 16px; border: 1px solid var(--ac-ligne); background: #fff; }
	main .str_colonne.ac-doc-sans-sommaire > .ac-doc-gauche .ac-doc-groupe { flex-basis: 100%; }
	main .str_colonne.ac-doc-sans-sommaire > .ac-doc-gauche .ac-doc-liens a { margin: 0; }
	/* sommaire mobile : bouton repliable place avant le texte */
	.ac-sommaire { margin: 0 0 22px; border: 1px solid var(--ac-ligne); border-radius: var(--ac-r); background: #fff; }
	.ac-sommaire > summary { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 12px 16px; font-size: 15px; color: var(--ac-encre); cursor: pointer; pointer-events: auto; }
	.ac-sommaire > summary:after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ac-ardoise); border-bottom: 2px solid var(--ac-ardoise); transform: rotate(45deg); margin-top: -4px; transition: transform .2s ease; }
	.ac-sommaire[open] > summary:after { transform: rotate(-135deg); margin-top: 4px; }
	.ac-sommaire ol { margin: 0 16px 12px; }
}
@media (max-width: 767px) {
	main .str_colonne.ac-doc > aside.ac-doc-cote { grid-template-columns: minmax(0, 1fr); }
	main .ac-doc .desc_content_statique_site table { display: block; overflow-x: auto; }
	.ac-outil { padding: 4px 6px 10px; }
	.ac-outil.ac-outil-lien { flex-wrap: wrap; }
	.ac-outil-lien .ac-btn { width: 100%; justify-content: center; }
}

/* =====================================================================
   2. RGPD : sommaire existant (colonne collante) toujours visible entierement
   ===================================================================== */
.ac-rgpd-cote { max-height: calc(100vh - 150px); }
.ac-rgpd-sommaire { display: flex; flex-direction: column; min-height: 0; }
.ac-rgpd-sommaire ol { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ac-rgpd-sommaire a { transition: color .15s ease; }
.ac-rgpd-sommaire a.ac-actif { color: var(--ac-encre); box-shadow: inset 3px 0 0 var(--ac-ambre); padding-left: 10px; margin-left: -10px; background: var(--ac-ambre-clair); border-radius: 4px; }
.ac-rgpd-texte h2[id], .ac-rgpd-texte h3[id] { scroll-margin-top: 140px; }
.ac-rgpd-texte > p, .ac-rgpd-texte > ul, .ac-rgpd-texte > ol { max-width: 82ch; }
@media (max-width: 1140px) {
	.ac-rgpd-cote { max-height: none; }
}

/* =====================================================================
   3. Simulateur de pret (simulation.php) : outil en premier, texte ensuite
   ===================================================================== */
.ac-simulation-outil.ac-simulation-premier { padding-top: 20px; }
.ac-simulation-premier .ac-carte.lancementSimu { padding-top: 20px; }
.ac-simulation-premier .lancementSimu .titreBloc { margin-bottom: 10px !important; }
.ac-simulation-texte.ac-simulation-apres { background: #fff; }

/* =====================================================================
   4. Actualites : recherche + compteur au-dessus de la grille
   ===================================================================== */
.ac-actus-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 18px; }
.ac-actus-recherche { position: relative; flex: 0 1 420px; }
.ac-actus-recherche label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-actus-recherche input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--ac-ligne); border-radius: var(--ac-r-max, 7px); background: #fff; font: inherit; font-size: 15px; color: var(--ac-encre); }
.ac-actus-recherche input:focus { outline: 2px solid var(--ac-ambre); outline-offset: 1px; border-color: var(--ac-ambre); }
.ac-actus-recherche svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--ac-gris); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.ac-actus-compteur { margin: 0; font-size: 14px; font-weight: 600; color: var(--ac-texte); }
.ac-actus-compteur strong { color: var(--ac-encre); }
.ac-actus-aucun { margin: 0; padding: 16px 20px; border: 1px dashed var(--ac-ligne); border-radius: var(--ac-r); font-size: 15px; color: var(--ac-texte); background: #fff; }
.ac-actus-page-carte[hidden] { display: none !important; }

/* =====================================================================
   5. Clic @nd Cheques : action principale dans le premier bloc, colonne compacte
   ===================================================================== */
.ac-cheques-intro-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 12px; }
.ac-cheques-intro-tete .ac-titre-bloc { margin-bottom: 4px; }
.ac-cheques-intro-tete .ac-btn { flex: none; gap: 8px; }
.ac-cheques-intro-tete .ac-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-cheques-cote .ac-raccourci { padding: 12px 14px; gap: 12px; color: var(--ac-encre); text-decoration: none; }
.ac-cheques-cote .ac-raccourci-ico { width: 38px; height: 38px; }
.ac-cheques-cote .ac-raccourci-ico svg, .ac-cheques-cote .ac-fleche { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-cheques-cote .ac-raccourci > span:nth-child(2) { line-height: 1.3; gap: 2px; min-width: 0; }
.ac-cheques-cote .ac-raccourci strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.ac-cheques-cote .ac-raccourci small { line-height: 1.3; }
@media (max-width: 767px) {
	.ac-cheques-intro-tete .ac-btn { width: 100%; justify-content: center; }
}
