/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  padding: 0;
}

header hr {
  border: none;
  border-top: 5px solid #8C1C13;
  width: 70vw;
  margin: 20px auto;
    position: relative;
    top: -5vh;
}

header {
  text-align: center;
  padding: 40px 20px;
}


header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #BF4342;
    position: relative;
    top: -5vh;
}

header p, h3 {
  font-size: 1.5rem;
  color: #BF4342;
  text-transform: uppercase;
    position: relative;
    top: -5vh;
}

nav {
  margin-top: 30px;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
    position: relative;
    top: -5vh;
}

nav li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 5px solid #8C1C13;
  padding: 10px 16px;
  transition: background-color 0.3s ease;
}

nav li:hover {
  background-color: #8C1C13;
}

nav a {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 20px;
}

nav li:hover a {
  color: #fff;
}

nav li:hover img {
  filter: invert(100%);
}

nav img {
  width: 125px !important;
  height: 125px !important;
  vertical-align: middle;
}

main {
  padding: 40px 0px;
}

section {
  margin-bottom: 60px;
  max-width: 1000px;
}

div hr {
  border: none;
  border-top: 5px solid #8C1C13;
  width: 70%;
}

div {
  width: fit-content;
}

section h2 {
  font-size: 2.5rem;
  color: #E7D7C1;
  text-transform: uppercase;
  padding-left: 10vw;
  padding-right: 5vw;
  margin-bottom: 10px;
  background-color: #BF4342;
  width: fit-content;
}

section h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #BF4342;
  margin-bottom: 15px;
}

section h3 b,
section h4 b {
  color: #8C1C13;
  font-weight: bold;
}

section h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #BF4342;
}

section p {
  margin-bottom: 12px;
  color: #8b5509;
  font-size: 1.3rem;
}

section ul {
  margin-top: 15px;
  width: 100%;
}

section ul li {
  margin-bottom: 6px;
  list-style-type: disc;
  color: #8b5509;
  text-decoration: none;
  list-style: none;
  font-size: 1.5rem;
}

section .list li img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  vertical-align: text-top;
}

section ul li img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  vertical-align: text-top;
}

footer {
  background-color: #E7D7C1;
  color: #666;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  border-top: 2px solid #e6e6e6;
}

.title-icon {
  border: 5px solid #8C1C13;
  padding: 10px 16px;
  width: auto;
  height: 65px;
  margin: 0 20px;
}

.title-icon:hover {
  filter: invert(100%);
  border: 5px solid #73e3ec;
  background-color: #73e3ec;
}

.title {
  display: flex;
  flex-direction: row;
}

article {
  padding-top: 50px;
  width: 100vw;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}

article p {
  text-align: justify;
}

.decale {
  margin-left: 35px;
}

.projecteur {
  width: 200px;
  height: auto;
  position: absolute;
  top: -40px;
}

.photo-container {
  width: 35vw;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
  display: inline-block;
  position: relative;
}

.photos {
  width: 35vw;
  height: auto;
  transition: transform 0.4s ease-in-out;
  display: block;
}

.photo-container:hover .photos {
  transform: scale(1.2);
}


.container-size {
  width: 25vw !important;
  height: auto !important;
}

.photo-size {
  width: 25vw !important;
  height: auto !important;
}

.check {
filter: brightness(0) saturate(100%) invert(16%) sepia(98%) saturate(7491%) hue-rotate(343deg) brightness(88%) contrast(105%);
}





.parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 5vw;
    justify-content: center;
    align-items: center;
    justify-items: center;
    width: 70vw;
}
    


.div3 {
    grid-row-start: 2;
}

.div4 {
    grid-row-start: 2;
}
 
.parent2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    row-gap: 10px;
    column-gap: 5vw;
    justify-content: center;
    align-items: center;
    justify-items: center;
    width: 70vw;
}
  
.div12 {
    grid-column: span 2 / span 2;
}

.div32 {
    grid-row-start: 2;
}

.div42 {
    grid-row-start: 2;
}

a {
  text-decoration: none;
  color: #8b5509;
}

.contact-title {
    margin-top: 10px;
    font-size: 2.7rem;
    font-weight: 400;
    text-transform: uppercase;
}

.hr-contact {
    border: none;
    border-top: 5px solid #8C1C13;
    width: 20vw;
    position: relative;
    top: -50px;
}

.contact-text {
    text-align: center;
}

.contact-text p {
    width: 55vw;
}
        



@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav li {
  opacity: 0;
  animation-name: fade-in-up;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

nav li:nth-child(1) { animation-delay: 0.2s; }
nav li:nth-child(2) { animation-delay: 0.4s; }
nav li:nth-child(3) { animation-delay: 0.6s; }
nav li:nth-child(4) { animation-delay: 0.8s; }
nav li:nth-child(5) { animation-delay: 1s; }
nav li:nth-child(6) { animation-delay: 1.2s; }

@media (max-width: 768px) {
  nav li {
    opacity: 1;
    animation: none;
  }
}


@keyframes neon-appear {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 0 #BF4342);
  }
  5% {
    opacity: 0.3;
    filter: drop-shadow(0 0 2px #BF4342);
  }
  10% {
    opacity: 0;
    filter: drop-shadow(0 0 0 #BF4342);
  }
  20% {
    opacity: 0.5;
    filter: drop-shadow(0 0 4px #BF4342);
  }
  30% {
    opacity: 0.2;
    filter: drop-shadow(0 0 1px #BF4342);
  }
  40% {
    opacity: 0.6;
    filter: drop-shadow(0 0 6px #BF4342);
  }
  50% {
    opacity: 0.3;
    filter: drop-shadow(0 0 2px #BF4342);
  }
  60% {
    opacity: 0.9;
    filter: drop-shadow(0 0 8px #BF4342);
  }
  70% {
    opacity: 0.8;
    filter: drop-shadow(0 0 5px #BF4342);
  }
  80% {
    opacity: 1;
    filter: drop-shadow(0 0 3px #BF4342);
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 0 #BF4342);
  }
}


.logo {
  max-width: 450px;
  position: relative;
  top: -5vh;
  animation: neon-appear 3s ease forwards;
}


@keyframes projector-appear-1 {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(20deg) scaleX(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(20deg) scaleX(1);
  }
}

@keyframes projector-appear-2 {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(-20deg) scaleX(-1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(-20deg) scaleX(-1);
  }
}

.projo1 {
  opacity: 0;
  animation: projector-appear-1 1s ease-out forwards;
  animation-delay: 2s; 
  transform: rotate(20deg);
  left: 15vw;
}


.projo2 {
  opacity: 0;
  animation: projector-appear-2 1s ease-out forwards;
  animation-delay: 2s; 
  transform: scaleX(-1) rotate(20deg);
  right: 15vw;
}


@media (max-width: 1024px) and (min-width: 769px) {
  .contact-title {
    font-size: 2rem;
    margin-top: 8px;
  }

  .hr-contact {
    width: 35vw;
    top: -30px;
    border-top-width: 4px;
  }

  .contact-text p {
    width: 75vw;
    font-size: 1.2rem;
    margin: 0 auto;
  }

  .contact-text {
    padding: 0 8vw;
  }


  .projo1 {
    left: 5vw;
  }

  .projo2 {
    right: 5vw;
  }

}

@media (max-width: 768px) {
  body {
    font-size: 0.9rem; 
  }

  header hr {
    width: 90vw;
    top: -3vh;
  }

  .logo {
    max-width: 300px;
    top: -3vh;
  }

  header h1 {
    font-size: 1.8rem;
    top: -3vh;
  }

  header p, h3 {
    font-size: 1.1rem;
    top: -3vh;
  }

  nav ul {
    flex-wrap: wrap; 
    gap: 10px;
    justify-content: center;
  }

  nav li {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    width: 180px;
    height: 150px; 
    padding: 10px;
    text-align: center;
    border: 3px solid #8C1C13;
    box-sizing: border-box;
    gap: 8px; 
  }

  nav img {
    width: 90px !important; 
    height: 90px !important;
    vertical-align: middle; 
  }

  section h2 {
    font-size: 1.8rem;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  
  section .list li img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: text-top;
}

  section ul li img {
  width: 30px;
  height: 30px;
  margin-right: 0px;
  vertical-align: text-top;
}

  .title-icon {
    width: 60px; 
    height: 60px;
    padding: 10px;
  }

  section ul li {
    font-size: 1rem;
  }

  .photo-container {
    width: 90vw;
    max-width: 100%;
  }

  .photos {
    width: 90vw;
    max-width: 100%;
  }

  .container-size {
    width: 70vw !important;
    max-width: 100%;
  }

  .photo-size {
    width: 70vw !important;
    max-width: 100%;
  }

  .parent {
    grid-template-columns: 1fr;
    gap: 2vw;
    width: 95vw;
    max-width: 100%;
  }

  .parent2 {
    grid-template-columns: 1fr; 
    row-gap: 10px;
    column-gap: 2vw;
    width: 95vw;
    max-width: 100%;
  }

  footer {
    font-size: 0.8rem;
    padding: 15px;
  }

  .div1, .div2, .div3, .div4, .div12, .div32, .div42 {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  article {
    padding-top: 30px;
  }

  section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  section h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  section p {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .projecteur {
    width: 150px;
    top: -20px;
  }

  .projo1 {
    left: 0vw;
  }

  .projo2 {
    right: 0vw;
  }

  .contact-title {
    font-size: 1.5rem;
    margin-top: 5px;
  }

  .hr-contact {
    width: 60vw;
    top: -20px;
    border-top-width: 3px;
  }

  .contact-text p {
    width: 90vw;
    font-size: 1rem;
    margin: 0 auto;
  }

  .contact-text {
    padding: 0 5vw;
  }

  a {
    text-decoration: none;
    color: #8b5509;
    text-align: center;
  }

  .contact-li {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
}


@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.list-anim li {
  opacity: 0;
  animation-name: slide-left;
  animation-fill-mode: both;
  animation-timeline: view();
  animation-range: entry 0% contain 20%;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
}


@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.list-anim-2 li {
  opacity: 0;
  animation-name: slide-right;
  animation-fill-mode: both;
  animation-timeline: view();
  animation-range: entry 0% contain 30%;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
}


@keyframes zoom-in {
  from {
    transform: scale(0.8);
    opacity: 0;

  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.photo-anim {
  opacity: 0;
  animation-name: zoom-in;
  animation-fill-mode: both;
  animation-timeline: view();
  animation-range: entry 0% contain 30%;
  animation-duration: 1s;
  animation-timing-function: ease-out;
}


@keyframes title-right {
  from {
    opacity: 1;
    transform: translateX(-400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes title-left {
  from {
    opacity: 1;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.titre-anim {
  opacity: 0;
  animation-name: title-right;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

.hr-anim {
  opacity: 0;
  animation-name: title-left;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
  animation-duration: 1.2s; 
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}
