@font-face {
    font-family: 'Faune';
    src:    url('Faune-Text_Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Faune', Arial, Helvetica, sans-serif;
    min-height: 100vh;
    margin: 0;

    --primary-background: white;
    --primary-color: #007e88;
    --links-color: #db044c;
    --secondary-color: #0023aa; // alt texts

    background: var(--primary-background);
}

header {
    background-color: var(--primary-background);
    margin-bottom: 0;
    font-size: 16px;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--primary-color);
    /*! padding-top: 20px; */
    font-weight: 600;
    align-items: center;
}

header > *, header #menu > * {
    margin: 0 15px;
}

header a.root {
    font-size: 24px;
    margin: 0;
    color: inherit;
}

header a {
    text-decoration: none;
    color: inherit;
    /*! padding: 10px 10px; */
    font-size: 12pt;
}

header a:hover {
    color: var(--links-color);
}

header img {
    margin: 20px;
}

.dropdown {
   position: relative;
   display: inline-block;
   padding: 10px; 
}

.dropdown-content {
  display: none;
    font-size: 1.9em;
    position: absolute;
    background-color: var(--primary-background);
    min-width: 181px;
    box-shadow: 0px 8px 8px 0px rgba(0,0,0,0.2);
    padding: 10px;
    top: 34px;
    left: -10px;
}

.dropdown-content ul {
    list-style-type: none;
    margin: 0;
    padding: 5px;
}

.dropdown-content ul li {
    /*! padding: 10px 0; */
    margin: 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

header #menu_toggle, header #menu_icon {
    display:none;
}


.messages {
    border: 2px solid black;
    padding: 5px;
    background: #ccc;
}

.messages .error::before {
    content: "🚨 "    
}

.messages .warning::before {
    content: "⚠️ "    
}

.messages .success::before {
    content: "ℹ️ ";
}
.container {
    /*! max-width: 1472px; */
    margin: 0 auto;
    /*! background: black; */
    /*! border-radius: 8px; */
    /*! box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); */
    /*! overflow: hidden; */
    display: flex;
    flex-wrap: wrap;
}

.header {
    color: var(--primary-background);
    padding: 20px 30px;
    font-weight: normal;
    font-size: 34px;
    flex: 100%;
    justify-content: left;
    background: linear-gradient(133deg, var(--primary-color) 0%, #018c7f 100%);
}

.header h1 {
    font-size: 1.5em;
    margin: 10px;
    font-weight: 450;
    letter-spacing: -1.8px;
    animation: 0.5s ease-out 0s 1 slideIn;
}

@keyframes slideIn {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.header p {
    font-size: 1;
    opacity: 0.9;
}

.content {
    padding: 40px 30px;
}

aside {
    float: left;
    display:block;
    padding: 20px;    
    flex: 1;
}

aside h2 {
    font-weight: normal;
}

aside input[type=checkbox] {
    display: none;
}
aside input[type=checkbox] + label {
    display: inline-block;
    background: linear-gradient(43deg,rgba(42, 123, 155, 0.2) 19%, rgba(87, 199, 133, 0.2) 100%);
    
    margin: 5px ;
    border-radius: 30px;
    padding: 5px 15px;
    transition: 300ms;
    cursor: pointer;    
    user-select: none;
}
aside input[type=checkbox] + label:hover {
    background: linear-gradient(43deg,rgba(42, 123, 155, 0.5) 19%, rgba(87, 199, 133, 0.5) 100%);
    box-shadow: 0px 0px 5px 4px rgba(0,0,0,0.18);
    /*! color:white; */
}
aside input[type=checkbox]:checked + label {
    background: linear-gradient(43deg,rgba(42, 123, 155, 1) 19%, rgba(87, 199, 133, 1) 100%);

    color: var(--primary-background);
}

section {
    flex: 3;
}

article.activity {
    border: 1px solid #dbdbdb;
    border-radius: 15px;
    padding: 15px;
    margin: 15px;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8em;
    color: #00004b;
    width: 459px;
    display: inline-block;
}

article.activity h2 {
    flex: 1 1 1000px;
    font-weight: 700;
    margin: 0;
    color: #0023aa;
    font-size: 20px;
}

article.activity h3 {
    padding: 0px;
    margin: 5px 0 0 0;
    border-bottom: 1px solid lightgrey;
    width: 100%;
    font-size: 1.2em;
    font-weight: normal;
    color: var(--primary-color);
}

article.activity .speakers {
    display : flex;
    flex-direction: row;
    flex-wrap: wrap;
}

article.activity figure {
    display: flex;
    /*! background: #dcf4ed; */
    border-radius: 5px;
    margin: 10px 10px 0 0;
    /*! padding: 0 11px; */
}

article.activity figure img{
    height: 50px;
    border-radius: 15px;
    width: 50px;
}

article figure figcaption {
    margin: 10px 10px;
}

article.activity ul {
    list-style: none;
    margin: 0;
    padding: 10px 0 0 0;
}
article.activity li {
    background: #07788c;
    padding: 8px 13px;
    display: inline-block;
    border-radius: 30px;
    margin: 3px;
    color: var(--primary-background);
}

p.text {
    padding-left: 9vh;
    max-width: 752px;
    flex: 100%;
}

/* Media Queries pour le responsive */
@media screen and (max-width: 768px) {
    header {
        a.root img {
            width: 250px;
            margin: 10px;
        }
        
        #menu_icon {
            display: inline-block;
            margin-right: 32px;
            padding: 4px 10px;
            font-size: 22pt;
            background: var(--primary-background);
            border: 4px solid #eeeeee;            
            z-index: 10;
        }
        #menu { 
            top: -600px; 
            position: absolute;
            transition: top 300ms;
        }
        #menu_toggle {
            display: none;
            z-index: 10;
            position: absolute;
        }
    
        #menu_toggle:checked ~ #menu {       
            font-size: 25pt;
            display: block;
            top:0;
            padding: 5px;
            width: 100%;
            height: 100%;
            
            border: 5px solid deeppink;
            backdrop-filter: blur(20px);
            background-color: rgba(255, 255, 255, 0.7);
            z-index: 5;
                    a { 
                display: block;
                padding: 5px;
                border-top:1px solid grey;
                font-size: 22pt;
            }
            .dropdown-content {
                display: block;
                position: relative;
                margin: 0;
                padding: 0;
                box-shadow: none;
                top: 0;
                left:0;
                background-color: transparent;
                ul li {
                    padding:0;
                }
                
                font-size: 1em;
            }            
}
    }
    
    .header h1 {
        font-size: 1;
    }

    .content {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px;
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }

    .ticket-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .remove-ticket {
        width: 100%;
    }
    
    article.activity {
        width: 350px;
        
    }
}
