/***************************************************************
Variables
***************************************************************/

:root {
    --color-accent:     #00A3E1;
    --color-bg:         #0E0F10;
    --color-bg-dark:    #070708;
    --color-text:       #fff;
    --color-text-muted: lightgray;
}

/***************************************************************
Styles généraux
***************************************************************/

body {
    text-align: center;
    color: var(--color-text);
    font-family: 'Ubuntu', sans-serif;
    background: var(--color-bg);
}

h2 {
    margin: 50px auto;
    font-weight: bolder;
    font-size: 36px;
}

h3 {
    margin: 30px auto;
    font-weight: bold;
}



nav i:hover,
#about .me i,
#about .interest i,
#resume .main i,
#contact .links div:hover i {
    color: var(--color-accent);
}

main i {
    margin-right: 8px;
}

.links i {
    margin: auto;
}

p {
    font-size: 14px;
}

.header-page:before,
.header-page:after,
.subtitle h3:before,
.subtitle h3:after,
#resume .item:before,
#resume .item:after,
#resume .item:hover h4:before,
.skill-meter .completed {
    background: var(--color-accent);
}

/***************************************************************
Décoration titres
***************************************************************/

.header-page,
span.title {
    position: relative;
}

.header-page:before {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    left: calc(50% + 20px);
    bottom: -19px;
}

.header-page:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    left: calc(50% - 46px);
    bottom: -19px;
}

span.title:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: -40px;
    left: 5px;
    border: 2px solid var(--color-accent);
    border-radius: 50px 50px 0 50px;
    transform: rotate(135deg);
}

span.title:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: -40px;
    left: auto;
    right: 0;
    border: 2px solid var(--color-accent);
    border-radius: 50px 50px 50px 0;
    transform: rotate(-135deg);
}

/***************************************************************
Décoration sous-titres
***************************************************************/
.subtitle {
    position: relative;
}

.subtitle:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: calc(50% - 7px);
    bottom: -16px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
}

.subtitle h3:before {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    left: calc(50% - 45px);
    bottom: -10px;
}

.subtitle h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    left: calc(50% + 15px);
    bottom: -10px;
}

/***************************************************************
Navbar
***************************************************************/

nav {
    width: 7vw;
    background: rgba(0, 0, 0, 0.9);
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 1;
}

nav i {
    color: var(--color-text);
}


/***************************************************************
Pages
***************************************************************/

#about,
#resume,
#portfolio {
    display: none;
    background: var(--color-bg);
    position: absolute;
    right: 0;
    top: 0;
    min-width: 100vw;
    min-height: 100vh;
    padding: 20px auto;
    padding-left: 12vw;
    padding-bottom: 100px;
}

article {
    padding: 30px !important;
    margin: 30px auto 80px auto;
    border-radius: 10px;
    background: var(--color-bg-dark);
    transition: 0.3s;
}

article:hover {
    transform: translateY(-5px);
}

/***************************************************************
Accueil
***************************************************************/

header {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-image: url('../img/Paysages/gray-bridge-and-trees-814499.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

header:before {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
}

header h1 {
    font-size: 30px;
    font-weight: bolder;
    z-index: 0;
}

header .tagline {
    font-size: 20px;
    font-weight: bold;
    z-index: 0;
}

/***************************************************************
A propos
***************************************************************/
#about .me h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
}

#about h5 {
    font-size: 16px;
    margin: 20px 0;
}

#about h5 i{
    color: var(--color-accent);
}

#about img {
    width: 200px;
    border-radius: 50%;
}

#about .me {
    text-align: left;
	margin: auto;
}

/***************** Centre d'interet ***************/
#about .interest div {
    border-radius: 10px;
    position: relative;
}

#about .interest p {
    padding: 15px;
    background: var(--color-bg);
}

#about .interest p i {
    font-size: 20px;
}

#about .interest [data-bs-toggle="tooltip"] p {
    position: relative;
}

#about .interest [data-bs-toggle="tooltip"] p::after {
    content: 'ℹ';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 11px;
    color: var(--color-accent);
    opacity: 0.35;
    transition: 0.2s;
    pointer-events: none;
}

#about .interest [data-bs-toggle="tooltip"]:hover p::after {
    opacity: 1;
}


/*************** Bouton CV ******************/
#about .dl-cv a {
    border: 1px solid var(--color-accent);
    padding: 5px 20px;
    text-decoration: none;
    color: var(--color-text);

    background-image: linear-gradient(to right, var(--color-accent) 50%, transparent 50%);
    background-position: right bottom;
    background-size: 200% 100%;
    transition: all 300ms ease;
}

#about .dl-cv a:hover {
    background-position: left bottom;
}

/***************************************************************
CV
***************************************************************/

#resume h4 {
    font-size: 20px;
    font-weight: bold;
}


/* Ecarter les élements */
#resume .education .item{
	margin: 40px auto;
}

#resume .item {
    position: relative;
    text-align: left;
    margin: 20px auto;
    padding-top: 5px;
    padding-left: 40px;
}


/********* Logo Latéral *********/
#resume .item:before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 0;
}

#resume .item:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    top: 21px;
    left: 0;
}

#resume .item h4:before {
    content: '';
    position: absolute;
    width: 13px;
    height: 13px;
    top: 15px;
    left: -6px;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    z-index: 1;
}

#resume .quality div {
    margin: 20px 0;
    border-radius: 10px;
}

#resume .quality p {
    padding: 15px;
    background: var(--color-bg);
}


/*************************** Compétences *****************************/
#resume .skills {
    display: flex;
    justify-content: space-between;
}


#resume .skills .wp img,
#resume .skills .springboot img {
    width: 30px;
    margin-right: 5px;
}

#resume .skills i {
    font-size: 30px;
    color: var(--color-text);
}

.skill {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.skill-meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: fit-content;
  height: 30px;
  margin: 10px;
}

.skill-meter span {
  width: 6px;
  border: 2px solid var(--color-accent); /* bleu lumineux */
  background: transparent;
  display: inline-block;
}

.skill-meter .level1 {
	height: 30%;
}
.skill-meter .level2 {
	height: 50%;
}
.skill-meter .level3 {
	height: 70%;
}
.skill-meter .level4 {
	height: 100%;
}


/***************************************************************
Portfolio
***************************************************************/

#portfolio .projects div {
    border-radius: 10px;
}

#portfolio .projects .project {
    padding: 15px;
    background: var(--color-bg);
}

#portfolio .projects p i {
    font-size: 20px;
}

#portfolio > article:hover {
    transform: none;
}

#portfolio .project {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--color-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    text-align: left;
}

#portfolio .project:hover {
    transform: translateY(-5px);
}

#portfolio .row > .col-md-4:nth-child(-n+3) .project-desc {
    display: block;
    overflow: visible;
}

/* Aperçu 16:9 */
#portfolio .project-preview {
    aspect-ratio: 16 / 9;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#portfolio .project-preview span {
    font-size: 12px;
    color: var(--color-text-muted);
    opacity: 0.5;
}

#portfolio .project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: 0.3s;
    display: block;
}

#portfolio .project-preview::after {
    content: '\1F50D\00A0 Agrandir';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

#portfolio .project-preview:hover::after {
    opacity: 1;
}

#portfolio .project:hover .project-preview img {
    opacity: 1;
    transform: scale(1.03);
}

/* Corps */
#portfolio .project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

#portfolio .project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

#portfolio .project-type {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#portfolio .project-status {
    font-size: 10px;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    padding: 1px 7px;
    opacity: 0.75;
}

#portfolio .project-name {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

#portfolio .project-name a, #portfolio h3 {
    color: var(--color-accent);
    text-decoration: none;
}

#portfolio .project-name a:hover {
    text-decoration: underline;
}

#portfolio .project-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Pied de carte */
#portfolio .project-footer {
    margin-top: auto;
    padding-top: 14px;
}

#portfolio .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

#portfolio .project-tags span {
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    color: var(--color-accent);
    opacity: 0.8;
}

#portfolio .project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

#portfolio .project-links a,
#portfolio .project-links button.open-video-modal {
    color: var(--color-text-muted);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}

#portfolio .project-links a:first-child,
#portfolio .project-links button.open-video-modal {
    color: var(--color-accent);
    font-weight: bold;
}

#portfolio .project-links a:hover,
#portfolio .project-links button.open-video-modal:hover {
    color: var(--color-text);
}

/***************************************************************
Footer
***************************************************************/

#footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 7vw;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

#footer div {
    text-align: center;
}

#footer i {
    color: var(--color-text);
    font-size: 2em;
}

#footer i:hover {
    color: var(--color-accent);
}

#footer p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--color-text-muted);
}



/***************************************************************
MEDIA QUERIES
***************************************************************/

/* tablettes */
@media (min-width: 576px) {}

/* pc */
@media (min-width: 992px) {

    header h1 {
        font-size: 70px;
    }

    header .tagline {
        font-size: 30px;
    }

    #portfolio figure img {
        max-width: 300px;
    }
}



/***************************************************************
Réglages Firefox
***************************************************************/

@-moz-document url-prefix() {

    span.title:after {
        top: -24px;
    }

    span.title:before {
        top: -24px;
    }
}

/***************************************************************
Lien mentions légales
***************************************************************/

.legal-link {
    position: fixed;
    right: 15px;
    bottom: 5px;
    z-index: 2;
    font-size: 11px;
    color: var(--color-text-muted);
    opacity: 0.6;
}

.legal-link:hover {
    color: var(--color-accent);
    opacity: 1;
}


