@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Roboto:wght@400&display=swap');

:root {
  --primary-color: #ff0000;
  --secondary-color: #ffd500;
  --background-color: #121212;
  --header-bg-color: #333;
  --text-color: #ffffff;
  --gradient-color-1: #a58fe9;
  --gradient-color-2: #e37682;
  --hover-gradient-color-1: #ffd500;
  --hover-gradient-color-2: #f9ff47;
  --box-shadow-color: #FFA500;
  --fire-effect-color: #FF4500;
  --text-colorlogo:#ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--header-bg-color);
  transition: background-color 0.3s ease;
  z-index: 1000;
  padding: 15px;
}

.navbar {
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
}

.logo {
  text-shadow: -1px -1px 0 var(--text-colorlogo), -1px 2px 0 var(--text-colorlogo), 1px 1px 10px #141414;
  color: var(--header-bg-color);
  font-size: 25px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 5;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  position: relative;
  padding: 10px 15px;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
  cursor: pointer;
  background: linear-gradient(45deg, var(--gradient-color-1), var(--gradient-color-2));
  background-clip: text;
  -webkit-background-clip: text;
  box-shadow: 0 0 1px var(--box-shadow-color);
}

.nav-links a:hover {
  color: transparent;
  background: linear-gradient(45deg, var(--hover-gradient-color-1), var(--hover-gradient-color-2));
  background-clip: text;
  -webkit-background-clip: text;
  box-shadow: 0 0 10px var(--hover-gradient-color-1), 0 0 15px var(--hover-gradient-color-2);
}

.nav-links a:before,
.nav-links a:after {
  position: absolute;
  content: "";
  background: inherit;
  height: 100%;
  width: 100%;
  border-radius: 0;
  transition: 0.5s;
  transform-origin: center;
}

.nav-links a:before {
  transform: rotateZ(60deg);
}

.nav-links a:after {
  transform: rotateZ(-60deg);
}

.nav-links a:hover {
  border-radius: 50px;
}

.nav-links a:hover:before {
  border-radius: 50px;
}

.nav-links a:hover:after {
  border-radius: 50px;
}

@keyframes fire-effect {
  0% {
    transform: scale(1);
    box-shadow: 0 0 5px var(--fire-effect-color), 0 0 15px var(--fire-effect-color);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--fire-effect-color), 0 0 30px var(--fire-effect-color);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 10px var(--fire-effect-color), 0 0 20px var(--fire-effect-color);
  }
}

.burger {
  display: none;
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.line {
  width: 100%;
  height: 5px;
  background-color: var(--box-shadow-color);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.burger.active .line:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.burger.active .line:nth-child(2) {
  opacity: 0;
}

.burger.active .line:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

@media (min-width: 769px) {
  .burger {
    display: none;
  }
}


/* ========================== STYLE ACCEUIL ============================= */
#accueil {
  --primary-color: #FFDF00;
  --text-color: #fff;
  --background-color: rgba(0, 0, 0, 0.7);

  position: relative;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-color);
  z-index: 1;
  overflow: hidden;
}

#accueil .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#accueil .content {
  position: relative;
  z-index: 1;
}

#accueil h1 {
  font-size: 48px;
  font-weight: bold;
  animation: fadeIn 3s ease-in-out;
  margin-bottom: 10px;
}

#accueil p {
  font-size: 20px;
  margin-top: 10px;
  opacity: 0;
  animation: fadeIn 3s ease-in-out 1s forwards;
}

#accueil .btn {
  margin-top: 30px;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-color);
  font-size: 18px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}


.cv-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #FFD700; 
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.cv-link:hover {
  background-color: #555; 
  color: #e5ff00;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #accueil {
    height: 50vh;
    background-size: cover;
  }

  #accueil .content {
    padding: 15px;
  }

  #accueil h1 {
    font-size: 32px;
    margin-bottom: 5px;
  }

  #accueil p {
    font-size: 18px;
    margin-top: 5px;
  }

  #accueil .btn {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  #accueil {
    height: 50vh;
  }

  #accueil h1 {
    font-size: 24px;
  }

  #accueil p {
    font-size: 16px;
  }

  #accueil .btn {
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 20px;
  }

  .logo {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    position: fixed;
    top: 60px;
    right: -100%;
    background-color: var(--background-color);
    width: 200px;
    padding: 20px;
    border-radius: 5px;
    transition: right 0.5s ease;
    z-index: 10;
  }

  .nav-links.active {
    right: 20px;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  #accueil h1 {
    margin-top: 80px;
  }

  #accueil p {
    font-size: 1px;
  }
}



/* ========================== BARRE VIOLETTE DEFILENTE ============================= */

.sleek-scrolling-bar {
  --background-color: #000000;
  --text-color: #ffffff;
  --border-color: #FFD700;
  --box-shadow-color: rgba(0, 0, 0, 0.15);

  background: var(--background-color);
  color: var(--text-color);
  padding: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  margin: 30px auto;
  max-width: 90%;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 20px var(--box-shadow-color);
}

.sleek-scrolling-bar p {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation-delay: 5s;
  animation: sleek-scrolling 45s linear infinite;
  margin: 0;
}

@keyframes sleek-scrolling {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}


/*============================= STYLE2 POUR L IMAGE ET LE TEXTE A PROPOS DE MOI  ======================*/
.main-content {
  --primary-color: #FFD700;
  --text-color: #fff;
  --background-color: #000000;
  --box-shadow-color: rgba(0, 0, 0, 0.2);
  --highlight-color: #FFD700;
  --border-color: #FFD700;

  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  gap: 40px;
}

.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  padding-left: 40px;
}

.right-column {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-image {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.small {
  font-size: 15px;
}

.large {
  font-size: 32px;
  font-weight: bold;
}

.highlight {
  color: var(--highlight-color);
}

/* Conteneur principal */
.cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin: 20px 0;
}

/* Style des boutons téléphone et whatsapp */
.btn-phone, .btn-whatsapp {
  padding: 12px 25px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-phone {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--border-color);
}

.btn-phone:hover {
  background-color: var(--primary-color);
  color: #000;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  border: 2px solid #25D366;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  border-color: #128C7E;
}

/* Icônes sociales */
.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: transparent;
  text-decoration: none;
  color: var(--primary-color);
  border: 2px solid var(--border-color);
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 15px var(--box-shadow-color);
}

.social-icons .icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff6d;
  transform: scale(0);
  transition: transform 0.4s ease;
  z-index: -1;
  border-radius: 50%;
}

.social-icons .icon:hover::before {
  transform: scale(1);
}

.social-icons .icon i {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.social-icons .icon:hover i {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .cta {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-phone, .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons .icon {
    width: 40px;
    height: 40px;
  }

  .social-icons .icon i {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .btn-phone, .btn-whatsapp {
    padding: 10px 15px;
    font-size: 14px;
  }

  .social-icons .icon {
    width: 35px;
    height: 35px;
  }

  .social-icons .icon i {
    font-size: 16px;
  }
}

/* ====================== MODAL ============================= */
.modal {
  --modal-background-color: #000000;
  --modal-box-shadow-color: rgba(0, 0, 0, 0.3);
  --modal-padding: 20px;
  --modal-border-radius: 8px;
  --modal-max-width: 400px;
  --modal-width: 90%;
  --modal-image-size: 100px;
  --modal-image-border-radius: 50%;
  --modal-close-font-size: 24px;

  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: var(--modal-background-color);
  border-radius: var(--modal-border-radius);
  box-shadow: 0 4px 20px var(--modal-box-shadow-color);
  max-width: var(--modal-max-width);
  width: var(--modal-width);
  padding: var(--modal-padding);
}

.modal-content {
  text-align: center;
}

.modal-content img {
  width: var(--modal-image-size);
  height: var(--modal-image-size);
  border-radius: var(--modal-image-border-radius);
  margin-bottom: 10px;
}

.modal-content h2 {
  margin: 10px 0;
}

#close-modal {
  cursor: pointer;
  float: right;
  font-size: var(--modal-close-font-size);
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left-column {
    text-align: center;
    padding-left: 0;
  }

  .right-column {
    margin-top: 20px;
  }

  .profile-image {
    max-width: 100%;
  }

  .social-icons {
    justify-content: center;
  }
}


/*============================= STYLE POUR LES SERVICES ===============================**/
#projets {
  --primary-color: #FFD700;
  --secondary-color: #4B0082;
  --text-color: #000000;
  --tiret-color: #ffffff;
  --background-color: #fafafa;
  --border-color: rgba(0, 0, 0, 0.1);
  --hover-color: #fafafa;
  --link-color: #000000;
  --link-hover-color: #000000;
  --footer-color: #e31b23;
  --button-background-color: #FCFCFD;
  --button-text-color: #36395A;
  --button-shadow-color: rgba(255, 251, 0, 0.836);
  --button-hover-shadow-color: rgba(45, 35, 66, 0.4);
  --button-active-shadow-color: #D6D6E7;

  padding: 40px 0;
}

#projets img {
  display: block;
  max-width: 100%;
  height: auto;
}

#projets ol {
  list-style: none;
}

#projets a {
  text-decoration: none;
  color: var(--text-color);
}

#projets .conteneur {
  max-width: 1310px;
  margin: 0 auto;
  padding: 30px;
}

#projets h1 {
  color: var(--primary-color);
  margin: 30px auto;
  width: 50%;
  text-align: center;
  padding: 15px;
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: 5px;
  border-top: 1px solid var(--tiret-color);
  border-bottom: 1px solid var(--tiret-color);
}

/* ÉLÉMENTS ET CARTES DE SERVICE */
#projets .projets {
  display: grid;
  grid-gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}

#projets .projets .projet {
  display: block; /* MODIFICATION : Rétablit l'affichage permanent des cartes */
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

#projets .projets .titre-projet {
  font-size: 20.8px;
  color: var(--text-color);
  margin-bottom: 16px;
  text-transform: uppercase;
  text-align: center;
}

#projets .projets .titre-projet:hover {
  text-decoration: underline;
}

#projets .projets figcaption {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#projets .projets img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media screen and (max-width: 900px) {
  #projets .projets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  #projets .projets {
    grid-template-columns: 1fr;
  }
}

.links-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  #projets h1 {
    font-size: 24px;
    width: 80%;
    margin: 20px auto;
  }
}

/*============================= STYLE POURQUOI PREFALERT ===============================*/
#pourquoi {
  --primary-color: #FFD700;
  --text-color: #ffffff;
  --muted-color: #bbbbbb;
  --background-color: #121212;
  --card-background-color: #1a1a1a;
  --card-border-color: #2a2a2a;
  --border-color: #FFD700;

  background-color: var(--background-color);
  color: var(--text-color);
  padding: 60px 20px 80px;
  text-align: center;
}

#pourquoi .pq-wrap {
  max-width: 1310px;
  margin: 0 auto;
  padding: 0 30px;
}

#pourquoi .pq-sub {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

#pourquoi .pq-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 45px;
}

#pourquoi .pq-title span {
  color: var(--primary-color);
}

#pourquoi .pq-grid {
  display: grid;
  grid-gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}

#pourquoi .pq-card {
  background: var(--card-background-color);
  border: 1px solid var(--card-border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 8px;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pourquoi .pq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.15);
}

#pourquoi .pq-card i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

#pourquoi .pq-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

#pourquoi .pq-card p {
  color: var(--muted-color);
  font-size: 15px;
}

/* Bloc d'appel à l'action */
#pourquoi .pq-cta {
  margin-top: 55px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px 25px;
  background-color: #000000;
}

#pourquoi .pq-cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

#pourquoi .pq-cta p {
  color: var(--muted-color);
  margin-bottom: 10px;
}

#pourquoi .pq-cta .cta {
  justify-content: center;
}

@media screen and (max-width: 900px) {
  #pourquoi .pq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #pourquoi .pq-wrap {
    padding: 0;
  }

  #pourquoi .pq-title {
    font-size: 24px;
  }

  #pourquoi .pq-cta .cta {
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  #pourquoi .pq-grid {
    grid-template-columns: 1fr;
  }
}

/*=========================== STYLE FOOTER GLOBAL ===========================*/
.custom-footer {
  --background-color: #1a1a1a;
  --text-color: #f5f5f5;
  --icon-color: #ffcc00;
  --divider-color: #48484b;
  --link-color: #f5f5f5;
  --link-hover-color: #9b59b6;
  --social-link-color: #ffffff;
  --social-link-hover-color: #ffcc00;
  --final-background-color: #333333;
  --final-text-color: #ffcc00;

  background-color: var(--background-color);
  color: var(--text-color);
  padding: 30px 15px;
  font-family: 'Poppins', sans-serif;
}

.custom-footer .footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  gap: 10px;
}

.custom-footer .contact-item {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.custom-footer .contact-item a {
  color: var(--text-color);
  text-decoration: none;
}

.custom-footer .contact-item i {
  font-size: 18px;
  color: var(--icon-color);
}

.custom-footer .footer-divider {
  width: 90%;
  border-top: 1px;
  margin: 15px auto;
  border-color: var(--divider-color);
}

.custom-footer .footer-final {
  margin-top: 20px;
  background-color: var(--final-background-color);
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  color: var(--final-text-color);
}

@media (max-width: 768px) {
  .custom-footer .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .custom-footer .contact-item {
    font-size: 12px;
  }

  .custom-footer .contact-item i {
    font-size: 16px;
  }
}