.state-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.state-container>label {
    display: block;
    margin: 0;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 32px;
    flex-shrink: 0;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-label {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 20px;
    margin: 0;
}

.switch-label:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.custom-switch input:checked+.switch-label {
    background: linear-gradient(135deg, #375d77 0%, #0093d7 100%);
}

.custom-switch input:checked+.switch-label:before {
    transform: translateX(16px);
}

.switch-status {
    display: inline-flex;
    align-items: center;
    line-height: 32px;
    font-size: 9px;
    font-weight: 700;
}

.switch-status.is-on {
    color: #0093d7 !important;
}

.switch-status.is-off {
    color: #727272 !important;
}

/* Navbar front-office uniquement. */
#app[data-shell="site"] main > section:first-child {
    padding-top: 0;
}

#app[data-shell="site"] header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    background-color: #375d77;
}

#app[data-shell="site"] main {
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
}

#app[data-shell="site"] header::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* background: linear-gradient(100deg, #006e96 0%, #0082af 50%, #0082af 100%); */
    content: "";
    pointer-events: none;
}

#app[data-shell="site"] header .wap.nav.pl-5 {
    width: 100%;
    max-width: 1600px;
    height: 88px;
    margin: 0 auto;
    padding: 0 22px !important;
    background: transparent;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 1100px) {
    #app[data-shell="site"] header .wap.nav.pl-5 {
        max-width: 1200px;
        padding: 0 !important;
    }
}

@media (max-width: 1099px) {
    #app[data-shell="site"] header .wap.nav.pl-5 {
        max-width: 100%;
        padding: 0 16px !important;
    }
    #app[data-shell="site"] header .nav-actions {
        gap: 8px;
    }
}

@media (max-width: 420px) {
    #app[data-shell="site"] header .nav-actions {
        gap: 10px !important;
    }
    #app[data-shell="site"] header .nav-actions .lang-select {
        min-width: 50px;
        padding-right: 8px;
        padding-left: 4px;
    }
}

#app[data-shell="site"] header .wap.nav.pl-5 > ul a {
    color: #fff;
}

#app[data-shell="site"] header .wap.nav.pl-5 > ul a:hover {
    color: #bdefff;
}

#app[data-shell="site"] header .nav-actions .login-toggle,
#app[data-shell="site"] header .nav-actions .lang-select,
#app[data-shell="site"] header .nav-actions .lang-chevron {
    color: #fff;
}

#app[data-shell="site"] header .nav-actions .login-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 9px;
    background: transparent;
}

#app[data-shell="site"] header .nav-actions .login-bar {
    gap: 10px;
}

#app[data-shell="site"] header .nav-actions {
    gap: 24px;
}

#app[data-shell="site"] header .nav-actions .login-toggle:hover,
#app[data-shell="site"] header .nav-actions .login-toggle[aria-expanded="true"] {
    background: rgb(255 255 255 / 14%);
    color: #fff;
}

#app[data-shell="site"] header .nav-actions .login-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

#app[data-shell="site"] header .nav-actions .lang-select-wrap {
    border: 1px solid #fff;
    border-radius: 9px;
    background: transparent;
}

#app[data-shell="site"] header .nav-actions .lang-select {
    height: 36px;
    min-width: 64px;
    padding: 0 27px 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

#app[data-shell="site"] header .nav-actions .lang-chevron {
    right: 8px;
}

@keyframes site-nav-donate-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgb(0 122 55 / 0%);
    }

    50% {
        box-shadow: 0 0 0 9px rgb(0 122 55 / 45%);
    }
}

#app[data-shell="site"] header .nav-actions > a.btn.sm {
    background: #007a37;
    color: #fff;
    animation: site-nav-donate-pulse 1.2s ease-in-out infinite;
    text-shadow: none;
}

#app[data-shell="site"] header .nav-actions > a.btn.sm:hover {
    filter: brightness(1.03);
    color: #fff;
}

#app[data-shell="site"] header .nav-actions > a.btn.sm:focus:not(:focus-visible),
#app[data-shell="site"] header .nav-actions > a.btn.sm:active {
    outline: none;
    border-color: transparent;
}

#app[data-shell="site"] header .nav-actions > a.btn.sm:focus-visible {
    outline: 2px solid #007a37;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #app[data-shell="site"] header .nav-actions > a.btn.sm {
        animation: none;
    }
}

#app[data-shell="site"] header .wap.nav.pl-5 > a {
    margin: 0 !important;
}

#app[data-shell="site"] .wap.nav.pl-5 > a img.logo-t {
    width: 70px;
    height: 70px;
    margin: 0 !important;
    padding: 0;
    border-radius: 0;
    object-fit: contain;
}

.admin-btn-add-site {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #375d77;
    border-radius: 50%;
    background: #375d77;
    color: #fff;
    box-shadow: 0 2px 6px rgba(55, 93, 119, 0.2);
    cursor: pointer;
}

.admin-btn-add-site:hover {
    border-color: #29485e;
    background: #29485e;
    color: #fff;
}

.admin-btn-add-site:focus-visible {
    outline: 3px solid rgba(10, 141, 216, 0.45);
    outline-offset: 2px;
}

/* Shared skeleton loader for site content. */
.skeleton-wrapper {
    width: 100%;
    padding: 18px 0;
}

.skel-line,
.skel-block,
.skel-circle {
    position: relative;
    overflow: hidden;
    background: var(--line, #dceaf1);
    border-radius: 6px;
}

.skel-line::after,
.skel-block::after,
.skel-circle::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 65%), transparent);
    animation: skel-shimmer 1.4s ease-in-out infinite;
}

@keyframes skel-shimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.skel-line {
    width: 100%;
    height: 14px;
    margin-bottom: 12px;
}

.skel-h2 {
    width: 60%;
    height: 28px;
    margin-bottom: 20px;
}

.skel-h3 {
    height: 18px;
    margin-bottom: 12px;
}

.skel-w30 {
    width: 30%;
}

.skel-w50 {
    width: 50%;
}

.skel-w60 {
    width: 60%;
}

.skel-w70 {
    width: 70%;
}

.skel-block {
    border-radius: 16px;
}

.skel-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.skeleton-wrapper .mx-auto {
    margin-right: auto;
    margin-left: auto;
}

.activities-skeleton,
.mission-skeleton,
.stories-skeleton {
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 16px;
    padding-left: 16px;
}

.activities-skeleton {
    display: grid;
    gap: 30px;
}

.activities-skeleton__groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.activities-skeleton__card {
    padding: 14px;
    border: 1px solid var(--line, #dceaf1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 26px rgb(55 93 119 / 10%);
}

.activities-skeleton__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
}

.activities-skeleton__photo {
    aspect-ratio: 1;
    border-radius: 14px;
}

.activities-skeleton__feature {
    padding: 28px 16px 24px;
    border-radius: 24px;
    background: var(--soft, #f4f9fc);
    text-align: center;
}

.activities-skeleton__diagram {
    width: min(330px, 72vw);
    height: auto;
    aspect-ratio: 1;
    margin: 24px auto;
    background: var(--be, #e8f4fb);
}

.activities-skeleton__chips {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.activities-skeleton__chip {
    aspect-ratio: 1;
    border-radius: 20px;
}

.quote-skeleton {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

.quote-skeleton__inner {
    max-width: 1140px;
    margin: 0 auto;
}

.quote-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.quote-skeleton__card {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

.skeleton-wrapper .wrap.two.mission-skeleton__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
}

.mission-skeleton__content {
    min-width: 0;
}

.mission-skeleton__eyebrow {
    margin-top: 20px;
}

.mission-skeleton__list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.mission-skeleton__list-item {
    padding: 12px;
    border: 1px solid var(--line, #dceaf1);
    border-radius: 12px;
    background: #fff;
}

.mission-skeleton__image {
    width: 100%;
    min-height: 260px;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
}

.skeleton-wrapper .wrap.two.stories-skeleton__detail {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    max-width: 1190px;
    margin: 24px auto 36px;
}

.stories-skeleton__text {
    min-width: 0;
}

.stories-skeleton__image {
    width: 100%;
    min-height: 240px;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
}

@media (max-width: 767px) {
    .activities-skeleton__groups {
        grid-template-columns: 1fr;
    }

    .activities-skeleton__chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .quote-skeleton {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

@media (min-width: 1100px) {
    .quote-skeleton {
        background-color: #d0e0d9;
    }

    .quote-skeleton__inner {
        max-width: 1000px;
    }
}

@media (max-width: 900px) {
    .skeleton-wrapper .wrap.two.mission-skeleton__layout,
    .skeleton-wrapper .wrap.two.stories-skeleton__detail {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skel-line::after,
    .skel-block::after,
    .skel-circle::after {
        animation: none;
    }
}
