/* =========================================
   RESET
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


/* =========================================
   VARIABLES DE COULEURS
========================================= */

:root {
  --background: #FFFFFF;
  --text: #666666;
  --text-strong: #333333;
  --border: #CCCCCC;
  --accent: #A91955;
}


/* =========================================
   MODE SOMBRE
========================================= */

body.dark {
  --background: #1B1B1B;
  --text: #AAAAAA;
  --text-strong: #FFFFFF;
  --border: #444444;
}


/* =========================================
   BODY
========================================= */

body {
  font-family: "Overpass Mono", monospace;
  font-weight: 300;

  background-color: var(--background);
  color: var(--text);

  margin: 40px 60px;
  padding: 0;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;

  cursor: url("Img/cursor.svg") 18 18, auto;
}


/* =========================================
   LIENS
========================================= */

a {
  color: var(--text);

  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 400;

  letter-spacing: 1px;
  text-decoration: none;

  padding-left: 20px;

  transition: color 0.2s ease;

  cursor: url("Img/cursor-big.svg") 25 25, auto;
}


a:hover {
  color: var(--accent);
}


.linkactive {
  font-weight: bold;
  color: var(--accent);
}


/* =========================================
   BOUTON MODE SOMBRE / CLAIR
========================================= */

#theme-toggle {
  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: transparent;

  padding: 0;
  margin-left: 15px;

  color: var(--text);

  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;

  flex-shrink: 0;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


#theme-toggle:hover {
  color: var(--accent);
  transform: scale(1.1);
}


/* =========================================
   HEADER
========================================= */

#header {
  width: 100%;
  height: 90px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}


/* Logo */

.logo {
  width: 30%;
}


.logo img {
  display: block;
  max-width: 100%;
}


/* Navigation */

nav {
  width: 70%;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  padding-top: 20px;
}


/* =========================================
   CONTENU
========================================= */

#content {
  width: 100%;

  display: flex;
}


/* =========================================
   COLONNE GAUCHE
========================================= */

#content-left {
  width: 40%;

  font-size: 11px;
  line-height: 17px;

  padding-right: 50px;

  position: sticky;
  top: 20px;

  align-self: flex-start;
}


/* Titres */

.project-title {
  font-size: 16px;
  font-weight: bold;

  color: var(--text-strong);

  transition: color 0.3s ease;
}


.section-title {
  font-weight: bold;

  color: var(--text-strong);

  transition: color 0.3s ease;
}


/* Informations importantes */

.important {
  color: var(--text-strong);

  transition: color 0.3s ease;
}


/* Ligne */

hr {
  border: none;
  border-top: 1px solid var(--border);

  transition: border-color 0.3s ease;
}


/* =========================================
   COLONNE DROITE
========================================= */

#content-right {
  width: 60%;
}


/* Images */

#content-right > img {
  width: 100%;
  height: auto;

  display: block;

  padding: 0 0 10px 0;
}


/* Rangées de deux images */

.image-row {
  width: 100%;

  display: flex;
}


.image-row img {
  width: 50%;
  height: auto;

  display: block;

  padding-bottom: 10px;
}


.image-row img:first-child {
  padding-right: 5px;
}


.image-row img:last-child {
  padding-left: 5px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media screen and (max-width: 1023px) {

  #content {
    display: block;
  }

  #content-left {
    width: 100%;

    position: static;

    padding-right: 0;
    padding-bottom: 20px;
  }

  #content-right {
    width: 100%;
  }

}


/* =========================================
   PETITS ÉCRANS
========================================= */

@media screen and (max-width: 600px) {

  body {
    margin: 20px;
  }

  #header {
    height: auto;

    flex-direction: column;
  }

  .logo {
    width: 100%;
  }

  nav {
    width: 100%;

    justify-content: flex-start;

    padding-top: 20px;
  }

  nav a {
    padding-left: 0;
    padding-right: 15px;
  }

  #theme-toggle {
    margin-left: 0;
  }

  .image-row {
    display: block;
  }

  .image-row img {
    width: 100%;

    padding-left: 0;
    padding-right: 0;
  }

}
/* =========================================
   PAGE PROJETS
========================================= */

.projects-page {
  height: 100vh;
  overflow: hidden;
}

.projects-list {
  width: 100%;
  height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: 40% 60%;
}

/* Liste des projets */

.projects-names {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding-right: 40px;
}

.project-link {
  display: block;
  padding: 0;
  font-family: "Overpass Mono", monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text-strong);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.project-link:hover {
  color: var(--accent);
  transform: translateX(8px);
}

/* Image à droite */

.projects-preview {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.projects-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projects-preview img.visible {
  opacity: 1;
}

/* =========================================
   PAGE À PROPOS
========================================= */

.about {
  width: 100%;
  min-height: calc(100vh - 130px);

  display: flex;
  align-items: center;
}

.about-text {
  width: 70%;
  padding-right: 60px;

  font-size: 12px;
  line-height: 18px;
}

.about-text h1 {
  margin: 0 0 30px 0;

  font-size: 16px;
  line-height: 20px;
  font-weight: bold;

  color: var(--text-strong);
}

.about-text p {
  margin: 0 0 20px 0;
}

.about-photo {
  width: 30%;
}

.about-photo img {
  width: 100%;
  height: auto;

  display: block;
}


/* =========================================
   PAGE CONTACT
========================================= */

.contact {
  min-height: calc(100vh - 130px);

  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-email {
  padding: 0;

  font-family: "Overpass Mono", monospace;
  font-size: 28px;
  font-weight: 800;

  letter-spacing: 0;

  color: var(--text-strong);

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-email:hover {
  color: var(--accent);
  transform: translateX(8px);
}


/* =========================================
   RESPONSIVE À PROPOS
========================================= */

@media screen and (max-width: 1023px) {

  .about {
    display: block;
  }

  .about-text {
    width: 100%;
    padding-right: 0;
    padding-bottom: 30px;
  }

  .about-photo {
    width: 100%;
  }

}


/* =========================================
   PETITS ÉCRANS À PROPOS
========================================= */

@media screen and (max-width: 600px) {

  .about-text h1 {
    margin-bottom: 20px;
  }

  .about-text p {
    margin-bottom: 15px;
  }

}

/* =========================================
   PROJET SUIVANT
========================================= */

.next-project {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 50px;
  padding: 15px 0;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  color: var(--accent);

  font-family: "Overpass Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;

  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.next-project:hover {
  color: var(--text-strong);
}

.next-arrow {
  font-size: 20px;
  line-height: 1;

  transition: transform 0.2s ease;
}

.next-project:hover .next-arrow {
  transform: translateX(6px);
}