/* ============================================================
   STYLEPROJET.CSS — Jeanne Barchilon
   Bandeau fin (url + précédent/suivant) → titre + texte + images
   / sidebar sticky (outils, catégorie, lien)
   ============================================================ */
:root {
  --px: 5%;
  --space-xs: clamp(1rem, 2vw, 1.5rem);
  --space-s:  clamp(1.5rem, 3vw, 2.5rem);
  --space-m:  clamp(2.5rem, 5vw, 4rem);
  --space-l:  clamp(3.5rem, 7vw, 5.5rem);
  --space-xl: clamp(4.5rem, 9vw, 7.5rem);
}

/* H1 */
.h1pages {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  color: var(--black);
  line-height: 1.2;
  text-align: left;
  word-wrap: break-word;
  margin-bottom: 0;
}
.h1pagesitaclic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  display: block;
  color: var(--black);
  line-height: 1.15;
  text-align: left;
  margin-top: 0.1em;
}
/* Bandeau fin */
.projet-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10rem, 14vh, 8.5rem) var(--px) 1.5rem;
  border-bottom: 1px solid rgba(14,16,15,0.12);

}
.projet-topbar-url {
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.projet-topbar-url--empty {
  text-decoration: none;
  opacity: 0.35;
}
.projet-topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.projet-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--black);
  opacity: 0.7;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.projet-nav-link:hover { opacity: 1; }
.projet-nav-link .short { display: none; }

/* Retour au portfolio — petite icône grille, entre précédent et suivant */
.projet-nav-back {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.projet-nav-back:hover { background: rgba(14,16,15,0.06); }
.projet-nav-back-icon {
  width: 12px; height: 12px;
  background:
    linear-gradient(var(--black), var(--black)) 0 0/5px 5px no-repeat,
    linear-gradient(var(--black), var(--black)) 7px 0/5px 5px no-repeat,
    linear-gradient(var(--black), var(--black)) 0 7px/5px 5px no-repeat,
    linear-gradient(var(--black), var(--black)) 7px 7px/5px 5px no-repeat;
}

/* Contenu principal : colonne texte+images / sidebar sticky */
.projet-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-l);
  align-items: start;
  padding: var(--space-l) var(--px) var(--space-m);
}

.projet-h1 {
  margin-bottom: 1.25rem;
}

.textprojet {
  font-family: 'Public Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  color: var(--black);
  max-width: 700px;
  margin-bottom: var(--space-m);
}
.textprojet a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Grille d'images — 2 colonnes, comme la maquette */
.projet-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.projet-images-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0px;
  display: block;
}

/* Sidebar sticky */
.projet-sidebar { position: sticky; top: 6rem; }
.projet-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  background-color: var(--yellow);
          padding: 5%;
}
.projet-sidebar-block { display: flex; flex-direction: column; gap: 10px; }
.projet-sidebar-label {
font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(14, 16, 15, 0.45);
}
.projet-sidebar-value {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  color: var(--black);
  text-transform: capitalize;
}
.projet-sidebar-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
}
.projet-sidebar .outilsprojets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.projet-sidebar .outilsborder {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  color: var(--black);
}


@media (max-width: 900px) {
  .projet-main { grid-template-columns: 1fr; }
  .projet-sidebar { position: static; }
  .projet-sidebar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-m);
    padding-bottom: var(--space-m);
    margin-bottom: var(--space-m);
  }
}
@media (max-width: 600px) {
  .projet-images-grid { grid-template-columns: 1fr; }
  .projet-topbar { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 500px) {
  /* Sur mobile, remplace le texte par la simple flèche pour ne pas surcharger */
  .projet-nav-link .full { display: none; }
  .projet-nav-link .short { display: inline; }
}

/* CTA de fin */
.projet-cta {
  padding: var(--space-l) var(--px) var(--space-xl);
}
.projet-cta .hero-actions {
  justify-content: flex-start;
}

.projetctah3{
  font-family: 'Montserrat';
  font-size : 20px;
  font-weight: 300;
}

.projet-sidebar-cta {
  margin-top: 8px;
}
.projet-sidebar-cta .boutonnoir {
  width: 100%;
  justify-content: center;
}

/* Page projet introuvable (404 doux) */
.projet-introuvable {
  padding: clamp(8rem, 20vh, 12rem) var(--px);
  text-align: center;
}
.projet-introuvable .h1pages {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: var(--space-m);
}
.projet-introuvable .h1pagesitaclic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}