/* PAGE ARTICLE SCROLL */
.single-post :root {
  --text-color: #C4007E;
  --bg-color: white;
}

.single-post .mt {
  margin-top: 5%;
  padding: 10%;
}

.single-post section:not(#sectionPin) {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
  padding: 50px 10vw;
  margin: auto;
  place-items: center;
}

.single-post #sectionPin .pin-wrap img {
  box-shadow: none;
  border-radius:0px;
}

/*.single-post .pin-wrap img {
  height: auto;
  width: auto;
  object-fit: cover;
}*/

.single-post h1,
.single-post h2 {
  text-transform: uppercase;
  font-family: "nove", sans-serif;
}

.single-post h1 {
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 1rem;
  position: absolute;
  top: 3vw;
  left: 5vw;
  z-index: 4;
  overflow-wrap: break-word;
  hyphens: auto;
  padding-top: 5%;
}

.single-post h1 span {
  display: block;
}

.single-post h2 {
  font-size: 2.6rem;
  max-width: 400px;
  min-width: 40vw;
}

.single-post * {
  box-sizing: border-box;
}

.single-post #sectionPin {
  height: 100vh;
  overflow: hidden;
}

.single-post .background-img {
  background: url('https://ms8oqbpyct.preview.infomaniak.website/wp-content/uploads/2025/04/image-37.png') no-repeat center / cover;
  background-color: #c4007a;
	 display: flex;
  justify-content: flex-end; /* aligne à droite */
  align-items: center;
}

.single-post .bidule {
  float: right;
}

.single-post .bg-white {
  background-color: white;
  width: 120%;
  height: auto;
  min-height: 600px;
	max-height: 100%;
}

.single-post .section-one {
  background-color: #c4007a;
  padding: 10%;
  margin-top: 13%;
}

.single-post .citation span {
  color: #4D40AE;
  font-size: 12px;
}

.single-post .section-two {
  background-color: #c4007a;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.single-post .section-two h2 {
  color: white;
  font-size: 2rem;
}
 .single-post #sectionPin .pin-wrap .img {
    width:40% !important;
    object-fit:contain;
  }
  .single-post .section-two h2 {
	padding-top: 15%;
  }
.single-post #sectionPin .pin-wrap {
  gap: 0;
}

.single-post .text-flex {
  display: flex;
  background: url('https://ms8oqbpyct.preview.infomaniak.website/wp-content/uploads/2025/04/sharpe.png') no-repeat right / contain;
}

.single-post .text-section-pin {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-bottom: 20px;
}

.single-post .lien a {
  color: #c4007a;
  font-family: "nove", sans-serif;
  text-decoration: none;
}

.single-post .lien a:hover {
  color: #4D40AE;
  font-family: "nove", sans-serif;
  text-decoration: none;
}

.single-post #main {
width:100%
}

/* Ajustements spécifiques pour petits écrans (mobile) */

@media (max-width: 768px) {
  .single-post .bg-white {
    min-width: 100%;      
    padding: 1rem;         
    margin: 0;           
    overflow-wrap: break-word;
	min-height: auto;
  }
  .single-post h1 {
    font-size: 2.4rem; 
	position:static;
  }
  .single-post .bidule {
	width:40%;
  }	
}

@media (max-width: 375px) {
  .single-post .bg-white {
    padding: 0.75rem;
	min-height: auto;
  }

  .single-post h1 {
    font-size: 1.9rem;
    padding-top: 35%;
  }
	
  .single-post .bidule {
	width:50%;
  }
	.single-post #sectionPin .pin-wrap img {
	width:30% !important
  }
}


/* MODAL DES CHERCHEURS */
.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	width: 90%;
	max-width: 800px;
	position: relative;
}

.close {
	color: #aaa;
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.close:hover {
	color: black;
}

.project-card-container {
	font-family: Arial, sans-serif;
	background-color: #f0f0f0;
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
}

.project-card {
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 800px;
	padding: 20px;
	box-sizing: border-box;
}

.header {
	text-align: left;
	margin-bottom: 10%;
}

.header h1 {
	color: #c4007a;
	font-size: 2.5em;
	margin: 0;
}

.header h2 {
	color: #4D40AE;
	font-size: 1.5em;
	margin: 0;
}

.content {
	display: flex; 
	flex-wrap: wrap; 
	gap: 20px; 
	margin-bottom: 20px; 
	align-items: flex-start;
}

.image-section {
	flex: 1;
	min-width: 250px;
}

.image-section img {
	width: 100%;
	border-radius: 10px;
}

.info-section {
	flex: 1;
	min-width: 250px;
	background-color: #FFEA00;
	padding: 10px;
	border-radius: 10px;
}

.info-item {
	margin-bottom: 10px;
	padding: 8px;
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 5px;
}

.info-label {
	font-weight: bold;
	color: #c4007a;
}

.description-section,
.learning-section {
	margin-bottom: 20px;
}

.description-section h3,
.learning-section h3 {
	color: #4D40AE;
}

.learning-section ul {
	list-style-type: none;
	padding: 0;
}

.learning-section li {
	margin-bottom: 10px;
	padding-left: 20px;
	position: relative;
}

.highlight {
	color: #c4007a;
	font-weight: bold;
}

/* MODAL RESPONSIVE */
@media (max-width: 768px) {
	.project-card-container {
		padding:0px;
	}
}



/*/////NEW CODE POUR SCROLL HORIZONTALE/////*/

.single-post .scroll-horizontal-images {
    display: flex;
    overflow-x: auto;
    gap: 10px; /* Espace entre les images */
    padding: 10px 0;
    scrollbar-width: thin; /* Pour les navigateurs modernes */
    scrollbar-color: #888 #f1f1f1; /* Couleur de la barre de défilement */
}

.single-post .scroll-horizontal-images::-webkit-scrollbar {
    height: 8px; /* Hauteur de la barre de défilement */
}

.single-post .scroll-horizontal-images::-webkit-scrollbar-track {
    background: #f1f1f1; /* Couleur de la piste */
}

.single-post .scroll-horizontal-images::-webkit-scrollbar-thumb {
    background: #888; /* Couleur de la barre */
    border-radius: 4px;
}

.single-post .scroll-horizontal-images img {
    height: 80vh;
    width: auto;
    flex: 0 0 auto; /* Empêche les images de s’étirer */
	border-radius: 50px;
  	box-shadow: 15px 15px 5px rgba(0,0,0,0.2)
}


