/* 
   GLOBAL.CSS — Styles partagés par TOUTES les pages
   L'Archive Personnelle — Guy Jude Samscar Lartigue
   = */


/* ------------------------------------------------------------
   1. POLICES PERSONNALISÉES
   ------------------------------------------------------------ */
@font-face {
    font-family: Titre;
    src: url("../fonts/UnifrakturMaguntia/UnifrakturMaguntia-Regular.ttf");
}

@font-face {
    font-family: paragraphe;
    src: url("../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf");
}


/* 
   2. VARIABLES CSS
    */
:root {
    --accent-color:  #111111;
    --accent-color2: #d62b2b;
    --font-title:    Titre;
    --font-text:     paragraphe;
}


/* 
   3. RESET + STICKY FOOTER PATTERN
   */
* {
    box-sizing: border-box;
}

body {
    background-color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

p {
    font-family: var(--font-title);
}


/* 
   4. CONTENEUR PRINCIPAL
  */
#Container,
#Container-Principal {
    flex: 1;
    width: 100%;
    background: white;
    position: relative;
}


/* ------------------------------------------------------------
mets un curseur pour tout ce qui est cliquable 
   ------------------------------------------------------------ */

a, button, input[type="checkbox"], label {
    cursor: pointer;
}


/* ----
   6. NAVIGATION — HAMBURGER MENU

-------------------- */
.dropdown {
    position: fixed;
    right: 0;
    top: 0;
    cursor: pointer;
    z-index: 100;
}

.dropdown #hamburger {
    margin-right: 5%;
    margin-top: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0px;
    top: 45px;
    background-color: #f9f9f9;
    min-width: 130px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 26px;
    font-family: var(--font-text);
}

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

.dropdown-content div,
.dropdown-content li {
    list-style: none;
    padding: 12px 16px;
    border-radius: 15px;
    transition: background-color 0.2s ease;
}

.dropdown-content div:hover {
    background-color: #f0f0f0;
}
.dropdown-content li:hover {
    background-color: #f0f0f0;
}

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

.dropdown-content a {
    text-decoration: none;
    color: #000;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.4s ease;
}

.dropdown-content div:hover a {
    background-size: 100% 2px;
    color: #222;
}
.dropdown-content li:hover a {
    background-size: 100% 2px;
    color: #222;
}


.dropdown-toggle {
    background: none;
    border: none;
    padding: 8px 5%;
    cursor: pointer;
    display: flex;
    align-items: center;
}


/* 
   FOOTER GLOBAL
 */
#footer {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 15px 10px;
    border-top: 1px solid #f0f0f0;
}

#footer-dev,
#footer-version {
    display: flex;
    align-items: center;
    font-family: var(--font-text);
}

#footer-dev p,
#footer-version p {
    font-family: var(--font-text);
    margin: 0;
    font-size: 13px;
}

#footer-button {
    display: flex;
    align-items: center;
    gap: 5px;
}

#footer-button button {
    background: none;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#footer-button button:hover {
    background: #f5f5f5;
}

#footer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-text);
}

#footer-row a {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 1.7s ease;
}

#footer-row a:hover {
    background-size: 100% 2px;
}
