@font-face {
    font-family: Yanone Kaffeesatz;
    src: url(../font/YanoneKaffeesatz-Bold.woff2) format("woff2"), url(../font/YanoneKaffeesatz-Bold.woff) format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}
:root {
    --base-fontsize: 1.45rem;

    --header-scale: 1.25;

    --line-height: 1.618;

    /* Default (light) theme */
    --event-color: pink;
    --bg: #67A3D9;
    --accent-bg: #F6D2E0;
    --text: black;
    --text-light: #0671B7;
    --border: #F8B7CD;
    --accent: #F8B7CD;
    --accent-light: #C8E7F5;
    --disabled: #111;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --event-color: pink;
        --bg: #171D20;
        --accent-bg: #2F3133;
        --text: white;
        --text-light: #f4d47c;
        --border: #666;
        --accent: #A12568;
        --accent-light: #3B185F;
        --disabled: #111;
    }

    img,
    video {
        opacity: 0.8;
    }
}

/*WRAPPER*/
.subpart{
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
    overflow:auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-left:  10%;
    margin-right: 10%;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--accent-bg);
    color: var(--text);
    text-align: left;
    border-radius: 5px;
}
html {
    height: 100%;
    font-family: Yanone Kaffeesatz;
}

.transparent-container{
    box-shadow: none;
    background-color: transparent;
}

body {
    overflow-x: hidden;
    height: 100%;
    color: var(--text);
    background-color : var(--bg);
    font-size: var(--base-fontsize);
    line-height: var(--line-height);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}
.subpart h2{
    color:var(--text-light);
}
.subpart p,label{
    padding-left: 70px;
    padding-right: 70px;
}

.subpart input,span,textarea,.file{
    margin-left: 70px;
    margin-right: 70px;
}

/*Activites*/

.modal{
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    background-color: var(--accent-bg);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height:auto;
    max-height: 80%;
    padding: 10px;
    overflow-wrap: break-word;
    overflow-y:scroll;
    overflow-x:hidden;
    word-wrap: break-word;

}

.container{
    position:relative;
    width: calc(33% - 10px);
    height:300px;
    margin:5px;
}

#activites-flex{
    overflow:hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#adhesion-flex{
    overflow:hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#event-flex{
    align-items: center;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: hidden;
}

.tag{
    font-size: 0.8em;
    position: absolute;
    width: auto;
    height: 40px;
    text-align:left;
    overflow:hidden;
    width: auto;
    border-radius:2px;
    color:white;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-30px);
    margin-left:30px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.activite-container{
    border: solid 2px var(--text);
    margin: auto;
    padding: 0;
    width: 80%;
    overflow: hidden;
    background-color: var(--bg-accent);
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}
.container-adhesion{
    display: flex;
    flex-direction: row;
}
.event-container{
    overflow: hidden;
    height: 50%;
    width:100%;
}
.event{
    justify-content: center;
    margin: 10px;
    height: auto;
    width: calc(50% - 60px);
    padding: 20px;
}


/*ALIGNEMENT*/
#CA{
    height:200px;
    width:200px;
    margin-left:auto;
    margin-right:auto;
    position:relative;
    overflow: hidden;
    border-radius: 10px;
}
.logo{
    width: 385px;
    height: 154px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: none ;
}

.container-photo{
    display: inline-block;
    vertical-align:top;
}
.container-footer{
    justify-content:center;
    align-items: center;
    display: flex;
}

.right{
    float: right;
}

.left{
    float: left;
}
.name{
    position:relative;
    margin:0;
    margin-top:10px;
}
#calendar{
    height: auto;
}
#index-container{
    padding:0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
    text-align: justify;
}
.index{
    justify-content: center;
    display: block;
    overflow: hidden;
    width: calc(50% - 10px);
    margin:5px;
    height: 100%;
}
.crop{
    overflow: hidden;
    height: 690px;
    margin: 10px;
    border-radius: 5px;
}
.fb-page,
.fb-page span,
.fb-page span iframe[style] {
    margin: auto;
    display: block;
    max-width: 100% !important;
}

/*GENERALITE*/
.fc-event-title-container{
}
video{
    display: block;
    margin: 0 auto;
    width: 90%;
    height: 90%;
}
header {
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
    background: var(--accent-bg);
    border-bottom: 1px solid var(--border);
    text-align: center;
    width: 100vw;
    position: relative;
    box-sizing: border-box;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

main {
    padding-top: 1.5rem;
}

h1,
h2,
h3 {
    text-align: center;
    line-height: 1.1;
}

/* Navigation */
nav {
    font-size: 1rem;
    line-height: 2;
    padding: 1rem 0;
}

nav a {
    margin: 1rem 1rem 0 0;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text) !important;
    display: inline-block;
    padding: 0.1rem 1rem;
    text-decoration: none;
    transition: 0.4s;
}

nav a:hover {
    color: var(--accent) !important;
    border-color: var(--accent);
}

nav a.current:hover {
    text-decoration: none;
}

footer {
    background:var(--accent-bg);
    margin-top: 4rem;
    padding: 2rem 1rem 1.5rem 1rem;
    color: var(--text-light);
    font-size: 1.4rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

h1 {
    font-size: calc(
        var(--base-fontsize) * var(--header-scale) * var(--header-scale) *
        var(--header-scale) * var(--header-scale)
        );
    margin-top: calc(var(--line-height) * 1.5rem);
}

h2 {
    font-size: calc(
        var(--base-fontsize) * var(--header-scale) * var(--header-scale) *
        var(--header-scale)
        );
    margin-top: calc(var(--line-height) * 1.5rem);
}

h3 {
    font-size: calc(
        var(--base-fontsize) * var(--header-scale) * var(--header-scale)
        );
    margin-top: calc(var(--line-height) * 1.5rem);
}

h4 {
    font-size: calc(var(--base-fontsize) * var(--header-scale));
    margin-top: calc(var(--line-height) * 1.5rem);
}

h5 {
    font-size: var(--base-fontsize);
    margin-top: calc(var(--line-height) * 1.5rem);
}

h6 {
    font-size: calc(var(--base-fontsize) / var(--header-scale));
    margin-top: calc(var(--line-height) * 1.5rem);
}

/* Liens & boutons */
a,
a:visited {
    text-decoration: none;
    color: var(--text);
}

a:hover {
    color:var(--text-light);
    text-decoration: none;
}
.zoom{
    transition: transform .2s;
}

.zoom:hover{
    transform: scale(1.1);
}

a button,
button,
[role="button"],
input[type="submit"],
input[type="reset"],
input[type="button"] {
    border: none;
    border-radius: 5px;
    background: var(--accent);
    font-size: 1rem;
    color: var(--text);
    padding: 0.7rem 0.9rem;
    margin: 0.5rem 0;
    transition: 0.4s;
}

a button[disabled],
button[disabled],
[role="button"][aria-disabled="true"],
input[type="submit"][disabled],
input[type="reset"][disabled],
input[type="button"][disabled],
input[type="checkbox"][disabled],
input[type="radio"][disabled],
select[disabled] {
    cursor: default;
    opacity: 0.5;
    cursor: not-allowed;
}

input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    background-color: var(--disabled);
}

input[type="range"] {
    padding: 0;
}

abbr {
    cursor: help;
}

button:focus,
button:enabled:hover,
[role="button"]:focus,
[role="button"]:not([aria-disabled="true"]):hover,
input[type="submit"]:focus,
input[type="submit"]:enabled:hover,
input[type="reset"]:focus,
input[type="reset"]:enabled:hover,
input[type="button"]:focus,
input[type="button"]:enabled:hover,
input[type="checkbox"]:focus,
input[type="checkbox"]:enabled:hover,
input[type="radio"]:focus,
input[type="radio"]:enabled:hover {
    filter: brightness(1.4);
    cursor: pointer;
}

details {
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-bottom: 1rem;
}

summary {
    cursor: pointer;
    font-weight: bold;
    padding: 0.6rem 1rem;
}

details[open] {
    padding: 0.6rem 1rem 0.75rem 1rem;
}

details[open] summary {
    margin-bottom: 0.5rem;
    padding: 0;
}

details[open] > *:last-child {
    margin-bottom: 0;
}

/* Tables */


/* Listes */
ol,
ul {
    padding-left: 3rem;
}

textarea,
select,
input {
    font-size: inherit;
    font-family: inherit;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    width: 60%;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%),
        linear-gradient(135deg, var(--text) 51%, transparent 49%);
    background-position: calc(100% - 20px), calc(100% - 15px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

select[multiple] {
    background-image: none !important;
}

input[type="checkbox"],
input[type="radio"] {
    vertical-align: bottom;
    position: relative;
}

input[type="radio"] {
    border-radius: 100%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--accent);
}

input[type="checkbox"]:checked::after {
    content: " ";
    width: 0.1em;
    height: 0.25em;
    border-radius: 0;
    position: absolute;
    top: 0.05em;
    left: 0.18em;
    background: transparent;
    border-right: solid var(--bg) 0.08em;
    border-bottom: solid var(--bg) 0.08em;
    font-size: 1.8em;
    transform: rotate(45deg);
}
input[type="radio"]:checked::after {
    content: " ";
    width: 0.25em;
    height: 0.25em;
    border-radius: 100%;
    position: absolute;
    top: 0.125em;
    background: var(--bg);
    left: 0.125em;
    font-size: 32px;
}
input[type="color"]{
    padding:5px;
    width:60px;
    height:60px;
}
textarea {
    width: 80%;
    resize: none;
}

/* Faciliter l'écriture mobile */
@media only screen and (max-width: 720px) {
    textarea,
    select,
    input {
        width: 100%;
    }
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

input[type="file"] {
    border: 0;
}

/*Menu*/
.menu {
    display: flex;
    flex-direction : row;
    justify-content: center;
}
ul {
    margin: 0;
    padding: 0px;
    list-style: none;
    background-color: transparent;
    border-radius: 5px;
    display: table;
}

li{
    float: none;
    display: inline-flex;
}

li a {
    display: block;
    text-align: center;
    padding: 20px 20px;
    text-decoration: none;
    transition: color 0.2s ease-in;
}

li a:hover {
    border-radius: 5px;
    color: var(--text-light);
    background-color: var(--accent);
}

.label {
    border: none;
    border-radius: 5px;
    background: var(--accent);
    font-size: 1rem;
    color: var(--text);
    padding: 0.7rem 0.9rem;
    margin: 0.5rem 0;
    transition: 0.4s;
    display: inline-block;
}
.label:hover{
    filter: brightness(1.4);
    cursor: pointer;
}
#file-chosen{
    margin-left: 0.3rem;
}


/*POPUP ACTIVITE*/
.bg-modal {
    align-items: center;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
}



.close{
    float: right;
    position:relative;
    bottom: 30px;
    right: 5px;
    font-size: 42px;
    transform: rotate(45deg);
    cursor: pointer;
    border-radius: 50px;
}
#CA-container{
    width:calc(50% - 10px);
    height:auto;
    margin:0;
    padding-bottom:15px;
}

/*FORMULAIRE*/
.horaire{
    margin-left: 0 !important;
    margin-right: 0 !important;
}
#act-calendar{
    display : flex;
}
/*MOBILE*/

@media (max-width: 800px) {
    .subpart{
        margin: 0;
        padding-left:0;
        padding-right:0;
        margin-bottom: 40px;
    }
    #activites-flex {
        flex-direction: column;
    }

    #index-container{
        flex-direction: column;
    }
    .index{
        width: 100%;
    }
    .fb-page, .fb-page span,
    .fb-page span iframe[style]{
        margin:0;
    }
    .container{
        width:100%;
    }
    #event-flex{
        flex-direction: column !important;
    }
    .event{

        width: 100% !important;
    }
    #act-calendar{
        display:block !important;
    }
    .modal{
        max-width:100%;
        width: 100%;
    }
    .container-footer{
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .container-adhesion{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #CA-container{
        margin-left:auto;
        margin-right:auto;
        display: block;
        padding-top:15px;
    }

}

.fc-event{
    cursor: pointer;
}
.fc-event-main{
    mix-blend-mode:exclusion;
}