/* ===========================
   Fonts
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
  font-family: "Fat Cat";
  src: url("fonts/FatCat.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  src: local('Fat Kat Regular'), url('FatKat-nRlnP.woff') format('woff');
}

/* ===========================
   Reset & Base
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  font-family: "Barlow", sans-serif;
  font-size: 20px;
  color: #f18ea2; /* Vanilla Ice */
  background: #2f1b20; /* Raisin Black */
  overflow-x: hidden;
  scroll-behavior: smooth;
}

main {
  margin: auto;
  max-width: 1920px;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   Header / Navbar
=========================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 20px 100px;
  background: rgba(47, 27, 32, 0.4); /* Raisin Black */
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(47, 27, 32, 0.2); /* Raisin Black */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-family: "Fat Cat", cursive;
  letter-spacing: 2px;

  color: #f18ea2; /* Vanilla Ice */
  font-size: 24px;
  font-weight: 600;
}

.navbar a {
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 35px;
  transition: 0.3s;
}

.navbar a:hover {
  color: #fce4e7; /* Misty Rose */
}

#menu-icon {
  font-size: 36px;
  color: #f18ea2; /* Vanilla Ice */
  display: none;
}

/* --- Responsive Navbar --- */
@media (max-width: 992px) {
  .header { padding: 1.25rem 4%; }
}

@media (max-width: 768px) {
  #menu-icon { display: block; }

  .navbar {
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    padding: 0.5rem 10%;
    display: none;
  }

  .navbar.active { display: block; }

  .navbar a {
    display: block;
    margin: 1.5rem 0;
  }

  .nav-bg {
    position: absolute;
    top: 79px; left: 0;
    width: 100%; height: 250px;
    background: rgba(47, 27, 32, 0.4); /* Raisin Black */
    border-bottom: 2px solid rgba(47, 27, 32, 0.2); /* Raisin Black */
    backdrop-filter: blur(10px);
    display: none;
    z-index: 99;
  }

  .nav-bg.active { display: block; }
}

/* ===========================
   Navbar
=========================== */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #2f1b20; /* Raisin Black */
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #f18ea2; /* Vanilla Ice */
  border-radius: 10px;
  border: 2px solid rgba(47, 27, 32, 1); /* Raisin Black */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #fce4e7; /* Misty Rose */
  box-shadow: 0 0 12px rgba(234, 120, 50, 0.6);
}

/* ===========================
   Background
=========================== */
.bg {
  background: url("img/fiole2.png") center/cover no-repeat;
  height: 100vh;
  background-color: #2f1b20; /* Raisin Black */
}

/* ===========================
   Gallery
=========================== */
img {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  width: 80rem;
  max-width: 100%;
  margin: 0; padding: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  max-width: 100%;
  width: 80rem;
}

figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
}

figure::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 0, 0, 0.5);
  transform-origin: center;
  opacity: 0;
  transform: scale(2);
  transition: opacity 300ms;
}

figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: white;
  font-size: 1.2rem;
  z-index: 1;
  opacity: 0;
  transition: opacity 600ms, transform 600ms;
}

/* Hover effects */
a:is(:hover, :focus) figure::after {
  opacity: 1;
}

a:is(:hover, :focus) figcaption {
  opacity: 1;
  transition: opacity 600ms;
}

@media (prefers-reduced-motion: no-preference) {
  figcaption {
    transform: translate3d(0, 2rem, 0);
  }

  figure::after {
    border-radius: 50%;
    opacity: 1;
    transform: scale(0);
    transition: transform 900ms;
  }

  a:is(:hover, :focus) figure::after {transform: scale(2.5); }

  a:is(:hover, :focus) figcaption {opacity: 1; transform: translate3d(0, 0, 0); transition: opacity 600ms 400ms, transform 600ms 400ms; }

  a:is(:hover, :focus) img {transform: scale(1.2); }
}

/* ===========================
   Sections (Projets / A propos)
=========================== */
.titre-projet {
  padding: 50px 10% 0;
  background: #f8d3a5; /* Vanilla Ice */
}

.projets {
  display: flex;
  justify-content: center;
  background: #f8d3a5; /* Vanilla Ice */
  padding: 50px 10%;
}

h2 {
  font-family: "Fat Cat", cursive;
  font-size: 40px;
  margin-bottom: 20px;
  color: #2f1b20; /* Raisin Black */
  letter-spacing: 2px;
}

h3 { 
  font-family: "Fat Cat", cursive;
  font-size: 40px;
  color: #352413; /* Bistre */
  letter-spacing: 2px;
}

p {
  font-size: 24px;
  padding: 5px 0 20px;
  color: #2f1b20; /* Raisin Black */
  text-align: justify;
  text-justify: inter-character;
}

.a-propos {
  background: #f18ea2; /* Vanilla Ice */
  color: #fce4e7; /* Misty Rose */
  padding: 50px 10%;
  display: flex;
  justify-content: space-between;
}

.text {
  font-size: 20px;
  color: #fce4e7; /* Misty Rose */
  text-align: justify;
  padding: 15px 0 25px;
}

.propot { width: 60%; }
.propop { width: 30%; }

.profil { width: 100%; height: 100%; object-fit: cover; border-radius: 50px }

.button {
  margin-top: 10px;
  padding: 15px 32px;
  font-size: 20px;
  font-weight: bold;
  color: #fce4e7; /* Misty Rose */
  border: none;
  border-radius: 30px;
  background: #2f1b20; /* Raisin Black */
  transition: 0.3s;
  border: solid rgba(47, 27, 32, 1); /* Raisin Black */
}

.button:hover {
  color: #2f1b20; /* Raisin Black */
  background: #f18ea2; /* Vanilla Ice */
  border: solid rgba(47, 27, 32, 1); /* Raisin Black */
}

/* ===========================
   Footer
=========================== */
footer {
  margin: auto;
  max-width: 1920px;
  background: #13180E; /* Chinese Black */
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  color: #FFF7C2 ; /* Very Pale Yellow */
  text-align: center;
  z-index: 2;
  font-size: 14px;
}

.contact {
  background: #74a12d; /* Matcha */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 10%;
  position: relative;
  z-index: 2;
  overflow: hidden;
  font-size: 20px;
}

.contact::before {
  content: "";
  position: absolute;
  bottom: 0; right: 20px;
  width: 250px; height: 250px;
  background: url("img/feuilles_vert-1.png") no-repeat center/contain;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.form {
  flex: 1;
  min-width: 280px;
  z-index: 2
}
.form h2 {
  font-family: "Fat Cat", cursive;
  font-size: 40px;
  margin-bottom: 20px;
  color: #26301c; /* Pine Tree*/
  letter-spacing: 2px;
}

.form input, 
.form textarea {
  background: #26301c; /* Pine Tree */
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 25px;
  color: #FFF7C2 ; /* Very Pale Yellow */
  resize: vertical;
  font-size: 20px;
}

.form button {
  margin-top: 10px;
  padding: 15px 32px;
  font-size: 20px;
  font-weight: bold;
  color: #FFF7C2 ; /* Very Pale Yellow */
  border: none;
  border-radius: 30px;
  background: #26301c; /* Pine Tree */
  transition: 0.3s;
  border: solid rgba(37, 48, 28, 1); /* Pine Tree */
}

.form button:hover {
  background: #74A02D; /* Matcha */
  color: #26301c; /* Pine Tree*/
  border: solid rgba(37, 48, 28, 1); /* Pine Tree */
}

.icones-jaune {
  max-width: 20%;
}

.void {
  flex: 1; min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  z-index: 2;
}

.reseaux {
  background: #26301c; /* Pine Tree */
  padding: 10px 50px;
  display: flex;
  justify-content: center;
  gap: 30px;
  z-index: 2;
}

.reseaux img {
  max-width: 50px;
}

.reseaux a {
  color: #FFF7C2 ; /* Very Pale Yellow */
  font-weight: bold;
  transition: 0.3s;
}
.reseaux a:hover {
  color: #FFF7C2 ; /* Very Pale Yellow */
}

.footer-deco {
  position: absolute;
  right: -100px; bottom: -100px;
  width: 600px; height: auto;
  z-index: 1;
}

.copyright {
  opacity: 0.8;
}

@media (max-width: 1024px) {
  html { font-size:16px; }
  h2 { font-size:30px; }
  h3 { font-size:30px; }
  p { font-size:16px; }
  .button { font-size:16px; }
  .contact { font-size:16px; }
  .form input, 
  .form textarea { font-size:16px; }
  .form button { font-size:16px; }
}

@media (max-width: 768px) {
  .footer-container { flex-direction: column; text-align: center; }
  .footer-links { align-items: center; }
}

@media (max-width: 425px) {
  .responsive { display: flex; flex-wrap: wrap; order: 1; }
  .projets { padding: 50px 5%; }
      .a-propos {
        display: flex;
        flex-direction: column;
        align-items: center;
      }

  .propot {
    width: 100%;
  }

  .propop {
    width: 100%;
    padding-bottom: 30px;
  }

  .button {
    margin-top: 10px;
  }
}