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

/* =========================
   GLOBAL
========================= */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  text-align: justify;
}

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

/* =========================
   HEADER
========================= */
.header {
  background: #000;
  color: #fff;
  padding: 20px 0;
}

.header-content {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 25px;
  font-size: 0.95rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

nav a:hover,
nav a.active {
  opacity: 1;
}

.instagram-link {
  margin-left: 25px;
  display: flex;
  align-items: center;
}

.instagram-link img {
  width: 40px;
  height: 40px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.instagram-link:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/*----LOGO---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;              /* espace entre logo et texte */
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: #fff;
}

/* Image du logo */
.logo img {
  height: 120px;           /* ajuste selon ton logo */
  width: auto;
  display: block;
}

/* =========================
   HERO
========================= */
.custom-hero {
  background: #000;
  color: #fff;
  padding: 70px 0 45px;
}

.custom-hero-content {
  width: 90%;
  max-width: 900px;
  margin: auto;
}

.custom-hero h2 {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.custom-hero p {
  opacity: 0.85;
  max-width: 750px;
  font-size: 1.05rem;
}

/* =========================
   SECTIONS
========================= */
.custom-section {
  width: 90%;
  max-width: 900px;
  margin: 70px auto;
}

.custom-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.custom-section p {
  margin-bottom: 18px;
  line-height: 1.85;
  color: #222;
}

/* =========================
   PRESENTATION BLOCKS
========================= */
.presentation-block {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.presentation-block img {
  width: 40%;
  max-width: 420px;
  border-radius: 4px;
}

.presentation-block p {
  width: 60%;
  color: #222;
}

/* image à droite */
.image-right {
  flex-direction: row-reverse;
}



/* =========================
   GALERIE
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 10px;
}

.gallery figure {
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox:target {
  display: flex;
}

.lightbox-close {
  position: absolute;
  inset: 0;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #000;
  color: #aaa;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  font-size: 0.8rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  /* Header */
  .header-content {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .header-right {
    margin-left: 0;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    margin-left: 0;
  }

  .instagram-link {
    margin-left: 0;
  }

  .logo {
    text-align: center;
  }

  /* Lisibilité mobile */
  p {
    text-align: left;
  }

  /* Hero */
  .custom-hero {
    padding: 55px 0 35px;
  }

  .custom-hero h2 {
    font-size: 2rem;
    text-align: center;
  }

  .custom-hero p {
    text-align: center;
  }

  /* Presentation */
  .presentation-block {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
    align-items: stretch;
  }

  .presentation-block img {
    width: 100%;
    max-width: none;
  }

  .presentation-block p {
    width: 100%;
  }

  .image-right {
    flex-direction: column;
  }

  /* Galerie */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 180px;
  }
}
