/* =============================
   RESPONSIVE JCB - VERSION NETTOYÉE
   ============================= */

/* ========= 0. CONTENEUR GLOBAL ========= */
.page-wrapper {
  background: black;
  color: white;
  margin: 0 auto;
  padding: 10px 20px;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Didact Gothic', sans-serif;
}

/* Ancien conteneur spip (#global, #pied) parfois en 970px */
#global,
#pied {
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

/* Anti scroll horizontal global */
html,
body,
.page-wrapper {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Les images ne doivent jamais dépasser */
.page-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========= 1. HEADER PUBLIC ========= */
/* (celui qu’on a mis dans common_header.html) */

.site-header-public {
  background: black;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 24px 12px;
  box-sizing: border-box;
  max-width: 100%;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  text-align: center;
  word-spacing: 0.2em;
}

.artist-name {
  font-family: 'Actor', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.35rem;
  color: white;
  white-space: normal;
  word-break: keep-all;
}

.artist-dates {
  font-family: 'Actor', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.25rem;
  color: #bbb;
  margin-top: 0.3rem;
}

.main-nav-public {
  width: 100%;
  max-width: 800px;
}

.main-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  row-gap: 0.5rem;
}

.main-nav-list li {
  text-align: center;
}

.main-nav-list a {
  color: white;
  font-family: 'Actor', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  text-decoration: none;
  text-transform: none !important;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav-list a:hover {
  color: #ccc;
  text-decoration: underline;
}

/* header : petit écran */
@media (max-width: 600px) {
  .main-nav-list {
    flex-direction: column;
    gap: 0.4rem;
  }
  .artist-name {
    font-size: 1.5rem;
  }
  .artist-dates {
    font-size: 0.95rem;
  }
}

/* ========= 2. FOOTER PUBLIC ========= */

.site-footer-public {
  background: black;
  color: #888;
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Actor', sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  box-sizing: border-box;
  max-width: 100%;
  border-top: 1px solid #222;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  color: #888;
  word-break: break-word;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width:480px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* ========= 3. GALERIE SCULPTURES (rubrique 2, listes, etc.) ========= */

.galerie-sculptures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  max-width: 100%;
}

.tuile-sculpture {
  position: relative;
  background: black;
  border: 1px solid #222;
  box-sizing: border-box;
  width: 160px;
  max-width: 100%;
  overflow: hidden;
}

.tuile-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  background: black;
}

/* numéro dans le coin */
.tuile-num {
  position: absolute;
  right: 8px;
  bottom: 8px;
  line-height: 1;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  text-shadow:
    1px 1px 0 black,
    0 0 2px black;
}

/* ========= 4. PAGE ARTICLE (article-2 : œuvre seule) ========= */

.article2-nav {
  display: none !important; /* on les a supprimées sur le site public */
}

.article2-content {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  color: white;
  font-family: 'Didact Gothic', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.article2-image {
  width: 100%;
  max-width: 1200px;
}

.article2-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: black;
  border: 1px solid #222;
}

.article2-texte {
  max-width: 800px;
  width: 100%;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0 10px 2rem 10px;
  box-sizing: border-box;
}

.article2-titre {
  font-family: 'Actor', sans-serif;
  font-size: 1.4rem;
  line-height: 1.3;
  color: white;
  font-weight: normal;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.1rem;
  word-break: break-word;
}

.article2-chapo {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.article2-desc {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 1rem;
}

.article2-corps {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.article2-corps p {
  margin-bottom: 1rem;
}

.article2-signature {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
}

/* ========= 5. PAGE D’ACCUEIL ========= */

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 60px 10px;
  box-sizing: border-box;
}

.home-hero,
.home-text {
  width: 100%;
  max-width: 900px;
}

.home-hero-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  max-width: 900px;
}

.home-text {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
  margin-top: 1.5rem;
  text-align: justify;
}

.home-text-inner p {
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .home-content {
    padding: 15px 6px 30px 6px;
  }
  .home-text {
    font-size: 0.95rem;
  }
}

/* ========= 6. BIOGRAPHIE (article-3) ========= */
/* version finale : 4 photos haut → texte → 4 photos bas */

.bio-content {
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.bio-text {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  text-align: justify;
  line-height: 1.6;
  color: #ddd;
  font-size: 1rem;
}

/* grilles haute et basse */
.bio-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.8rem;
}

/* une carte photo */
.bio-photo {
  width: 220px;
  max-width: 100%;
  background: black;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* image uniforme */
.bio-photo-img {
  width: 100%;
  height: 160px;      /* uniformisation visuelle */
  object-fit: cover;
  display: block;
}

/* légende */
.bio-photo-caption {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #ddd;
  text-align: center;
}

/* mobile bio */
@media (max-width: 560px) {
  .bio-photo {
    width: 100%;
    max-width: 360px;
  }
  .bio-text {
    padding: 0 4px;
  }
}
