
/* ---------------------------------------------------------
   DÉCLARATION DES POLICES PERSONNALISÉES
   → Le graphiste peut modifier les URLs, changer la police,
     ou ajouter d'autres variantes.
   --------------------------------------------------------- */

/* Regular */

@font-face {
  font-family: 'enby';
  src: url('fonts/Enby_Gertrude_roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}


@font-face {
  font-family: 'amie';
  src: url('fonts/Amiamie-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* Regular Italic */
@font-face {
  font-family: 'amie';
  src: url('fonts/Amiamie-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

/* Light */
@font-face {
  font-family: 'amie';
  src: url('fonts/Amiamie-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

/* Light Italic */
@font-face {
  font-family: 'amie';
  src: url('fonts/Amiamie-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

/* Black */
@font-face {
  font-family: 'amie';
  src: url('fonts/Amiamie-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}



/* ----- Conteneur principal ----- */

.page-index {
  display: flex;          /* La page est structurée en flex horizontal */
  flex-direction: row;
  width: 100%;
  height: 100vh;
  min-height: 0vh;      /* Assure un affichage pleine hauteur */
  background-color: whitesmoke;}


  /* ---------------------------------------------------------
   WRAPPER INDEX 

   --------------------------------------------------------- */

.wrap-index{
  display: flex;          /* La page est structurée en flex horizontal */
  flex-direction: column;
		   width: 66.5%;
   font-family: "enby", serif;
   font-size: 18px;
     height: 100vh;
   background-color: whitesmoke;
     min-height: 0;
 
}

.spacer-wrap-index{
	   width: 100%;
   font-family: "enby", serif;
   font-size: 18px;
     height: 120px;
   background-color: whitesmoke;
     min-height: 0;
}



.display{
	   width: 100%;
   font-size: 18px;
    flex: 1; /* hauteur du wrapper */
  min-height: 0;
  overflow: visible;   /* autorise l’ombre */
box-sizing: border-box;
   background-color: transparent;
     min-height: 0;
     padding-right: 30px;
          padding-left: 35px;
     padding-bottom: 20px;}


.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-left: 0px;
  padding-top: 30px;
}

/* All items behave identically in the grid */
.image-grid .img-link {
  flex: 1 1 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  display: block;
  text-decoration: none;
}

/* Image fills wrapper */
.image-grid img {
  width: 100%;
  height: auto;
  display: block;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.image-grid .clickable:hover img {
box-shadow: 0 0 20px rgba(255, 0, 150, 0.95);
  transform: translateY(-4px);
  cursor: pointer;
}

.image-grid .non-clickable:hover img {
box-shadow: 0 0 20px rgba(255, 0, 150, 0.95);
  transform: translateY(-4px);
}

@media (max-width: 1100px) {
  .image-grid .img-link {
    flex: 1 1 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 700px) {
  .image-grid .img-link {
    flex: 1 1 100%;
    max-width: 100%;
  }
}



/* ---------------------------------------------------------
   MENU  (liens de navigation)
   --------------------------------------------------------- */

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

nav li {
  margin-bottom: 0;
}

nav a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  color: black;
}

nav a:hover {
  text-decoration-color: transparent;
}


  /* ---------------------------------------------------------
   scroll bar

   --------------------------------------------------------- */

  .display {
  overflow-y: auto;              /* scroll vertical actif */
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* ancien Edge / IE */
}

.display::-webkit-scrollbar {
  display: none;                 /* Chrome / Safari */
}


  /* ---------------------------------------------------------
   Paragraphes

   --------------------------------------------------------- */
.produit-texte p {
  margin: 0 0 10px 0;
}

  /* ---------------------------------------------------------
  INFOBULLE

   --------------------------------------------------------- */
#tooltip-follow[hidden] {
  opacity: 0;
}


#tooltip-follow {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
   box-shadow: 0 0 0 1px black;

  background: whitesmoke;
  color: black;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;

  opacity: 1;
  transition: opacity 0.12s ease;
}



  /* ---------------------------------------------------------
   SIMPLIFICATION pour responsive

   --------------------------------------------------------- */


   .top-top-bar-marge {
                    width: 100%;    /* top bar marge */
  background-color: whitesmoke;
  position: fixed;            /* Toujours visible en haut */
  height: 20px;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 2000;              /* Passe devant le reste */
  opacity: 1;
 }

/* ---------------------------------------------------------
   TITRES + Curseur animation “machine à écrire”
   → Le graphiste peut changer la taille, police, couleur.
   --------------------------------------------------------- */

.titre-ligne {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  line-height: 1.2;
}

.curseur {
  display: inline-block;
  width: 4px;
  height: 1em;
  background-color: black;
  margin-left: 4px;
  position: relative;
  top: -0.1em;
  animation: blink-note 1s infinite;
}

/* Animation du curseur */
@keyframes blink-note {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

h1, h2, h3 {
  font-family: "amie", Arial, sans-serif;
  font-size: 15px;
}

h1 {
  font-weight: 400;
  margin: 0;
}

h2, h3 {
  font-weight: 900;
  margin: 0;
}

h4 {
  font-family: "enby", Arial, serif;
  font-weight: 400;
  margin: 0;
  font-size: 18px;
  text-align: center;
}
.titre-forum {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 5px;
  /*background-color: white;*/
  line-height: 1.2;
}
  /* ---------------------------------------------------------
RESPONSIVE

   --------------------------------------------------------- */
@media (max-width: 700px) {

  /* STRUCTURE */
  .page-index{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-size: 15px;
  }

  /* mêmes offsets haut gauche/droite */
  .spacer-wrap-index,
  .spacer-col-explicative{
    height: 120px !important;
  }

  /* COLONNE GAUCHE */
  .page-index .wrap-index{
    display: flex;
    flex-direction: column;
    width: 50% !important;
    height: 100%;
    min-height: 0;
    background-color: whitesmoke; /* debug */
  }

  .display{
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 20px !important;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: whitesmoke; /* debug */
  }

  /* pas de padding en plus au-dessus des images */
  .image-grid{
    padding-top: 0;
  }

  /* COLONNE DROITE */
  .page-index .col-explicative{
    width: 50% !important;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: whitesmoke; /* debug */
    font-size: 15px;
  }

  .texte-explicatif{
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    padding: 20px 0;
       padding-left: !important 0px;

    background-color: whitesmoke; /* debug */
    text-align: left !important;
  }

  /* TOP BAR */
  .top-bar-forum{
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-wrap: wrap;
    height: 120px !important;
    background-color: transparent !important;
  }


  .spacer-col-forum,
  .spacer-top-col-explicative{
    display: none;
  }

  .col-menu1{
    flex: 1 1 auto;
    width: auto;
    padding-right: 20px;
    box-sizing: border-box;
    background-color: transparent !important;
  }

}


@media (max-width: 700px) {
  .spacer-wrap-index { height: 120px !important; }
  .spacer-col-explicative { height: 120px !important; }
}

@media (max-width: 700px) {

    .titre-ligne {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
  /*background-color: white;*/
  line-height: 1.2;
  box-sizing: border-box !important;
}



  .texte-explicatif {
    overflow-y: auto ! important ;   /* le scroll reste à l’intérieur */
    padding-right: 20px ! important;
    padding-left: 0px;}

}
@media (max-width: 700px) {
.col-menu1 {
  padding-right: 20px ! important;
}

  .top-bar-forum .logo{
    padding-left: 20px !important;
  }
}



@media (max-width: 500px) {
  .top-bar-forum .logo{
    padding-left: 10px !important;
    padding-top: 10px !important;
  }
  /* STRUCTURE */
  .page-index{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-size: 15px;
  }

  /* mêmes offsets haut gauche/droite */
  .spacer-wrap-index,
  .spacer-col-explicative{
    height: 100px;
  }

  /* COLONNE GAUCHE */
  .page-index .wrap-index{
    display: flex;
    flex-direction: column;
    width: 50% !important;
    height: 100%;
    min-height: 0;
    background-color: whitesmoke; /* debug */
  }


  /* pas de padding en plus au-dessus des images */
  .image-grid{
    padding-top: 0;
  }

  /* COLONNE DROITE */
  .page-index .col-explicative{
    width: 50% !important;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: whitesmoke; /* debug */
    font-size: 15px;
  }

  .texte-explicatif{
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    padding: 20px 0;
    background-color: whitesmoke; /* debug */
    text-align: left !important;
  }

  /* TOP BAR */
  .top-bar-forum{
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-wrap: wrap;
    height: 120px !important;
    background-color: transparent !important;
  }

  .logo{
    width: auto;
    flex: 0 0 auto;
    box-sizing: border-box;
    background-color: transparent !important;
  }

  .logo__text{
    font-size: 15px !important;
    line-height: 1.2;
  }

  .logo__img{
    max-width: 89px !important;
    height: auto;
    display: block;
  }

  .spacer-col-forum,
  .spacer-top-col-explicative{
    display: none;
  }

  .col-menu1{
    flex: 1 1 auto;
    width: auto;
    padding-right: 20px;
    box-sizing: border-box;
    background-color: transparent !important;
  }

}

@media (max-width: 500px) {
  .spacer-wrap-index { height: 100px !important; }
  .spacer-col-explicative { height: 100px !important; }
}

@media (max-width: 500px) {

  h1, h2, h3 {
  font-size: 15px;
}
  .col-explicative {
    overflow: hidden  !important;   /* clé : cache ce qui passe sous la top-bar */
  }

  .texte-explicatif {
    overflow-y: auto ! important ;   /* le scroll reste à l’intérieur */
    padding-right: 10px ! important;
    padding-left: 0px ! important;}

}
@media (max-width: 500px) {
.col-menu1 {
  padding-right: 10px ! important;
}

  .display{
    padding-right: 0px !important; /* <-- ici */
    padding-left: 10px !important;
    padding-top: 20px;
    padding-bottom: 20px;
  background-color: whitesmoke;}
   .page-index .wrap-index{
    display: flex;
    flex-direction: column;
    width: 35% !important;
    height: 100%;
    min-height: 0;
    background-color: whitesmoke; /* debug */
  }
   .page-index .col-explicative{
    width: 65% !important;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: whitesmoke; /* debug */
    font-size: 15px;
  }}

@media (max-width: 700px) {
  .page-index .col-explicative .texte-explicatif{
    padding-top: 20px !important;   /* aligne avec .display */
    padding-right: 5px !important;
    padding-left: 0px !important;
    padding-bottom: 20px !important;
    background-color: whitesmoke;
  }

  .image-grid img {
  width: 100%;
  height: auto;
  display: block;
}
}


@media (max-width: 500px) {
  .image-grid img {
  width: 90%;
  height: auto;
  display: block;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.image-grid .clickable:hover img {
box-shadow: 0 0 20px rgba(255, 0, 150, 0.95);
  transform: translateY(-4px);
  cursor: pointer;
}

.image-grid .non-clickable:hover img {
box-shadow: 0 0 20px rgba(255, 0, 150, 0.95);
  transform: translateY(-4px);
}
   .top-top-bar-marge {
                    width: 100%;    /* top bar marge */
  background-color: whitesmoke;
  position: fixed;            /* Toujours visible en haut */
  height: 10px;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 2000;              /* Passe devant le reste */
  opacity: 1;
 }
}
@media (max-width: 500px) {
  .top-bar-forum{
    top: 0 !important;
    padding-top: 0 !important; /* important : ne pas pousser la top-bar */
    background-color: whitesmoke !important;
  }

  .top-bar-forum .col-menu1{
    padding-top: 10px !important; /* <-- menu à 10px du top */
     background-color: transparent !important;
  }

  .top-bar-forum .logo{
    padding-top: 10px !important; /* <-- logo aussi si tu veux aligner */
  }
}

@media (max-width: 700px) {

  .col-explicative{
    height: calc(100vh - 60px); /* ajuste si ta top-bar fait + ou - */
    overflow-y: auto;
  }

  .texte-explicatif{
    height: 100%;
    overflow-y: auto;
  }

}

@media (max-width: 700px) {

  /* la colonne droite reste fixe en hauteur */
  .page-index .col-explicative{
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden !important; /* ok : on empêche le scroll du conteneur */
  }

  /* le spacer garde sa hauteur (top-bar) */
  .page-index .spacer-col-explicative{
    flex: 0 0 120px;
  }

  /* le texte devient la zone scrollable */
  .page-index .texte-explicatif{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
  }
}


@media (max-width: 500px) {

  /* la colonne droite reste fixe en hauteur */
  .page-index .col-explicative{
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden !important; /* ok : on empêche le scroll du conteneur */
  }

  /* le spacer garde sa hauteur (top-bar) */
  .page-index .spacer-col-explicative{
    flex: 0 0 100px;
  }

  /* le texte devient la zone scrollable */
  .page-index .texte-explicatif{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
  }
}
/* =========================================================
   SOMMAIRE – MOBILE < 500px
   Images 100% puis texte en dessous
   ========================================================= */

@media (max-width: 500px) {

  /* 1. La page devient verticale */
  .page-index{
    display: flex !important;
    flex-direction: column !important;
    height: 100vh;
    overflow: hidden;
  }

  /* 2. Bloc images (display) en premier */
  .wrap-index{
    order: 1;
    width: 100% !important;
    height: auto;
    flex: none;
  }

  .display{
    width: 100%;
    padding: 20px 10px 10px 10px !important;
    overflow: visible;
  }

  /* 3. Grille images : 2 par ligne */
  .image-grid{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }

  .image-grid .img-link{
    max-width: 100%;
  }

  .image-grid img{
    width: 100%;
    height: auto;
  }

  /* 4. Texte explicatif en dessous */
  .col-explicative{
    order: 2;
    width: 100% !important;
    height: auto;
    overflow: hidden;
  }

  .spacer-col-explicative{
    display: none; /* plus besoin du spacer */
  }

  .texte-explicatif{
    padding: 20px 10px 20px 10px !important;
    overflow: visible;
    text-align: left;
  }

  /* 5. On évite les scrolls internes bizarres */
  .display,
  .texte-explicatif{
    overflow-y: visible !important;
  }

}


/* =========================================================
   SOMMAIRE – FIX empilement <500px (autoriser scroll + enlever vides)
   ========================================================= */
@media (max-width: 500px) {

  /* IMPORTANT : sinon le texte est sous l'écran et inatteignable */
  html, body{
    height: auto !important;
    overflow: auto !important;
  }

  /* la page peut grandir en hauteur */
  .page-index{
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* top-bar est fixed : on réserve la place en haut */
  .page-index{
    padding-top: 120px; /* adapte si ta top-bar fait 100px */
    box-sizing: border-box;
  }

  /* on enlève les “spacers” qui créent du vide */
  .spacer-wrap-index,
  .spacer-col-explicative{
    display: none !important;
    height: 0 !important;
        background-color: orange;
  }

  /* les 2 blocs prennent la largeur et la hauteur naturelle */
  .wrap-index,
  .col-explicative{
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background-color: green;
  }

  /* scroll interne OFF (on scrolle la page entière) */
  .display,
  .texte-explicatif{
    overflow: visible !important;
    height: auto !important;
        background-color: yellow;
  }

  /* grille 2 par ligne */
  .image-grid{
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
      background-color: whitesmoke;}

  .image-grid .img-link{
    max-width: 100% !important;
  }

  .image-grid img{
    width: 100% !important;
    height: auto !important;
  }

  /* padding texte */
  .texte-explicatif{
    padding: 20px 10px 20px 10px !important;
    text-align: left !important;
    background-color: red;
    box-sizing: border-box;
  }
}
/* =========================================================
   SOMMAIRE <500 : vraie pleine largeur (corrige padding + img 90%)
   ========================================================= */
@media (max-width: 500px) {

  /* enlève les paddings desktop qui rétrécissent tout */
  .display{
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* la grille prend toute la largeur disponible */
  .image-grid{
    width: 100% !important;
  }

  /* IMPORTANT : annule ton ancien width:90% sur les images <500 */
  .image-grid img{
    width: 100% !important;
    max-width: 100% !important;
    display: block;
  }
}

@media (max-width: 500px) {
.col-menu1 {
  padding-right: 10px ! important;
}

  .display{
    padding-right: 0px !important; /* <-- ici */
    padding-left: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px;
  background-color: whitesmoke;}
   .page-index .wrap-index{
    display: flex;
    flex-direction: column;
    width: 80% !important;
    height: 100%;
    min-height: 0;
    background-color: whitesmoke; /* debug */
  }
   .page-index .col-explicative{
    width: 100% !important;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: whitesmoke; /* debug */
    font-size: 15px;
  }

  .image-grid img {
  width: 100% !important;
  height: auto;
  display: block;

  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}}

@media (max-width: 500px) {

  /* 1) Top bar moins haute */
  .top-bar-forum{
    height: 110px !important;
  }

  /* 2) Zone logo moins haute + moins de padding haut */


  /* 3) Réserve exactement la même place au contenu (sinon ça passe dessous) */
  .page-index{
    padding-top: 130px !important;
  }

  /* 4) Si tu utilises la mini-marge fixe au-dessus (top-top-bar-marge), réduis-la aussi */
  .top-top-bar-marge{
    height: 8px !important;
  }

}


@media (max-width: 500px) {

  /* marge “écran” pour tout le bloc texte */
  .page-index .col-explicative{
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  /* on évite que le padding interne vienne contredire */
  .page-index .col-explicative .texte-explicatif{
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}


/* Enlève les 2 "spacers" qui créent le vide */
.page-index .top-top-bar-marge{
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.spacer-wrap-publication{
  display: none !important;
}

/* L’offset sous la top bar (barre = 120px) */
.wrap-publication{
  padding-top: 120px !important;
  box-sizing: border-box !important;
}



