/* STYLE COPIÉ DE ROOT.CSS - FOOTER */

footer {
    margin-top: auto
}

.social-menu-footer {
    display: block;
    text-align: center
}

.social-list-footer {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center
}

.social-item-footer {
    list-style: none;
    margin: 0;
    padding: 0
}

.social-link-footer {
    transition: font-weight .3s;
    display: inline-block;
    padding: 0;
    margin-bottom: var(--spacing-xs)
}

.social-link-footer:hover {
    font-weight: 700
}

.site-footer a,
main a {
    color: inherit;
    text-underline-offset: 0.3rem;
    text-decoration: underline solid
}

.site-footer {
    text-align: center;
    padding-bottom: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--noir-footer);
    margin-top: var(--spacing-md)
}

.site-footer .social-list {
    display: flex;
    justify-content: center;
    margin: 0;
    margin-bottom: var(--spacing-xs)
}

.footer-credit p {
    font-size: 0.75rem;
    color: var(--noir-footer)
}

.footer-credit > * {
    display: inline
}


/* ADMIN SPECIFIC */
.admin {
    display: inline-block;
    position: relative
}

.admin-form {
    position: absolute;
    top: 100%;
    z-index: 10;
    background: var(--blanc);
    padding: 0.75rem;
    min-width: 19rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

.admin-toggle {
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--noir-footer);
    list-style: none;
    display: inline-block;
    padding: 0 0.5rem
}

.admin-toggle::-webkit-details-marker {
    display: none
}

.admin-switch {
    display: flex;
    justify-content: center
}

.admin-switch input {
    position: absolute;
    opacity: 0
}

.switch-track {
    position: relative;
    display: flex;
    width: 8rem;
    height: 1.5rem;
    background: transparent;
    border-bottom: 1px solid var(--bordure)
}

.switch-option {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.5rem;
    cursor: pointer;
    z-index: 2;
    color: var(--noir-footer);
    transition: color 0.15s ease
}

.switch-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    width: 50%;
    background: var(--noir-footer);
    left: 0;
    transition: transform 0.2s ease
}

#zone-news:checked ~ .switch-track .switch-option[for="zone-news"],
#zone-site:checked ~ .switch-track .switch-option[for="zone-site"] {
    font-weight: 600
}

#zone-news:checked ~ .switch-track .switch-indicator {
    transform: translateX(100%)
}

.admin-champs input {
    width: 100%;
    padding: 0.3rem;
    font-size: 0.7rem;
    border: 1px solid var(--bordure)
}

.admin-form button {
    background: var(--bouton);
    color: var(--blanc);
    border: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-family: sans-serif;
    cursor: pointer
}

.logout-btn {
    background-color: #ff4444 !important;
    color: white !important;
    margin-left: 10px
}

.admin-msg {
    color: red;
    font-size: 0.9em;
    margin: 0.5em 0
}


/* CSS COMMUN - NOUVEAU POST (depuis news.css) */
.bouton {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--texte-clair);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.75rem
}

.bouton::-webkit-details-marker {
    display: none
}

.bouton:hover {
    color: var(--texte)
}

.formulaire {
    display: none;
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--carte);
    border-bottom: 1px solid var(--bordure);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02)
}

details[open] .formulaire {
    display: block
}

.formulaire .champ {
    margin-bottom: 0.4rem
}

.formulaire label {
    display: block;
    font-size: 0.6rem;
    color: var(--texte-clair);
    margin-bottom: 0.2rem;
    font-family: sans-serif
}

.formulaire input[type="text"],
.formulaire textarea {
    min-height: 50px;
    resize: both;
    max-width: none;
    width: 100%;
    padding: 0.35rem;
    border: 2px solid var(--bordure);
    font-size: 0.7rem;
    font-family: sans-serif;
    background: var(--carte)
}

.formulaire input[type="file"] {
    font-size: 0.65rem;
    font-family: sans-serif;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.form-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem
}

.form-submit {
    background: var(--bouton);
    color: var(--blanc);
    border: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem
}

.form-cancel {
    background: transparent;
    border: 1px solid var(--bordure);
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem
}