/* Coucou toi ! Je suis encore une bébé développeuse, ne t'étonnes pas si le code n'est pas parfait, c'est mon hobby de coder. */

html {
    -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
            box-sizing: border-box;
}

*,
*::before,
*::after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
        box-sizing: inherit;
}

html,body { 
margin: 0;
padding: 0;
font-size: 16px;
min-height:100vh;
}

img {
max-width: 100%;
}

/* ---------------------------------------------------------------------------------------- */

/* Polices locales */
@font-face {
    font-family: "Luciole";
    src: url("/fonts/Luciole-Regular.woff2") format("woff2"),
         url("/fonts/Luciole-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Luciole";
    src: url("/fonts/Luciole-Bold.woff2") format("woff2"),
         url("/fonts/Luciole-Bold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Mansalva";
    src: url("/fonts/MansalvaRegular.woff2") format("woff2"),
         url("/fonts/MansalvaRegular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Thèmes couleur  */

/* Light theme */
:root {
    --bg-color: #F4E8E1;
    --accent-color: #FB6376;
    --link-color: #667761;
    --txt-color: #522B47;
    --highlight-color: #F4EEA9;
    --highlight-color-hover: #F4F482;

    --main-font: 'Luciole';
    --accent-font: 'Mansalva', sans-serif;
}


/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
    --bg-color: #522B47;
    --accent-color: #fb6376;
    --link-color: #F4EEA9;
    --txt-color: #F4E8E1;
    --highlight-color: #934D7F;
    --highlight-color-hover: #934D7F;

    --main-font: 'Luciole';
    --accent-font: 'Mansalva', sans-serif;
    }
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: fadeIn 0.8s ease-out forwards;
}

.highlight-load {
  background-image: linear-gradient(var(--highlight-color), var(--highlight-color));
  background-size: 0% 50%;
  background-repeat: no-repeat;
  background-position: 0 70%;
  animation: highlight 0.8s ease forwards;
  animation-delay: 2s;
  transition: background-image 0.3s ease;
}

.highlight-load:hover {
  background-image: linear-gradient(var(--highlight-color-hover), var(--highlight-color-hover));
}

footer .highlight-load {
  animation-delay: 3.5s;
}

@keyframes highlight {
  to {
    background-size: 100% 50%;
  }
}

/* Début du code de la page ------------------------------------------------------------- */

body {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    padding: 0 1em;
}

span {
    font-weight: bold;
}

p {
    font-family: var(--main-font);
    margin: 0;
    padding: 0 ;
}

/* CODE HEADER ------------------------------- */

header {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    padding-top: 1em;


    /* Logo */
    h1 {
        font-family: var(--accent-font);
        color: var(--accent-color);
        padding: 0;
        margin: 0;
    }

    a{
        text-decoration: none;
        color: var(--accent-color);
    }

    /* Sous-titre */
    p {
        font-family: var(--main-font);
        color: var(--link-color);
        margin: 0;
        padding: 0;
        text-align: center;
    }

    span {
        color: var(--txt-color);
        font-size: 1.2em;
    }

}

/* CODE MAIN ---------------------------------- */

main {
    flex: 1 1 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    justify-items: center;
    gap: 1.5em;

    max-width: 400px;
    padding: auto;
    margin: auto;

    /* Texte j'arrive bientôt ! */
    .emphase {
        color: var(--accent-color);
        font-family: var(--accent-font);
        font-size: 5em;
        text-align: center;
        padding: 0;
        margin: 0;
        line-height: 0.9em;
    }

    /* Texte On travaille ensemble ? */

    .contact {
        font-family: var(--main-font);
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 0.5em;
       color: var(--txt-color);

    }

    .lien-contact {

        text-align: center;

        p {
            color: var(--link-color);
            font-size: 1.3em;
            padding-bottom: 0.4em;
        }

        a {
            font-family: var(--main-font);
            text-decoration: none;
            color: var(--link-color);
            transition: font-weight 0.3s ease;
        }
    }

}

/* CODE FOOTER -------------------------------- */

footer {
    border-top: 1px solid var(--accent-color);
    flex: 0 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: auto;
    padding: 1em 5em;
    font-size: 0.7em;

    .socials {
        display: flex;
        flex-direction: row;
        gap: 1em;
    }
    
        p {
        font-family: var(--main-font);
        color: var(--txt-color);
    }

        a {
            font-family: var(--main-font);
            text-decoration: none;
            color: var(--link-color);
            font-weight: normal;
            transition: font-weight 0.3s ease;
        }

}

/* Mobile responsif ---------------------------*/

@media (max-width: 400px) {
    footer {
        padding: 1em 0;
        flex-direction: column;
        gap: 1em;
    }
}

/* CODE simple mentions légales */
.mentions {

    padding : 2em 0;

    h2 {
        padding: 0;
        margin: 0;
        font-family: var(--main-font);
        color: var(--accent-color);
        font-size: 1em;
    }

    p {
        color: var(--txt-color);
    }

}

/* Merci d'avoir été jusqu'ici ! */