
@import url(../fonts/authentic_sans/stylesheet.css);

/* ========================================
   RESET CSS MINIMAL
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
  /* Typographie */
  --font-family-primary: "authentic_sans90", Arial, Helvetica, sans-serif;
  --font-size-base: 14px;
  --font-size-small: 12px;
  --line-height-base: 1.4;
  
  /* Couleurs */
  --color-text: #000;
  --color-bg: #fff;
  --color-link-hover: #3783d4;
  --color-active: #00f;
  
  /* Espacements */
  --spacing-base: 1em;
  
  /* Dimensions */
  --content-width: 1200px;
  
  /* Transitions */
  --transition-base: 0.3s ease;
}

/* ========================================
   STYLES GLOBAUX
   ======================================== */
body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Liens */
a:hover {
  text-shadow: 0px 0px 4px var(--color-link-hover);
  transition: 0.3s;
}

/* Typographie */
h1, h2, h3 {
  font-weight: bold;
  margin-bottom: var(--spacing-base);
}

p {
  margin-bottom: var(--spacing-base);
  max-width: 600px;
}

small {
  font-size: var(--font-size-small);
}

/* ========================================
   NAVIGATION/MENU
   ======================================== */
#index {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  z-index: 1000;
}

#index .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 5px 10px;
}

#index h1 {
  font-size: var(--font-size-base);
  margin-right: 50px;
  margin-bottom:0;
  font-weight: normal;
}

#index ul.section {
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 0;
}

#index ul.section li {
  margin: 0;
  display: block;
  white-space: nowrap;
}

/* Éléments actifs */
#index .active,
#index .active a {
  color: var(--color-active);
  text-shadow: 0px 0px 4px var(--color-link-hover);
}


/* ========================================
   CONTENU PRINCIPAL
   ======================================== */
#exhibit {
  margin-top: 0; /* Pas de marge fixe, s'adapte au contenu du menu */
  padding: var(--spacing-section);
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

#exhibit .container {
  padding-top: 32px; /* Padding original pour le contenu */
}

/* PAGE ACCUEIL images aléatoires */

#c {

  width: 100vw;
  height : 100vh;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  mix-blend-mode: exclusion;

}

.introduction {

  padding-right: 2em;
  font-size: 1.6em;
  position:absolute;
  bottom: 2em;

}




/* ========================================
   GRILLE PROJETS
   ======================================== */
.format-visual_index #exhibit {
  max-width: none;
  margin: 0;
  padding: 0;
}

.format-visual_index #exhibit .container {
  padding: 0;
  max-width: none;
}

.format-visual_index #img-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.format-visual_index .picture_holder {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #ffffff;
}

.format-visual_index .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-base);
}

.format-visual_index .picture_holder:hover img {
  transform: scale(1.02);
}

.format-visual_index .captioning {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 1);
}

.format-visual_index .title {
  padding: 8px 12px;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

/* ========================================
   SLIDESHOW/PROJET
   ======================================== */
.format-slideshow #textspace {
  max-width: var(--content-width);
  margin: 0 auto var(--spacing-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
}

.format-slideshow #textspace .description,
.format-slideshow #textspace .details {
  font-size: var(--font-size-small);
  line-height: 1.3;
}

.format-slideshow #slideshow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--spacing-base);
}

.format-slideshow #slideshow {
  width: 100%;
  max-width: var(--content-width);
}

.format-slideshow .picture {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.format-slideshow .picture img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;

  border: 1px solid black;
}

/* Navigation et légendes */
#slideshow-nav {
  position: fixed;
  right: 5em;
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-link-hover);
}

.caption {
  font-size: var(--font-size-small);
  color: var(--color-link-hover);
  font-style: italic;
  text-align: center;
  margin-top: 10px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  /* Menu en position normale sur mobile (pas fixed) */
  #index {
    position: fixed; 
    width: 100%;
    background: var(--color-bg);
  }
  
  #index .container {
    flex-direction: row;
    align-items: baseline;
    padding: 8px 10px;
  }
  
  #index h1 {
    margin-right: 50px;
    margin-bottom: 3px;
  }
  
  #index ul.section {
    margin-right: 15px;
    margin-bottom: 3px;
  }
  
  .format-visual_index #exhibit .container {
    padding-top: 0;
  }
  
  #exhibit .container {
    padding-top: 10px; /* Petit espacement après le menu */
  }
  
  /* Grille projets mobile */
  .format-visual_index #img-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  #slideshow-nav {
    position: static; 
    right: auto;
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    background: var(--color-bg);
  }
  
  /* Slideshow général mobile */
  .format-slideshow #textspace {
    grid-template-columns: 1fr;
    gap: var(--spacing-base);
    padding-left: var(--spacing-base);
  }
  
  .format-slideshow .picture img {
    max-height: 60vh;
  }
  
  .format-visual_index .title {
    font-size: var(--font-size-small);
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  /* Menu encore plus compact sur très petit écran */
  #index .container {
    padding: 6px 8px;
  }
  

  .introduction {
    font-size: 1.2em;
    padding-left: 1em;
  }

  #c {

  width: 100vw;
  height : 100vh;
  }
  
  .format-visual_index #img-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  #slideshow-nav {
    padding: 15px 10px;
    font-size: var(--font-size-small);
  }
}