@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #8b268b;
}

header {
  background: #b74eb7ac;
  color: #fff;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
header:hover {
  background-color: #b74eb7;
}

main {
  padding: 2rem;
  max-width: 1900px;
  background: #8b268b;
  margin-left: auto;
  margin-right: auto;
}

.flex-container {
  display: flex;
  padding: 1rem;
  gap: 20px;
  /* Espacement entre les éléments */
  background-color: #f1f2ed;
  border-radius: 8px;
  margin: 0 0 10px 0px;
}

.flex-items:nth-child(1) {
  width: 350px;
  flex-shrink: 0;
  /* Empêche le menu de rétrécir */
  padding: 1rem;
  background-color: #ffffff00;
  display: block;
  flex-grow: 0;
  flex-basis: auto;
  align-self: auto;
  order: 2;
}
.flex-items:nth-child(1):hover {
  background-color: #9cc9cee4;
}

.flex-items:nth-child(2) {
  flex: 1;
  padding: 1rem;
  background-color: #c71cd300;
  flex-grow: 0;
  flex-basis: auto;
  align-self: auto;
  order: 1;
}

.tooltip {
  color: #FFFFFF;
  font-size: 1.3em;
}

details {
  cursor: pointer;
  margin-bottom: 20px;
}
details:hover {
  color: #9e2d6d;
}
details a {
  color: #e1b41d;
  background-color: #f5f3ed;
  border-radius: 4px;
  padding: 4px;
  transition-duration: 1000ms;
}
details a:hover {
  color: #ffffffe4;
  background-color: #8b268b;
  border-radius: 4px;
  padding: 4px;
}

[data-tooltip] {
  position: relative;
  letter-spacing: 0.1rem;
}

[data-tooltip]::before,
[data-tooltip]::after {
  --tooltip-color: #333;
  --arrow-size: .5rem;
  --scale: 0;
  position: absolute;
  left: 50%;
  transform: translate(-50%, var(--translate-y)) scale(var(--scale));
  transition: transform 100ms;
  transition-timing-function: linear;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  --scale: 1;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.45, 1.93);
}

[data-tooltip]::before {
  --translate-y: calc(-100% - var(--arrow-size));
  content: attr(data-tooltip);
  background-color: var(--tooltip-color);
  color: #FFF;
  padding: 0.5em;
  border-radius: 0.3em;
  width: max-content;
  max-width: 100%;
  text-align: center;
  transform-origin: bottom center;
}

[data-tooltip]::after {
  --translate-y: calc(-1 * var(--arrow-size));
  content: "";
  border: var(--arrow-size) solid transparent;
  border-top-color: var(--tooltip-color);
  transform-origin: top center;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 150px;
  height: 50px;
  padding: 10px;
  margin-right: 10px;
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  width: 100%;
  margin: 1px;
  height: auto;
  transition-duration: 200ms;
}
.logo img:hover {
  transform: scale(1);
  transform: rotate(20deg);
  width: 100%;
  margin: 5px;
  height: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-menu span {
  position: relative;
  padding: 0 5px 0px 5px;
  margin: 0px 0px 0px 5px;
  background-color: #8b268b;
  color: #ffffff;
  border-radius: 0 4px 4px 4px;
  /*transform: scale(1.9);*/
  opacity: 0.9;
}
.nav-menu span:hover {
  position: relative;
  background-color: #e1b41d;
  color: #ffffff;
  border-radius: 4px;
  transform: scale(1.9);
  opacity: 0.9;
}

.nav-menu a {
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: transform 0.3s, opacity 0.3s;
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  color: #f4f4f4;
  background-color: #e1b41d;
}
.nav-menu a:hover {
  background-color: #8b268b;
  transform: scale(1.2);
  opacity: 0.8;
}

/*

.nav-menu li:nth-child(1) a {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.nav-menu li:nth-child(2) a {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.nav-menu li:nth-child(3) a {
    color: #ffe66d;
    background: rgba(255, 230, 109, 0.1);
}

.nav-menu li:nth-child(4) a {
    color: #95e1d3;
    background: rgba(149, 225, 211, 0.1);
}

.nav-menu li:nth-child(5) a {
    color: #f38181;
    background: rgba(243, 129, 129, 0.1);
}
.nav-menu li:nth-child(6) a {
    color: #f38181;
    background: rgba(243, 129, 129, 0.1);
}
*/
/* Slider Section */
.slider-section {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.slogan {
  text-align: center;
  padding: 1.2rem;
  background: linear-gradient(-90deg, #822980 0%, #540c5584 100%);
  color: white;
}

.slogan h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slogan p {
  font-size: 1.2rem;
  font-style: italic;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  max-width: 1900px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  top: 4%;
  right: 1%;
  background: #8b268b;
  color: white;
  padding: 1rem 1rem;
  border-radius: 5px;
  font-size: 1.2rem;
}

.slider-dots {
  position: absolute;
  top: 10px;
  left: 5%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

.slider-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.arrow {
  width: 4rem;
  height: 4rem;
  background: #b74eb7ac;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
}
.arrow:hover {
  background: #d6ac35ac;
}

section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #f4f4f4;
  border-radius: 8px;
}

section h2 {
  color: #333;
  margin-bottom: 1rem;
}

/* Couleurs des sections correspondant aux liens */
#accueil h2 {
  color: #ff6b6b;
}

#services h2 {
  color: #4ecdc4;
}

#portfolio h2 {
  color: #ffe66d;
}

#apropos h2 {
  color: #95e1d3;
}

#contact h2 {
  color: #f38181;
}

/* Footer */
footer {
  background: #9a7373;
  color: white;
  padding: 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer-column {
  width: 30%;
  text-align: center;
}

.footer-column h4 {
  margin-bottom: 1rem;
}

.footer-column p {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
}

.footer-column i {
  font-size: 1.5rem;
  margin: 0 0.5rem;
}

.footer-column iframe {
  width: 100%;
  height: 150px;
  border: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .site-title {
    font-size: 1.2rem;
  }

  .logo {
    width: 160px;
    max-height: 60px;
    font-size: 1.2rem;
  }

  .flex-container {
    display: block;
    padding: 1rem;
    gap: 20px;
    /* Espacement entre les éléments */
    background-color: #f1f2ed;
    border-radius: 8px;
    margin: 0 0 10px 0px;
  }

  .flex-items:nth-child(1) {
    width: auto;
    flex-shrink: 0;
    /* Empêche le menu de rétrécir */
    padding: 1rem;
    background-color: #29cbdd;
    display: block;
    flex-grow: 0;
    flex-basis: auto;
    align-self: auto;
    order: 2;
  }

  .flex-items:nth-child(2) {
    flex: 1;
    padding: 1rem;
    background-color: #ffffff;
    flex-grow: 0;
    flex-basis: auto;
    align-self: auto;
    order: 1;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #8b268b;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .nav-menu a {
    display: block;
    width: 80%;
    margin: 0 auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .slogan h1 {
    font-size: 1.8rem;
  }

  .slogan p {
    font-size: 1rem;
  }

  .slider-container {
    height: 300px;
  }

  .slide-caption {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .slider-controls {
    display: none;
    /* Cache les flèches sur mobile */
  }
}