
@font-face {
    font-family: 'waltograph';
    src: url('font/waltograph42.otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cinema';
    src: url('font/agencyfb_reg.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'chewy';
    src: url('font/Chewy-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

@keyframes neonFlicker {
    0%, 100% { text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px #ff69b4, 0 0 82px #ff69b4; }
    50% { text-shadow: 0 0 5px #fff, 0 0 8px #fff, 0 0 18px #fff, 0 0 35px #ff69b4, 0 0 70px #ff69b4; }
}

@keyframes discoLight {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    margin: 0;
    padding: 0;
    font-family: cinema, Arial, sans-serif;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;

    /*background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);*/
    background-size: 400% 400%;
    animation: discoLight 15s ease infinite;
    color: white;

    /*color: #fff;*/
    /*background: linear-gradient(to bottom, #940c0cbd, #270000);*/
    background: linear-gradient(to bottom, #94850c66, #2721004f);*
    /*background: radial-gradient(circle, rgb(157, 94, 94) 0%, rgb(155, 4, 4) 48%, rgb(51, 0, 0) 100%);*/
    /*ackground-image: url('/images/fond.jpg');
    background: rgb(13,12,12);
    background: linear-gradient(270deg, rgb(13, 12, 12) 0%, rgb(116, 68, 32) 50%, rgb(13, 12, 12) 100%);*/
    
}

.content{
    width : 100%;
    /*background-color : #6c95f796;*/
    padding-top : 1rem;
    padding-bottom : 1rem;
}

.back{
    /*background-image: url('/images/fond.jpg');
    background-attachment : fixed;
    width : 100%;
    background-image: url('/images/holly.png');
    background-position: center;
    background-size: 90rem;*/
}

.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: #f3cd5d;
    /*background: #000;*/
    /*border-radius: 20px;*/
    /*padding-bottom: 7px;*/
    margin-bottom: 20px;
    /*border: dotted 10px rgb(255, 255, 255);*/
    background: #000;
    box-shadow: 0px 0px 0px 3px #d3a33f, 0px 0px 0px 4px #b77c22;

    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 10px;*/
}

@media (max-width: 768px) {
    .header {
        display:block;
    }
}

@media (max-width: 480px) {
    .header {
        display:block;
    }
}

.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%);
  display: none;
}

.header h1 {
    font-size: 58px;
    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, #deeaf4, #865d31);
    /*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;
    /*box-shadow: 0px 0px 0px 3px #d33fd1, 0px 0px 0px 4px #ab22b7;*/
}

.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: #422500;
}

.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 #d33fd1, 0px 0px 0px 4px #ab22b7;*/
}

.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 #b78422;
    width: 100%;
    padding-bottom: 15px;
    border-top: 3px solid #b79922;
    padding-top: 15px;
    background-color: #573e0e;
    color: #fff;
    /*text-shadow: 0 0 15px #fff, 0 0 20px #fff, 0 0 18px #fff, 0 0 35px #ff69b4, 0 0 70px #ff69b4;*/
}


.candidate-info {
    font-size: 13px;
    color: #f3cd5d;
    margin-bottom: 15px;
    /*text-shadow: 0px 0px 15px #fff;*/
    /*margin-left: auto;
    margin-right: auto;*/
}

.vote-button {
    /*background-color: #ca1414;
    color: #f3cd5d;
    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: 0px 0px 0px 3px #d3a33f, 0px 0px 0px 4px #b77c22;
    background: linear-gradient(to right, #000 0%,#000 51%,#000 100%);*/
    background: linear-gradient(45deg, #ffe869, #b06832);
    color: #422500;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.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));
}
.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: 50px;
    width: 50px;
    background-repeat: no-repeat;
    z-index: 1;
    background: radial-gradient(circle, #fff 9%, silver 50%);
    border-radius: 50%;
}

/*.clap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(255,255,255,0.8) 5px, rgba(255,255,255,0.8) 10px);
    border-radius: 50%;
    animation: sparkle 1s linear infinite;
}*/

.clap .counter {
    color: #262626;
    padding-top: 10px;
   /* background: repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(255,255,255,0.8) 5px, rgba(255,255,255,0.8) 10px);*/
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5rem;
}



/**/

/* 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;
    }
}

