@charset "utf-8";

/* =============================== */
/* SECTIONS ANNÉES                 */
/* =============================== */

.expo-year {
    max-width: 1600px;
    margin: 0 auto 80px auto;
}

.expo-year h2 {
    margin-bottom: 14px;
}

/* =============================== */
/* TIROIRS                         */
/* =============================== */

.expo-item {
    border-bottom: 1px solid rgba(0,0,0,0.42);
    padding: 12px 0;
}

.expo-header {
    width: 100%;
    background: none;
    border: none;
    padding: 0 0 5px 0;
    margin: 0;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 22px;
    font-weight: 200;
    letter-spacing: 0.04em;
}

.expo-header:hover .expo-title {
    color: #398717;
}

.expo-header:active .expo-title {
    color: #1f4a0d;
}

.expo-title {
    font-size: 20px;
    font-weight: 200;
    letter-spacing: 0.04em;
    text-align: left;

    /* Animation velours profond + synchro */
    opacity: 0.70;
    transform: translateY(3px);
    transition:
        color 0.65s cubic-bezier(0.77, 0, 0.175, 1) 0.28s,
        opacity 0.65s cubic-bezier(0.77, 0, 0.175, 1) 0.28s,
        transform 0.65s cubic-bezier(0.77, 0, 0.175, 1) 0.28s;
}

.expo-item.open .expo-title {
    opacity: 1;
    transform: translateY(0);
}

.expo-toggle {
    font-size: 32px;
    font-weight: 200;
    color: #8a8682;
    display: inline-block;
    transition: transform 0.18s ease-out;
    will-change: transform;
}

.expo-header:hover .expo-toggle,
.expo-item.open .expo-toggle {
    transform: rotate(45deg);
}

/* =============================== */
/* CONTENU ANIMÉ VELOURS PROFOND   */
/* =============================== */

.expo-content {
    overflow: hidden;
    opacity: 0;
    height: 0;
    position: relative;

    /* Fondu velours profond avec délai */
    transition:
        opacity 0.65s cubic-bezier(0.77, 0, 0.175, 1) 0.28s;
}

.expo-item.open .expo-content {
    opacity: 1;
    height: auto;
}

/* Contenu interne : velours profond + micro-rebond organique */
.expo-inner {
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition:
        opacity 0.65s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expo-item.open .expo-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* =============================== */
/* TEXTE & IMAGES                  */
/* =============================== */

.expo-content p {
    text-align: justify;
    margin: 0 auto 18px auto;
    padding: 0;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 200;
    color: #333;
}

.expo-content img {
    width: 100%;
    max-width: 400px;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    margin: 20px 0;
    display: block;
}

/* Liens */
.expo-item.open .expo-content a {
    color: #cc3300 !important;
    position: relative;
    display: inline-block;
}

.expo-item.open .expo-content a:hover {
    color: #f00 !important;
}

.expo-item.open .expo-content a::after {
    content: "";
    position: absolute;
    right: -22px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(0,0,0,0.5);
    border-bottom: 2px solid rgba(0,0,0,0.5);
    transform: translateY(-40%) translateY(6px) rotate(-45deg);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.expo-item.open .expo-content a:hover::after {
    opacity: 0.8;
    transform: translateY(-50%) rotate(-45deg);
}

/* =============================== */
/* RESPONSIVE TABLETTE */
/* =============================== */

@media (max-width: 1600px) {

  .expo-year {
      max-width: 95%;
      padding: 0 40px;
      box-sizing: border-box;
  }

  .expo-year h2 {
      font-size: 28px;
      margin-bottom: 12px;
  }

  .expo-header {
      font-size: 20px;
      padding-bottom: 6px;
  }

  .expo-title {
      font-size: 18px;
  }

  .expo-toggle {
      font-size: 26px;
  }

  .expo-item {
      padding: 12px 0;
  }

  .expo-content {
      margin-top: 10px;
  }

  .expo-content p {
      font-size: 17px;
      line-height: 1.6;
  }
}

/* =============================== */
/* RESPONSIVE mobile */
/* =============================== */

@media (max-width: 600px) {

  main {
      padding: 0;
  }

  .expo-year {
      padding: 0 20px;
      box-sizing: border-box;
  }

  h1 {
      font-size: 36px;
  }

  .expo-year h2 {
      font-size: 24px;
      margin-bottom: 8px;
  }

  .expo-header {
      font-size: 18px;
      padding-bottom: 0px;
  }

  .expo-title {
      font-size: 20px;
  }

  .expo-toggle {
      font-size: 22px;
  }

  .expo-item {
      padding: 8px 0;
  }

  .expo-content {
      margin-top: 8px;
  }

  .expo-content p {
      font-size: 16px;
      line-height: 1.6;
      text-align: justify;
  }

  .expo-content img {
      width: 100%;
  }
}

/* =============================== */
/* TIROIR EN 2 COLONNES            */
/* Image à gauche, texte à droite. */
/* Dans le HTML, l'image est placée*/
/* après les paragraphes : la      */
/* grille la replace dans la       */
/* colonne de gauche, sur toute la */
/* hauteur du texte. Les tiroirs   */
/* sans image (ex. « Religions »)  */
/* gardent le texte pleine largeur.*/
/* =============================== */

.expo-content:has(> img) {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    grid-auto-rows: min-content;
    grid-auto-flow: row dense;
    column-gap: 48px;
    row-gap: 0;
    align-items: start;
}

/* Image : colonne de gauche, étendue sur toutes les lignes de texte   */
/* (le grand nombre de lignes absorbe la hauteur de l'image sans       */
/* écarter les paragraphes entre eux).                                  */
.expo-content:has(> img) > img {
    grid-column: 1;
    grid-row: 1 / span 40;
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 600px;
    margin: 6px 0 20px 0;
}

/* Paragraphes : colonne de droite, les uns sous les autres */
.expo-content:has(> img) > p {
    grid-column: 2;
    margin: 0 0 18px 0;
}

/* Tablette : colonne image un peu plus étroite */
@media (max-width: 1000px) {
    .expo-content:has(> img) {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
        column-gap: 32px;
    }
}

/* Mobile : une seule colonne, l'image au-dessus du texte */
@media (max-width: 700px) {
    .expo-content:has(> img) {
        grid-template-columns: minmax(0, 1fr);
    }
    .expo-content:has(> img) > img {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
        margin: 6px 0 20px 0;
    }
    .expo-content:has(> img) > p {
        grid-column: 1;
    }
}

/* =============================== */
/* SECTION NOTES                   */
/* Titre « Notes » + paragraphe    */
/* d'introduction, placés juste    */
/* au-dessus des tiroirs et        */
/* alignés à gauche avec eux :     */
/* même conteneur que .expo-year   */
/* (largeur max et marges          */
/* identiques à chaque taille      */
/* d'écran).                       */
/* =============================== */

.notes-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 70px 0 30px 0;
    box-sizing: border-box;
}

.notes-titre h1 {
    font-size: 36px;
    font-weight: 200;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #222;
    margin: 0 0 30px 0;
    text-align: left;
}

.notes-resume p {
    text-align: justify;
    margin: 0 0 18px 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 200;
    color: #222;
}

/* Tablette : mêmes marges que les tiroirs */
@media (max-width: 1600px) {
    .notes-section {
        max-width: 95%;
        padding-left: 40px;
        padding-right: 40px;
    }
    .notes-resume p {
        font-size: 17px;
        line-height: 1.6;
    }
}

/* Mobile : mêmes marges que les tiroirs */
@media (max-width: 600px) {
    .notes-section {
        padding: 50px 20px 20px 20px;
    }
    .notes-titre h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }
    .notes-resume p {
        font-size: 16px;
    }
}

