/* ============================= */
/*         POLICES              */
/* ============================= */

@font-face {
    font-family: 'BBBBaskervvol-Fondue';
    src: url('../typos/BBBBaskervvol-Fondue.woff2') format('woff2'),
         url('../typos/BBBBaskervvol-Fondue.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'old-french';
    src: url('../typos/Hershey-Noailles-old-french.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'old-french-2';
    src: url('../typos/Hershey-Noailles-old-french-2.5.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'help-me';
    src: url('../typos/Hershey-Noailles-help-me.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* ============================= */
/*         STYLES GÉNÉRAUX      */
/* ============================= */

html {
    scroll-padding-top: 1rem; /* Ajustez cette valeur à la hauteur de votre navbar */
}

body {
    font-kerning: normal; /* Espace entre certaines paires de lettres */
    scroll-behavior: smooth; 
}

    .section { min-height: 100vh; padding-top: 9rem; }
    .uk-navbar-container { 
        position: fixed; 
        top: 0; 
        left: 0;
        right: 0;
        z-index: 1000; 
        background: white;
    }
    .text-center { text-align: center; }
    .text-left { text-align: left; }
    .uk-container { max-width: 1200px; margin: 0 auto; }

main {
    margin-top: 11vh;
}


/* ============================= */
/*         TYPOGRAPHIE          */
/* ============================= */

h1, h2, h3, h4, h5, h6 {
    font-family: 'BBBBaskervvol-Fondue', Baskerville, sans-serif;
}

p {
    font-family: 'old-french', serif;
    line-height: 1.5; /* Ajustement de l'interligne */
    margin-bottom: -0.5rem; /* Ajustement de l'espacement entre les paragraphes */
}

sup {
    font-size: 0.5rem; /* Ajustement de la taille */
    vertical-align: 0.27rem;
    line-height: 0;
}

ul {
    font-family: 'old-french', serif;
    line-height: 0.92rem;
    margin-left: 0.48rem;
}

ol {
    font-family: 'old-french', serif;
}


dl {
    font-family: 'old-french', serif;
    margin-left: 0.48rem;
}

dt { 
    font-family: old-french-2;   
    line-height: 1.27rem; 
    margin-bottom: 0.17rem;
}

dd {
    font-size: 1rem;
    line-height: 1.48rem;
}  


/* ============================= */
/*         GLYPHES SPÉCIAUX     */
/* ============================= */

.glyphe-special {
    font-family: 'BBBBaskervvol-Fondue';
    font-feature-settings: "ss01";
}

.glyphe-special::before {
    content: "\F4510";
}

/* ======================================= */
/*     SECTION PERSONNALISÉE · TRAVAUX     */
/* ======================================= */

.custom-font-section h1,
.custom-font-section h2,
.custom-font-section h3,
.custom-font-section h4,
.custom-font-section h5,
.custom-font-section h6 {
    font-family: 'help-me', sans-serif;
    color: #725736; /* Couleur du texte */
}

.custom-font-section h1 {
    margin-bottom: -0.27rem;
    font-size: 0.94rem;
    line-height: 1.34rem;
}

.custom-font-section h2 {
    margin-top: 1.27rem;
    margin-bottom: -0.48rem;
    font-size: 0.8rem;
}

.custom-font-section h3 {
    font-size: 0.72rem;
    margin-top: 0.72rem;
}

.custom-font-section p {
    font-size: 0.8rem; /* Taille des paragraphes */
}

/* ============================= */
/*            MENU               */
/* ============================= */

.uk-navbar-nav.right-font,
.uk-navbar-nav.right-font > li > a {
    font-family: 'old-french', serif;
    font-size: 1rem; /* Taille pour les liens de navigation */
    text-transform: lowercase;
}

.logo-image {
    width: 3.21rem;
    padding-right: 1rem;
}

/* ============================= */
/*         TRAVAUX            */
/* ============================= */

.spacing-element {
    height: 2rem;
}

/* ======= CARROUSEL =========== */


.uk-slideshow-items > li {
    transition: none !important;
}

/* Classe pour maintenir le ratio 526x574 */
.proportional-image {
    position: relative;
    width: 100%;
    padding-top: calc(1 / 1.09 * 58%); /* Ratio 574:526 */
}

.proportional-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ======= NAVIGATION CARROUSEL =========== */

.custom-nav-container {
    align-items: center;
    margin-top: 0rem;
}

.custom-nav {
    display: flex;
    padding: 0;
    margin: 0 0 0 0.35rem; /* Espace avant numéro 1 */
    list-style: none;
}

.custom-nav > li {
    margin-right: 1.4rem; /* Espace entre les chiffres */
    margin-top: -1.1rem;
}

.custom-nav > li > a {
    font-family: 'BBBBaskervvol-Fondue', Baskerville, sans-serif;
    text-decoration: none;
    color: #725736; /* Couleur des chiffres */
    font-size: 0.8rem; /* Taille des chiffres */
}

.custom-nav > li.uk-active > a {
    color: red; /* Couleur active */
}

/* Flèches de navigation */
.custom-arrows {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Aligne le contenu à droite */
    width: 100%; /* Assurez-vous que le conteneur prend toute la largeur disponible */
}

.custom-arrows a {
    color: #725736;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.8rem;  /* Ajustez la largeur du conteneur de la flèche */
    height: 0.8rem; /* Ajustez la hauteur du conteneur de la flèche */
    padding: 0 0.5rem;
    margin-top: -0.5rem;
}

.custom-arrows a:hover {
    color: red;
}

.custom-arrows a svg {
    width: 100%;
    height: 100%;
}

.uk-slidenav {
    padding: 0;
    width: auto;
    height: auto;
}

.uk-slidenav > svg {
    width: 100%;
    height: 100%;
}

.single-image .uk-slidenav-next-double {
    margin-top: 1.5rem; /* Ajustez cette valeur selon vos besoins */
}


/* ============================= */
/*         NOTES                */
/* ============================= */

.table-des-matieres, .table-des-matieres * {
    font-size: 0.875rem;
    line-height: 1rem;
}

#sticky-toc {
    position: sticky;
    top: 80vh; /* Ajustez la distance par rapport au bas de l'écran */
    margin-left: auto
    z-index: 1000; /* Assurez-vous qu'il est au-dessus des autres éléments */
    background-color: white; /* Optionnel : ajoute un fond pour la lisibilité */
    padding: 10px;
    border-radius: 5px;    
}

.note {
    display: flex;
    margin-bottom: 4rem; /* Espace entre les notes */
}

.note-number {
    font-family: 'old-french', serif;
    font-size: 1rem; /* Taille du numéro */
    line-height: 1.3; /* Alignement vertical */
    margin-right: 1.3rem; /* Espace entre le numéro et le texte */
    min-width: 1.2em; /* Largeur minimale pour le numéro */
    text-align: right; /* Alignement à droite */
}

.note-content {
    flex: 0.7;
    margin: 0;
    padding-top: 0; /* Alignement avec le haut du numéro */
}


/* ============================= */
/*         MEDIA QUERIES        */
/* ============================= */

@media (max-width: 959px) {
    main {
        margin-top: 13vh;
    } 
}

@media (max-width: 799px) {
    .logo-image {
        display: none;
    }
}

/* dans travaux espacement entre les présentations */
@media (max-width: 639px) {
    .spacing-element {
        height: 0rem;
    }
}

/* ============= HEADER ================ */

@media (max-width: 639px) { 

    .uk-navbar-container {
        padding: 0rem; /* Supprime tout le padding du conteneur */
        padding-top: 1rem;
    }

    .uk-navbar-right .uk-navbar-nav {
        flex-wrap: wrap;
        justify-content: left;
        margin: 0; /* Supprime toute marge */
    }

    .uk-navbar-right .uk-navbar-nav > li {
        flex-basis: 23%;
        text-align: left;
        margin: 0; /* Supprime toute marge */
        padding: 0; /* Supprime tout padding */
    }

    .uk-navbar-right .uk-navbar-nav > li > a {
        padding: 0.1rem 0; /* padding vertical */
        line-height: 0.54; /* hauteur de ligne */
        min-height: auto; /* Supprime la hauteur minimale si elle est définie */
        height: auto; /* Permet à la hauteur de s'ajuster au contenu */
    }
}
