@font-face {
  font-family: 'HelveticaBold';
  src: url('../helvetica-bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
} 

html, body, div { 
  font-family: 'HelveticaBold', Helvetica, Arial, sans-serif; 
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'HelveticaBold', Helvetica, Arial, sans-serif;
  /* font-family: 'Segoe UI', sans-serif; */
  /* background: linear-gradient(135deg, #000428, #004e92); */
  color: white;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.titre2{
     color: #ff7a00;
     font-size: 23px;
}

.titre3{
     color: #a4a4a4; 
     font-size: 13px;
}

body {
  display: block;
  background-color: #c8c8ce;
}

header {
  text-align: center;
  padding: 2em 1em;
  animation: fadeSlide 1s ease-out forwards;
}
.header{
     
    color: #fff;
    padding: 10px 40px;
    text-align: left;
        background-color: #FA941F;
    background-image: url(https://ado2025.ci/wp-content/uploads/2025/10/BG-Header.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;    border-bottom: 1px solid #fff;
}

h1, p {
  font-family: 'HelveticaBold', Helvetica, Arial, sans-serif;
  margin: 0.5em 0;
  animation: fadeIn 2s ease forwards;
  opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.5s; }
.fade-in:nth-child(2) { animation-delay: 1s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeSlide {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

#generator, #gallery-preview {
  animation: fadeSlide 2s ease-in-out;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  margin: 2em auto;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1em;
}

#image-wrapper {
  width: 100%;
  height: 100%;
  position: relative; 
}


#controls button, .btn,button {
 font-family: 'HelveticaBold', Helvetica, Arial, sans-serif;
    height: 50px;
    background: #ff7a00;
    color: #333;
    border: none;
    border-radius: 0px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1rem;
}
/*
#controls button:hover, .btn:hover, button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
}*/

canvas {
  border: 2px solid white;
  margin-top: 1em;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
#canvas {
  display: block;
  margin: 0 auto;
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.5em;
  }

  .btn, #controls button {
    padding: 0.6em 1em;
    font-size: 0.9rem;
  }

  #controls {
    flex-direction: column;
    align-items: center;
  }
}



.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1em;
}

.image-grid .col-3 {
  flex: 0 0 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
}

.image-grid .col-4 {
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

.image-grid .col-6 {
  flex: 0 0 calc(50% - 1rem);
  max-width: calc(50% - 1rem);
}

.image-grid .col-8 {
  flex: 0 0 calc(66.666% - 1rem);
  max-width: calc(66.666% - 1rem);
}

.image-grid .col-9 {
  flex: 0 0 calc(75% - 1rem);
  max-width: calc(75% - 1rem);
}

.image-grid .col-10 {
  flex: 0 0 calc(83.333% - 1rem);
  max-width: calc(83.333% - 1rem);
}

.image-grid .col-12 {
  flex: 0 0 calc(100% - 5rem);
  max-width: calc(100% - 5rem); 
}

.image-grid img {
  width: 100%; 
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.3); */
}





@media (max-width: 768px) {
  .image-grid .col-3 {
    flex: 0 0 calc(100% - 1rem);
    max-width: calc(100% - 1rem);
  }


  
.image-grid .col-3 {
  flex: 0 0 calc(100% - 1rem);
  max-width: calc(100% - 1rem);
}

.image-grid .col-4 {
  flex: 0 0 calc(100% - 1rem);
  max-width: calc(100% - 1rem);
}

.image-grid .col-6 {
  flex: 0 0 calc(100% - 1rem);
  max-width: calc(100% - 1rem);
}

.image-grid .col-8 {
  flex: 0 0 calc(100% - 1rem);
  max-width: calc(100% - 1rem);
}

.image-grid .col-9 {
  flex: 0 0 calc(100% - 1rem);
  max-width: calc(100% - 1rem);
}

.image-grid .col-10 {
  flex: 0 0 calc(100% - 1rem);
  max-width: calc(100% - 1rem);
}

.image-grid .col-12 {
  flex: 0 0 calc(100% - 5rem);
  max-width: calc(100% - 5rem); 
}

.image-grid img {
  width: 100%; 
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.3); */
}


}

@media (max-width: 480px) {
  .image-grid .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

#image-wrapper { 
      overflow-x: scroll;
}
  
.image-grid .col-3 {
  flex: 0 0 calc(100% - 4rem);
  max-width: calc(100% - 4rem);
}

.image-grid .col-4 {
  flex: 0 0 calc(100% - 4rem);
  max-width: calc(100% - 4rem);
}

.image-grid .col-6 {
  flex: 0 0 calc(100% - 4rem);
  max-width: calc(100% - 4rem);
}

.image-grid .col-8 {
  flex: 0 0 calc(100% - 4rem);
  max-width: calc(100% - 4rem);
}

.image-grid .col-9 {
  flex: 0 0 calc(100% - 4rem);
  max-width: calc(100% - 4rem);
}

.image-grid .col-10 {
  flex: 0 0 calc(100% - 4rem);
  max-width: calc(100% - 4rem);
}

.image-grid .col-12 {
  flex: 0 0 calc(100% - 5rem);
  max-width: calc(100% - 5rem); 
}

.image-grid img {
  width: 100%; 
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.3); */
}



}


#image-container {
  position: relative;
  width: 370px;
  height: 370px;
  max-width: 370px;
  margin: 2em auto;
  overflow: hidden;
}

#image-wrapper {
  position: relative;
  width: 100%;
  height: 370px;
  transform-origin: center center;
  /* touch-action: none; */
} 

.texte-haut{
    text-align: left;
    color: #FFF;
    position: relative;
    top: 40px;
    left: 56px;
    z-index: 5;
    font-size: 31px;
    line-height: 28px;
}
.texte-bas{
       text-align: right;
    color: #fff;
    position: relative;
    top: 168px;
    right: 49px;
    z-index: 5;
    font-size: 31px;
    line-height: 28px;
}
#input-texte-haut::placeholder,#input-texte-haut2::placeholder {
  color: #c1c1c1;
}

#input-texte-haut,#input-texte-haut2 {display: block;
    /* margin: 1em auto; */
    height: 46px;
    border: 2px solid #c1c1c1;
    border-radius: 0px;
    padding-left: 4%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #c1c1c1;
    font-size: 17px;
    font-family: Helvetica, Arial, sans-serif;
    outline: none;
    font-weight: 600;
    width: 100%; 
    text-align: left;
    transition: 0.3s;
}
/*
#input-texte-haut::placeholder {
  color: rgba(255, 255, 255, 0.6);
}*/

#input-texte-haut:focus,#input-texte-haut2:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #F26005;
}




#div-user-image.visible {
  display: block;
  opacity: 1;
}
#div-user-image  {  
  display: none;
  opacity: 0; background-size: cover;
  /*    overflow: hidden;
    position: absolute;
    top: 76px;
    left: 89px;
    width: 189px;
    height: 189px;
    z-index: 4;*/
}
 
#user-image  { 
  transition: opacity 0.6s ease;
        position: absolute;
    top: 0;
    left: 0;
    width: 254px;
    height: 254px;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
/*  position: absolute;
  top: 0; left: 0;
  width: 370px;
  height: 370px;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;*/
}
#frame-overlay {
      width: 100%;
 /* position: absolute;
  top: 0; left: 0;
  width: 370px;
  height: 370px;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;*/
}


.custom-file-button {
  display: inline-block;
  width:100%;
  /* background-color: #ffffff; */
  color: #c1c1c1;
  /* border:2px solid #c1c1c1; */
  font-weight: bold;
  border-radius: 0px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  user-select: none;
}

.custom-file-button:hover {
  /* transform: scale(1.05); */
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
}


 
/* --------------------------------------------------  */
/* Conteneur parent carré noir */
    .container {
      position: relative;
      width: 100%;
      max-width: 600px; /* Taille max sur grands écrans */
      margin: auto;
      aspect-ratio: 75 / 128; /* carré responsive */
      background-color: black;
      color: white;
      font-family: sans-serif;
          padding: 0;
    }

    /* Texte en haut */
    .ishere {
      position: absolute;
      color:#FF7A00;
      width: 100%;
      text-align: left;
      padding: 0 10px;
      font-size: clamp(12px, 4vw, 32px); /* Taille responsive */
          line-height: 100%;
          z-index: 7;
    }

    /* Texte en haut */
    .footgirl {
      position: absolute;
      color:#FF7A00;
      width: 100%;
      text-align: right;
      padding: 0 10px;
      font-size: clamp(12px, 4vw, 32px); /* Taille responsive */
          line-height: 100%;
          z-index: 7;
    }
 
    .ishere {
      top: 16%;
    left: 16%;
    }


    .footgirl {    
      bottom: 25%;
    right: 13%;
    }

    /* Div enfant également carrée */
    .imageacharger {
      position: absolute;
      top: 46.6%;
      left: 50%;
      width: 50%;
      aspect-ratio: 1 / 1;
      transform: translate(-50%, -50%);
      background-color: white;
    }
