main{
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
}

.backplus{
    margin-top: 90px;
    display: flex;
    justify-content: center;
    position: relative;
}

.backplus svg{
    position: absolute;
}

.back{
    position: absolute;
    text-decoration: none;
    background: #fbd144;
    border-radius: 50px;
    padding: 25px 25px;
    max-width: max-content;
    color: #363636;
    top: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1{
    margin-top: 90px;
    font-size: 2.25em;
}

h3{
    margin-top: 20px;
}

h2{
    margin-top: 12px;
}

p{
    margin-top: 10px;
}

.illuprojet{
    margin-top: 30px;
}

.illuprojet img{
    border-radius: 8px;
    height: auto;
    width: auto;
    max-width: 100%;
}

.textesup{
    text-align: left;
}

.textesup h2{
    margin-top: 30px;
    font-size: 2em;
}

.autreprojet{
    margin-bottom: 60px;
}

.projet{
    margin-top: 30px;
    width: 100%;
    text-align: left;
}

.projet a{
    text-decoration: none;
    color: var(--colors-font);
}

.projet a p{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.projet a img{
    border-radius: 8px;
    height: auto;
    width: auto;
    max-width: 100%;
}

.retour{
    margin-top: 30px;
    text-decoration: none;
    background: #fbd144;
    border-radius: 8px;
    padding: 15px 25px;
    color: #363636;
}

/*----------------TEST DE CAROUSEL----------------*/ 
.image-carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 10;
  height: auto; /* pour un ratio 16:9 responsive */
  margin: 0 auto;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 8px;
  background: #000; /* pour éviter un fond blanc vide pendant le chargement */
}

.image-carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ou 'cover' si tu préfères remplir */
  display: block;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 50px;
  background: #161f26;
  color: #fbd144;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: #fbd144;
  color: #161f26;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-indicator {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: #161f26;
  color: #fbd144;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-family: sans-serif;
  user-select: none;
}