/* events */
section#events {
    background-color: var(--color-primary-stars);
    position: relative;
    height: auto;
    min-height: auto;
    margin-block: 52px;
    padding-block: 5%;
    overflow: visible;
}

section#events .custom-shape-divider-top-1731859965 {
    position: absolute;
    bottom: -52px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1731859965 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 52px;
}

.custom-shape-divider-top-1731859965 .shape-fill {
    fill: var(--color-primary-stars);
}

section#events .custom-shape-divider-bottom-1731860165 {
    position: absolute;
    top: -52px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1731860165 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 52px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1731860165 .shape-fill {
    fill: var(--color-primary-stars);
}

section#events .events {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section#events h1,
section#partners h1,
section#about h1,
section#contact h1 {
    font-size: 2em;
    font-weight: 600;
    font-family: 'Relieve', sans-serif;
    color: var(--color-noir);
    text-align: center;
    margin-bottom: 64px;
}

section#events .grid,
section#partners .grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 64px;
    justify-items: center;
    align-items: center;
}

section#events .grid .card,
section#partners .grid .card,
section#subpages .card {
    width: 60%;
    max-width: 700px;
    min-width: 350px;
    height: 100%;
    padding: 32px;
    background: var(--color-blanc);
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    border-radius: 32px;
    border: var(--color-noir) 2.5px solid;
    box-shadow: 6px 6px var(--color-noir);
}

section#partners .grid .card img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    border-radius: 8px;
}

section#events .grid .card .image_events {
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 256px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
}

.image_events i {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

section#events .grid .card .image_events:hover i {
    transform: scale(1.3) rotate(90deg);
}

section#events .image_events img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999999;
}

.full-img img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    border: solid 2px var(--color-gris-noir);
}

.full-img i {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: var(--color-blanc);
    cursor: pointer;
    transition: all .2s;
}

.full-img i:hover {
    color: var(--color-primary);
}

section#events .grid .card h2,
section#partners .grid .card h2,
section#subpages .card h2 {
    font-size: 1.5em;
    margin-block: 32px;
    font-weight: 800;
    color: var(--color-noir);
}

section#events .grid .card p,
section#partners .grid .card p,
section#subpages .card p {
    font-size: 1em;
    font-weight: 500;
    color: var(--color-gris-noir);
}

section#events .grid .card p strong,
section#subpages .card p strong {
    font-weight: 700;
    color: var(--color-noir);
}
