* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-color: var(--bleu) var(--gris-clair);
    scrollbar-width: thin;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    font-family: "Sora", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}
.jaune { color:var(--jaune);}
.magenta { color:var(--magenta);}
.bleu { color:var(--bleu);}

#hero {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 5rem;
}

/* couleurs */
:root {
    --jaune: #ffed00;
    --gris-clair: #f3f3f4;
    --gris-fonce: #898793;
    --magenta: #e6007e;
    --bleu: #312783;
    --jaune-clair: #fffbe0;
    --magenta-clair: #fadceb;
}
header, footer {
    display: grid;
    grid-template-columns: 1fr auto;
    background-color: #fff;
    padding: 2rem;
}
footer { align-items: center; grid-template-columns: 1fr 3fr;}
#logo img {
    width: auto;
    height: 80px;
}
#top-nav {
    display: grid;
    height: 3rem;
}
#top-nav button {
    margin-left: 1rem;
}
.grid {
    display: grid;
}
.cols-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* force colonne largeur fixe */
    grid-gap:3rem;
}
.cols-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-gap:3rem;
}
.cols-4 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.col { position: relative;}

#listeCandidats .grid .col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-gap:2rem;
    align-content: start;
}


#listeCandidats .grid .col div {
    align-content: end;
}

#listeCandidats h4 { margin:0; font-size: clamp(1rem, 1.3dvw, 2rem); padding-bottom: 0.5rem; }

.elu { background-color: #e6007e; color: #fff; font-size: 0.9rem; padding: 0.7rem;}

img {
    display: block;
    width: 100%;
    height: auto;
}
button {
    display: grid;
    width: auto;
    align-content: center;
    background-color: var(--magenta);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    font-size: clamp(0.8rem, 2dvw, 1.2rem);
    text-transform: uppercase;
}
a {
    color: inherit;
    text-decoration: none;
}
.margeGD {
    margin-left: 15dvw;
    margin-right: 15dvw;
}
h1 {
    color: var(--bleu);
    font-size: clamp(2rem, 7dvw, 6rem)
}
h2 {
    color: var(--bleu);
    font-size: clamp(1.5rem, 2dvw, 2.5rem);
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}
h3 {
    color: var(--magenta);
    font-size: clamp(1.5rem, 2dvw, 2.5rem);
    margin: 0;
    padding: 0;
}
h4 {
    color: var(--bleu);
    font-size: clamp(1.5rem, 2dvw, 2rem);
}

main > div {
    margin-bottom: 5rem;
}
#intro {
    position: relative;
    padding: 0 25dvw;
}
#intro::before {
    position: absolute;
    top: 0;
    left: 5%;
    width: 120px;
    height: auto;
    content: url(images/barre-magenta.svg);
    z-index: -1;
}
#intro p {
    font-size: clamp(1.5rem, 5dvw, 2.5rem);
    font-weight: bold;
    color: var(--gris-fonce);
}
#intro h2 {
    font-size: clamp(2rem, 2.5dvw, 4rem);
    color: var(--magenta);
}
#intro h3 {
    font-size: clamp(2rem, 5dvw, 3rem);
    color: var(--bleu);
    text-transform: uppercase;
}
#plan {
    display: grid;
    align-content: top;
    background: var(--bleu) url(images/plan.webp) no-repeat center bottom;
    background-size: 100% auto;
    padding: 5rem 5rem 5rem 50%;
    height: 55dvh;
    justify-items: right;
    align-content: start;
    text-align: right;
}
#plan h2, #plan p {
    color: #fff;
}
#plan h2 {
    color: var(--jaune);
}
#plan .fondJaune { padding: 1rem; }


#Mehr {
    display: grid;
    align-content: center;
    background: var(--magenta) url(images/bando-bas.webp) no-repeat center;
    background-size: cover;
    padding: 15dvw;
    height: 30dvh;
}
#Mehr h2, #Mehr p {
    color: #fff;
}
#Mehr h3 {
    color: var(--jaune);
}
#Mehr button {
    background-color: var(--jaune);
    color: var(--magenta);
}
#date1, #date2, #date3, #date4, #date5, #date6 {
    border: 3px solid var(--gris-clair);
    padding: 2rem;
    margin-bottom: 1rem;
}
#date1 h4, #date2 h4, #date3 h4, #date4 h4, #date5 h4, #date6 h4 {
    color: var(--magenta);
    padding: 0;
    margin: 0;
}
#date5, #date6 {
    padding: 2rem;
    margin-bottom: 1rem;
}
.contourGris {
    border: 3px solid var(--gris-clair);
    padding: 2rem;
}
#calendar .colD div {
    margin-bottom: 1rem;
}
#calendar .colG::before {
    position: absolute;
    top: 0;
    left: -22px;
    width: 3px;
    height: 100%;
    content: url(images/barre-magenta.svg);
    z-index: -1;
    background-color: var(--jaune);
    content: "";
}
#calendar .contourMagenta {
    border: 4px solid var(--magenta);
    padding: 2rem;
    margin-bottom: 1rem;
}
.fondGris {
    background-color: var(--gris-fonce);
    padding: 2rem;
}
.fondGrisClair {
    background-color: var(--gris-clair);
    padding: 2rem;
}        
#calendar > div:nth-child(2) h4{
    color: var(--gris-fonce);
    padding: 0;
    margin: 0;
}
blockquote {
    position: relative;
    font-size: clamp(1.5rem, 5dvw, 2rem);
    color: var(--gris-fonce);
    font-weight: bold;
    padding: 0 0 0 15%;
    margin-bottom: 6rem;
}
blockquote::before {
    position: absolute;
    top: -40px;
    left: 0;
    width: 50px;
    height: auto;
    content: url(images/barre-bleue-2.svg);
    z-index: -1;
}
.fondJaune {
    background-color: var(--jaune);
    padding: 2rem;
}
.fondMagentaClair {
    background-color: var(--magenta-clair);
    padding: 2rem;
    border: none;
}
.fondMagenta {
    background-color: var(--magenta);
    padding: 2rem;
    border: none;
}
.fondBleu {
    background-color: var(--bleu);
    padding: 2rem;
    border: none;
}
.fondBlanc { background-color: #fff; }
footer { font-size: 0.9rem;}
.noGap { grid-gap: 0 }

.etape { position: relative; }
#accordeon1 h4, #accordeon1 p, #accordeon2 h4, #accordeon2 p { color: #fff;}
#accordeon1 h4, #accordeon2 h4 { margin: 0; font-size: clamp(1.2rem, 2dvw, 2rem);}
#accordeon1 p, #accordeon2 p, .etape p { margin: 0; padding: 0 2rem 0 0; font-size: clamp(1.2rem, 2dvw, 1.2rem);}

#accordeon1 button, #accordeon2 button, .etape button {
    position: absolute;
    right: 0;
    bottom: 0;
}

#Remarque {
    padding: 2rem;
    font-size: 1.2rem;
    border: 4px solid var(--magenta);
    color: var(--magenta);
    margin-top: 2rem;
}

#etapes h4 { font-size: clamp(1.2rem, 2dvw, 1.3rem); text-transform: uppercase; text-align: center; color: #fff;}
#etapes h4 strong { color: var(--jaune) }
#etapes p { color: #fff; }

#etapes div:last-child * { color: #000;}
#etapes div:last-child h4 { color: var(--bleu);}
#etapes div:last-child h4 strong { color: var(--magenta);}

.icon {
    display: block;
    width: auto;
    height: 100px;
    margin:0 auto;
}

#accordeon1, #etapes { align-items: start; }
#accordeon1 .icon { margin: 0; }

#accordeon1 .col, #etapes div {
    overflow: hidden; /* Empêche le contenu de forcer la hauteur */
    transition: max-height 0.3s ease;
}

.slide-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.slide-contentCandid {
    grid-column: span 2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    font-size: 0.9rem;
}

.nextEvent {
    position: relative;
    background-color: var(--jaune-clair);
    border: 4px solid var(--magenta);
}

.nextEvent::before {
    position: absolute;
    top: 25%;
    left: -25px;
    width: 50px;
    height: 50px;
    content: url(images/flecheEvent.svg);
    z-index: 5;
}
video {
    width: 100%;
    height: auto;
}

@media screen and (max-width: 600px) {
    body { font-size: 1rem; }
    #top-nav button { font-size: 0.7rem; padding: 0.3rem; }
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
    #intro { padding: 0 5dvw; }
    #intro p { padding-right: 10dvw; }
    #logo img { height: 60px; }
    .margeGD { margin-left: 5dvw; margin-right: 5dvw;}
    #intro::before {  left: unset; right: 0; width: 58px; }
    button { width: unset;}
    #Mehr { background-size: 100%; background-position: top center;}
    footer { font-size: 0.6rem;}
    footer p { padding-left: 2rem;}
    
}

@media screen and (min-width: 601px) and (max-width: 1150px) {
    body { font-size: 1rem; }
    .cols-4 { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 900px) {
    .cols-2 { grid-template-columns: 1fr; }
    #plan { padding: 2rem; height:95dvh;background-image: url(images/plan-verti.webp); }
}