.container {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px
}

footer {
  display: none;
}

h1 {
  font-family: "Radley", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.slick-dots {
    display: none
}

.slick-dots li button .slick-dot-icon:before {
    display:none;
}

h2,h3,h4 {
    color: #333;
    font-family: "Radley",serif;
    margin-top: 0
}

.block.listOfPages ul {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.block.listOfPages li {
    margin-bottom: 1rem;
}

.block.listOfPages a {
    display: block;
    width: 50%;             
    min-width: 350px;        
    max-width: 700px;        
    padding: 1rem 1.25rem;
    margin: 0 auto;        
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: .2s;
}

.block.listOfPages a:hover {
    background: #f7f7f7;
    border-color: #999;
}

.block.listOfPages a {
    display: block;
    width: 50%;
    min-width: 350px;
    max-width: 700px;
    padding: 1rem 1.25rem;
    margin: 0 auto;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    text-decoration: none;

    transition: transform .2s ease,
                box-shadow .2s ease,
                border-color .2s ease,
                background-color .2s ease;
}

.block.listOfPages a:hover {
    background: #fafafa;
    border-color: #999;
    color: #0394fc;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* === HEADER IMAGE + OVERLAY === */


.main-header {
  display: flex;
  flex-direction: column;
  background-image: url("https://msh-omeka.univ-nantes.fr/omeka-s/files/asset/b26970481f08c53afd66829c3b5b60307b0c90c9.png");
  background-repeat: no-repeat;
  background-position: right;
  background-position-y: -15px;
  background-size: 720px;
  background-color: #f7f7f7;
}

/* tablette */
@media screen and (max-width: 1500px) {
  .main-header {
    min-height: 142px;
    background-image: url("https://msh-omeka.univ-nantes.fr/omeka-s/files/asset/5bf6a5d445ebe0b7cd4c75a61539d2db88f1811d.png");
    background-size: 370px;
    background-position: right 3px bottom 25px;
    background-position-y:2px;
  }
}

/*smaller */
@media screen and (max-width: 1200px) {

  .main-header {
    min-height: 130px;
    max-height: 210px;
    overflow: hidden;
    background-size: 330px;
    background-position: right;
    background-position-x: 55;
  }
}

@media screen and (max-width: 800px) {
  .main-header {
   background-image: none;
  }
}


@media screen and (max-width: 1000px) {
  .main-header__top-bar {
    display: none;
  }
}


body.main-header--center {
  padding-top: 120px;
}

/* === STRUCTURE HEADER === */

/* Titre + navigation */
.main-header__main-bar {
  order: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 5px;
}

/*800px*/
@media screen and (max-width: 800px) {

  .main-header {
    min-height: 70px;
    max-height: 75px;
    background-size: 220px;
    background-position: right bottom;
  }

@media screen and (max-width: 800px) {

  .main-header__site-title a {
    font-size: 0.95rem;
    white-space: nowrap;
  }

}

  .main-header__main-bar {
    padding-top: 5px;
  }

@media(min-width: 1024px) {
    .main-header--center .main-header__main-bar {
        justify-content:right;
        flex-direction: column;
        padding-top: 5px
    }
}

  body.main-header--center {
    padding-top: 70px;
  }

}

.main-navigation .navigation>li.active>a {
    font-weight: 700
}

/* Navigation */
.main-navigation__container {
  order: 2;
}

/* Search bar */
.main-header__top-bar {
  order: 3;
  display: flex;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding-top: 5px;
  padding-bottom: 4x;
}


/* Search input */
.main-header__search-form input {
  height: 30px;
  padding-right: 40px;
  font-size: 0.85rem;
  font-family: "Nunito Sans", sans-serif;
  font-style: normal;
}

.main-header__search-form button {
  padding: 6px 10px;
}

/* === TITRE + NAVIGATION === */

.main-header__site-title a {
  display: block;
  font-family: "IM Fell French Canon", serif;
  font-size: 2rem;
  font-weight: 00;
  line-height: 1.2;
  max-width:550px;
  text-decoration: none;
}

.main-navigation .navigation > li > a::after {
    height: 1.5px;
    background: #ffd000;
}

.main-navigation .navigation > li.active > a::after {
    height: 2px;
    background: #ff9900;
}

@media screen and (max-width: 1000px) {
.main-header__site-title a {
  display: block;
  font-family: "IM Fell French Canon", serif;
  font-size: 1.5rem;
  font-weight: 00;
  line-height: 1;
  max-width:600px;
  text-decoration: none;
  }
}

.main-header__site-title {
  margin: 0;
  padding: 0;
}

.main-header__site-title a {
  margin: 0;
  padding: 0;
}

.main-header--center .main-navigation .navigation > li > a {
  margin: 1px 10px;
  font-family: "Nunito Sans", sans-serif;
}

.main-navigation .navigation > li > a {
  font-size: 0.85rem;
}

.main-navigation__toggle {
    width: 28px;
    height: 20px;
    margin: 10px auto;
}

@media(min-width: 1024px) {
    .main-header--center .main-header__main-bar {
        justify-content:center;
        flex-direction: column;
        padding-top: 5px
    }
}


/* === LIENS === */

a {
  position: relative;
  text-decoration: none;
  color: #b5340d;
}

a:hover {
  color: #ff9900;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* lien déjà visité */
a:visited {
  color: #b5340d;
}







/* ==========================================
   HERO
========================================== */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1500px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Bloc gauche : couverture + titre */

.hero-left {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

/* Couverture */

.hero-image {
  flex: 0 0 380px;
  width: 600px;
  flex-shrink: 0;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Texte à droite de la couverture */

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  margin: 0 0 0.5em;
  font-size: 2.3rem;
  line-height: 1.15;
  text-align: left;
  hyphens: auto;
}

.hero-text p {
  line-height: 1.7;
  text-align: left;
}

.hero-line {
  width: 100%;
  height: 1px;
  background: #e7e7e7;
  margin-top: 1.5rem;
}

/* Colonne de droite */

.hero-text-right {
  padding-top: 0;
}

.hero-text-right p {
  text-align: justify;
  line-height: 1.9;
  margin-bottom: 1.3rem;
}

.hero-text-right a {
  font-weight: 600;
}

/* ===== TABLETTE ===== */
@media screen and (max-width: 1100px) {

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem;
  }

  .hero-text {
    justify-self: start;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-line {
    width: 250px;
  }

  .hero-image {
    justify-self: center;
    justify-content: center;  
  }

  .hero-image img {
    max-width: 600px;
  }

  .hero-text-right {
    padding-top: 0;
    padding-left: 0;
  }

  .hero-text-right p {
    line-height: 1.8;
  }
}

/* TODO:
Ici j'avais préparé un CSS pour faire un catalogue de livres avec des couvertures interactives. Le résultat était grave stylax, aurait dit Molière. ça m'a pris des heures. Malheureusement la DA a refusé cette option.
*/

/* ===== MOBILE ===== */
@media screen and (max-width: 700px) {

  .hero {
    margin: 1rem;
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .hero-line {
    width: 180px;
  }

  .hero-image img {
    max-width: 300px;
    justify-content: center;  
  }

  .hero-text-right p {
    text-align: left;
    line-height: 1.7;
  }
}

/* === ARTICLES === */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.article-card {
  background: #f2f2f2;
  padding: 1.2rem;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.article-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.8rem 0;
  text-align: left;
  line-height: 1.3;
  hyphens: auto;
  word-break: normal;
}

.article-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex-grow: 1;
  text-align: justify;
}

.article-link {
  display: inline-block;
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  color: #ff9900;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.article-link:hover {
  color: #ff9900;
}

/* === RESPONSIVE === */

@media screen and (max-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 700px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Publications */
/* Publications */
/* grille */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 0.8rem;
  max-width: 1100px;
  margin: 2rem auto;
  align-items: stretch;
}

/* carte */
.grid-item.card {
  border: 1px solid #ddd;
  padding: 0.7rem;
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-item.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* image */
.grid-item img {
  width: 100%;
  height: 280px;
  object-fit: contain; 
  display: block;
  margin-bottom: 1rem;
  background: #f7f7f7;
}

/* image */
.grid-item img {
  width: 100%;
  height: 300px;
  object-fit: contain; 
  display: block;
  margin-bottom: 1.2rem;
  background: #f7f7f7;
}

.grid-item h3 {
  margin: 0 0 1.2rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 4em;
  text-align: center;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/*année*/
.grid-item .year {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* texte */
.grid-item p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  text-align: justify;
  font-size: 1rem;
  flex-grow: 1; 
  hyphens:auto;
  word-break:auto-phrase;
}

.grid-item p:last-of-type {
  margin-top: auto;
  margin-bottom: 0;
}

.grid-item .read-more {
  display: inline-block;
  text-decoration: none;
  color: #ff9900;
  font-weight: 600;
}

/* évènements */
.expo-title {
  color: #b5340d;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1.5rem 0;
}

.expo-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.expo-image {
  flex: 0 0 280px;
}

.expo-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.expo-image:hover img {
  transform: scale(1.20);
  filter: brightness(0.95);
}

.expo-caption {
  flex: 1;
  margin: 0;
  padding: 0;
}

.expo-caption h1 {
  margin: 0 0 0.8rem 0;
  font-size: 2.6rem;
  line-height: 1.2;
}

.expo-caption h2 {
  margin: 0 0 0.8rem 0;
  font-size: 1.6rem;
  line-height: 1.3;
}

.expo-subtitle {
  margin: 0 0 1.2rem 0;
}

.expo-caption p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  text-align: justify;
}

.expo-caption a {
  color: #b5340d;
  text-decoration: none;
}

/*équipe*/


.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 2rem;
  align-items: start;
}

.team-card {
  text-align: justify;
}

.team-card h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
  
}

.team-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  max-width: 405ch;
}



/*footer*/
footer, 
.footer {
  padding: 1rem;
  background-color: #ffffff;
  text-align: center;
}

footer p,
footer div,
footer span,
footer a,
.footer p,
.footer div,
.footer span,
.footer a {
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;  
  align-items: center;       
  gap: 2rem;                 
  flex-wrap: wrap;        
  padding: 1rem 0;
}

.footer-logos img {
  height: 75px;              
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-logos img:hover {
  opacity: 1;
}

/* ===== CONTENEUR GENERAL ===== */

.affiche {
    display: grid;
    grid-template-areas:
        "title"
        "poster"
        "meta"
        "description";

    gap: 1.2rem;
    max-width: 1100px;
    margin: auto;
    align-items: start;
}

/* ===== TITRE ===== */

.affiche__title {
    grid-area: title;
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}

.affiche__title h2 {
    margin: 0;
}

/* ===== AFFICHE ===== */

.affiche__poster {
    grid-area: poster;
    display: flex;
    justify-content: center;
}

.affiche__poster img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1.414;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.affiche__poster img {
  opacity: 1;
}


/* ===== META ===== */

.affiche__meta {
    grid-area: meta;

    text-align: left;
    hyphens: auto;
    word-break: normal;
    font-weight: 400;
}

.affiche__meta h4 {
    margin: 0;
}

/* ===== DESCRIPTION ===== */

.affiche__description {
    grid-area: description;
    text-align: justify;
}



/* ===== VERSION DESKTOP ===== */

@media screen and (min-width: 900px) {

    .affiche {
        grid-template-columns: 320px 1fr;

        grid-template-areas:
            "title title"
            "poster meta"
            "poster description";

        column-gap: 2.5rem;
        row-gap: 1rem;
    }

    .affiche__poster {
        justify-content: flex-start;
    }
}

/* ==========================================
   FOCUS SUR
========================================== */

.focus {
    max-width: 1450px;
    margin: 4rem auto;
    padding: 0 5rem;
}

/* ==========================================
   Bloc supérieur
========================================== */

.focus-top {
    display: grid;
    grid-template-columns: 1fr 720px;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* ==========================================
   Colonne de gauche
========================================== */

.focus-info {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
}

.focus-header {
    margin: 0;
}

.focus-header h1 {
    margin: 0;
    font-size: 2.9rem;
    line-height: 1.15;
    font-weight: 600;
}

.focus-author {
    margin-top: .8rem;
    margin-bottom: 0;

    font-size: 1.3rem;
    font-style: italic;
    color: #555;
}

.focus-line {
    height: 1px;
    background: #e6e6e6;
    margin-top: 2rem;
}

/* ==========================================
   Métadonnées
========================================== */

.focus-meta {

    width: 80%;
    max-width: 420px;

    margin-top: 2.5rem;

    padding: 1.8rem;

    background: #fafafa;
    border-left: 4px solid #d7d7d7;

    font-size: 1.12rem;
    line-height: 1.8;
}

.focus-meta p {
    margin: 0 0 1.6rem;
}

.focus-meta p:last-child {
    margin-bottom: 0;
}

.focus-meta strong {
    display: block;

    margin-bottom: .35rem;

    font-size: .95rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .08em;

    color: #777;
}

/* ==========================================
   Illustration
========================================== */

.focus-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.focus-image img {

    width: 720px;
    max-width: 100%;

    aspect-ratio: 135 / 160;
    object-fit: cover;

    display: block;

    box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

/* ==========================================
   Corps de l'article
========================================== */

.focus-content {
    border-top: 1px solid #e6e6e6;
    padding-top: 2.5rem;
}

.focus-content p {
    text-align: justify;
    line-height: 1.9;
    margin-bottom: 1.6rem;
}

/* ==========================================
   Responsive
========================================== */

@media (max-width: 1000px) {

    .focus {
        padding: 0 2rem;
    }

    .focus-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .focus-image {
        order: -1;
    }

    .focus-header h1 {
        font-size: 2.2rem;
    }

    .focus-meta {
        width: 100%;
        max-width: none;
        padding: 1.5rem;
        font-size: 1rem;
    }

    .focus-image img {
        width: 100%;
        max-width: 650px;
    }

}