@import url(https://fonts.googleapis.com/css?family=Tinos);

* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

body {
  scroll-behavior: smooth;
  margin: 0;
  font-family: "Raleway", sans-serif;
  background: #FFFAF0;
  color: #333;
  padding: var(--body-padding) var(--body-padding) 8rem;
}


#scrollToTopBtn {
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: #555; 
    color: white; 
    cursor: pointer;
    padding: 15px; 
    border-radius: 10px; 
    font-size: 18px; 
}

#scrollToTopBtn:hover {
    background-color: #333; 
}
/* header section */
header{
  
  height: 70vh;
}

#burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fc4072;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

#burger:hover {
  transform: scale(1.1);
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  padding: 20px;
  margin-left: 40px;
}

#logo img {
  height: 100px;
  width: 130px;
}

#nav-list {
  position: absolute;
  padding-top: 50px;
  top: 25px;
  left: 85%;
  transform: translate(-50%, -50%);
  display: flex;

  li {
    list-style: none;

    a {
      position: relative;
      display: block;
      text-transform: uppercase;
      margin: 20px 0;
      padding: 10px 20px;
      text-decoration: none;
      color: #262626;
      font-family: "Raleway", sans-serif;
      font-size: 18px;
      font-weight: 100;
      transition: .5s;
      z-index: 1;
      width: 125%;

      &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-top: 2px solid #262626;
        border-bottom: 2px solid #262626;
        transform: scaleY(2);
        opacity: 0;
        transition: .3s;
      }

      &:after {
        content: '';
        position: absolute;
        top: 2px;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #262626;
        transform: scale(0);
        opacity: 0;
        transition: .3s;
        z-index: -1;
      }

      &:hover {
        color: #fff;

        &:before {
          transform: scaleY(1);
          opacity: 1;
        }

        &:after {
          transform: scaleY(1);
          opacity: 1;
        }
      }
    }
  }
}

#nav-list {
  display: flex;
  list-style: none;
  gap: 3rem;
  margin-right: 60px;
}

#nav-list a {
  text-decoration: none;
  color: black;
  font-size: 25px;
  font-family: "Raleway", sans-serif;
}

.title{
  width: 100%;
  height: 30vh;
}

.title h1 {
  text-align: center;
  font-size: 65px;
  text-transform: uppercase;
  color: #222;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  margin-top: 140px;
}

.title h1 span {
  margin-top: 5px;
  font-size: 15px;
  color: #444;
  word-spacing: 1px;
  font-weight: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  grid-template-rows: 27px 0;
  grid-gap: 20px;
  align-items: center;
}

.title h1 span:after,
.title h1 span:before {
  content: " ";
  display: block;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  height: 5px;
  background-color: #f8f8f8;
}

/* apropos section */

/* Section À propos */
#apropos {
  width: 85%;
  margin: 15px auto;
  margin-bottom: 200px;
  padding: 3rem 2rem;
  background: #FFFFF0; /* même ambiance claire que le reste */
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-family: "Raleway", sans-serif;
  line-height: 1.8;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#apropos:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

#apropos p {
  font-size: 1.1rem;
  text-align: justify;
  font-family: "Raleway", sans-serif;
    font-weight: 500;
  margin-bottom: 1.5rem;
}

#apropos h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: "Playfair Display", serif;
  color: #222;
  position: relative;
}

#apropos h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #fc4072;
  margin: 10px auto 0;
  border-radius: 2px;
}

#apropos h3{
  text-align: center;
}
#apropos ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

#apropos ul li {
  background: #f9c3d1;
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

#apropos ul li:hover {
  background: #fc4072;
  color: #fff;
  cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
  #apropos {
    padding: 2rem 1.5rem;
  }

  #apropos p {
    font-size: 1rem;
    text-align: left;
  }

  #apropos ul {
    gap: 0.5rem;
  }

  #apropos ul li {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}


/* main/projets container section */


/* containerAI */

#design-graphique{
  display: flex;
  flex-direction: column;
  margin: 30px;
}


.carousel-wrapper .card .icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.carousel-wrapper .card .icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  width: 100%;
  height: 32.5vh;
  border-radius: 15px;
}


.carousel-wrapper .card .slide {
  width: 450px;
  height: 300px;
  transition: 0.5s;
}

.carousel-wrapper .card .slide.slide1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transition: .7s;
  transform: translateY(150px);
}

.carousel-wrapper .card:hover .slide.slide1 {
  transform: translateY(0);
}

.carousel-wrapper .card .slide.slide2 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
  transition: .8s;
  transform: translateY(-150px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
}

.carousel-wrapper .card:hover .slide.slide2 {
  transform: translateY(0);
}

.carousel-wrapper .card .slide.slide2::after {
  content: "";
  position: absolute;
  width: 45px;
  height: 6px;
  bottom: 22.5px;
  left: 50%;
  left: 50%;
  transform: translateX(-50%);
  background: #724752;
}

.carousel-wrapper .card .slide.slide2 .content p {
  margin: 0;
  padding: 0;
  text-align: center;
  color: #414141;
}

.carousel-wrapper .card .slide.slide2 .content h3 {
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 24px;
  text-align: center;
  color: #414141;
}

.carousel-wrapper .card .slide.slide2 .content .button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #f9c3d1;
  color: black;
  text-decoration: none;
  
  border-radius: 5px;
  transition: background 0.3s;
}

.carousel-wrapper .card .slide.slide2 .content .button:hover {
  background-color: #fc4072;

}




#design-graphique h3 {
  font-size: 28px;
  font-weight: 400;
  text-align: center;
}

.carousel-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 50px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  scrollbar-width: none; 
  margin: 0 100px 0 100px;
}

.carousel-track::-webkit-scrollbar {
  display: none; 
}

.card {
  flex: 0 0 auto;
}

/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.3);
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  z-index: 2;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* section projets general */

#projets{
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem;
  font-family: "Raleway", sans-serif;
}

#container-sites, #containerF, #containerAN{
  display: flex;
  flex-wrap: wrap; 
  gap: 2rem; 
  justify-content: space-between;
}


#projets h2{
  text-align: center;
  margin-bottom: 70px;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 28px;
}

.sitesP{
  margin-bottom: 50px;
}
.project {
    background: #FFFFF0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    flex: 1 1 300px; 
    display: flex;
    flex-direction: column;
}

.project:hover {
    transform: translateY(-5px);
}

/* Images */
.project img {
    width: 100%;
    height: auto; 
    max-height: 350px; 
    object-fit: cover;
    object-position: center;
}

/* Contenu du projet */
.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}


.project-content h3 {
  text-align: center;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.project-content p {
    font-size: 1rem; 
    line-height: 1.5;
    margin:0 20px 5px 20px;
}

/* Bouton */
.button {
    margin-top: auto;
    padding: 0.6rem 1.2rem;
    background-color: #f9c3d1;
    color: #000000;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.button:hover {
    background-color: #fc4072;
}

/* Animation reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    #container-sites, #containerF, #containerAN {
        flex-direction: column;
    }

    .project img {
        max-height: 319px;
    }
}



/* contact section */
.about,
.contact {
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

#contact {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 50px;
  flex-wrap: nowrap;
  flex-direction: row;
}

.contact-info {
  width: 50%;
}

textarea{
  font-family: "Raleway", sans-serif;
  padding-top: 8px;
  font-size: 16px;
}

.input-container {
  display: flex;
  position: relative;
  margin-top: 20px;
  justify-content: center;
  flex-direction: column;
}

.input-message {
  width: 50%;
}

#message {
  height: 16vh;
  padding-left: 10px;
}

.input-container input {

  padding: 14px 12px 8px;
  font-size: 16px;
  border: 1px solid #252525;
  border-radius: 6px;
  box-sizing: border-box;
}

.input-container label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  padding: 0 4px;
  font-size: 16px;
  color: #999;
  transition: 0.2s ease;
  pointer-events: none;
}

.input-container input:focus+label,
.input-container input:not(:placeholder-shown)+label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #e91e1e;
}

.input-row {
  display: flex;
  flex-direction: column;
}

.input-row .input-container {
  flex: 1;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFF0;
  -webkit-box-shadow: 0px 0px 13px 5px rgba(0, 0, 0, 0.72);
  box-shadow: 0px 0px 13px 5px rgba(0, 0, 0, 0.72);
}

.contact p {
  font-size: 19px;
  display: flex;
}


#contact button {
  margin-top: 10px;
  padding: 10px 25px;
  background-color: black;
  color: white;
  border: 2px solid white;

  border-radius: 5px
}

form{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  
}
.message {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  gap: 20px;
}

.message a {
  color: #3366cc;
  text-decoration: none;
}

.message a:hover {
  text-decoration: underline;
}

.pointer {
  cursor: pointer;
  background: linear-gradient(145deg, #2a2a2a, #383838);
  border: 2px solid #646cff;
}

.pointer:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 0 15px #646cff50;
}

/* footer section */
footer {
  text-align: center;
  padding: 1rem;
  background: #fce1e8;
  

}

footer p{
  font-size: 20px;
}
.reseau-sociale ul {
  display: flex;
  justify-content: center;
  list-style: none;
  
  margin: 20px;
}

.reseau-sociale i {
  font-size: 30px;
  color: rgb(0, 0, 0);
}

.reseau-sociale:hover{
  cursor: pointer;
}

/* responsive */

@media (max-width: 768px) {
  #burger {
    display: block;
  }

  #nav-list {
    display: none;
    flex-direction: column;
    background: #FFFFF0;
    position: absolute;
    top: 80px;
    right: 20px;
    width: 174px;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    gap: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-20px);
    opacity: 0;
  }

  #nav-list.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  #nav-list a {
    font-size: 18px;
    color: #000;
    transition: color 0.3s ease;
  }

  #nav-list a:hover {
    color: #fc4072;
  }

  
}

/* ================================
   📱 Mobile petit (jusqu’à 480px)
================================ */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  header {
    height: auto;
  }

  #logo img {
    height: 60px;
    width: 80px;
  }

  #nav-list {
    flex-direction: column;
    gap: 1rem;
    position: static;
    transform: none;
    margin: 20px 0;
  }

  #nav-list a {
    font-size: 18px;
  }

  .title h1 {
    font-size: 28px;
    margin-top: 60px;
  }

  #apropos {
    padding: 1.5rem;
    margin: 40px auto;
  }

  #apropos p {
    font-size: 0.95rem;
  }

  .project img {
    max-height: 160px;
  }

  
  footer p {
    font-size: 16px;
  }
}

/* ================================
   📱 Tablette (481px à 768px)
================================ */
@media (max-width: 768px) {
  #nav-list {
    gap: 1.5rem;
    margin-right: 20px;
    left: 69%;
  }

  #nav-list a {
    font-size: 20px;
  }

  .title h1 {
    font-size: 36px;
  }

  #apropos {
    padding: 2rem;
  }

  #apropos ul {
    gap: 0.6rem;
  }

  #apropos ul li {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  #projets {
    padding: 2rem;
  }

  #container-sites, #containerF, #containerAN {
    flex-direction: column;
    gap: 1.5rem;
    height: 180vh;
  }

  .project img {
    max-height: 319px;
  }

  #contact {
    flex-direction: column;
    padding: 2rem 1rem;
    width: 85%;
  }

  .contact-info {
    width: 80%;
    text-align: center;
  }
}

/* ================================
   💻 Tablette large / petit desktop (769px à 1024px)
================================ */
@media (max-width: 1024px) {
  #nav-list {
    gap: 2rem;
  }

  #nav-list a {
    font-size: 22px;
  }

  .title h1 {
    font-size: 42px;
  }

  #apropos {
    padding: 2.5rem;
  }

  .carousel-track {
    margin: 0 40px;
    gap: 30px;
  }

  #contact {
    flex-wrap: wrap;
    gap: 2rem;
    width: 85%;
  }

  .contact-info, .input-message {
    width: 80%;
  }
}
