/* --- Style global --- */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fdfaf6;
  color: #333;
  line-height: 1.6;
}

/* --- En-tête --- */
header {
  background: #3a2e2a;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #c49b63;
}

/* --- Section héro (accueil) --- */
.hero {
  background: url('images/hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  background: #c49b63;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: #a67c46;
}

/* --- Galerie de réalisations --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem;
}

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

.gallery article {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.gallery article:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.gallery img {
  width: 100%;
  display: block;
}

.gallery h2 {
  padding: 1rem;
  margin: 0;
  font-size: 1.2rem;
  color: #3a2e2a;
}

.gallery .caption {
  background: white;           /* bandeau blanc */
  display: flex;               /* active flexbox */
  align-items: center;         /* centre verticalement */
  justify-content: center;     /* centre horizontalement */
  padding: 0 1rem;             /* espace horizontal seulement */
  height: 60px;                /* hauteur fixe du bandeau */
  box-sizing: border-box;      /* inclut padding dans la hauteur */
}

.gallery .caption h2 {
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
}

/* --- Page contenu simple (atelier, contact, réalisation) --- */
.content {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
}

.content h2 {
  color: #3a2e2a;
  margin-top: 2rem;
}

/* --- Formulaire --- */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

form input, form textarea, form button {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
}

form button {
  background: #c49b63;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

form button:hover {
  background: #a67c46;
}

/* --- Pied de page --- */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #3a2e2a;
  color: #fff;
  margin-top: 3rem;
}

/* --- Bannière navigation --- */
/* --- Header --- */
header {
  background: #fdfaf6; /* fond clair, doux et aéré */
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

/* Nom du site */
header .site-title {
  font-family: 'Georgia', serif;
  font-size: 2.2rem;
  color: #3a2e2a;
  margin-bottom: 0.8rem;
}

header .site-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

header .site-title a:hover {
  color: #c49b63;
}

/* Ligne décorative sous le nom */
header .site-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #c49b63;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Navigation centrée */
header .main-nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: inline-flex;
  gap: 2rem;
}

header .main-nav li {
  display: inline-block;
}

header .main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  color: #3a2e2a;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Effet hover */
header .main-nav a:hover {
  background: #c49b63;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive mobile */
@media (max-width: 600px) {
  header .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #c49b63;  /* ocre doré */
}

/* --- Galerie des images d'une réalisation --- */
.gallery-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.image-wrapper img {
  width: 100%;
  display: block;
}

.image-wrapper .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.9);
  color: #3a2e2a;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.image-wrapper:hover .caption {
  opacity: 1;
}

/* --- Lightbox plein écran --- */
.lightbox {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.9);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}


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

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.lightbox .close {
  top: 1rem;
  right: 2rem;
}

.lightbox .prev {
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
}

.lightbox .next {
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
}
