* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-display: swap;
}

html {
  overflow: -moz-scrollbars-none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #010F13;
  color: #CEFDFF;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

#bg1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.7;
  filter: blur(3px);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(1, 15, 19, 0.9);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo-container {
  height: 40px;
}

#logo-header {
  height: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #CEFDFF;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #33e0ff;
}

.btn-primary {
  padding: 0.7em 1.5em;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  color: #f6fff6;
  background-color: #33e0ff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background-color: #1ea7c7;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(1px);
}

main {
  margin-top: 60px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  text-align: center;
  padding: 0 20%;
  animation: fadeInUp 1s ease-out;
}

.hero-content {
  max-width: 800px;
}

#logo-main {
  width: 200px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  color: #33e0ff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #d4f0f5;
}

.hero-button {
  padding: 1em 2.5em;
}

.content-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5% 10%;
  min-height: 70vh;
  animation: fadeInLeft 1s ease-out;
}

.content-section.reversed {
  flex-direction: row-reverse;
}

.text-container, .image-container {
  width: 45%;
}

.content-section h2 {
  font-size: 2.2rem;
  color: #33e0ff;
  margin-bottom: 1.2rem;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d4f0f5;
}

.content-section img {
  width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-section {
  padding: 5% 10%;
  text-align: center;
  min-height: 50vh;
  animation: fadeInUp 1s ease-out;
}

.about-section h2 {
  font-size: 2.5rem;
  color: #33e0ff;
  margin-bottom: 1.5rem;
}

.about-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #d4f0f5;
  max-width: 800px;
  margin: 0 auto;
}

#section3 img{
  object-position: 50% 30%;
}

footer {
  background-color: #0a1a1e;
  color: #888;
  text-align: center;
  padding: 1rem 0;
  position: sticky;
  bottom: 0;
  width: 100%;
  z-index: 99;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.content-section .text-container h2,
.content-section .text-container p {
  transform: translateX(-30px);
  animation: fadeInLeft 1s ease-out forwards;
}

.content-section.reversed .text-container h2,
.content-section.reversed .text-container p {
  transform: translateX(30px);
  animation: fadeInRight 1s ease-out forwards;
}

.about-section h2 {
  transform: scale(0.8);
  animation: fadeInUp 1s ease-out forwards;
}

.about-section p {
  transform: rotateY(20deg);
  animation: fadeInUp 1.5s ease-out forwards;
}

body:not(.aos-loading) [data-aos] {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

section {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  will-change: opacity;
  padding: 5% 10%;
  margin-bottom: 50px;
  min-height: 50vh;
}
section:target {
  animation: popIn 0.8s ease-out forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}



.content-section h2 {
  position: relative;
  overflow: hidden;
}


/* animation images flottement*/
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.content-section img {
  animation: float 4s ease-in-out infinite;
}

.content-section img {
  transition: transform 0.3s ease;
}

.content-section img:hover {
  transform: scale(1.05);
}
section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Quand une section est ciblée (via navigation ou hash), on anime */
section:target,
section.visible {
  opacity: 1;
  transform: translateY(0);
}

#section3-mobile{
  display: none;
}

/* TABLETTES (768px à 1024px) */
@media screen and (max-width: 1024px) {
  header {
    display: none;
    flex-direction: column;
    padding: 1rem 5%;
  }

  #section3{
    display: none;
  }

  #section3-mobile{
    display: block;
  }

  nav{
    display: none;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .content-section,
  .content-section.reversed {
    flex-direction: column;
    text-align: center;
    padding: 10% 5%;
    align-items: center;
  }

  .text-container,
  .image-container {
    width: 100%;
  }

  .content-section img {
    width: 100%;
    height: auto;
  }

  .hero {
    padding: 0 10%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 4px #33e0ff) brightness(1);
    transform: scale(1);
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 10px #33e0ff) brightness(1.2);
    transform: scale(1.03);
    opacity: 0.95;
  }
}

#logo-header,
#logo-main {
  animation: logoGlow 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

#logo-header:hover,
#logo-main:hover {
  transform: scale(1.05) rotate(1deg);
}

/* SMARTPHONES (<768px) */
@media screen and (max-width: 767px) {
  header {
    display: none;
    flex-direction: column;
    padding: 1rem 5%;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .btn-primary {
    padding: 0.6em 1.2em;
    font-size: 0.9rem;
  }

  .hero {
    height: auto;
    padding: 20% 5%;
  }

  #logo-main {
    width: 150px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .content-section,
  .content-section.reversed {
    flex-direction: column;
    padding: 15% 5%;
  }

  .content-section.reversed{
    flex-direction: row-reverse;
  }

  .text-container,
  .image-container {
    width: 100%;
  }

  .content-section img {
    width: 100%;
    height: auto;
  }

  .about-section h2 {
    font-size: 2rem;
  }

  .about-section p {
    font-size: 1rem;
  }

  footer {
    font-size: 0.9rem;
  }
  
}




[data-scroll="fade-in"] {
  animation: fadeIn 1s ease-out forwards;
}

[data-scroll="slide-in-left"] {
  animation: slideInFromLeft 1s ease-out forwards;
}

[data-scroll="slide-in-right"] {
  animation: slideInFromRight 1s ease-out forwards;
}

.hero {
  animation: fadeIn 1s ease-out forwards;
}

.content-section {
  animation: slideInFromLeft 1s ease-out forwards;
}

.content-section.reversed {
  animation: slideInFromRight 1s ease-out forwards;
}

.about-section {
  animation: fadeIn 1.2s ease-out forwards;
}

body {
  height: 200vh;
}
