/* Police */
body {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  color: #000;
  background: #fff;
  margin: 0;
}

a:link {
  color: #8B0000;          /* Rouge foncé pour les liens normaux */
  text-decoration: none;   /* Pas de soulignement */
}

a:visited {
  color: #660000;          /* Rouge encore plus foncé pour les liens déjà visités */
}

a:hover {
  color: #A40000;          /* Rouge un peu plus clair au survol */
  text-decoration: underline;
}

a:active {
  color: #CC0000;          /* Rouge vif quand on clique */
}


/* Container général */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 300;
  margin: 0;
}
.main-nav {
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding-left: 0;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: red;
}

.menu-icon {
  display: none;
}

/* Titre principal */
.subcat-title {
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  margin: 0rem 0rem 0.5rem 0rem;
  background-color: #F7F7F7;
	height: 50px;
}

/* Section sous-sous-catégorie */
.sub-subcat {
  width: 100%;
  margin-bottom: 0rem;
}

.sub-subcat-title {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
	text-align: center;
  border-left: 0px solid #000;
  padding-left: 0.5rem;
}

/* Conteneur images + texte */
.subcat-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.portfolio-gallery {
  display: contents;
}

.portfolio-item {
  position: relative;
  width: 100%;
  max-width: 100%;
	max-height: auto;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

.img-hover {
  position:absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.portfolio-item:hover .img-hover {
  opacity: 1;
}

.portfolio-item:hover .img-base {
  opacity: 0;
}

/* Texte description */
.portfolio-description {
  background: #f4f4f4;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

.portfolio-description h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.portfolio-description p + p {
  margin-top: 0.5rem;
}

/* Largeur du texte dans la grille */
.portfolio-description.span-1 { grid-column: span 1; }
.portfolio-description.span-2 { grid-column: span 2; }
.portfolio-description.span-3 { grid-column: span 3; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #ccc;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width : 900px ){
  .subcat-content {
    grid-template-columns: 1fr;
  }

  .portfolio-description {
    grid-column: span 1 !important;
  }

  .nav-links {
    flex-direction: column;
    display: none;
    background: #fff;
    position: absolute;
    top: 2.5rem;
    right: 0;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .menu-icon {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }
}
/* ----- Main avec Aside ----- */
.main-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ----- Colonne principale ----- */
.portfolio-page {
  flex: 1;
}

/* ----- Aside minimal à droite ----- */
.sidebar {
  width: max-content;
  flex-shrink: 0;
  padding-left: 1rem;
	border-left: 1px solid #ccc;
}

.sidebar .menu-group h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 1rem 0 0.5rem;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.3rem;
}

.sidebar a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.sidebar a:hover {
  color: red;
}

/* ----- Responsive : aside passe en bas ----- */
@media (max-width : 900px ){
  .main-flex {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding-left: 0;
    margin-top: 2rem;
  }
	  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 1rem;
    border: 1px solid #ccc;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}
