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

body {
  font-family: "Arial", sans-serif;
  overflow-x: hidden;
  background: #f4f4f4;
}

/* PAGE D'ACCUEIL */
.top-page {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../images/PhotoMag.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;

  overflow: hidden;
  z-index: 1; /* le contenu passe au-dessus */
}

/* Calques d’images */
.top-page::before,
.top-page::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 12s infinite;

  z-index: -1; /* les images passent sous le texte */
}

/* Image 2 */
.top-page::before {
  background-image: url("../images/Port.jpg");
  animation-delay: 4s;
}

/* Image 3 */
.top-page::after {
  background-image: url("../images/Géolocalisation\ .png");
  animation-delay: 8s;
}

/* Animation fondu */
@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.944);
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #004d9a;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: 0.3s;
}

nav a:hover {
  color: #46a2ff;
}

.welcome-box {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  color: #004d9a;
  padding: 20px 60px;
  border-radius: 15px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
}

/* PAGE A PROPOS */
.about-section {
  background-color: #9c9c9c;
  color: #ffffff;
  padding: 160px 10%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  width: 100%;
  max-width: 1400px;
}

.about-left {
  flex: 1.2;
  min-width: 350px;
}

.about-left h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.about-left h2 span {
  color: #004d9a;
  font-weight: 700;
}

.about-line {
  width: 80px;
  height: 3px;
  background-color: #004d9a;
  border: none;
  margin-bottom: 40px;
}

.about-left p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 20px;
}

.about-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-width: 200px;
}

.service-card {
  background-color: #707070;
  border: 1px solid #828080;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 500;
  line-height: 1.5;
  transition: 0.3s ease;
}

.service-card:hover {
  background-color: #004d9a;
  color: white;
  transform: translateY(-5px);
}

/* PAGE MAGASIN */
.shop-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 140px 10%;
  gap: 80px;
  flex-wrap: wrap;
  background-color: #f4f4f4;
  min-height: 90vh;
}

.shop-left {
  flex: 1;
  min-width: 350px;
  color: #222;
}

.shop-left h2 {
  font-size: 2.5rem;
  color: #004d9a;
  margin-bottom: 25px;
}

.shop-left p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}

.btn-blue {
  background: #004d9a;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-blue:hover {
  background: #0468d7;
}

.shop-right {
  flex: 1.2;
  min-width: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}

.shop-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.shop-image.active {
  opacity: 1;
}

/* PAGE ATELIER */
.workshop-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 140px 10%;
  gap: 80px;
  flex-wrap: wrap;
  background-color: #9c9c9c;
  min-height: 90vh;
}

.workshop-right {
  flex: 1;
  min-width: 350px;
  color: #222;
}

.workshop-right h2 {
  font-size: 2.5rem;
  color: #004d9a;
  margin-bottom: 25px;
}

.workshop-right p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}

.atelier-img {
  display: none;
}

.atelier-img.active {
  display: block;
}

/* SLIDER ATELIER */
.atelier-slider {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.atelier-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.atelier-img.active {
  opacity: 1;
}

/* PAGE HORAIRES */
.hourly-page {
  background-image: url("../images/Port.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 100px 10%;
  color: white;
}

.horaires-box {
  background: rgba(255, 255, 255, 0.958);
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  color: #333;
  max-width: 500px;
}

.horaires-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.horaires-box li {
  font-size: 1.1rem;
  line-height: 3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.horaires-box li strong {
  color: #004d9a;
}

.horaires-box .note {
  margin-top: 25px;
  font-style: italic;
  color: #555;
  text-align: center;
}

/* PAGE CONTACT */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 180px 10% 120px 10%;
  background-color: #ffffff;
  gap: 80px;
  flex-wrap: wrap;
  min-height: 90vh;
}

.contact-section .contact-info {
  flex: 1;
  min-width: 300px;
  line-height: 2;
  text-align: center;
  transform: translateY(20px);
}

.contact-section a {
  color: #004d9a;
  text-decoration: none;
}

.contact-section .map-container {
  flex: 3;
  min-width: 400px;
}

/* FOOTER */
.footer {
  background-color: #9c9c9c;
  color: white;
  padding: 60px 10% 30px;
  font-family: "Arial", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 30px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  height: 70px;
  margin-bottom: 20px;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #215fef;
}

.footer-center ul {
  list-style: none;
  padding: 0;
}

.footer-center li {
  margin: 8px 0;
}

.footer-right .social-links {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.footer-right .social-links img {
  width: 28px;
  height: 28px;
  transition: 0.3s ease;
}

.footer-right .social-links img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.btn-footer {
  background: #ffffff;
  color: #878787;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-footer:hover {
  background: #7b7b7b;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 0.9rem;
  padding-top: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}
.social-links {
    display: flex;
    gap: 12px;
}

.social-link svg {
    width: 28px;
    height: 28px;
    color: #fff; /* change la couleur des icônes */
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
    color: #0c5cc4; /* couleur au survol : modifiable */
}

/* ----- MENU HAMBURGER ----- */
.hamburger {
display: none;
flex-direction: column;
width: 30px;
cursor: pointer;
gap: 6px;
}

.hamburger div {
height: 4px;
background: #004d9a;
border-radius: 5px;
}

/* Menu mobile masqué */
nav {
position: relative;
}

nav ul.mobile-menu {
display: none;
flex-direction: column;
background: white;
position: absolute;
top: 70px;
right: 0;
width: 180px;
padding: 20px;
border-radius: 10px;
box-shadow: 0 3px 20px rgba(0,0,0,0.2);
}

nav ul.mobile-menu li {
margin: 12px 0;
}

nav ul.mobile-menu a {
font-size: 1rem;
}


/* ----- VERSION MOBILE ----- */
@media (max-width: 750px) {

/* masque le menu classique */
nav ul {
display: none;
}

/* affiche le hamburger */
.hamburger {
display: flex;
}

/* slider magasin plus petit */
.shop-right {
height: auto !important;
}

.shop-image {
position: relative;
height: auto !important;
max-height: 260px;
}

/* slider atelier aussi */
.atelier-slider {
height: auto !important;
}

.atelier-img {
position: relative;
height: auto !important;
max-height: 260px;
}

}

/* RESPONSIVE 900px */
@media (max-width: 900px) {
  .header {
    padding: 15px 25px;
  }

  nav ul {
    gap: 18px;
  }

  .welcome-box {
    font-size: 1.3rem;
    padding: 15px 35px;
  }

  .shop-page,
  .workshop-page {
    flex-direction: column;
    text-align: center;
    padding: 100px 5%;
    gap: 50px;
  }

  .shop-right,
  .atelier-slider {
    height: 340px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right .social-links {
    justify-content: center;
  }
}

/* RESPONSIVE 750px (TELEPHONE NORMAL) */
@media (max-width: 750px) {
  .header {
    padding: 15px 20px;
  }

  nav ul {
    gap: 12px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .about-section {
    padding: 100px 5%;
  }

  .about-container {
    gap: 40px;
  }

  .about-left h2 {
    font-size: 2rem;
  }

  .shop-left h2,
  .workshop-right h2 {
    font-size: 2rem;
  }

  .shop-right {
    min-width: 100%;
  }

  .atelier-slider {
    height: 280px;
  }

  .hourly-page {
    flex-direction: column;
    padding: 80px 8%;
  }

  .contact-section {
    padding: 120px 5% 90px;
  }
}

/* RESPONSIVE 500px (PETIT TÉLÉPHONE) */
@media (max-width: 500px) {
  nav ul {
    gap: 8px;
  }

  nav a {
    font-size: 0.8rem;
  }

  .welcome-box {
    font-size: 1.1rem;
    padding: 12px 25px;
  }

  .shop-left p,
  .workshop-right p {
    font-size: 1rem;
  }

  .atelier-slider {
    height: 220px;
  }

  .horaires-box {
    padding: 25px 35px;
  }

  .contact-section .map-container {
    min-width: 100%;
  }
}


