
@font-face {
    font-family: 'waltograph';
    src: url('font/waltograph42.otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cinema';
    src: url('font/Wonderbar 2.0_D.otf');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*color: #fff;*/
    /*background: linear-gradient(to bottom, #940c0cbd, #270000);*/
    /*background: linear-gradient(to bottom, #94850c66, #2721004f);*/
    background: radial-gradient(circle, rgb(94, 125, 157) 0%, rgb(101, 4, 155) 48%, rgb(49, 0, 51) 100%);
    /*ackground-image: url('/images/fond.jpg');*/
}

.content{
    width : 100%;
    /*background-color : #6c95f796;*/
    padding-top : 1rem;
    padding-bottom : 1rem;
}

.back{
    /*background-image: url('/images/fond.jpg');*/
    background-attachment : fixed;
    width : 100%;
}

.header {
    text-align: center;
    /*background: linear-gradient(to bottom, #020027, #0c0e94bd);
    padding: 1rem;
    background: url("/images/entete.png");
      background-repeat: repeat;
    background-repeat: no-repeat;*/
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    /*height: 168px;*/
    padding: 20px;
    color: #fff;
    /*background: #000;*/
    /*border-radius: 20px;*/
    padding-bottom: 7px;
    margin-bottom: 20px;
    /*border: dotted 10px rgb(255, 255, 255);*/
}

.titre{
  background: white;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 5px;
  width: 100%;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  box-shadow: inset 0px 0px 0px 3px rgb(213, 213, 213),inset 0px 0px 0px 4px rgba(40, 40, 40, 0.28);
  background: linear-gradient(to right, rgb(191, 191, 191) 0%,rgb(223, 223, 223) 51%,rgb(162, 162, 162) 100%);
  
}

.header h1 {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top:0px;
    text-shadow: #FDFDFDCC 1px 0 30px;
}
.header h2 {
    font-size: 35px;
    font-weight: bold;
    margin: 0px;
    text-shadow: #FDFDFDCC 1px 0 30px;
}

.header p {
    font-size: 36px;
    margin: 0;
    text-shadow: #FDFDFD 1px 0 30px;
}

.footer{
    text-align: center;
    /*background: linear-gradient(to bottom, #020027, #492293bd);*/
    padding: 1rem;
    /*background: #000;*/
    color: #fff;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.footer p{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.footer h1 {
    margin: 0px;
    text-shadow: #FDFDFD 1px 0 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
}

.border-card{
    width: 100%;
    height: 100%;
    position: absolute;
    top: -15px;
    border: dotted 10px rgb(255, 255, 255);
    padding: 5px;
}

.candidate-card {
    /*background-color:#020027;*/
    background: linear-gradient(to bottom, #0093cc, #7978a6);
    border-radius: 7px;
    box-shadow: 5px 5px 19px #000;
    /*padding: 20px;*/
    /*text-align: center;*/
    display: flex;
    flex-direction: column; /* Pour aligner le contenu verticalement */
    justify-content: space-between; /* Pour pousser le contenu vers le bas */
    transition: transform 0.2s;
    /*cursor: pointer;*/
    font-family: Arial, Helvetica, sans-serif;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    padding-bottom: 1rem;
    /*border: dashed 3px rgb(0, 0, 0);*/
    position: relative;
    border: solid 1px #000;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding-top: 290px;
}

.candidate-card:hover {
    /*transform: scale(1.1);*/ /* Appliquer l'effet de zoom lors du survol */
}

.candidate-info img{
    transition: transform 0.2s;
    margin-bottom: -7px;
}

.candidate-info a{
   text-decoration: none;
   color: black;
}

.candidate-info a img:hover{
    transform: scale(1.1);
}

.candidate-img {
    flex-grow: 1;
    border-radius: 50px 50px 200px 200px;
    object-fit: cover;
    margin: 0;
    height: 300px;
    width: 85%;
    transition: transform 0.2s;
    max-height: 300px;
    /*padding: 20px;*/
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
    position: absolute;
    top: -15px;
    box-shadow: 5px 5px 19px #000;
    box-shadow: 0px 0px 0px 3px rgb(213, 213, 213), 0px 0px 0px 4px rgba(40, 40, 40, 0.28);
}

.candidate-name {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0 5px;
    text-shadow: 0px 0px 15px #fff;
    text-align: center;
    border-bottom: 3px solid #ae671b;
    width: 100%;
    padding-bottom: 15px;
    border-top: 3px solid #ae671b;
    padding-top: 15px;
    background-color: #1c31a84f;
    /*color: yellow;*/
}


.candidate-info {
    font-size: 13px;
    /*color: #777;*/
    /*margin-bottom: 15px;*/
    text-shadow: 0px 0px 15px #fff;
    /*margin-left: auto;
    margin-right: auto;*/
}

.vote-button {
    background-color: #ca1414;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px; /* Coins arrondis uniquement en bas */
    cursor: pointer;
    box-shadow: 0px 0px 19px #fff;
    transition: transform 0.2s;
    text-decoration: none;
    box-shadow: inset 0px 0px 0px 3px rgb(213, 213, 213),inset 0px 0px 0px 4px rgba(40, 40, 40, 0.28);
    background: linear-gradient(to right, rgb(0, 189, 12) 0%,rgb(2, 215, 35) 51%,rgb(19, 155, 0) 100%);
}

.vote-button:hover {
    background-color: #ce7190;
    transform: scale(1.1);
}

.gallery-link{
    padding-bottom: 1rem;

    text-decoration: none;
    color: white;
    background-color: #563671;
    width: fit-content;
    padding: 7px;
    border-radius: 20px;
    margin: 1rem;
}

.gallery-link:hover {
    background-color: #5a4fa8;
}

/*ribbon*/
.ribbon {
    position: absolute;
    right: 10px;
    top: -20px;
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.5));
    z-index: 1000;
}
.ribbon > .content {
    color: white;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 400;
    background: #911717 linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
    padding: 8px 2px 4px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 100%);
    /*width: 32px;*/
    min-height: 36px;
    transition: clip-path 1s, padding 1s, background 1s;
}
.ribbon.slant-up > .content {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% calc(100% - 6px), 0 100%);
}
.ribbon.slant-down > .content {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 calc(100% - 12px));
}
.ribbon.down > .content {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 50% 100%, 0 calc(100% - 8px));
}
.ribbon.up > .content {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 8px), 0 100%);
}
.ribbon.check > .content {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 40% 100%, 0 calc(100% - 12px));
}

.ribbon2 {
    width: 100px;
    height: 100px;
    overflow: hidden;
    position: absolute;
    z-index: 1;
}

.ribbon2::before,
.ribbon2::after {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    /*border: 5px solid #ddd;*/
}
.ribbon2 div {
    position: absolute;
    display: block;
    width: 150px;
    padding: 5px 0;
    background-color: #fff;
    /*box-shadow: 0 5px 10px rgba(0,0,0,.1);*/
    /*font: 700 18px/1 'Lato', sans-serif;*/
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
    text-transform: uppercase;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: inset 0px 0px 0px 3px rgb(213, 213, 213),inset 0px 0px 0px 4px rgba(40, 40, 40, 0.28),inset 0px 0px 0px 5px rgba(225, 225, 225, 0.4), 0px 21px 5px -18px rgba(0,0,0,0.8);
    background: linear-gradient(to right, rgb(191, 191, 191) 0%,rgb(223, 223, 223) 51%,rgb(162, 162, 162) 100%);
    overflow: hidden;
}

.feminin{
    color: #db0f0f;
}

.masculin{
    color: #0f98db;
}

/*.ribbon2 div {
    background: transparent;
    height: 100px;
    width: 100px;
    position: absolute;
    top: -10px;
    left: 10px;
    overflow: hidden;
}*/

.ribbon2 div::before{
    content:"";
    display: block;
    /*background-color: red;*/

    width: 50px;
    height: 10px;
    position: absolute;
    top: 13px;
    left: 99px;
    transform: rotate(45deg);
    background: linear-gradient(to top, rgba(255,255,255,0) 1%,rgba(255,255,255,0.6) 50%,rgba(255,255,255,0) 100%);
}

.ribbon2 div::after{
    content:"";
    display: block;
    /*background-color: red;*/

    width: 50px;
    height: 10px;
    position: absolute;
    top: 9px;
    left: 3px;
    transform: rotate(-45deg);
    background: linear-gradient(to bottom, rgba(255,255,255,0) 1%,rgba(255,255,255,0.6) 50%,rgba(255,255,255,0) 100%);
}

/* top left*/
.ribbon2-top-left {
    top: -28px;
    left: 6px;
}
.ribbon2-top-left::before,
.ribbon2-top-left::after {
    border-top-color: transparent;
    border-left-color: transparent;
}

.ribbon2-top-left::before {
    top: 0;
    right: 0;  
    content: "";
    
    width: 50px;
    height: 10px;
    border-radius: 10px 10px 0px 0px;
    /*background: linear-gradient(to right, rgba(0,138,59,1) 1%,rgba(15,51,10,1) 45%);*/
    background: linear-gradient(to left, rgb(176, 176, 176) 1%,rgb(121, 121, 121) 45%);    
}
.ribbon2-top-left::after {
    bottom: 0;
    left: 0;

    width: 10px;
    height: 50px;
    border-radius: 10px 0px 0px 10px;
    background: linear-gradient(to bottom, rgb(121, 121, 121) 1%, rgb(176, 176, 176) 45%);
}
.ribbon2-top-left div {
    right: -12px;
    top: 23px;
    transform: rotate(-45deg);
}

.clap {
    position: absolute;
    top: -30px;
    right: -20px;
    text-align: center;
    background: url('/images/clap.png');
    background-repeat: repeat;
    height: 65px;
    width: 50px;
    background-repeat: no-repeat;
    z-index: 1;
}

.clap .counter {
    color: white;
    padding-top: 40px;
    /*position: absolute;
    right: 25px;
    top: 60px;*/
}


/**/

/* Mise en page réactive pour les mobiles */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr; /* Une colonne pour les mobiles */
        width: 80%;
    }
}
@media (max-width: 600px) {
    .header h1 {
        font-size: 38px;
    }
    .header h2 {
        font-size: 28px;
    }

    .header p {
        font-size: 26px;
    }
}

