@font-face {
  font-family: 'OCR A Extended';
  src: url('/fonts/OCRAEXT.TTF') format('truetype');
}

@font-face {
  font-family: 'Rage';
  src: url('fonts/rage.otf') format('opentype');
}
:root{
  --pink: #ea47ff;
  --green:#009926;
  --yellow:#ffff00;
  --purple: #9147ff;
  --postit-yellow: #ffd700; /* jaune post-it */
  --postit-yellow-dark: #e6c200; /* jaune plus sombre pour l'ombre du pli */
}
/* === STYLES COMMUNS === */

/* Polices et paramètres généraux */
body {
  font-family: 'Inter';
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  
}


.waferlang_wrapper {
  position: fixed;
  top: 10px;
  right: 100px;
  z-index: 1000;
}
.waferlang_wrapper svg {
 position: fixed;
 top: 5px;
 right: 10px;
}




/* Style du fond de la modale */
.modal {
  display: none; /* masqué par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Contenu de la modale */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color:black;
}

/* Bouton de fermeture */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

#openFormBtn{

  position: absolute;
  top: 0;
  right: 20%;
  min-width: 110px;

  font-family: 'Caveat';
  background-color: transparent;
  padding: 10px 16px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.3s  ease-in-out;
  color:#7A7A7A;
}


#openFormBtn:hover{
  transform:scale(0.8);
}



@keyframes blink {
  0%, 100% { opacity: 1;transform:scale(1.5); }
  50% { opacity: 0.3;transform:scale(1); }
}

.blinking {
  animation: blink 1.5s infinite;
  transform-origin: center center; 
}


.translate-menu {
  display: none; /* caché par défaut */
  position: absolute;
  top: 40px;         /* juste en dessous du globe */
  right: 10px;          /* reste aligné à droite */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 5px 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  min-width: 110px;  /* largeur minimale */
}

.translate-menu button {
  display: flex;           /* permet alignement drapeau + texte */
  align-items: center;
  gap: 8px;                /* espace entre drapeau et texte */
  width: 100%;
  padding: 5px 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.translate-menu button:hover {
  background: #f0f0f0;
}


/* Animation d'apparition */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#visitorCounter{
font-family: 'Caveat'; 
color: #a0a0a0; 
font-size: 24px;
}
.SocNet{
  position: absolute;
  top: 5px;
  right: 10px;
}

/* Container principal des éléments du haut */
.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 0 auto 5px;
  gap: 5px;
  padding: 0 8px;
  flex-wrap: wrap; /* Permet le passage à la ligne */
}

/* Pour que les sous-blocs ne s'étendent pas trop */
.left-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative; /* Pour positionner la loupe absolument */
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 250px; /* limite la largeur pour test */
}

.search-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: #a0a0a0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  transition: transform 0.3s ease-in-out;
  
}
.waferlang_wrapper svg:hover {
   transform: scale(1.25);
}
.returnHome{
  opacity: 0;
  animation: fadeInUp 3.6s ease forwards;
}


#searchInput {
  width: 70%;
  padding-left: 40px; /* espace pour la loupe */
  height: 32px;
  font-size: 16px;
  box-sizing: border-box;
}


.shareBtn{
font-size:60px;
animation:transition 0.3s ease-in-out;
}

.shareBtn:hover{
transition:scale(1.5);
}


/* Conteneur générique pour les feeds */
.feed-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 0 12px;
}

/* Bloc d'item dans un feed */

.feed-item {
  background-color: white;
  border: 1px solid #e1e8ed;
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.feed-item p {
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.feed-item small {
  color: #657786;
  font-size: 13px;
}

.feed-item button {
  margin-top: 8px;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family:'Inter';
  font-size: 10px;
  font-weight: bold;
  /* Dégradé animé sur le fond */
  background: transparent;
  background-size: 100% 150%; /* triple hauteur pour l’animation */
  animation: gradientShift 6s linear infinite; /* linear pour défilement fluide */

  transition: filter 0.3s;
}

@keyframes gradientShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

.feed-item button:hover {
  filter: brightness(1.2);
  transition:scale(1.5);
}

/* Texte en dégradé */
.gradient-text {
  background: linear-gradient(to top, #09b2cf, #178fbb, #2273ab, #2a5ea0, #2e5299, #304e97);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}



/* 1️⃣ Style de base pour le texte dégradé */
.wafer-gradient {
  font-weight: bold;

  background: linear-gradient(
    0deg, /* vertical */
    #09b2cf 0%,
    #178fbb 20%,
    #2273ab 40%,
    #2a5ea0 60%,
    #2e5299 80%,
    #304e97 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;

  /* pour permettre le déplacement vertical */
  background-size: 100% 175%;
}

/* 2️⃣ Animation va-et-vient verticale */
@keyframes gradientShift {
  0%   { background-position: 0 0%; }
  50%  { background-position: 0 100%; }
  100% { background-position: 0 0%; }
}

/* 3️⃣ Appliquer l'animation */
.wafer-gradient {
  animation: gradientShift 5s ease-in-out infinite;
}



/* Page d'accueil */
.home-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
}

.home-page h1 {
  margin-top: 20px;
  font-size: 28px;
}

/* Page de login */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 20px;
}

.login-page h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.login-page form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-page input[type="password"] {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  font-size: 16px;
  width: 100%;
  max-width: 400px;
}

.login-page button {
  background-color: #1da1f2;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
}

.login-page button:hover {
  background-color: #0d8ddb;
}

/* Post & intégrations */
.post {
  width: 90%;
  margin: 0 auto;
  max-width: 1200px;
}

.embed-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.embed-container iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-image {
  width: 90%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Styles spéciaux */
.wafer {
  font-family: 'OCR A Extended', sans-serif;
  color: #48dbfa;
  font-weight: bold;
  cursor: pointer;
}

.puce {
  margin-left: 8px;
  display: inline-block;
}

.news {
  font-family: 'Caveat', monospace;
  font-size: 35px;
  color: #a0a0a0;
}

.angled-text {
  transform: rotate(-5deg);
  display: inline-block;
}
.textManu{
font-family:Caveat;
font-size:24px;
}
.manu {
text-align: left;
font-family: Caveat;
font-size: 30px;
margin:0;
padding: 0;
color:#9147ff;
}
.manu-blue {
text-align: left;
font-family: Caveat;
font-size: 30px;
margin:0;
padding: 0;
color:#09b2cf;
}

.manu-green {
text-align: left;
font-family: Caveat;
font-size: 30px;
margin:0;
padding: 0;
color:#009926;
}

.manu-grey {
text-align: left;
font-family: Caveat;
font-size: 30px;
margin:0;
padding: 0;
color:#7A7A7A;
}

.manu-orange{
text-align: left;
font-family: Caveat;
font-size: 30px;
margin:0;
padding: 0;
color:#FE8409;
}

.manu-pink{
text-align: left;
font-family: Caveat;
font-size: 30px;
margin:0;
padding: 0;
color:#ea47ff;
}

.manu-yellow{
text-align: left;
font-family: Caveat;
font-size: 30px;
margin:0;
padding: 0;

  color: #d6c400; /* doré légèrement plus foncé que #f4ff24 */
  -webkit-text-stroke: 0.5px #f4ff24;

}
.clignote {
	animation: clignoter 1s step-start infinite;
}



@keyframes clignoter {
	50% { opacity: 0; }
	100% { opacity: 1; }
}

/* Bouton dark mode */
#darkModeToggle {
  position: absolute;
  top: 5px;
  right: 50px;
  
  width:30px;
  height:30px;
  border-radius: 50%;
  border: none;
  background-color: #909090;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  transition:transform 0.3s ease-in-out;
}

#darkModeToggle:hover {
  background-color: #121212;
  color: white;
  transform:scale(1.25);
}
.SocNet{
  position: absolute;
  top: 5px;
  right: 80%;
  min-width: 110px;
  
}
.SocNet svg{
  transition: transform 0.3s ease-in-out;
  width:30px;
  height:auto;
  padding:0 2%;
}

.SocNet svg:hover{
   transform:scale(1.5);
}


/* Mode sombre */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark-mode .feed-item {
  background-color: #1e1e1e;
  border-color: #333;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
}

body.dark-mode .feed-item small {
  color: #aaa;
}

body.dark-mode .feed-item button,
body.dark-mode #loadMoreBtn,
body.dark-mode button {

  color: #fff;
}

body.dark-mode .feed-item button:hover,
body.dark-mode #loadMoreBtn:hover,
body.dark-mode button:hover {
  
    background: transparent;
}

body.dark-mode #darkModeToggle {
  background-color: #909090;
}

body.dark-mode #darkModeToggle:hover {
  background-color: white;
}





body.dark-mode .translate-menu {
  display: none; /* caché par défaut */
  position: absolute;
  top: 40px;         /* juste en dessous du globe */
  right: 0;          /* reste aligné à droite */
  background: #1e1e1e;
  color:#7A7A7A;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 5px 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  min-width: 110px;  /* largeur minimale */
}

body.dark-mode .translate-menu button {
  display: flex;           /* permet alignement drapeau + texte */
  align-items: center;
  gap: 8px;                /* espace entre drapeau et texte */
  width: 100%;
  padding: 5px 5px;
  background: none;
  border: none;
  color:#7A7A7A;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

body.dark-mode .translate-menu button:hover {
  background: #2e2e2e;
}





/* Style du fond de la modale */
body.dark-mode .modal {
  display: none; /* masqué par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Contenu de la modale */
body.dark-mode .modal-content {
  background-color: #121212;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color:#a0a0a0;
}

/* Bouton de fermeture */
body.dark-mode .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

body.dark-mode button{
  color: black;
}

body.dark-mode button:hover{
  color: #a0a0a0;
  background: #f6f6f6; 
  border-radius: 5px;
}
body.dark-mode .close:hover {
  color: #4f4f4f;
 
}




/* Responsive :  sur petit écran */

@media screen and (max-width: 600px) {
  .top-controls {
    flex-direction: row;
    align-items: stretch;
  }

  .left-controls {
    justify-content: center;
  }

  .search-wrapper {
    width: 30%;
    height:20%;
    top : 15px;
    justify-content: center;
  }

  #searchInput {
    width: 30%;
    height:20%;
    max-width: none;
  }
  
  #openFormBtn{
  position: absolute;
  top: 162px;
  right:10%;

  min-width: 110px;

  font-family: 'Caveat';
  background-color: transparent;
  padding: 0 16px;	
  font-size: 20px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.3s  ease-in-out;
  color:#7A7A7A;
}


#openFormBtn:hover{
  transform:scale(0.8);
}
#visitorCounter{
  position: absolute;
  top: 5px;
  left: 15px;
  font-size:20px;
}
.waferlang_wrapper {
  position: fixed;
  top: 5px;
  right: 5px;
  
}
.waferlang_wrapper svg {

    width: 27px;   /* réduit la taille du globe */
    top: 5px;
    height: auto;
    right: 20px;
    transition: transform 0.3s ease-in-out;
}
.waferlang_wrapper svg:hover {

   transform: scale(1.25) 0.3s ease-in-out;
}

  #darkModeToggle {
  position: absolute;
  top: 5px;
  right: 60px;
  
  width:27px;
  height:27px;
  border-radius: 50%;
  border: none;
  background-color: #909090;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  }


  .home-page h1 {
    margin-top: 50px;
    text-align: center;
    padding: 0 20px;
    font-size: 24px;
  }

  .feed-item {
    padding-left: 16px;
    padding-right: 16px;
  }
.SocNet{
position: fixed;
    right :-60px;
    top : 165px;
}
  
 .SocNet svg{

  width: 20px;
  height:auto;
  display:block;
  
} 


	  
}

/* --- Conteneur sondage --- */
.wafer-poll {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
  background: #f9f9f9;
  font-family: 'IBM Plex Sans', sans-serif;
}

.wafer-poll .poll-question {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.wafer-poll .poll-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wafer-poll .poll-btn {
  background: linear-gradient(90deg,#09b2cf,#304e97);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.95em;
  transition: transform 0.1s, opacity 0.2s;
}

.wafer-poll .poll-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* --- Résultats --- */
.wafer-poll .poll-results {
  margin-top: 10px;
}

.wafer-poll .poll-bar {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.9em;
}

.wafer-poll .poll-bar span {
  width: 80px; /* largeur pour le texte de l’option */
  display: inline-block;
}

.wafer-poll .poll-bar .bar {
  flex: 1;
  height: 20px;
  background: linear-gradient(90deg,#09b2cf,#304e97);
  border-radius: 4px;
  text-align: right;
  color: #fff;
  padding-right: 4px;
  font-size: 0.8em;
  line-height: 20px;
  transition: width 0.5s ease;
}

/* --- Dark mode --- */
body.dark-mode .wafer-poll {
  background: #2c2c2c;
  border-color: #555;
  color: #eee;
}

body.dark-mode .wafer-poll .poll-btn {
  color: #fff;
}

body.dark-mode .wafer-poll .poll-bar .bar {
  background: linear-gradient(90deg,#09b2cf,#304e97);
}


/* Style du menu déroulant (clair) */
select {
  padding: 4px 2px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background-color: inherit;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

select:hover {
  border-color: #1da1f2;
  filter: drop-shadow(0 0 0.32rem rgba(29, 161, 242, 0.5));
}

/* Options */
select option {
  background-color: inherit;
  color: #333;
}

/* Champ de recherche */
.search-wrapper {
  flex: 1;
  max-width: 250px;
  background:inherit;
  border-radius: 999px;
}
.search-wrapper:hover {
  background:#e6e8eb;
  transition: background-color ease 0.5s;
}



  .custom-dropdown {
    /*position: relative;
    display: inline-block;
    font-family: sans-serif;*/

  padding: 4px 2px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background-color: inherit;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  }

  .dropdown-button {
    background-color: inherit;
    color: #333;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.3s  ease-in-out;
  }

  .dropdown-button:hover{
  transform:scale(0.8);
  }

  .dropdown-content {
    position: absolute;
    background-color: white;
    min-width: 250px;
    border: 1px solid #ccc;
    border-radius: 6px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    
  }

  .dropdown-content.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dropdown-content a,
  .dropdown-content span {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
  }

  .dropdown-content a:hover,
  .dropdown-content span:hover {
    /*background-color: #f5f5f5;*/
  border-color: #1da1f2;
  filter: drop-shadow(0 0 0.32rem rgba(29, 161, 242, 0.5));
  }

  .submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 12px;
  }

  .submenu.open .submenu-content {
    max-height: 500px;
  }

  .submenu span::after {
    content: ' >';
    float: right;
  }

  .submenu.open span::after {
    content: ' ▼';
  }

.hidden {
  opacity: 0 ;
}

#searchInput {
  border: none;
  outline: none;
  background: linear-gradient(to top, #09b2cf, #178fbb, #2273ab, #2a5ea0, #2e5299, #304e97);
  caret-color:#2a5ea0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-family: 'Caveat', sans-serif;
  padding: 0px 0px;
  margin-left:35px;
  width: 100%;
  transition: transform 0.3s  ease-in-out;
}

/* Mode sombre */
body.dark-mode select,
body.dark-mode select option {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: none;
}

body.dark-mode select:hover {
  border-color: none;
  filter: drop-shadow(0 0 0.32rem rgba(29, 161, 242, 0.8));
}

body.dark-mode .search-wrapper:hover {
  background:#313131;
  transition: background-color ease 0.5s;
}

.container-vid {
  max-width: 100%;
  height: auto;
  display: block; /* optionnel, évite les espaces en ligne */
}

.post-video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
  border-radius: 10px;
  object-fit: cover;
}



/* Mode sombre pour le menu déroulant */
body.dark-mode .dropdown-button:hover {
  background-color: inherit;
  color: #f0f0f0;
  filter: drop-shadow(0 0 0.32rem rgba(29, 161, 242, 0.8));

}

body.dark-mode .dropdown-button {
  background-color: inherit;
  color: #f0f0f0;
}


body.dark-mode .dropdown-content {
  background-color: #1e1e1e;
  border-color: #333;

}

body.dark-mode .dropdown-content a,
body.dark-mode .dropdown-content span {
  color: #f0f0f0;
}

body.dark-mode .dropdown-content a:hover,
body.dark-mode .dropdown-content span:hover {
  border-color: none;
  filter: drop-shadow(0 0 0.32rem rgba(29, 161, 242, 0.8));
}

/* Sous-menu */
body.dark-mode .submenu-content {
  background-color: transparent;
}

