@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap');

.header-with-image {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0;
    max-height: 150px;
    overflow: hidden;
    margin-bottom: 1.5rem;

}


.section-image {
    width: 25%;
}

.header-with-image h2 {
    flex: 0 0 auto;
    margin: 0;
    margin-right: 2rem;
}

.custom-1 {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;  /* font-bold */
  color: #92400e;    /* amber-800 */
  margin-bottom: 0.5rem; /* mb-4 */
}

.custom-2 {
  padding-left: 1rem; /* px-4 */
  padding-right: 1rem;
  padding-top: 0.5rem; /* py-2 */
  padding-bottom: 0.5rem;
  border-radius: 0.125rem; /* rounded-sm */
  font-weight: 500; /* font-medium */
}

.custom-3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}


.custom-5 {
  background-color: #fffbeb; /* amber-50 */
  min-height: 100vh; /* min-h-screen */
}

.custom-6 {
  border-radius: 5px;
  padding:1rem;
  margin-bottom: 1.5rem; /* mb-6 */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* gap-2 */
  align-items: center;
}
.custom-6.scroll{
  border-radius: 10px;
  padding:1rem;
  margin-bottom: 0.5rem; /* mb-6 */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* gap-2 */
  align-items: center;
}

.custom-7 {
  padding: 0.5rem 1rem; /* py-2 px-4 */
}

.custom-8 {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;   /* font-bold */
  color: #92400e;     /* amber-800 */
  margin-bottom: 0.5rem; /* mb-2 */
}
@media (min-width: 768px) {
  .custom-8 { font-size: 3rem; /* md:text-5xl */ }
}

.custom-9 {
  padding: 0.5rem 1rem;
  border-radius: 0.125rem;
  font-weight: 500;
}

.custom-10 {
  background-color: #d97706; /* amber-600 */
  color: white;
  padding: 0.5rem 1.5rem; /* px-6 py-2 */
  border-radius: 0.125rem;
  transition: background-color 0.2s;
  margin-bottom: 1.5rem;
}
.custom-10:hover { background-color: #b45309; /* amber-700 */ }

.custom-11 {
  border-radius: 0.125rem;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  min-height: 5rem; /* min-h-20 */
}

.custom-12 { background-color: #fef3c7; /* amber-100 */ }

.custom-13 {
  width: 3rem; /* w-12 */
  height: 3rem; /* h-12 */
  object-fit: contain;
}

.custom-14 {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  padding: 1.5rem; /* p-6 */
}

.custom-15 {
  border-bottom: 1px solid #fef3c7; /* border-b border-amber-100 */
}

.custom-16 { color: #b45309; font-size: 1.2rem; /* amber-700 */ }

.custom-17 { overflow-x: auto; }

.custom-18 {
  min-width: 100%;
  background: white;
}

.custom-19 {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #d1d5db; /* gray-300 */
  padding-bottom: 0.5rem;
}

.custom-20 {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600;
  color: #92400e; /* amber-800 */
  margin-bottom: 0.5rem;
}

.custom-21 {
  background: #92400e; /* amber-800 */
  color: #fef3c7; /* amber-100 */
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.custom-22 {
  display: flex;
  gap: 0.25rem; /* space-x-1 */
  background: #fef3c7; /* amber-100 */
  border-radius: 0.125rem;
  padding: 0.25rem; /* p-1 */
}

.custom-23 {
  width: 4rem; height: 4rem;
  display: flex; justify-content: center; align-items: center;
  margin-left: auto; margin-right: auto;
}

.custom-24 { display: none; }

.custom-25 {
  background: #fffbeb; /* amber-50 */
  border-radius: 0.125rem;
  padding: 1rem;
}

.custom-26 { font-size: 0.875rem; margin-top: 0.5rem; }

.custom-27 { margin-bottom: 3rem;  }

.custom-28 { color: #6b7280; /* gray-500 */ }

.custom-29 {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #fcd34d; /* amber-300 */
  border-radius: 0.125rem;
}
.custom-29:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #f59e0b; /* amber-500 */
}

.custom-30 {
  padding: 0.5rem 1rem;
  text-align: left;
}

.custom-31 {
  width: 2.5rem; height: 2.5rem;
  object-fit: contain;
  margin-left: auto; margin-right: auto;
}

.custom-32 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem; /* gap-3 */
}
@media (min-width: 640px) { .custom-32 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .custom-32 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .custom-32 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .custom-32 { grid-template-columns: repeat(10, minmax(0, 1fr)); } }

.custom-34 { display: flex; justify-content: center; margin-bottom: 2rem; }

.custom-35 {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    display: block;
    max-width: 100%;
    vertical-align: middle;
     }

.custom-36 { padding: 0.5rem 1rem; text-align: center; }

.custom-37 {
  background: #ffe88e; color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.2s;
  margin-top: 1rem;
  font-weight:500;
}
.custom-37:hover { background: #ffad66; /* amber-200 */ }

.custom-38 { max-width: 1280px; margin: 0 auto; padding: 2rem 1rem; }

.custom-39 { font-size: 1.2rem; color: #4b5563;font-weight:500; }

.custom-39.scroll { font-size: 1rem; color: #4b5563;font-weight:500; }

.custom-40 { margin-bottom: 1rem; }

.custom-41 {
  flex-shrink: 0;
  background: #ffe88e; color: #92400e;
  padding: 0.5rem;
  border-radius: 5px;
  transition: background-color 0.2s;
}
.custom-41:hover { background: #ffad66; }

.custom-42 {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  padding-bottom:2rem;
  padding-top: 1.5rem;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.custom-42.scroll {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  padding: 0.6rem;
  margin-bottom: 0.75rem;
}

.custom-43 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  color: #92400e;
  margin-bottom: 1rem;
}

.custom-44 { max-width: 80rem; margin: 0 auto; }

.custom-45 { font-size: 1.125rem; font-weight: 600; }

.custom-45.scroll { font-size: 1rem; font-weight: 600; }

.custom-46 { text-align: center; margin-bottom: 2rem; }

.custom-47 { max-width: 1280px; margin: 0 auto; padding: 0 1rem; text-align: center; }

.custom-49 {
    background: #ffe88e;
    padding: 0.5rem;
    border-radius: 0.125rem;
    transition: background-color 0.2s;
    margin: 0.25rem;
    border-radius: 0.5rem;
}
.custom-49:hover { background: #ffad66; }

.custom-51 {
    background: #ffe88e;
    padding: 0.5rem;
    border-radius: 0.125rem;
    transition: background-color 0.2s;
    margin: 0.25rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #92400e;
}

.custom-50{
  display:flex;
  justify-content:center;
  align-items:center;

}


.maya-font {
    font-family: 'IM Fell English SC', serif;
}

.glyphButton {
    transition: all 0.1s ease;
}

.glyphButton:hover {
    transform: scale(1.013);
    box-shadow: 0 0 2px rgba(234, 179, 8, 0.7);
}

.glyph-display {
    min-height: 80px;
    background-color: #f5f5dc;
    border: 2px solid #d1a054;
}

.tab-active {
    border-bottom: 3px solid #d1a054;
}

.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reset de base Tailwind */
*,
*::before,
*::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb; /* gray-200 */
}

html, :host {
    line-height: 1.5;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    margin: 0;
    line-height: inherit;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

/* Paragraphes et texte */
p {
    margin: 0;
}

/* Liens */
a {
    color: inherit;
    text-decoration: inherit;
}

/* Gras */
b, strong {
    font-weight: bolder;
}

/* Code et monospace */
code, kbd, pre, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em;
}

/* Small / sub / sup */
small { font-size: 0.8em; }
sub { font-size: 0.75em; bottom: -0.25em; position: relative; vertical-align: baseline; }
sup { font-size: 0.75em; top: -0.5em; position: relative; vertical-align: baseline; }

/* Table */
table {
    border-collapse: collapse;
    border-color: inherit;
    text-indent: 0;
}

/* Formulaires */
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* Boutons et inputs type submit/button/reset */
button, input[type=button], input[type=submit], input[type=reset] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}


/* Utilitaires Tailwind traduits en classes */
.w-12 { width: 3rem; }
.object-contain { object-fit: contain; }



.container{
    display: flex;
    
}

.sidebar_menu_div {
    will-change: width, padding;
    position: fixed;
    border-radius: 6px;
    width: 70px;
    left: 5px;
    top: 140px;
    background-color: #d67608;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 8px;
    margin-left: 8px;
    gap: 4px;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
    transition: width 0.3s ease, padding-left 0.3s ease;
    overflow: hidden;
}

.sidebar_menu_div.expanded {
    width: 220px;
    padding-left: 8px;
}

.category_div {
    position: relative;
    will-change: transform;
    transform-origin: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border : 2px solid #d97706;
    background-color: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-bottom:2px;
    margin-top:2px;
    flex-shrink: 0;
}

.category_div:hover {
    background-color: #ffc98c;
}

.category_div img:hover {
  transform: scale(1.05);
}

.category_div img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    text-align: center;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}

.category_div a {
    text-decoration: none;
    color: inherit;
}

#text-div {
    flex: 1;
    margin-left: 50px;
    padding:40px;
    overflow-y: auto;
    align-items: flex-start; /* Aligne le contenu à gauche */
    justify-content: flex-start; /* Aligne le contenu en haut */
    text-align: left; /* Aligne le texte à gauche */
}

.label {
    color:black;
    font-family: "Poppins", sans-serif;
    border: 4px solid transparent;
    will-change: opacity, transform;
    position: absolute; /* positionné par rapport au parent .container */
    right: 55px;       /* distance à gauche du lien */
    top: 55%;           /* centré verticalement par rapport au lien */
    transform: translateY(-50%);
    background-color: #fef3c7;
    padding: 3px 3px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 14px;
    pointer-events: auto;
    opacity: 0;
    animation: fadeIn 0.2s forwards;  
}

.label:hover{
    transform: translateY(-50%) scale(1.05);
    background-color: #ffc98c;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.submenu-dropdown {
    position: absolute;
    right: 100%;
    top: 50%;
    margin-right: 10px;
    background-color: #fef3c7;
    border: 2px solid #d97706;
    border-radius: 8px;
    padding: 10px;
    min-width: 200px;
    max-width: 300px;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 200;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu-item {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: #ffc98c;
    transform: translateX(-5px);
}


.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: none;
    background-color: #ffad66;
    border-radius: 50%;       /* arrondi */
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.up {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;      /* évite la déformation */
}

.scroll-top.show {
    display: flex;  /* garder le flex quand visible */
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: #ffc98c;
}

.loader {
    position:absolute;
    color : #d67608;
    display: none ;
    object-fit:contain;
    width: 35px;
    height: 35px;
    left:100px;
    top:20px;
    bottom:-8px;
    animation: spin 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) forwards infinite;
    margin-left: 10px;

}



@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.maya-bin {
    width: 33px;
    height: 40px;
}

.utilityButtons{
    max-height:0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.utilityButtons.scroll{
    display: flex;
    justify-content: space-between; /* gauche / droite */
    align-items: center;
    max-height:0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.utilityButtons.visible {
    max-height:150px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.custom-48 {
  transition: all 0.4s ease-in-out; /* Pour l’animation fluide */
}

.custom-48.scroll {
  border-radius:20px;
  position: fixed;
  top: 0px;
  left: 24%;
  transform: translateY(10%);
  width: 80%;
  max-width: 1000px;
  max-height: 1000px;
  z-index: 1000;
  overflow:visible;
  padding:0;
  margin:0;
}

.hidden-on-scroll {
    display: none;
}

.custom-53 {
  position: absolute;
  right: 8px;
  top: 115px;
  color:#92400e;
  font-weight:500;
}


.custom-54 {
  flex-shrink: 0;
  background: #ffe88e; color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.2s;
  margin-top: 1rem;
  font-weight:500;
}
.custom-54:hover { background: #ffad66; /* amber-200 */ }

.exportButton{
  display:'none';
  background: #ffe88e; color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.2s;
  margin-top: 1rem;
  font-weight:500;
}

.exportButton:hover { background: #ffad66; /* amber-200 */ }


