﻿/*
 * Styles propres aux élections majoritaires (CE, CDE, CC, CA, PJ).
 * Feuille chargée après elections.css par le scripts.htm de ces élections.
 */

#gevi-map.gevi-navigation-map svg g.group_selected {
	filter: drop-shadow(1px 1px 4px rgb(0 0 0 / 0.8));
}

#gevi-map.gevi-navigation-map svg path.group_selected {
	display: block;
	fill: transparent;
	stroke: #ffffff;
	stroke-width: 2px;
	pointer-events: none;
}

@media only screen and (min-width: 640px) and (max-width: 970px) {
	
	#top7 .top7-candidat .big-number {
			font-size: 20px !important;
		}
}

#top7 .top7-fonction {
	width: 100%;
	text-align: center;
	font-size: 24px;
	padding: 0px 0 10px 0;
}

#top7 .top7-candidat {
	margin: 0 10px;
	text-align: center;
	width: calc(14.28% - 20px);
	width: -moz-calc(14.28% - 20px);
	width: -webkit-calc(14.28% - 20px);
	height: 550px;
}

#top7.animation .top7-candidat {
	height: 700px;
	width: calc(20% - 10px);
}

#top7 .top7-candidat {
	margin: 0 10px;
	text-align: center;
	width: calc(14.28% - 20px);
	width: -moz-calc(14.28% - 20px);
	width: -webkit-calc(14.28% - 20px);
	height: 550px;
}

#top7 .top7-candidat {
	margin: 0 5px;
	width: -webkit-calc(14.28% - 10px);
}

#top7 .top7-candidat .content {
	height: 100%;
}

#top7 .top7-candidat .libelle-suffrages {
	font-size: 9px;
	line-height: 9px;
	display: block;
}

#top7 .top7-candidat .flipper {
	transform: rotateY(180deg);
	backface-visibility: hidden;
}

#top7 .top7-candidat .flipper.flip {
	transform: rotateY(0);
	animation-duration: 500ms;
	animation-timing-function: ease-out;
	animation-name: flipAnimation;
}

#top7 .top7-candidat.elu .content {
	/* background-color: #dfecf4;
    */
}

#top7 .candidat_name {
	font-weight: bolder;
	color: initial;
}

#top7.animation .liste_acro.small {
	font-size: 50%;
	font-weight: 700;
}

#top7 .color-elu {
	background-image: linear-gradient(rgba(2, 103, 161, 0), rgba(2, 103, 161, 1));
}

#top7 .color-nonelu {
	background-image: linear-gradient(#FFFFFF, #E1EEF4, #579AC1);
}

#top7 .stats_container {
	width: 100%;
}

#top7 .top7-candidat .position {
	font-weight: bolder;
	color: rgba(255, 255, 255, 1);
	font-size: 80px;
	/*font-family: "Inter";
    */
	position: absolute;
	bottom: 4px;
	right: 0;
	line-height: 60px;
	height: 60px;
}

#top7.animation .top7-candidat .position {
	bottom: 8px;
	font-size: 100px;
	line-height: 50px;
}

#top7 .top7-candidat .suffrage {
	line-height: 1.1;
	margin-bottom: 20px;
}

#top7 .top7-candidat .libelle-suffrages {
	font-size: 15px;
	line-height: 15px;
	display: block;
}

#top7.animation .top7-candidat .libelle-suffrages {
	font-size: 20px;
	line-height: 20px;
}

#top7 .top7-candidat .big-number {
	font-size: 30px;
}

#top7.animation .top7-candidat .big-number {
	font-size: 40px;
	margin-top: 20px;
	display: block;
}

#top3 .top3-candidat .flipper {
	transform: rotateY(180deg);
	backface-visibility: hidden;
}

#top3 .top3-candidat .flipper.flip {
	transform: rotateY(0);
	animation-duration: 500ms;
	animation-timing-function: ease-out;
	animation-name: flipAnimation;
}

#top3 .top3-candidat .libelle-suffrages {
	text-transform: uppercase;
}

#gevi-cartouche.cartouche-commune .col-sm-2 {
	width: 14.2857%;
}

#gevi-cartouche.cartouche-local-ca .col-sm-2 {
	width: 12.5% !important;
}

.cartouche-candidat.ce .bloc-candidat .info-candidat {
	margin-top: 0;
}

.cartouche-candidat .bloc-candidat .libelle-suffrages {
	text-transform: uppercase;
}

.cartouche-candidat .histo-candidat {
	border: 1px solid #b2b2b2;
}

.cartouche-candidat .histo-candidat .histo-longueur {
	height: 11px;
	background-color: #b2b2b2;
}

.cartouche-candidat.elu .histo-candidat {
	border-color: #257fb2;
}

.cartouche-candidat.elu .histo-candidat .histo-longueur {
	background-color: #257fb2;
}

@media (min-width: 640px) {
	
	.candidat-switch-mobile-display {
			display: flex;
			align-items: center;
		}
}

@media (max-width: 639px) {
	
	.photo-ecusson-switch-mobile-display {
			display: flex;
			align-items: center;
			justify-content: space-between;
		}
}

#top3 .top3-candidat .flipper {
	transform: rotateY(180deg);
	backface-visibility: hidden;
}

#top3 .top3-candidat .flipper.flip {
	transform: rotateY(0);
	animation-duration: 500ms;
	animation-timing-function: ease-out;
	animation-name: flipAnimation;
}

#top3 .top3-candidat .libelle-suffrages {
	text-transform: uppercase;
}

#listeCandidats.liste_candidat_CN .cartouche-candidat .bloc-candidat .label-elu {
	FONT-SIZE: 16px;
	position: absolute;
	text-transform: uppercase;
	font-weight: 500;
	bottom: 0;
	right: 0px;
}

.cartouche-candidat.ce .bloc-candidat .info-candidat {
	margin-top: 0;
}

.cartouche-candidat .bloc-candidat .libelle-suffrages {
	text-transform: uppercase;
}

.cartouche-candidat .histo-candidat {
	border: 1px solid #b2b2b2;
}

.cartouche-candidat .histo-candidat .histo-longueur {
	height: 11px;
	background-color: #b2b2b2;
}

.cartouche-candidat.elu .histo-candidat {
	border-color: #257fb2;
}

.cartouche-candidat.elu .histo-candidat .histo-longueur {
	background-color: #257fb2;
}

.hist {
	margin-top: 15px;
}

.hist .cartouche-candidat * {
	font-size: 15px;
}

.hist .cartouche-candidat .bloc-candidat {
	background-color: #dfecf4;
}

.hist .cartouche-candidat .histo-candidat .histo-longueur {
	height: 3px;
	background-color: #257fb2;
}

.hist .cartouche-candidat.elu .bloc-candidat {
	background-image: linear-gradient(#6DA8C9, rgba(2, 103, 161, 1));
}

.hist .cartouche-candidat.elu .bloc-candidat * {
	color: white;
}

.hist .cartouche-candidat.elu .histo-candidat {
	border: 0px solid rgb(2 71 111);
	background-color: rgba(2, 103, 161, 1);
}

.hist .cartouche-candidat .histo-candidat {
	border: 0px solid #b2b2b2;
	background-color: #dfecf4;
	width: calc(100% - 130px);
	left: 130px;
	top: -3px;
	position: relative;
}

.hist .cartouche-candidat.elu .histo-candidat .histo-longueur {
	height: 3px;
	background-color: rgb(2 71 111)
}

.hist .cartouche-candidat .bloc-candidat {
	margin-bottom: 0;
	padding-top: 0;
	height: 130px;
	min-height: 95px;
	position: relative;
	overflow: hidden;
	display: flex;
}

.hist .cartouche-candidat .bloc-candidat div:nth-child(3) {
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.hist .cartouche-candidat .bloc-candidat div:nth-child(3) div {
	text-align: center;
	line-height: 15px;
}

.hist .cartouche-candidat .bloc-candidat>div:first-child {
	padding-left: 0;
}

.hist .cartouche-candidat .bloc-candidat img {
	height: 130px;
	min-width: 130px;
}

.hist .cartouche-candidat .bloc-candidat .big-label {
	font-size: 24px;
	font-weight: 400;
}

.hist .cartouche-candidat .bloc-candidat .big-number {
	font-size: 30px;
}

.hist .cartouche-candidat.ce .bloc-candidat .info-candidat {
	height: 100%;
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
}

.hist .cartouche-candidat.ce .bloc-candidat .info-candidat>.row {
	width: 100%;
	margin-top: auto;
	margin-bottom: auto;
	align-items: center;
	display: flex;
}

.hist .cartouche-candidat .bloc-candidat .libelle-suffrages {
	height: 12px;
	line-height: 0px;
	text-transform: lowercase;
}

.hist .cartouche-candidat .bloc-candidat .libelle-elu {
	position: absolute;
	height: 150px;
	bottom: 0;
	right: -50px;
}

.hist .cartouche-candidat .bloc-candidat .libelle-elu .icon {
	font-size: 170px;
}

.hist .cartouche-candidat .bloc-candidat .libelle-elu .label-elu {
	position: absolute;
	font-size: 21px;
	bottom: 37px;
	right: 75px;
}

.hist .cartouche-candidat .bloc-candidat .info-candidat .info-suffrage {
	text-align: center;
}

@media (max-width: 576px) {
	
	.hist .cartouche-candidat .bloc-candidat .big-label {
			font-size: 16px;
		}
	
	.hist .cartouche-candidat * {
			font-size: 13px;
		}
	
	.hist .cartouche-candidat .bloc-candidat .libelle-elu .label-elu {
			right: 55px;
		}
}

@media (max-width: 639px) {
	
	.hist .cartouche-candidat.ce .bloc-candidat .first-col {
			width: inherit;
		}
	
	.hist .cartouche-candidat .bloc-candidat .info-candidat .info-suffrage {
			text-align: left;
		}
}

@media (max-width: 378px) {
	
	.hist .cartouche-candidat.ce .bloc-candidat .first-col {
			width: 41.66666667%;
		}
}

#top2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

#top2 .top2-separator {
    border-right: 3px solid #257fb2;
}

#top2 .top2-fonction {
    width: 100%;
    text-align: center;
    font-size: 24px;
    padding: 5px 0 10px 0;
}

#top2 .top2-candidat {
    margin: 0 25px;
    text-align: center;
    -width: calc(14.28% - 30px);
    -width: -moz-calc(14.28% - 30px);
    -width: -webkit-calc(14.28% - 30px);
}

#top2 .top2-candidat {
    min-width: 230px;
    width: 35%;
}

#top2 .top2-candidat img {
    width: 100%;
}

#top2 .top2-candidat .content {
    padding: 20px;
    height: 100%;
}

#top2 .top2-candidat .flipper {
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

#top2 .top2-candidat .flipper.flip {
    transform: rotateY(0);
    animation-duration: 500ms;
    animation-timing-function: ease-out;
    animation-name: flipAnimation;
}

#top2 .top2-candidat.elu .content {
    background-color: #dfecf4;
}

#top2 .top2-candidat .position {
    font-weight: bold;
    color: #ffffff;
    line-height: 28px;
    background-color: #333333;
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 10px;
}

#top2 .top2-candidat .suffrage {
    line-height: 1.1;
    margin-bottom: 20px;
}

#top2 .top2-candidat .big-number {
    font-size: 20px;
}

#top2 .top2-candidat .libelle-suffrages {
    text-transform: uppercase;
}

#top2 {
    min-height: 650px;
    margin-bottom: 0;
	margin-top: 20px;
}

#top2 .top2-candidat {
    margin: 0 30px;
    margin-bottom: 40px;
}

#top2 .top2-candidat .content {
    padding: 0px;
    position: relative;
}

.top2-candidat.elu * {
    color: white !important;
}

#top2 .top2-candidat.elu .content {
    background-image: linear-gradient(rgba(2, 103, 161, 0), rgba(2, 103, 161, 1));
}

#top2 .top2-candidat .content {
    background-image: linear-gradient(#FFFFFF, #E1EEF4, #579AC1);
}

#top2 .top2-candidat .big-number {
    letter-spacing: 1px;
    font-size: 28pt;
}

#top2 .top2-candidat .libelle-suffrages {
    text-transform: lowercase;
    font-size: 12pt;
}

#top2 .label_candidat {
    font-size: 22pt;
    color: black;
}

#top2 .icon-tick {
    font-size: 270px;
    position: absolute;
    bottom: -50px;
    right: -90px;

}

#top2 .medium {
    margin-bottom: 20px;
}

#top2 .top2-candidat .position {
    font-weight: bolder;
    color: rgba(255, 255, 255, 0.8);
    font-size: 80pt;
    position: absolute;
    bottom: 0;
    left: 10px;
    line-height: 60px;
    height: 60px;
    background-color: initial;

}

#top2 .libelle-elu {
    text-transform: uppercase;
    font-size: 27pt;
}

/*
 * Pages commune des conseils administratifs (classe ca-commune posée sur <body> par ContentCA.htm et ContentCATacit.htm).
 * Règles reprises de l'ancienne feuille elections_20250323.css, que seules ces pages chargeaient.
 */

@media only screen and (max-width: 640px) {
	body.ca-commune .hist .cartouche-candidat.ce .bloc-candidat .info-candidat>.row {
		display: block !important;
	}
}

@media only screen and (min-width : 1168px) {
	body.ca-commune .hist .cartouche-candidat.ce .bloc-candidat .info-candidat {
		padding-left: 30px;
	}
}

body.ca-commune #top7 {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-bottom: 40px;
	justify-content: center;
}

body.ca-commune #top7 .top7-fonction {
	width: 100%;
	text-align: center;
	font-size: 24px;
	padding: 5px 0 10px 0;
}

body.ca-commune #top7 .top7-candidat {
	text-align: center;
	-width: calc(14.28% - 30px);
	-width: -moz-calc(14.28% - 30px);
	-width: -webkit-calc(14.28% - 30px);
}

body.ca-commune #top7 .top7-candidat {
	min-width: 230px;
}

body.ca-commune #top7 .top7-candidat img {
	width: 100%;
}

body.ca-commune #top7 .top7-candidat .content {
	padding: 20px;
	height: 100%;
}

body.ca-commune #top7 .top7-candidat.elu .content {
	background-color: #dfecf4;
}

body.ca-commune #top7 .top7-candidat .position {
	font-weight: bold;
	color: #ffffff;
	line-height: 28px;
	background-color: #333333;
	display: inline-block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	margin-bottom: 10px;
}

body.ca-commune #top7 .top7-candidat .big-number {
	font-size: 20px;
}

body.ca-commune #top7 .top7-candidat .libelle-suffrages {
	text-transform: uppercase;
}

body.ca-commune .animations #top7 {
	margin-top: 40px;
}

body.ca-commune #top7 {
	min-height: 650px;
	margin-bottom: 0;
	margin-top: 20px;
}

body.ca-commune #top7 .top7-candidat {
	margin-bottom: 40px;
}

body.ca-commune #top7 .top7-candidat .content {
	padding: 0px;
	position: relative;
}

body.ca-commune .top7-candidat.elu * {
	color: white !important;
}

body.ca-commune #top7 .top7-candidat.elu .content {
	background-image: linear-gradient(rgba(2, 103, 161, 0), rgba(2, 103, 161, 1));
}

body.ca-commune #top7 .top7-candidat .content {
	background-image: linear-gradient(#FFFFFF, #E1EEF4, #579AC1);
}

body.ca-commune #top7 .top7-candidat .big-number {
	letter-spacing: 1px;
	font-size: 28pt;
}

body.ca-commune #top7 .top7-candidat .libelle-suffrages {
	text-transform: lowercase;
	font-size: 12pt;
}

body.ca-commune #top7 .icon-tick {
	font-size: 270px;
	position: absolute;
	bottom: -50px;
	right: -90px;
}

body.ca-commune #top7 .top7-candidat .position {
	font-weight: bolder;
	color: rgba(255, 255, 255, 0.8);
	font-size: 80pt;
	position: absolute;
	bottom: 0;
	left: 10px;
	line-height: 60px;
	height: 60px;
	background-color: initial;
}

body.ca-commune #top7 .libelle-elu {
	text-transform: uppercase;
	font-size: 27pt;
}

