﻿/* --- Global --- */
body {
  margin: 0;
  background: #0f0f0f; /* fond général */
  color: #eaeaea;
  font-family: Arial, Helvetica, sans-serif;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 8vw;
  box-sizing: border-box;
}

/* --- Logo page d'accueil --- */
.site-header {
  text-align: center;        /* centre le logo horizontalement */
  padding: 20px 0;
  background-color: #000000; /* fond noir sous le logo */
}

.site-header .logo {
  width: 150px;              /* desktop */
  height: auto;
  display: inline-block;
  opacity: 0.9;
}

/* --- Site en cours de conception --- */
@keyframes clignoter-doux {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.site-status {
  color: #FF4C4C;                
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;     
  width: 100%;
  box-sizing: border-box;
  display: block;
  animation: clignoter-doux 1.5s infinite ease-in-out;
}

/* --- Intro texte --- */
.intro {
  max-width: 900px;
  margin: 0 auto 80px auto;
  text-align: center;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #cfcfcf;
}

/* --- Vignettes --- */
.vignettes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.vignette {
  position: relative;
  display: block;
  background: #111;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.vignette span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: rgba(0,0,0,0.6);
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background 0.4s ease, letter-spacing 0.4s ease;
}

.vignette:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

.vignette:hover span {
  background: rgba(0,0,0,0.8);
  letter-spacing: 0.12em;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

/* --- Media query mobile --- */
@media (max-width: 768px) {
  .site-header .logo {
    width: 80px;           /* mobile */
  }

  main {
    padding: 40px 20px;
    justify-content: flex-start;
  }

  .vignette span {
    font-size: 13px;
    padding: 8px;
  }

  .site-status {
    font-size: 0.9rem;    /* un peu plus lisible sur mobile */
  }
}
