/* === Variables globales === */
:root {
  --bg: #0d0d0d;
  --text: #f2f2f2;
  --accent: #ff9900;
  --gray: #444;
  --font-main: 'Inter', sans-serif;

  --bg-section: #1a1a1a;
  --border: #555;
  --text-secondary: #bbb;
}

/* === Réinitialisation de base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header, footer {
  background-color: var(--bg-section);
  padding: 1rem 2rem;
  color: var(--text);
}

main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  /*flex-direction: column;*/
  justify-content: center;
  padding: 2rem;
  padding-top: 1rem;
}

main, section.work, section.about {
  max-width: 900px;
  width: 90%;
  margin: 2rem auto 3rem auto;
  padding: 1rem;
}

h2{
  margin-top: 0;
}

/* === Liens === */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover,
a:focus {
  color: #000;
  background-color: var(--accent);
}

/* === Navigation principale === */
header {
  background-color: #111;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 10;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
  padding: 0.5rem 0.75rem;
}

.logo a:hover {
  color: #000;
  background-color: var(--accent);
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav li a {
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
}

/* === Sections communes === */
section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  flex-grow: 1;
}

section h2 {
  position: relative;
  text-align: center;
  margin: 2.5rem 0 2rem;
  padding: 0.5rem;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 1.5px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem; /* espace entre les traits et le texte */
}

section h2::before,
section h2::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background-color: var(--accent);
  max-width: 120px; /* limite la longueur des traits */
}



h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/*section.work{
  margin: 1rem auto 2rem auto;
}*/

.work {
  margin: 1rem auto 2rem auto;
  max-width: 900px;
  padding: 2rem 1.5rem;
  min-height: calc(100vh - 100px - 50px); /* Exemple : header 100px, footer 50px */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  color: #eee;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}



/* === Home page spécifique (classe body.homepage) === */
body.homepage {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: var(--bg);
  font-family: var(--font-main);
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.5;
}

body.homepage .overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 2rem;
  text-align: center;
}

.intro-text {
  color: var(--text);
  margin-bottom: 2rem;
}

.intro-text h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent);
}

.intro-text p {
  font-size: 1.2rem;
  margin: 0.5rem 0 0;
  font-weight: 300;
  color: var(--accent);
}

.enter-button {
  padding: 1rem 2rem;
  background-color: var(--accent);
  color: #000;
  text-decoration: none;
  font-size: 1.5rem;
  border-radius: 30px;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.enter-button:hover,
.enter-button:focus {
  background-color: #cc7a00;
  outline: none;
}

/* === Galerie (utilisable sur toutes les pages) === */
.gallery-grid,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  padding: 1rem 2rem;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.gallery-item,
.photo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  color: var(--text);
}

.gallery-item:hover,
.photo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 153, 0, 0.5);
}

.gallery-item img,
.photo-item img,
.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  /*border-bottom: 2px solid var(--accent);*/
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.photo-item:hover img,
.photo-grid img:hover {
  transform: scale(1.05);
}

.gallery-item h3 {
  margin: 0.7rem 0 1rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--accent);
  text-align: center;
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 13, 13, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay h3 {
  color: var(--accent);
  font-size: 1.4rem;
  text-align: center;
  margin: 0;
  padding: 1rem;
  z-index: 2;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem 2rem;
  max-width: 900px; /* Pour coller à la largeur de tes sections */
  margin: 0 auto 3rem auto;
}


/* Photo item caption */
.photo-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.photo-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* === Contact === */


.contact-form {
  max-width: 500px;
  margin: 20px auto;
  background: #121212;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.7);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #1e1e1e;
  color: #eee;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #4caf50;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.contact-form button[type="submit"] {
  background-color: #4caf50;
  border: none;
  padding: 12px 30px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
  background-color: #45a047;
}

.success {
  color: #4caf50;
  font-weight: 700;
  margin-bottom: 15px;
}

.error {
  color: #e74c3c;
  font-weight: 700;
  margin-bottom: 15px;
}




/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #111;
  color: #666;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  section {
    padding: 2rem 1rem;
  }

  body.homepage .intro-text h1 {
    font-size: 2rem;
  }

  .gallery-grid,
  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .album {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
}

@media (max-width: 480px) {
  .enter-button {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
  }

  section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
    padding: 1rem 1rem; /* moins de padding sur petits écrans */
  }
}


.categories {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 2rem;
}

.categories ul {
  display: contents;
}

.categories li {
  list-style: none;
}

.categories li a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
}

.categories li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.categories li a span {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease, text-align 0.3s ease;
  text-align: left;
  width: 100%;
  padding: 0 10px;
}

.categories li a:hover span {
  opacity: 1;
  bottom: 40px;
  text-align: center;
}


.categories li a:hover::before {
  opacity: 1;
}


@media (max-width: 768px) {
  .categories {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 200px);
  }
}




.albums {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
  
}

.album {
  width: 240px !important;
  height: 240px !important;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--bg-section);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  flex-shrink: 0; /* Empêche de rétrécir */
}

.album:hover {
  transform: scale(1.03);
}

.album a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.album-thumb {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  display: flex;
  align-items: flex-end;
}

.album-title {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* === Harmonisation album‑page / catégories Voyages =================== */
/* Clone le style .album pour chaque photo de l'album */
.album-item{
  width: 240px;
  height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--bg-section);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.album-item:hover{transform:scale(1.03)}

.album-item img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  border-radius:8px;
}

.album-item .hover-caption{
  position:absolute;
  bottom:0;left:0;
  width:100%;
  background:rgba(0,0,0,.6);
  color:#fff;
  padding:.5rem;
  font-size:1rem;
  text-align:center;
  opacity:0;
  transition:opacity .3s ease;
}
.album-item:hover .hover-caption{opacity:1}

#diaporama-btn {
  background-color: #1e90ff;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  margin-bottom: 1em;
}

#diaporama-btn:hover {
  background-color: #0d6efd;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.7);
}

.contact-direct {
  background-color: #111;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.contact-direct h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-direct a {
  color: #1e90ff;
  text-decoration: none;
}

.contact-direct a:hover {
  text-decoration: underline;
}

.contact-direct .social-icon img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  margin-top: 0.5rem;
}

.contact-direct .social-icon img:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.glightbox-container .gslide img {
  max-width: 80vw !important;
  max-height: 80vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
																									
																									@media (max-width: 768px) {
  #services.work {
    display: block;
    min-height: auto;
  }
}

