/* =========================================================
   DMA SIMPLE — STRUCTURE
========================================================= */

/* Header fixe */
.dma-site-header {
    position: fixed;
    top: var(--dma-admin-height);
    left: 0;
    right: 0;
    z-index: 1000;

    height: var(--dma-header-height);

    background: var(--dma-header-bg);
    border-bottom: 1px solid rgba(15, 23, 42, .15);
}

.dma-header-inner {
    width: min(var(--dma-content-width), calc(100% - 32px));
    height: 100%;
    margin-inline: auto;

    display: grid;
    grid-template-rows: 72px 46px;
    align-items: center;
}

.dma-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.dma-logo img,
.dma-logo .custom-logo {
    display: block;
    width: auto;
    max-height: 52px;
}

.dma-branding-text {
    display: flex;
    flex-direction: column;
}

.dma-site-title {
    color: inherit;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none;
}

.dma-site-description {
    margin-top: 4px;
    font-size: .95rem;
}

/* Menu haut */
.dma-primary-nav {
    align-self: stretch;
}

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

.dma-menu--primary {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.dma-menu--primary a {
    display: flex;
    align-items: center;
    height: 100%;

    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.dma-menu--primary a:hover,
.dma-menu--primary a:focus-visible {
    text-decoration: underline;
}

/* Footer fixe */
.dma-site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    height: var(--dma-footer-height);

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--dma-footer-bg);
    color: var(--dma-footer-text);
}

.dma-menu--footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.dma-menu--footer a {
    color: inherit;
    text-decoration: none;
    font-size: .9rem;
}

.dma-menu--footer a:hover,
.dma-menu--footer a:focus-visible {
    text-decoration: underline;
}

/* Fond fixe indépendant du contenu */
.dma-page-background {
    position: fixed;

    top: calc(var(--dma-admin-height) + var(--dma-header-height));
    right: 0;
    bottom: var(--dma-footer-height);
    left: 0;

    z-index: 0;

    background-color: #ffffff;
    background-image: var(--dma-bg-desktop);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Seule cette zone défile */
.dma-scroll-area {
    position: fixed;

    top: calc(var(--dma-admin-height) + var(--dma-header-height));
    right: 0;
    bottom: var(--dma-footer-height);
    left: 0;

    z-index: 1;

    overflow-x: hidden;
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.dma-content-inner {
    width: min(var(--dma-content-width), calc(100% - 32px));
    min-height: 100%;
    margin-inline: auto;

    padding: 20px 0 32px;
}

/* Contenu WordPress */
.dma-content-inner > *:first-child {
    margin-top: 0;
}

.dma-content-inner > *:last-child {
    margin-bottom: 0;
}

.dma-entry-title {
    margin-top: 0;
}

.dma-article + .dma-article {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15,23,42,.15);
}

.dma-menu-toggle {
    display: none;
}


/* =========================================================
   DMA SIMPLE — PAGE TEMPLATES
========================================================= */

.dma-page-entry {
    width: 100%;
}

.dma-page-header {
    margin: 0 0 1.25rem;
}

.dma-page-title {
    margin: 0;
    color: var(--dma-text);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}

.dma-page-body > :first-child {
    margin-top: 0;
}

.dma-page-body > :last-child {
    margin-bottom: 0;
}
