body {
    font-family: Arial, sans-serif;
    background-color: #f7f8fb;
    color: #2f3542;
}
.liked path {
    fill: rgb(248, 102, 127); 
}
main {
    min-height: 80vh;
}
.custum-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #fff;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 60px;
    margin-right: 10px;
}
.menu, .publish, .language-settings {
    cursor: pointer;
}
.menu {
    display: flex;
    gap: 10px;
    align-items: center;
}
.publish {
    text-decoration: none;
    color: #333;
    padding: 10px;
}
.publish:hover {
    /*background-color: #f0f0f0;*/
}
.menu-div {
    display: flex;
    gap: 20px;
    border: 1px solid #ddd;
    border-color: #ddd;
    border-radius: 40px;
    padding: 10px;
}
.language-settings {
    font-size: 24px;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #ffffff; /* Couleur de la bordure */
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 50%;
}
.language-settings:hover {
    /*background-color: #f0f0f0;*/
}

.custum-title-div .div-title {
    position: absolute; /* Positionnement absolu */
    top: -10px; /* Ajuste la position verticale */
    left: 10px; /* Ajuste la position horizontale */
    background-color: white; /* Fond blanc pour le titre */
    padding: 0 5px; /* Espacement intérieur du titre */
    border-radius: 10px;
    font-weight: bold;
    color: #656565;
}
.custum-title-div {
    border: 1px solid #656565; /* Bordure de 2px de couleur noire */
    padding: 10px; /* Espacement intérieur */
    position: relative; /* Nécessaire pour positionner le titre */
    border-radius: 20px;
}

.custum-form-div {
    display: grid;
    grid-template-columns: 2fr 3fr; 
    gap: 10px; /* Espacement entre les éléments */
    color: #656565;
    align-items: center;
    padding: 10px;
}

.div-title {
    color: #656565;
}


/* Seuelement pour l'entête */
.modal {
    display: none; /* Hidden by default */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background: rgba(15, 23, 42, 0.52);
    padding: 24px;
    backdrop-filter: blur(8px);
}

.modal p, .modal ul {
    color: #475467;
}
.modal ul {
    list-style-type: disc;
    padding-left: 20px;
}
.modal-content {
    width: min(92vw, 640px);
    max-height: min(82vh, 760px);
    margin: auto;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    position: relative;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: auto;
}

.modal-content::before {
    content: "";
    display: block;
    height: 4px;
    width: 72px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #ff9d00);
}

.modal-content > .title,
.modal-content > .subtitle {
    color: #1f2937;
    margin-right: 44px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.modal-content > .title {
    font-weight: 800;
}

.modal-content > .subtitle {
    color: #667085;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #111827;
    background: #eef2f7;
    text-decoration: none;
    cursor: pointer;
    transform: rotate(90deg);
}

.modal-container {
    display: grid;
    gap: 12px;
    background: #f8fafc;
    padding: 12px;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    box-shadow: none;
    max-height: 58vh;
    height: auto;
    overflow: auto;
}

#modal-wellcome .modal-container {
    justify-content: flex-start;
}

.modal-subcontainer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 14px;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.modal-subcontainer:hover {
    background: #fff;
    border-color: #bfdbfe;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.modal-subcontainer > i,
.modal-subcontainer > svg {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 14px;
    color: #1d4ed8;
    background: #eef4ff;
}

.modal-subcontainer p {
    grid-column: 2;
    margin: 0;
    color: #667085;
}

.modal-subcontainer a {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    margin-top: 6px;
    padding: 8px 14px;
    border-radius: 999px !important;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.18);
}

.modal-subcontainer a:hover,
.modal-subcontainer a:focus {
    color: #fff;
    background: #1e40af;
}

.custum-title-div {
    border: 1px solid #e5e7eb;
    padding: 18px;
    position: relative;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.custum-title-div .div-title {
    position: static;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 800;
}

.modal .control {
    gap: 10px;
}

.modal .radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    line-height: 1.2;
}

.modal .radio:hover {
    border-color: #bfdbfe;
    background: #eef4ff;
}

.modal input[type="radio"] {
    accent-color: #1d4ed8;
}

.modal .input,
.modal .textarea,
.modal .select select {
    border-color: #d9e2ec;
    border-radius: 12px;
    box-shadow: none;
}

.modal .input:focus,
.modal .textarea:focus,
.modal .select select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.modal .field.has-addons .control .input {
    border-radius: 12px;
}

.modal .button {
    border-radius: 999px;
    font-weight: 700;
}

.mobile-only {
  display: none;
}

.mobile-site-header {
    display: none;
}

.modal-loader {
    display: none;
    justify-content: center;
    align-items: center;
}
.is-active .modal-loader {
    display: flex;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 12px 0 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
    z-index: 40;
}

/* Let JS compute the real width and update a CSS variable */
:root {
    --sidebar-width: 220px; /* fallback */
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
}

.sidebar-brand {
    margin-bottom: 22px;
}

.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    color: #1f2937;
    text-decoration: none;
}

.sidebar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.brand-copy {
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}

/* Bulma menu overrides */
.sidebar .menu {
    display: block;
    margin: 0;
}

.sidebar .menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border-radius: 0;
}

.sidebar .menu-list li {
    margin: 0;
}

.sidebar .menu-list .nav-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    color: #344054;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar .menu-list .nav-link:hover,
.sidebar .menu-list .nav-link:focus {
    background: #f1f5f9;
    color: #1d4ed8;
    transform: translateX(2px);
}

.sidebar .menu-list .nav-link.is-active {
    background: #eef4ff;
    color: #1d4ed8;
    box-shadow: inset 3px 0 0 #3b82f6;
}

.nav-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #f8fafc;
    color: inherit;
}

.nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .menu-list .nav-publish {
    margin: 6px 0;
    background: #ff9d00;
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 157, 0, 0.24);
}

.sidebar .menu-list .nav-publish .nav-icon {
    background: rgba(255, 255, 255, 0.18);
}

.sidebar .menu-list .nav-publish:hover,
.sidebar .menu-list .nav-publish:focus {
    background: #f59a00;
    color: #fff;
    transform: translateX(2px) translateY(-1px);
}

.sidebar .menu-list a:not(.nav-publish):hover {
    background: #f1f5f9;
}

@media (max-width: 768px) {
  body {
    padding-top: 62px;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    transition: padding-bottom 0.2s ease;
  }

  body.mobile-nav-collapsed {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .mobile-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
  }

  .mobile-logo {
    display: inline-flex;
    align-items: center;
  }

  .mobile-logo img {
    height: 42px;
    width: auto;
    display: block;
  }

  .mobile-nav-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e2ec;
    border-radius: 50%;
    background: #fff;
    color: #344054;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  }

  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-right: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(0);
    transition: transform 0.2s ease;
    overflow: hidden;
  }

  body.mobile-nav-collapsed .sidebar {
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar .menu {
    display: block;
    width: 100%;
    margin: 0;
  }

  .sidebar .menu-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    padding: 0;
    border-radius: 0;
    margin: 0;
  }

  .sidebar .menu-list li {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }

  .sidebar .menu-list a {
    min-height: 58px;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #344054;
    font-size: 1.1rem;
  }

  .sidebar .menu-list .nav-link {
    min-height: 58px;
    gap: 0;
    padding: 8px 4px;
    border-radius: 14px;
    transform: none;
    box-shadow: none;
  }

  .sidebar .menu-list .nav-link:hover,
  .sidebar .menu-list .nav-link:focus {
    transform: none;
  }

  .sidebar .menu-list .nav-link.is-active {
    box-shadow: none;
  }

  .sidebar .menu-list .nav-publish {
    margin: 0;
    box-shadow: none;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  .sidebar .menu-list a:hover,
  .sidebar .menu-list a:focus {
    background: #eef4ff;
    color: #1d4ed8;
  }

  .main-content {
    margin-left: 0;
    padding: 12px;
  }

  .main-content > .section {
    padding: 1rem 0.25rem;
  }

  .main-content .container {
    width: 100%;
    max-width: none;
  }

  .main-content .columns {
    margin-left: 0;
    margin-right: 0;
  }

  .main-content .column {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .card {
    border-radius: 12px;
    overflow: hidden;
  }

  .card:hover {
    transform: none;
  }

  .modal-content {
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100vh - 104px);
    padding: 16px;
    border-radius: 16px;
    overflow: auto;
  }

  .mobile-only {
    display: block;
  }

  .modal-container {
    height: auto;
    max-height: 58vh;
    padding: 12px;
    gap: 12px;
    overflow: auto;
  }

  .modal-subcontainer {
    margin-bottom: 0;
  }

  .custum-title-div {
    border-radius: 14px;
    padding: 18px 12px 12px;
  }

  .custum-form-div {
    grid-template-columns: 1fr;
  }

  .control {
    flex-wrap: wrap;
    gap: 10px;
  }

  .button,
  .input,
  .select select,
  textarea.textarea {
    max-width: 100%;
  }

  .publish {
    padding: 5px;
  }
}

@media (max-width: 420px) {
  .sidebar .menu-list a {
    min-height: 52px;
    font-size: 1rem;
  }

  .main-content {
    padding: 10px;
  }
}

