/* ===========================
   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: 16px;
  color: #f18ea2; /* Vanilla Ice */
  background: #2f1b20; /* Raisin Black */
  overflow-x: hidden;
  scroll-behavior: smooth;
}

main {
  margin: auto;
  max-width: 1920px;
  min-height: 100vh;
  background: #F7D3A5; /* Deep Champagne */
  color: #2f1b20; /* Raisin Black */
}

section {
  padding: 120px 10% 0;
  display: flex;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  max-width: 100%;
  height: auto;
  width: 100%;
  height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
}

img:hover {
  transform: scale(1.05);
}

/* ===========================
   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);
}

/* ===========================
   Main
=========================== */

.projet-layout {
  display: flex;
  gap: 40px;
}

.projet-t {
  display: flex;
  align-self: flex-start;
  flex-wrap: wrap; /* permet de s'adapter en mobile */
  gap: 20px;
  position: sticky;
  top: 120px; /* hauteur du header */
}

/* Bloc texte */
.projet-texte {
  flex: 1;
  max-width: 500px;
  align-self: flex-start;
}

.projet-texte h2 {
  font-family: 'Fat Kat', sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.projet-texte h3 {
  font-family: 'Barlow Semi Condensed';
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-size: 24px;
  color: #2f1b20; /* Raisin Black */
}

.projet-texte p {
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-size: 18px;
  color: #2f1b20; /* Raisin Black */
  text-align: justify;
  text-justify: inter-character;
}

/* ===========================
   Gallery
=========================== */

.img-content-hover {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  display: none;
  padding: 1rem;
  background: #fff;
  font-weight: 400;
  margin-top: 1.25rem;
  margin-left: -2rem;
}

.title {
  color: #2e2e2e;
  font-size: 1.5rem;
  font-weight: 700;
}

.category {
  font-size: 1rem;
  color: #787878;
}

.img-content {
  display: none;
}

/* ===========================
   Footer
=========================== */

footer {
  margin: 34px 0px 0px;
  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;
}

.reseaux {
  background: #26301c; /* Pine Tree */
  padding: 10px 50px;
  display: flex;
  justify-content: center;
  gap: 30px;
  z-index: 2;
}

.reseaux a {
  color: #FFF7C2 ; /* Very Pale Yellow */
  font-weight: bold;
  transition: 0.3s;
}

.reseaux a:hover {
  max-width: 60px;
}

.copyright {
  opacity: 0.8;
}

.container {
  margin: auto;
  padding: 0 1rem;
  max-width: 70rem;
  width: 100%;
}

.grid {
  display: flex;
  flex-direction: column;
  flex-flow: row wrap;
}
.grid > [class*=column-] {
  display: block;
}

.first {
  order: -1;
}

.last {
  order: 12;
}

.align-top {
  align-items: start;
}

.align-center {
  align-items: center;
}

.align-bottom {
  align-items: end;
}

.column-xs-1 {
  flex-basis: 8.3333333333%;
  max-width: 8.3333333333%;
}

.column-xs-2 {
  flex-basis: 16.6666666667%;
  max-width: 16.6666666667%;
}

.column-xs-3 {
  flex-basis: 25%;
  max-width: 25%;
}

.column-xs-4 {
  flex-basis: 33.3333333333%;
  max-width: 33.3333333333%;
}

.column-xs-5 {
  flex-basis: 41.6666666667%;
  max-width: 41.6666666667%;
}

.column-xs-6 {
  flex-basis: 50%;
  max-width: 50%;
}

.column-xs-7 {
  flex-basis: 58.3333333333%;
  max-width: 58.3333333333%;
}

.column-xs-8 {
  flex-basis: 66.6666666667%;
  max-width: 66.6666666667%;
}

.column-xs-9 {
  flex-basis: 75%;
  max-width: 75%;
}

.column-xs-10 {
  flex-basis: 83.3333333333%;
  max-width: 83.3333333333%;
}

.column-xs-11 {
  flex-basis: 91.6666666667%;
  max-width: 91.6666666667%;
}

.column-xs-12 {
  flex-basis: 100%;
  max-width: 100%;
}

@media (min-width: 48rem) {
  .column-sm-1 {
    flex-basis: 8.3333333333%;
    max-width: 8.3333333333%;
  }

  .column-sm-2 {
    flex-basis: 16.6666666667%;
    max-width: 16.6666666667%;
  }

  .column-sm-3 {
    flex-basis: 25%;
    max-width: 25%;
  }

  .column-sm-4 {
    flex-basis: 33.3333333333%;
    max-width: 33.3333333333%;
  }

  .column-sm-5 {
    flex-basis: 41.6666666667%;
    max-width: 41.6666666667%;
  }

  .column-sm-6 {
    flex-basis: 50%;
    max-width: 50%;
  }

  .column-sm-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%;
  }

  .column-sm-8 {
    flex-basis: 66.6666666667%;
    max-width: 66.6666666667%;
  }

  .column-sm-9 {
    flex-basis: 75%;
    max-width: 75%;
  }

  .column-sm-10 {
    flex-basis: 83.3333333333%;
    max-width: 83.3333333333%;
  }

  .column-sm-11 {
    flex-basis: 91.6666666667%;
    max-width: 91.6666666667%;
  }

  .column-sm-12 {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (min-width: 62rem) {
  .column-md-1 {
    flex-basis: 8.3333333333%;
    max-width: 8.3333333333%;
  }

  .column-md-2 {
    flex-basis: 16.6666666667%;
    max-width: 16.6666666667%;
  }

  .column-md-3 {
    flex-basis: 25%;
    max-width: 25%;
  }

  .column-md-4 {
    flex-basis: 33.3333333333%;
    max-width: 33.3333333333%;
  }

  .column-md-5 {
    flex-basis: 41.6666666667%;
    max-width: 41.6666666667%;
  }

  .column-md-6 {
    flex-basis: 50%;
    max-width: 50%;
  }

  .column-md-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%;
  }

  .column-md-8 {
    flex-basis: 66.6666666667%;
    max-width: 66.6666666667%;
  }

  .column-md-9 {
    flex-basis: 75%;
    max-width: 75%;
  }

  .column-md-10 {
    flex-basis: 83.3333333333%;
    max-width: 83.3333333333%;
  }

  .column-md-11 {
    flex-basis: 91.6666666667%;
    max-width: 91.6666666667%;
  }

  .column-md-12 {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (min-width: 75rem) {
  .column-lg-1 {
    flex-basis: 8.3333333333%;
    max-width: 8.3333333333%;
  }

  .column-lg-2 {
    flex-basis: 16.6666666667%;
    max-width: 16.6666666667%;
  }

  .column-lg-3 {
    flex-basis: 25%;
    max-width: 25%;
  }

  .column-lg-4 {
    flex-basis: 33.3333333333%;
    max-width: 33.3333333333%;
  }

  .column-lg-5 {
    flex-basis: 41.6666666667%;
    max-width: 41.6666666667%;
  }

  .column-lg-6 {
    flex-basis: 50%;
    max-width: 50%;
  }

  .column-lg-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%;
  }

  .column-lg-8 {
    flex-basis: 66.6666666667%;
    max-width: 66.6666666667%;
  }

  .column-lg-9 {
    flex-basis: 75%;
    max-width: 75%;
  }

  .column-lg-10 {
    flex-basis: 83.3333333333%;
    max-width: 83.3333333333%;
  }

  .column-lg-11 {
    flex-basis: 91.6666666667%;
    max-width: 91.6666666667%;
  }

  .column-lg-12 {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@supports (display: grid) {
  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
  }
  .grid > [class*=column-] {
    margin: 0;
    max-width: 100%;
  }

  .column-xs-1 {
    grid-column-start: span 1;
    grid-column-end: span 1;
  }

  .column-xs-2 {
    grid-column-start: span 2;
    grid-column-end: span 2;
  }

  .column-xs-3 {
    grid-column-start: span 3;
    grid-column-end: span 3;
  }

  .column-xs-4 {
    grid-column-start: span 4;
    grid-column-end: span 4;
  }

  .column-xs-5 {
    grid-column-start: span 5;
    grid-column-end: span 5;
  }

  .column-xs-6 {
    grid-column-start: span 6;
    grid-column-end: span 6;
  }

  .column-xs-7 {
    grid-column-start: span 7;
    grid-column-end: span 7;
  }

  .column-xs-8 {
    grid-column-start: span 8;
    grid-column-end: span 8;
  }

  .column-xs-9 {
    grid-column-start: span 9;
    grid-column-end: span 9;
  }

  .column-xs-10 {
    grid-column-start: span 10;
    grid-column-end: span 10;
  }

  .column-xs-11 {
    grid-column-start: span 11;
    grid-column-end: span 11;
  }

  .column-xs-12 {
    grid-column-start: span 12;
    grid-column-end: span 12;
  }

  @media (min-width: 48rem) {
    .column-sm-1 {
      grid-column-start: span 1;
      grid-column-end: span 1;
    }

    .column-sm-2 {
      grid-column-start: span 2;
      grid-column-end: span 2;
    }

    .column-sm-3 {
      grid-column-start: span 3;
      grid-column-end: span 3;
    }

    .column-sm-4 {
      grid-column-start: span 4;
      grid-column-end: span 4;
    }

    .column-sm-5 {
      grid-column-start: span 5;
      grid-column-end: span 5;
    }

    .column-sm-6 {
      grid-column-start: span 6;
      grid-column-end: span 6;
    }

    .column-sm-7 {
      grid-column-start: span 7;
      grid-column-end: span 7;
    }

    .column-sm-8 {
      grid-column-start: span 8;
      grid-column-end: span 8;
    }

    .column-sm-9 {
      grid-column-start: span 9;
      grid-column-end: span 9;
    }

    .column-sm-10 {
      grid-column-start: span 10;
      grid-column-end: span 10;
    }

    .column-sm-11 {
      grid-column-start: span 11;
      grid-column-end: span 11;
    }

    .column-sm-12 {
      grid-column-start: span 12;
      grid-column-end: span 12;
    }
  }

  @media (min-width: 62rem) {
    .column-md-1 {
      grid-column-start: span 1;
      grid-column-end: span 1;
    }

    .column-md-2 {
      grid-column-start: span 2;
      grid-column-end: span 2;
    }

    .column-md-3 {
      grid-column-start: span 3;
      grid-column-end: span 3;
    }

    .column-md-4 {
      grid-column-start: span 4;
      grid-column-end: span 4;
    }

    .column-md-5 {
      grid-column-start: span 5;
      grid-column-end: span 5;
    }

    .column-md-6 {
      grid-column-start: span 6;
      grid-column-end: span 6;
    }

    .column-md-7 {
      grid-column-start: span 7;
      grid-column-end: span 7;
    }

    .column-md-8 {
      grid-column-start: span 8;
      grid-column-end: span 8;
    }

    .column-md-9 {
      grid-column-start: span 9;
      grid-column-end: span 9;
    }

    .column-md-10 {
      grid-column-start: span 10;
      grid-column-end: span 10;
    }

    .column-md-11 {
      grid-column-start: span 11;
      grid-column-end: span 11;
    }

    .column-md-12 {
      grid-column-start: span 12;
      grid-column-end: span 12;
    }
  }

  @media (min-width: 75rem) {
    .column-lg-1 {
      grid-column-start: span 1;
      grid-column-end: span 1;
    }

    .column-lg-2 {
      grid-column-start: span 2;
      grid-column-end: span 2;
    }

    .column-lg-3 {
      grid-column-start: span 3;
      grid-column-end: span 3;
    }

    .column-lg-4 {
      grid-column-start: span 4;
      grid-column-end: span 4;
    }

    .column-lg-5 {
      grid-column-start: span 5;
      grid-column-end: span 5;
    }

    .column-lg-6 {
      grid-column-start: span 6;
      grid-column-end: span 6;
    }

    .column-lg-7 {
      grid-column-start: span 7;
      grid-column-end: span 7;
    }

    .column-lg-8 {
      grid-column-start: span 8;
      grid-column-end: span 8;
    }

    .column-lg-9 {
      grid-column-start: span 9;
      grid-column-end: span 9;
    }

    .column-lg-10 {
      grid-column-start: span 10;
      grid-column-end: span 10;
    }

    .column-lg-11 {
      grid-column-start: span 11;
      grid-column-end: span 11;
    }

    .column-lg-12 {
      grid-column-start: span 12;
      grid-column-end: span 12;
    }
  }
}

@supports (display: grid) {
  .gallery .grid {
    grid-gap: 1rem;
  }

* { box-sizing: border-box; }

*::before, *::after { box-sizing: border-box; }

#highlight {
  color: #ea8478;
  font-size: 1.25rem;
}

.gallery { padding: 0 0 4rem 0; }

.img-container {
  width: 100%;
  height: 500px;
  cursor: pointer;
  overflow: hidden;
}
.img-container:hover .img-content-hover { display: block; }

@media (max-width: 992px) {

  section { padding: 120px 10% 0; }

  .projet-layout { gap: 20px; }

  .container { padding: 0; max-width: 30rem; }

  .projet-texte h2 { font-size: 30px; }
  .projet-texte h3 { font-size: 20px; }
  .projet-texte p { font-size: 16px; }
}

@media (max-width: 768px) {
  .projet-t { position: static; }
  section { flex-direction: column; }
  footer {margin: 0; }
}