/*
------------------------ FONTS
*/
@font-face {
    font-family: 'IBMPlexSans';
    src: url('../fonts/IBMPlexSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'IBMPlexSans-semibold';
    src: url('../fonts/IBMPlexSans-SemiBold.ttf') format('truetype');
}

/*
------------------------ GLOBAL
*/

:root 
{
    --black:                #444443;
	--blue: 			    #0000FF;
    --grey:                 #E6E6E6;
    --padding-ic:           10px;
    --border-radius:        5px;
    --padding-tree-elmts:   16px;
}

b
{
    font-family:        'IBMPlexSans-semibold';
}

body
{
    font-family:        'IBMPlexSans';
    color:              var(--black);
    margin:             0;
    padding:            1em 1em 1em 1em;  
    box-sizing:         border-box;
    width:              100vw;
    display:            flex;
    flex-direction:     column;
    font-size:          16px;
}

p,li
{
    color:              var(--black);
    font-size:          1.2em;
}

p a
{
    display:            inline-block;
    color :             var(--blue);
    text-decoration:    none;
    transition:         color 150ms;
}

p a:hover
{
    color:              var(--black);
}

/*
------------------------ HEADER
*/

#header
{
    height:             60px;
    display:            flex;
    justify-content:    flex-end; 
}

#header .left
{
    flex : 0 0 100px;
}

#header .right
{
    display:            flex;
    flex:               1;
    /*
    border-bottom:      1px solid var(--black);
    */
    justify-content:    end;
}

#front #header
{
    border-bottom:      0;
}

.menu
{
    list-style:         none;
    padding:            0;
    margin:             0;    
    display:            flex;
    align-items:        center;
}

.menu li:not(:last-child)::after 
{
    content:            "•"; /* The dot */
    margin:             0 0.5rem;
}


.menu li
{
    color:              var(--blue);
}

a,
.menu a 
{
    font-family:        'IBMPlexSans';
    color:              var(--blue);
    text-decoration:    none;
    opacity:            1.0;
    transition:         color;
}

a:hover,
.menu a:hover
{
    text-decoration:    none;
    color:              var(--black) 
}



/*
------------------------ SEARCHBOX
*/
.container-searchbox
{
    display:            flex;

}

input.searchbox
{
    width:              100%;
    font-size:          1.2em;
    font-family:        'IBMPlexSans';
    border:             1px solid var(--blue);
    border-right:       0;
    border-radius :     var(--border-radius) 0 0 var(--border-radius); 
    box-sizing:         border-box;
    padding:            4px 4px 4px 8px;
    background-color:   white; 
}

input.searchbox::placeholder {
    color:              var(--black);
}

input.searchbox:focus-visible
{
    outline:            none; 
}

.container-searchbox .icon-search
{
    display:            inline-flex;
    font-size:          1.2em;
    box-sizing:         border-box;
    border:             1px solid var(--blue);
    border-left:        0;
    border-radius :     0 var(--border-radius) var(--border-radius) 0; 
    padding:            6px 8px 6px 6px;
    background-color:   white;
}

.container-searchbox .icon-search::before
{
    content: '|';
    margin-right: 0.5em;
}

.container-searchbox .icon-search img
{
    width:              20px;
    cursor:             pointer;
    pointer-events:     none;
    transition:         opacity 250ms; 
}

.container-searchbox .icon-search img.active
{
    opacity:            1;
    pointer-events:     auto;
}

#main .searchbox img
{
    max-width:              100%;
    max-height:             100%;
}


/*
------------------------ FOOTER
*/
#footer
{
    display:            flex;
    position:           relative;
    background-color:   white;
    height:             60px;
}

#footer .right
{
    border-top:         1px solid var(--blue); 
}

#footer.no-border-top
{
    border-top:         0; 
}


#footer img
{
    position :          absolute;
    height:             50px;
    bottom:             -5px;
    left:               8px;
}

#footer .menu
{
    position :          absolute;
    right:              10px;
    top:                25px;
}
#footer .menu,
#footer .menu li a 
{
    font-family:        'IBMPlexSans';
    color:              var(--black);
    text-decoration:     none;
}

#footer .menu li a:hover
{
    color:              var(--blue);
} 

#front #footer
{
    border-top:         0;
}

/*
------------------------ MAIN CONTAINER
*/

#main 
{
    box-sizing:         border-box;
    position:           relative;
    flex:               1;
    overflow:           hidden;
}

#main h1,
#main h1.these-year,
#main h2,
#main h2.these-year
{
    font-size:          2em;
    color:              var(--black);
    font-family:        'IBMPlexSans'; 
}

#main h1,
#main h1.in-news a,
#main h2,
#main h2 a
{
    font-family:        'IBMPlexSans-semibold'; 
    color:              var(--blue);
}



#main h3
{
    font-size:   1.2em;
    font-weight: normal;
    color:       var(--black);

}

#main h2
{
    font-size:          2em;
}

#main h1 a:hover,
#main h2 a:hover
{
    text-decoration: none;
    color : var(--black);
    transition: color 250ms;
}


/*
------------------------ FRONT PAGE
*/

#main > .container-searchbox
{
    position:           absolute;
    max-width:          600px;
    width:              55%;
    height:             auto;
    bottom:             var(--padding-tree-elmts);
    right:              var(--padding-tree-elmts);
}



.logo-cr603 img
{
    height:             120px;
    width:              auto;
}

.logo-cr603.simple
{
    margin-bottom:      5em;
}

#main #title
{
    position:           absolute;
    top:                var(--padding-tree-elmts);
    left:               var(--padding-tree-elmts);
}

#main #container-tree
{
    position:           absolute;
    box-sizing:         border-box;    
    top:                0;
    left:               0;
/*    padding:            8px 0 8px 0;
*/    width:              100%;
    height:             100%;
}

#main #container-tree a
{
    user-select:        none;
}


#main #container-tree svg
{
    width:              100%;
    height:             100%;
    background-color:   var(--blue);
}

#main .tree-nav
{
    position:           absolute;
    bottom:             var(--padding-tree-elmts);
    left:               var(--padding-tree-elmts);
    display :           flex;
    flex-direction:     column;    
    gap : 4px
}

#main .tree-nav .button
{
    font-size:          1.2em;
    box-sizing:         border-box;
    padding:            4px 8px 4px 8px;
    border-radius:      var(--border-radius);
    color:              var(--black);
    background-color:   white;
    text-align:         center;
    cursor:             pointer;
    pointer-events:     auto;
    transition:         opacity 250ms;
    user-select:        none;
    width:              33px;
    height:             33px;
}

#main .tree-nav img
{
    width:              100%;
    height:             100%;
}


#main .tree-nav .button.disabled
{
    opacity :           0.5;
    pointer-events:     none;
}


/*
------------------------ SINGLE THESE
*/

.icExternalLink
{
    height:                 18px;
    transform:              translate(0,1px);
}


#main #header-these
{
    display :               flex;
    padding-top:            1em;
}


#main .left,
#footer .left
{
    flex : 0 0 100px;
}

#main .right,
#footer .right
{
    flex : auto;
}

#footer .right
{
    position: relative;
}

#main .container-these,
#main .container-personne,
#main .container-no-result,
#main .container-page
{
    display:                flex;
}


#main .container-personne
{
    margin-bottom:          -2em;
}



#main .container-these.excerpt .right
{
    border-top:             0;
}


#main .container-these .left h1
{
/*    margin-top:             calc(0.67em + 12px);
*/
}

#main .container-these .left h1.en-cours
{
    font-size:              1.2em;
    margin-top:             1.7em;
}


#main .container-these.excerpt .left h1
{
    margin-top:             0.67em;
}

#main h2.these-year
{
/*    color:              var(--blue);
*/
    color:              var(--black);
}

#main h2.these-year.en-cours
{
    font-size:          1.2em;
    margin-top:         1.9em;
}


#main .container-these p.info,
#main .container-these.news .right p:last-child
{
    border-bottom:      1px solid var(--blue);
    padding-bottom:     0.5em;
}

#main .container-these.news:last-child .right p:last-child
{
    border-bottom:      0;
}

#main p.content
{
    margin-bottom:      2em;    
}

#main a.keyword
{
    display:            inline-block;
    text-decoration:    none;
    background-color:   var(--blue);
    color:              white;
    border-radius:      3px;
    padding:            3px 6px 3px 6px;
    margin-right:       3px;
    margin-bottom:      3px;
	transition : background-color 250ms;
}

#main a.keyword .term-count
{
    font-size:          0.5em;
}

#main a.keyword:hover
{
    background-color:   var(--black);
}

#main .these-keywords
{
    width:              75%;
}

.container-searchboxes
{
    margin-top:         72px;
    width:              100%;
}

.container-searchboxes img
{
    width:             75%;
}

.nav-back
{
    font-size:          26px;
    display:            flex;
    margin-left:        14px;
    column-gap:         16px;
}

.nav-back .button
{
    display:            inline-block;
    background-color:   var(--blue);
    border-radius:      8px;
    color:              white;
    padding:            4px 8px 4px 8px;
}

/*
------------------------ SEARCH
*/

#main > #header-these  .container-searchbox
{
    width:              50%;
    margin-top:         7.5em;
    margin-bottom:      2.5em;
    border-color:       var(--blue);
    border-radius:      var(--border-radius);
    box-shadow:         -14px 14px var(--blue);
}

#main > #header-these h1
{
    border-bottom:      1px solid var(--black);
    padding-bottom:     0.5em;
}

#main > #header-these input.searchbox
{
    border:             1px solid var(--blue);
    border-right:       0; 
}


#main > #header-these .container-searchbox .icon-search
{
    border:             1px solid var(--blue);
    border-left:        0;
}

#main .no-date
{
    display:        inline-block;
    width:          100%;
}

#main .container-personne h2
{
    color:              var(--black);
    margin:         0;
}

#main section
{
    margin-bottom:  0em;
}

#main section:last-of-type
{
    margin-bottom: 0;
}


#main .container-these.excerpt:last-of-type .right p.info
{
    border-bottom: 0;
} 

/*
------------------------ FOCUS
*/
.focus
{
    display:                flex;
    flex-direction:         row;
    align-items: center;
    box-sizing:             border-box;
    width:                  100%;
    background-color:       var(--blue);
    border-radius:          var(--border-radius);
    padding:                10px 20px 10px 20px;
    gap:                    100px;
}

.focus .logo
{
    flex:                   1;
}

.focus .logo img
{
    height:                 45px;
}

.focus .article
{
    flex:                   6;
    color:                  white;
    font-size:              2em;
    font-weight:            normal;
}

.focus a
{
    color :                 white;
    text-decoration:        none;
}

.focus .lire-article
{
    font-size:              0.5em;
}




@media screen and (max-width: 640px) 
{
    body
    {
        font-size: 0.7em;
    }

    #header,
    #footer
    {
        height: 40px;
    }

    #main .tree-nav
    {
        display : none;
    }

    .logo-cr603 img {
        height: auto;
        width: 60%;
    }    

    .logo-cr603.simple {
       margin-bottom: 2.5em;
    }

    #main > .container-searchbox
    {
        box-sizing:     border-box;
        width:          100%;
        padding:        0 10px 0 10px;
        right:          unset;
    }

    #main > #header-these .container-searchbox
    {
        width:          100%;
        margin-top:     2.5em;
    }


    .container-searchbox .icon-search::before
    {
        font-size:      1.4em;
    }

    .container-searchbox .icon-search img
    {
        width:          15px;
    }

    #footer .menu 
    {
        position:       absolute;
        right:          0px;
        top:            18px;
    }

    #footer img
    {
        left : 0;
        bottom : unset;
        top : 8px;
    }

    #main .left, #footer .left {
    display: none;
    }



}