@import url('https://fonts.googleapis.com/css?family=Anta:700|B612:400');

body {
    --text: #f9e7fe;
    --background: #12152b;
    --primary: #4605fa;
    --secondary: #a63be8;
    --accent: #cb6be6;
    --second_background: #151434;
    --third_background: #1d213f;
    --linearPrimaryAccent: linear-gradient(100deg, var(--primary), var(--accent));
    background-color: var(--background);
    color: var(--text);
    font-family: 'B612';
    font-weight: 400;
    font-size: larger;
    
}

h1, h2, h3, h4, h5 {
  font-family: 'Anta';
  font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text);
}


html {font-size: 100%;} /* 16px */

h1 {font-size: 3.053rem; /* 48.8px */}

h2 {font-size: 2.442rem; /* 39.04px */}

h3 {font-size: 1.954rem; /* 31.2px */}

h4 {font-size: 1.563rem; /* 24.96px */}

h5 {font-size: 1.250rem; /* 20px */}

small {font-size: 0.800rem; /* 12.8px */}

.container {
    margin: auto;
    max-width: 1100px;
}

.bouton {
    font-family: 'B612';
    color: var(--text);
    background-color: var(--primary);
    border-radius: 20px;
    border: none;
    padding-top: 1%;
    padding-bottom: 1%;
    padding-left: 3%;
    padding-right: 3%;
    text-decoration: none;
}

.bouton:hover{
    background: var(--linearPrimaryAccent);
}

/* header */

header {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: var(--second_background);
    font-family: 'Anta';
}

header .nav-left, .nav-right {
  display: flex;
  justify-content: space-between;
  flex-basis: 30%;
}

header #logo {
    width: 100%;
}

header #lien_logo {
    width: 6%;
    display: flex;
    justify-content: center;
    flex-basis: 6.5%;
}

header a {
    padding: 1.5%;
}

header a:hover {
    background: var(--linearPrimaryAccent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* Index */

.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--third_background);
    padding-bottom: 2%;
}

.sous-titre {
    margin-top: -2.5%;
}

#bestiaire {
    width: 60%;
    margin-top: 2%;
    margin-bottom: 3%;
}

.banner #boutons_index {
    width: 100%;
    display: flex;
    justify-content: space-around;
}


.projets {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 2%;
    margin-bottom: 4%;
}

.projets #projets_index {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5%;
}

.projets img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    display: block;
}

.projets #projets_index .projet {
    position: relative;
}

.hover {
    background-color: #4605fa90;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-content: center;
    text-align: center;
} 


.hover {
    opacity: 1;
}

.apropos {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -3%;
}

.description {
    max-width: 500px;
    text-align: center;
    margin-bottom: 3%;
}

.bouton_apropos {
    margin-bottom: 6%;
}


/* Réalisations */

.banner_rea {
    display: flex;
    background-color: var(--third_background);
    justify-content: space-around;
}

.banner_rea img {
    width: 100%;
}

.banner_rea div {
    flex-basis: 40%;
    margin-top: 3%;
    margin-bottom: 7.5%;
}

.banner_rea #banner_contact_baleine {
    display: flex;
    justify-content: end;
}

.sous-titre_rea {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projets #liste_projets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1rem;
    column-gap: 2%;
    place-content: center;
}

.projets #liste_projets .projets img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.projets #liste_projets .projet {
    position: relative;
}

.projets #liste_projets .projet .hover {
    background-color: #4605fa90;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
} 

.projets #liste_projets .projet:hover .hover {
    opacity: 1;
}



/* Projet */

.banner_projet {
    display: flex;
    background-color: var(--third_background);
    justify-content: space-around;
}

.banner_projet img {
    width: 100%;
}

.banner_projet div {
    flex-basis: 40%;
    margin-top: 3%;
    margin-bottom: 3%;
    align-content: center;
}

.sous-titre_projet {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sous-titre_projet h1 {
    text-transform: uppercase;
}

.sous-titre_projet h2 {
    margin-top: -4%;
}

.description_projet {
    display: flex;
    justify-content: center;
    text-align: center;
    max-width: 50%;
    margin-top: 6%;
    margin-bottom: 6%;
}


.images_projets {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 6%;
}

.images_projets img {
    width: 23%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.images_projets img:hover {
    transform: scale(1.05);
}

.image_zoom:hover {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* À propos */

.banner_apropos {
    display: flex;
    background-color: var(--third_background);
    justify-content: space-around;
}

.banner_apropos img {
    width: 100%;
}

.banner_apropos div {
    flex-basis: 40%;
    margin-top: 3%;
    margin-bottom: 3%;
}

.sous-titre_apropos {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.informations_alexandre {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 3%;
    margin-bottom: 6%;
}

.texte_information {
    display: flex;
    flex-direction: column;
    flex-basis: 40%;
}

.informations_alexandre img {
    width: 40%;
    flex-basis: 40%;
}

.mes_competences {
    text-align: center;
    margin-bottom: 8%;
}

.icones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-basis: 40%;
    row-gap: 20%;
    align-items: center;
    place-content: center;
}

.icones img {
    width: 60%;
    margin: auto;
}



/* Contact */

.banner_contact {
    display: flex;
    background-color: var(--third_background);
    justify-content: space-around;
}

.banner_contact img {
    width: 82%;
}

.banner_contact div {
    flex-basis: 40%;
    margin-top: 3%;
    margin-bottom: 3%;
}

.banner_contact #banner_contact_corbeau {
    display: flex;
    justify-content: end;
}

.sous-titre_contact {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacts_personnels {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 6%;
    margin-top: 2%;
}

.coordonnées {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 30%;
}

.bx {
    font-size:  7rem;
    margin-bottom: 3%;
}

.coordonnées a:hover {
    background: var(--linearPrimaryAccent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bouton_contact {
    margin-bottom: 6%;
}



/* footer */


footer {
    background-color: var(--second_background);
    padding-top: 1.5%;
    padding-bottom: 1.5%;
}


footer #text_footer {
    display: flex;
    justify-content: center;
}

footer #img_footer {
    display: flex;
    justify-content: center;    
}

footer #img_footer img {
    width: 10%;
    margin-top: 2%;
}

