/* templatecss/cote.css (05/12/2026) : page /cote.htm (pages/cote.php, js/cote.js), classes co-. Charte : Charte-UI-Autocadre.md
   (titres variante A, cartes, boutons, mise en page commune : 682 px a cote de la colonne, fluide 731-980, une colonne en dessous). */
#general.co-general #content { background: none; border: 0; }
.co-ariane { font-size: 13px; color: #888; margin: 10px 0 8px; white-space: nowrap; overflow-x: auto; }
.co-ariane a, .co-ariane a:visited { color: #2977dc; text-decoration: none; }
.co-carte { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.05); padding: 18px 16px; margin: 0 0 16px; box-sizing: border-box; color: #222; font-size: 14px; line-height: 1.55; clear: both; }
.co-carte h1 { float: none; width: auto; margin: 0 0 6px; font-size: 22px; line-height: 1.3; color: #1f2a37; border-left: 5px solid #ffc702; padding-left: 12px; }
.co-carte h2 { margin: 18px 0 8px; font-size: 18px; color: #1f2a37; }
.co-carte h2:first-child { margin-top: 0; }
.co-sous { margin: 0 0 10px; color: #555; }
.co-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.co-pastilles span { background: #e8f5ec; color: #17663a; border: 1px solid #b9e0c6; border-radius: 14px; padding: 3px 10px; font-size: 13px; font-weight: bold; }
.co-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; align-items: end; }
.co-champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-champ label { font-size: 13px; color: #555; font-weight: bold; }
.co-fac { font-weight: normal; color: #777; }
.co-champ select, .co-champ input { height: 44px; border: 1px solid #ccc; border-radius: 6px; padding: 0 10px; font-size: 15px; background: #fff; color: #222; width: 100%; box-sizing: border-box; }
.co-champ input:focus, .co-champ select:focus { border-color: #2977dc; outline: none; box-shadow: 0 0 0 2px rgba(41,119,220,.15); }
.co-erreur { grid-column: 1 / -1; margin: 0; color: #c0392b; font-size: 14px; }
.co-erreur::before { content: "\26A0  "; }
.co-btn { grid-column: 1 / -1; height: 48px; background: #2977dc; color: #fff; border: 0; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; }
.co-btn:hover { background: #1f63bd; }
.co-btn:disabled { opacity: .6; cursor: wait; }
.co-res { scroll-margin-top: 80px; }
.co-voiture { margin: 0 0 10px; font-size: 14px; color: #555; font-weight: bold; }
.co-rien { margin: 0; padding: 12px; background: #fff8e1; border-radius: 6px; }
.co-gens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: #555; }
.co-gen { height: 36px; padding: 0 12px; border: 1px solid #c7dbf6; background: #fff; color: #1f63bd; border-radius: 18px; font-size: 14px; font-weight: bold; cursor: pointer; }
.co-gen-on { background: #2977dc; border-color: #2977dc; color: #fff; cursor: default; }
.co-prix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.co-p { border: 1px solid #e2e2e2; border-radius: 8px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.co-p b { font-size: 20px; color: #1f2a37; white-space: nowrap; }
.co-pt { font-size: 13px; font-weight: bold; color: #555; }
.co-ps { font-size: 12.5px; color: #666; line-height: 1.3; }
.co-vite { border: 2px solid #1a9e4b; }
.co-vite .co-pt { color: #17663a; }
.co-marche { border: 2px solid #2977dc; background: #f5f8fd; }
.co-marche .co-pt { color: #1f63bd; }
.co-base { margin: 10px 0 0; font-size: 13px; color: #555; }
.co-note { margin: 6px 0 0; font-size: 13px; color: #555; }
.co-lien { background: none; border: 0; padding: 0; color: #2977dc; text-decoration: underline; font-size: 13px; cursor: pointer; }
.co-actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
.co-actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 12px; border-radius: 6px; font-weight: bold; font-size: 16px; text-decoration: none; text-align: center; box-sizing: border-box; }
.co-depot, .co-depot:visited { background: #ffc702; color: #1f2a37; }
.co-depot:hover { background: #f5b800; color: #1f2a37; }
.co-reprise, .co-reprise:visited { background: #fffdf5; border: 1px solid #f5b800; color: #1f2a37; font-size: 15px !important; }
.co-ligne { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eee; padding: 0 0 8px; }
.co-ligne b { white-space: nowrap; }
.co-ps2 { margin: 6px 0 10px; font-size: 13px; color: #555; }
.co-rail-c { position: relative; }
.co-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 6px; }
.co-v { position: relative; flex: 0 0 150px; border: 1px solid #e3e7ec; border-radius: 8px; overflow: hidden; background: #fff; scroll-snap-align: start; }
.co-v img, .co-v-ph { display: block; width: 100%; height: 100px; object-fit: cover; background: #dfe5ee; }
.co-vendue { position: absolute; top: 6px; left: 6px; background: #1f2a37; color: #fff; font-size: 11px; font-weight: bold; padding: 2px 6px; border-radius: 4px; }
.co-v-t { padding: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #555; }
.co-v-t b { font-size: 15px; color: #1f2a37; }
.co-qui { color: #777; }
.co-rail-c .hb-fl-g, .co-rail-c .hb-fl-d { position: absolute; top: 38px; width: 34px; height: 34px; border-radius: 17px; border: 1px solid #e2e2e2; background: #fff; color: #2977dc; font-size: 22px; line-height: 30px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); z-index: 2; }
.co-rail-c .hb-fl-g { left: -6px; }
.co-rail-c .hb-fl-d { right: -6px; }
.co-suite { margin: 10px 0 0; }
.co-carte a { color: #2977dc; }
.co-q { border-top: 1px solid #eee; padding: 10px 0; }
.co-q summary { cursor: pointer; font-weight: bold; color: #1f2a37; }
.co-q p { margin: 8px 0 0; }
.co-liens { margin: 14px 0 0; font-size: 14px; }
.co-texte p { margin: 0 0 10px; }
@media (min-width: 731px) {
	.co-actions { flex-direction: row; }
	.co-actions a { flex: 1; }
}
@media (max-width: 600px) {
	.co-form { grid-template-columns: 1fr 1fr; gap: 10px; }
	.co-carte h1 { font-size: 19px; }
	.co-p b { font-size: 17px; }
	.co-pt { font-size: 12.5px; }
}
@media (prefers-reduced-motion: no-preference) {
	.co-btn, .co-actions a, .co-gen { transition: background .15s, transform .15s; }
	.co-actions a:hover, .co-btn:hover { transform: translateY(-1px); }
}

/* mise en page commune des pages refaites (comme /certificat-non-gage.htm) : contenu a cote de la colonne au-dessus de 980 px,
   largeur fluide 731-980 px (aucun vide), une colonne en dessous. Remplace les largeurs fixes de #general.certificate (resp.css). */
#general.co-general #content { width: 682px; margin-right: 18px; }
@media (max-width: 980px) {
	#general.co-general { width: auto; max-width: 980px; padding: 0 12px; box-sizing: border-box; display: flex; gap: 14px; align-items: flex-start; }
	#general.co-general #content { flex: 1 1 auto; width: auto; min-width: 0; float: none; margin-right: 0; }
	#general.co-general #droite { flex: 0 0 300px; width: 300px; float: none; margin: 0; }
}
@media (max-width: 730px) {
	#general.co-general { display: block; padding: 0 10px; }
	#general.co-general #content { width: auto; }
	#general.co-general #droite { width: auto; max-width: 400px; margin: 14px auto 0; }
}

/* champs alignes : meme hauteur, meme marge, meme police (16 px : pas de zoom sur iPhone) pour les listes acCombo, les listes et les champs */
#co-form .co-champ select, #co-form .co-champ input, #co-form .co-champ .acc-btn { height: 44px; margin: 0; font-size: 16px; box-sizing: border-box; width: 100%; }
#co-form .co-champ select, #co-form .co-champ input { padding: 0 10px; }
#co-form .co-champ .acc-btn { padding: 0 30px 0 10px; border-radius: 6px; }

/* pages de cote par marque / modele / generation (pages/_cote-pages.php) */
#general.co-general #fil-ariane-wrap { margin: 10px 0 8px; }
.co-carte h3 { margin: 18px 0 8px; font-size: 16px; color: #1f2a37; }
.co-tab-c { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e2e2; border-radius: 8px; }
.co-tab { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.co-tab th, .co-tab td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #eef0f3; }
.co-tab thead th { background: #f6f8fb; color: #555; font-size: 13px; font-weight: bold; }
.co-tab th[scope="row"], .co-tab thead th:first-child { text-align: left; color: #1f2a37; }
.co-tab tbody tr:last-child th, .co-tab tbody tr:last-child td { border-bottom: 0; }
.co-tab .co-tm { background: #f5f8fd; color: #1f63bd; }
.co-tab .co-tg { text-align: left; color: #555; }
.co-mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.co-mod, .co-mod:visited { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid #e2e2e2; border-radius: 8px; text-decoration: none; color: #555; font-size: 13px; }
.co-mod b { color: #1f63bd; font-size: 15px; }
.co-mod:hover { border-color: #2977dc; box-shadow: 0 1px 4px rgba(41,119,220,.15); }
.co-mod-p { color: #1f2a37; font-weight: bold; font-size: 14px; }
.co-marques { display: flex; flex-wrap: wrap; gap: 8px; }
.co-marques a, .co-marques a:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid #c7dbf6; border-radius: 18px; color: #1f63bd; font-weight: bold; font-size: 14px; text-decoration: none; }
.co-marques a:hover { background: #f5f8fd; border-color: #2977dc; }
.co-marques span { color: #777; font-weight: normal; font-size: 12px; }
.co-liste { margin: 0 0 10px; padding-left: 20px; }
.co-liste li { margin: 4px 0; }
.co-liste a, .co-autres a { color: #2977dc; }
.co-autres { margin: 8px 0 0; font-size: 14px; line-height: 1.8; }
@media (max-width: 480px) {
	.co-mods { grid-template-columns: 1fr; }
	.co-tab { font-size: 13px; }
	.co-tab th, .co-tab td { padding: 7px 8px; }
}
/* telephone : km et generation sous l'annee, les 3 prix toujours visibles */
.co-tsous { display: none; }
@media (max-width: 560px) {
	.co-tab .co-tk, .co-tab .co-tg { display: none; }
	.co-tsous { display: block; font-size: 11.5px; font-weight: normal; color: #777; margin-top: 1px; }
	.co-tab thead th { white-space: normal; line-height: 1.25; }
	.co-tab th, .co-tab td { padding: 7px 6px; }
}
.co-mod span, .co-mod:visited span { color: #555; }
.co-mod .co-mod-p { color: #1f2a37; }
