/* Typographie du site : titres en Helvetica Neue Bold, texte en Helvetica Neue Regular */
.page_content {
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Roman", Icons !important;
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: rgba(0,0,0,0.85) !important;
}
.page_content h1,
.page_content h2 {
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Neue Bold", Icons !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: rgba(0,0,0,0.85) !important;
}

/* Empeche les images de s'afficher en pleine taille native avant redimensionnement (evite le clignotement) */
.page_content img {
  max-width: 100% !important;
  height: auto !important;
}

/* Grille compacte pour les pages de categorie (Oeuvres, Expositions, Projets Pedagogiques) */
body.category-grid-view [data-container="set"] > [data-container="page"] {
  display: none !important;
}
body.category-grid-view .thumbnails {
  display: none !important;
}
#custom-category-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 32px 20px;
  padding: 2rem 0;
}
#custom-category-grid .ccg-item {
  display: block;
  width: calc(50% - 10px);
  text-decoration: none;
  color: inherit;
}
#custom-category-grid .ccg-img {
  width: 100%;
  overflow: hidden;
  background: rgba(0,0,0,0.03);
}
#custom-category-grid .ccg-img img {
  display: block;
  width: 100%;
  height: auto;
}
#custom-category-grid .ccg-title {
  margin-top: 0.8rem;
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Neue Bold", Icons;
  font-weight: 700;
  font-size: 1.2rem;
  color: rgba(0,0,0,0.85);
}
@media (max-width: 700px) {
  #custom-category-grid .ccg-item {
    width: 100%;
  }
}

/* Menu fixe a gauche (sidebar), desktop uniquement, fond blanc, typo du site */
@media (min-width: 801px) {
  #site_menu_panel_container { display: block !important; }
  #site_menu_wrapper { position: static !important; height: auto !important; }
  #site_menu_panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 240px !important;
    max-width: 240px !important;
    height: 100vh !important;
    z-index: 5 !important;
    pointer-events: none !important;
  }
  #site_menu_panel * { pointer-events: auto !important; }
  #site_menu {
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    border-right: 1px solid rgba(0,0,0,0.1) !important;
    padding: 20px !important;
  }
  #site_menu, #site_menu a {
    font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Roman", Icons !important;
  }
  #site_menu .page-link a, #site_menu .set-link > a {
    color: rgba(0,0,0,0.75) !important;
  }
  #site_menu .close {
    color: rgba(0,0,0,0.4) !important;
    display: none !important;
  }
  #site_menu_button { display: none !important; }
  .main_container { margin-left: 240px !important; width: calc(100% - 240px) !important; box-sizing: border-box !important; }
}

@media (min-width: 801px) {
  #site_menu .page-link a, #site_menu .set-link > a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: inline-block !important;
    line-height: 1.3 !important;
  }
}

/* Remplace le label "Homepage" par AMANDINE MAAS */
#site_menu .home-link a {
  font-size: 0 !important;
  color: transparent !important;
  opacity: 1 !important;
}
#site_menu .home-link a::before {
  content: "AMANDINE MAAS";
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Neue Bold", Icons !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: rgba(255,255,255,0.9) !important;
  opacity: 1 !important;
}
@media (min-width: 801px) {
  #site_menu .home-link a::before {
    color: rgba(0,0,0,0.85) !important;
  }
}

/* Espace plus grand entre le nom AMANDINE MAAS et les categories du menu */
#site_menu .home-link {
  margin-bottom: 1.6rem !important;
}

/* Espace entre toutes les categories du menu */
#site_menu > .set-link,
#site_menu > .page-link:not(.home-link) {
  margin-top: 1.6rem !important;
}

/* Typographie des liens de contenu (ex: page Contact) alignee sur le reste du site */
.page_content a {
  color: rgba(0,0,0,0.85) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.3) !important;
}
/* Page Contact : fond blanc (au lieu de noir), typo plus grande */
[local-style="7843604"] .page_background {
  background-color: transparent !important;
}
[local-style="7843604"] .page_content {
  font-size: 1.8rem !important;
  line-height: 1.5 !important;
}

/* Page d'accueil : format d'image identique (recadre) pour les 4 categories */
#custom-category-grid.ccg-home .ccg-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
#custom-category-grid.ccg-home .ccg-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Typographie du bloc "autres oeuvres" affiche sous chaque fiche (thumbnails natifs) */
.thumbnails .title,
.thumbnails .title span {
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Neue Bold", Icons !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: rgba(0,0,0,0.85) !important;
  line-height: 1.3 !important;
}
.thumbnails a.image-link {
  text-decoration: none !important;
  color: inherit !important;
}

/* Le menu reste ouvert en permanence sur desktop (sidebar fixe), donc on desactive le
   verrouillage de defilement ("no-scroll") que Cargo applique normalement quand le menu
   mobile est ouvert : sinon la page entiere ne defile plus sur desktop. */
@media (min-width: 801px) {
  html.no-scroll,
  html.no-scroll body {
    overflow: auto !important;
    height: auto !important;
  }
}

/* Ne pas afficher la grille "autres oeuvres" sous la page Contact */
body[data-page-id="7843604"] .thumbnails {
  display: none !important;
}

/* Separation claire entre une fiche et la section "autres oeuvres de la categorie" */
#ccg-article-more {
  margin-top: 3rem;
}
.ccg-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.15);
  margin: 0 0 2.5rem 0;
}
.ccg-section-title {
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Neue Bold", Icons;
  font-weight: 700;
  font-size: 1.4rem;
  color: rgba(0,0,0,0.85);
  margin-bottom: 1.5rem;
}


/* Marge blanche gauche/droite du texte de contenu (mobile + desktop) */
.page_content {
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}


/* Meme marge blanche gauche/droite sur les grilles (accueil, categories, autres oeuvres) */
#custom-category-grid {
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}
