/* Estimation des œuvres : navigation par format, calculs rendus par le serveur. */
.estimation-page { width: min(100%, max(90%, 1200px)); max-width: 1600px; margin: 0 auto 3rem; color: var(--icac-anthracite); font-weight: 300; font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }
.estimation-fil { display: flex; flex-wrap: wrap; gap: .4rem .7rem; margin-bottom: 1.4rem; color: var(--icac-anthracite); font-size: .8rem; }
.estimation-fil a { color: var(--icac-anthracite); text-decoration: underline; text-underline-offset: .2rem; }
.estimation-page .estimation-entete { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 0; margin: 0; background: transparent; color: var(--icac-anthracite); }
.estimation-surtitre { margin: 0 0 .65rem; color: var(--icac-anthracite); font-size: .75rem; font-family: var(--icac-police-surtitre); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.estimation-page h1 { margin: 0 0 .75rem; font-size: clamp(1.9rem, 2.8vw, 2.8rem); line-height: 1.15; letter-spacing: -.025em; text-transform: none; overflow-wrap: anywhere; }
.estimation-intro { max-width: 100ch; margin: 0; font-size: .95rem; color: var(--icac-anthracite); line-height: 1.6; }
.estimation-indice { display: grid; gap: .6rem; padding: 1rem 1.3rem; border: 1px solid #ddc794; border-radius: .7rem; background: #faf6eb; }
.estimation-indice > strong { font-size: 1.25rem; }
.estimation-lien { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0; border: 0; background: transparent; color: var(--icac-anthracite); font-size: .85rem; font-weight: 800; }
.estimation-outils { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; margin-block: 1.1rem 1.4rem; font-size: .8rem; }
.estimation-outils p { color: var(--icac-anthracite); margin: 0; }
.estimation-imprimer { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; }
.estimation-onglets { display: flex; gap: .5rem; padding: .4rem; margin-bottom: 1.5rem; border: 1px solid #e4e1d9; border-radius: .7rem; background: #faf9f6; overflow-x: auto; scrollbar-width: thin; scroll-margin-top: 6rem; }
.estimation-onglets a { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; flex: 1 0 auto; padding: .8rem 1rem; border-radius: .45rem; color: var(--icac-anthracite); font-size: .9rem; font-weight: 800; white-space: nowrap; }
.estimation-onglets a:hover { background: #eee9dd; color: var(--icac-anthracite); }
.estimation-onglets a[aria-selected="true"] { background: var(--icac-anthracite); color: #fff; }
.estimation-forme { display: inline-block; width: 16px; height: 16px; border: 1.5px solid #ac863c; border-radius: 2px; }
.estimation-forme-rectangle { width: 20px; height: 14px; }
.estimation-forme-double { width: 24px; height: 12px; }
.estimation-forme-triple { width: 27px; height: 9px; }
.estimation-onglets [aria-selected="true"] .estimation-forme { border-color: #efd393; }
.estimation-panneau { margin-bottom: 2rem; scroll-margin-top: 6rem; }
.estimation-panneau[hidden] { display: none; }
.estimation-section-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: .8rem; }
.estimation-page h2 { margin: 0; font-size: 1.35rem; line-height: 1.3; text-transform: none; }
.estimation-section-entete p { margin: 0; color: var(--icac-anthracite); font-size: .8rem; }
.estimation-tableaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.estimation-table-wrap { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid #e1e3e8; border-radius: .65rem; }
.estimation-page #cotation .table { width: 100%; margin: 0; border: 0; border-collapse: collapse !important; font-size: .85rem; --bs-table-bg: #fff; --bs-table-color: var(--icac-anthracite); }
.estimation-page #cotation .table th, .estimation-page #cotation .table td { padding: .7rem .5rem; border: 0; vertical-align: middle; box-shadow: none; }
.estimation-page #cotation .table tr { border-bottom: 1px solid #e4e5eb; }
.estimation-page #cotation .table tbody tr:last-child { border-bottom: 0; }
/* Repères de l'ancien site, plus lisibles : en-tête noir, colonnes de points et de moyennes en gris avec chiffres rouges. */
.estimation-page #cotation .table th, .estimation-page #cotation .table td { text-align: center; white-space: nowrap; }
.estimation-page #cotation .table thead { --bs-table-bg: var(--icac-anthracite); --bs-table-color: #fff; }
.estimation-page #cotation .table thead th { color: #fff; font-size: .75rem; font-weight: 800; border-color: #ffffff2e; }
.estimation-page #cotation .table thead tr:first-child th { font-size: .85rem; }
.estimation-page #cotation .table thead th + th, .estimation-page #cotation .table thead tr + tr th { border-left: 1px solid #ffffff2e; }
.estimation-page #cotation .table thead tr:first-child { border-bottom: 1px solid #ffffff2e; }
.estimation-page #cotation .table tbody th, .estimation-page #cotation .table tbody td { border-left: 1px solid #e4e5eb; }
.estimation-page #cotation .table tbody > tr > :first-child { border-left: 0; }
.estimation-page #cotation .table tbody .bg-gris { --bs-table-bg: #e5e5e5; background: #e5e5e5; color: var(--icac-rouge-fonce); font-weight: 800; }
.estimation-page #cotation .table tbody td { color: #5c5e66; }
.estimation-page #cotation .table tbody td.important { color: var(--icac-anthracite); font-weight: 800; }
.estimation-page #cotation .table tbody tr:hover > td { background: #fff4d6; }
.estimation-page #cotation .table tbody tr:hover > .bg-gris { background: #d9d9d9; }
.estimation-page #cotation thead abbr { text-decoration-color: #ffffff80; }
.estimation-page #cotation abbr { text-decoration-color: #ac863c; text-underline-offset: .2rem; }
.estimation-calculateur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .45fr); gap: 2rem; padding: 1.75rem; border: 1px solid #ddc794; border-radius: .75rem; background: #faf6eb; }
.estimation-conseil { font-size: .9rem; color: var(--icac-anthracite); margin: 0 0 1.25rem; }
.estimation-champs { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.estimation-champs .form-floating { flex: 1 1 180px; min-width: 0; }
.estimation-page .form-control { border: 1px solid #d5d7e1; border-radius: .5rem; font-weight: 300; }
.estimation-page #cotation-largeur, .estimation-page #cotation-hauteur { font-size: 1rem; }
.estimation-page .form-floating > label { font-size: .9rem; color: var(--icac-anthracite); }
.estimation-page .btn { margin: 0; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.estimation-resultat { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; padding: 1rem; border-left: 1px solid #ddc794; text-align: center; }
.estimation-resultat > span { font-size: .85rem; font-weight: 800; color: var(--icac-anthracite); }
.estimation-page #cotation-resultat { font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; line-height: 1.2; color: var(--icac-rouge-fonce); overflow-wrap: anywhere; }
.estimation-resultat small { color: var(--icac-anthracite); font-size: .75rem; }
.estimation-retour { margin-top: 1.5rem; font-size: .85rem; }
.estimation-page a:focus-visible, .estimation-page button:focus-visible, .estimation-table-wrap:focus-visible { outline: 3px solid var(--icac-rouge); outline-offset: 3px; }
@media (max-width: 1199px) { .estimation-tableaux { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
    .estimation-page .estimation-entete { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .estimation-indice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; }
    .estimation-indice > strong { font-size: 1.05rem; }
    .estimation-onglets a { padding: .7rem .8rem; font-size: .85rem; }
    .estimation-calculateur { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.2rem; }
    .estimation-resultat { border-left: 0; border-top: 1px solid #ddc794; padding-top: 1.5rem; }
    .estimation-page #cotation .table th, .estimation-page #cotation .table td { padding: .65rem .45rem; }
}
@media print {
    .estimation-fil, .estimation-onglets, .estimation-outils, .estimation-lien, .estimation-champs .btn, .estimation-retour { display: none !important; }
    .estimation-panneau[hidden] { display: block !important; }
    .estimation-page { width: 100%; max-width: none; margin: 0; }
    .estimation-table-wrap { overflow: visible; }
    .estimation-tableaux { grid-template-columns: minmax(0, 1fr); }
    .estimation-section-entete { break-after: avoid; }
    .estimation-page #cotation .table tr { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
    .estimation-page a { transition: none; }
    .estimation-page * { scroll-behavior: auto !important; }
}
