/* Variables de couleur */
:root {
    /* Plus utilisés */
    /* --color-main: #e5dcce;
    --color-rust: #9a5037;
    --color-light02: #f4f0eb;
    --color-white: white;
    --color-black: black;
    --color-link: #6686cc; */

    /* Couleurs principales */
    --color-taupe: #b8a38e;
    --color-beige: #ebe1d0;
    --color-olive: #a7a376;

    /* Couleur de 3ième bloc */
    --color-sandy: #cebd9f;

    /* Le logo, hamburger et menu/soulignement */   
    --color-terra: #984200; /* Terra */

    /* Les coins des rectangles mots-clés */    
    --color-brown: #733c29;
    
    /* Coordonnées du footer */
    --color-cream: #ffeee1;

    /* Couleur des textes */
    --color-font: black;
    
    /* Couleur des boutons */
    --color-button: #984200; /* Terra */
    --color-button-hover: #834633;

    /* Couleur des liens */
    --color-link: #834633; /* Terra */
    --color-link-hover: #633224;

    /* Vignette team & menu sélectionné dans hamburger */
    --color-light: #f0e8e0;    
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Blazor .NET 9.0 fait un outline sur les div */
*:focus {
    outline: none;
}
    
/* Style global */
html {
    font-size: 18px;
}

body {
    font-family: "Lato", sans-serif;
    background-color: var(--color-beige);
    color: var(--color-font);
}

a {
    text-decoration: underline;
    /* color: inherit; */
    color: var(--color-link);
}

a:hover {
    color: var(--color-link-hover);
}

/* Menu */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: var(--color-beige);
}


.nav-logo {
    margin-left: 50px;
    max-width: 50px; 
    margin-right: 20px;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;   
}

.nav-menu li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-menu a {
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--color-font);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terra);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, 
.nav-menu a:focus::after, 
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--color-terra);
}

.nav-hamburger {
    display: none;
 }

.nav-hamburger-label {
    z-index: 1001;
}

.ctr-italic {
    font-style: italic;
}

.ctr-strong {
    font-weight: bold;
}

@media (max-width: 900px) {
    .nav-menu a {
        font-size: 1rem;
    }
}

/* Menu hamburger pour les petits écrans */
@media (max-width: 870px) {
    .nav-menu {
        visibility: hidden;
        opacity: 0;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        padding-top: 30px;
        background-color: var(--color-taupe);
        justify-content: flex-start;
        align-items: flex-start;
        transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
        transform: translateX(100%);
        z-index: 1000;
    }

    .nav-menu.open {
        visibility: visible;
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .nav-menu li {
        cursor: pointer;
        width: 100%;
    }

    .nav-menu li::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        opacity: 0.5;
        background-color: var(--color-beige);
        margin: 10px auto;
    }

    .nav-menu a {
        font-size: 1.0rem;
    }

    .nav-menu a::after { /* On enlève le trait sous le texte */
        height: 0;
        transition: none;
    }

    .nav-menu a:hover {
        color: var(--color-light);
    }

    .nav-menu a.active {
        color: var(--color-light);
    }
    
    .nav-hamburger-label {
        display: block;
        width: 20px;
        height: 20px;
        cursor: pointer;
      }
      
      /* Couleur du Hamburguer */
      .nav-hamburger-label span {
        display: block;
        position: relative;
        top: 0;
        width: 20px;
        height: 5px;
        background-color: var(--color-terra);
        margin-bottom: 6px;
        transition: 0.3s ease transform, 0.3s ease top, 0.3s ease width,
          0.3s ease right;
        border-radius: 2px;
      }
      
      .nav-hamburger-label span:first-child {
        transform-origin: 0;
      }
      
      .nav-hamburger-label  span:last-child {
        margin-bottom: 0;
        transform-origin: 20px;
      }
      
      .nav-hamburger-label span:nth-child(2) {
        right: 0;
        width: 20px;
      }
                 
      .nav-hamburger:checked + .nav-hamburger-label span:first-child {
        top: -3px;
        transform: rotateZ(45deg);
      }
      
      .nav-hamburger:checked + .nav-hamburger-label span:last-child {
        top: -3px;
        right: -1px;
        transform: rotateZ(45deg);
      }
      
      .nav-hamburger:checked + .nav-hamburger-label span:nth-child(2) {
        width: 30px;
        top: -3px;
        right: 5px;
        transform: rotateZ(-45deg);
      }
}

/* Pied de page */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    min-height: 250px;
    background-color: var(--color-cream);
    color: var(--color-font);
}

.footer hr {
    visibility: hidden;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-left p, .footer-center p, .footer-right p {
    margin: 5px 0;
}

.footer-left i, .footer-center i, .footer-right i {
    margin-right: 7px;
    min-width: 24px;
    text-align: center;
}

.i-fa-main {
    font-size: 30px;
}

.i-fa-sub {
    font-size: 18px;
}

.footer-right ul {
    list-style-type: none;
    padding: 0;
}

.footer-sa {
    font-size: 1.5rem;
}

.footer-center a, .footer-right a, .footer-copyright a {
    /* text-decoration: none; */
    color: var(--color-font);
}

.footer-copyright {
    background-color: var(--color-beige);
    width: 100%;
    text-align: center; 
    padding: 15px;
}

.footer-left i.fa-brands {
    color: var(--color-font);
    margin: 0 25px;
    font-size: 2em;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
    }

    .footer hr {
        visibility: visible;
        border: none;
        height: 1px;
        margin: 40px auto;
        width: 70%;
        background-image: linear-gradient(to right, rgba(131, 70, 51, 0), var(--color-taupe), rgba(131, 70, 51, 0));
    }
    
    .footer-left, .footer-center, .footer-right {
        margin: 30px;
        width: 100%;
    }
}