/**
 * Theme Name: Les Aa'charnés
 * Template: storefront
 */

.site-header {
    position: relative;
    min-height: 110px;
    margin: 0px !important;
    background-color: #000;
}

.site-header > div.col-full {
    position: absolute;
    top: 0;
}

.site-header .site-branding {
    float: none;
    width: auto;
}

.site-header .main-navigation .menu-toggle {
    background-color: #000;
    color: #fff;
    border: none;
}

.main-navigation ul li a, .site-title a, ul.menu li a, .site-branding h1 a, button.menu-toggle, button.menu-toggle:hover, .handheld-navigation .dropdown-toggle {
    color: #fff;
}

.site-header .main-navigation button.menu-toggle span::before,
.site-header .main-navigation button.menu-toggle::before,
.site-header .main-navigation button.menu-toggle::after {
    background-color: #fff;
}

.site-header .custom-logo-link img.custom-logo {
    max-width: 100px;
}

#bloc-rdmaa {
    background-image:
            linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
            url('https://aacharnes.ddev.site/wp-content/uploads/2025/11/aacharnes-rdmaa.jpg') !important;
    background-position: 50% 48%;
    background-size: cover;
    background-attachment: fixed;
}

.bloc-hp {
    padding: 100px 30px;
}

.storefront-handheld-footer-bar li.search,
.storefront-handheld-footer-bar li.cart {
    display: none;
}

/* Menu mobile - personnalisation avec emojis */
.storefront-handheld-footer-bar li.my-account > a::before,
.storefront-handheld-footer-bar li.hub-adherents > a::before {
    display: none;
}

.storefront-handheld-footer-bar li.my-account > a,
.storefront-handheld-footer-bar li.hub-adherents > a {
    text-indent: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storefront-handheld-footer-bar .aacharnes-emoji-icon {
    font-size: 1.8em;
    line-height: 1;
}

/*
 * GUTENBERG
 */
.wp-block-group {
    padding: 10px 20px;
}

/**
* MENU
*/
@media (min-width: 768px) {
    .site-header {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .site-header > div.col-full {
        position: initial;
    }

    .home.page:not(.page-template-template-homepage) .site-header {
        margin-bottom: 0px;
    }

    .main-navigation ul.menu, .main-navigation ul.nav-menu {
        margin-bottom: 10px;
    }

    .main-navigation ul.menu > li > a, .main-navigation ul.nav-menu > li > a {
        background-color: #3d5a7d;
        color: #fff;
        position: relative;
        display: inline-block;
        padding: 15px;
        margin-right: 3px;
        transform: skewX(-10deg);
        text-transform: uppercase;
        font-weight: bold;
    }

    .main-navigation ul li a:hover, .main-navigation ul li:hover > a, .site-title a:hover, .site-header ul.menu li.current-menu-item > a {
        color: #fff;
    }

    .woocommerce-active .site-header .site-branding,
    .woocommerce-active .site-header .main-navigation {
        width: 100%;
    }

    .woocommerce-active .site-header .site-branding,
    .main-navigation ul.menu, .main-navigation ul.nav-menu {
        display: flex;
        justify-content: center;
    }
}

/**
 * PAGE RÉSERVÉE AUX ADHÉRENTS - Formulaire de connexion
 */
.aacharnes-login-required {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
}

.aacharnes-login-required__message {
    background-color: #f8f9fa;
    border-left: 4px solid #3d5a7d;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.aacharnes-login-required__message p {
    margin: 0;
    color: #333;
    font-size: 1em;
}

.aacharnes-login-required__form .woocommerce-form-login {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px;
    background-color: #fff;
}

.aacharnes-login-required__form .woocommerce-form-login label {
    font-weight: 600;
}

.aacharnes-login-required__form .woocommerce-form-login input[type="text"],
.aacharnes-login-required__form .woocommerce-form-login input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.aacharnes-login-required__form .woocommerce-form-login button[type="submit"] {
    background-color: #3d5a7d;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    margin-top: 10px;
}

.aacharnes-login-required__form .woocommerce-form-login button[type="submit"]:hover {
    background-color: #2d4a6d;
}

/**
 * HUB ADHÉRENTS
 */

/* Navigation */
.hub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.hub-nav__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #3d5a7d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.hub-nav__item:hover {
    background-color: #2d4a6d;
    color: #fff;
}

.hub-nav__item--active {
    background-color: #000;
}

.hub-nav__item--active:hover {
    background-color: #333;
}

.hub-nav__emoji {
    font-size: 1.1em;
}

/* Page d'accueil */
.hub-accueil__welcome {
    text-align: center;
    margin-bottom: 40px;
}

.hub-accueil__welcome h2 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.hub-accueil__welcome p {
    color: #666;
    margin: 0;
}

.hub-accueil__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hub-card {
    display: block;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hub-card__emoji {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.hub-card__title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #000;
}

.hub-card__desc {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

/* Archives des sorties */
.hub-sorties__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.hub-sorties__header h2 {
    margin: 0;
}

.hub-sorties__new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 14px 28px;
    background-color: #3d5a7d;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(61, 90, 125, 0.3);
    transition: all 0.2s ease;
}

.hub-sorties__new-btn:hover {
    background-color: #2d4a6d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(61, 90, 125, 0.4);
}

.hub-sorties__new-btn:active {
    background-color: #1d3a5d;
    box-shadow: 0 1px 4px rgba(61, 90, 125, 0.3);
}

.hub-sorties__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-sortie {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.hub-sortie__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 10px;
    background-color: #3d5a7d;
    color: #fff;
    border-radius: 6px;
    text-align: center;
}

.hub-sortie__jour {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
}

.hub-sortie__mois {
    font-size: 0.85em;
    text-transform: uppercase;
}

.hub-sortie__annee {
    font-size: 0.75em;
    opacity: 0.8;
}

.hub-sortie__info {
    flex: 1;
}

.hub-sortie__lieu {
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 4px;
}

.hub-sortie__details {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
}

.hub-sortie__distance::before,
.hub-sortie__denivele::before {
    margin-right: 4px;
}

.hub-sortie__actions {
    flex-shrink: 0;
}

.hub-sortie__gpx-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.hub-sortie__gpx-btn:hover {
    background-color: #218838;
    color: #fff;
}

.hub-sorties__empty {
    color: #666;
    font-style: italic;
}

/* Pagination */
.hub-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.hub-pagination__link {
    padding: 8px 16px;
    background-color: #3d5a7d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.hub-pagination__link:hover {
    background-color: #2d4a6d;
    color: #fff;
}

.hub-pagination__info {
    color: #666;
    font-size: 0.9em;
}

/* Forum */
.hub-forum__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.hub-forum__header h2 {
    margin: 0;
}

.hub-forum__new-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.hub-forum__new-btn:hover {
    background-color: #218838;
    color: #fff;
}

.hub-forum__topics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.hub-topic:hover {
    background-color: #e9ecef;
}

.hub-topic__main {
    flex: 1;
}

.hub-topic__title {
    margin: 0 0 5px 0;
    font-size: 1.05em;
    color: #000;
}

.hub-topic__meta {
    font-size: 0.85em;
    color: #666;
}

.hub-topic__replies {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

.hub-topic__count {
    font-size: 1.3em;
    font-weight: bold;
    color: #3d5a7d;
}

.hub-topic__label {
    font-size: 0.75em;
    color: #666;
}

.hub-forum__empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* Vue d'un sujet */
.hub-topic-view__back,
.hub-new-topic__back {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    text-decoration: none;
}

.hub-topic-view__back:hover,
.hub-new-topic__back:hover {
    color: #000;
}

.hub-message {
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
}

.hub-message--original {
    border-left: 4px solid #3d5a7d;
}

.hub-message__header {
    margin-bottom: 15px;
}

.hub-message__title {
    margin: 0 0 8px 0;
    font-size: 1.3em;
}

.hub-message__meta {
    font-size: 0.9em;
    color: #666;
}

.hub-message__content {
    line-height: 1.6;
}

.hub-message__content p:last-child {
    margin-bottom: 0;
}

.hub-replies {
    margin-top: 30px;
}

.hub-replies__title {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #666;
}

/* Formulaires du forum */
.hub-reply-form,
.hub-new-topic {
    margin-top: 30px;
}

.hub-reply-form h3,
.hub-new-topic h2 {
    margin: 0 0 20px 0;
}

.hub-form__field {
    margin-bottom: 20px;
}

.hub-form__field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.hub-form__field input[type="text"],
.hub-form__field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.hub-form__field input[type="text"]:focus,
.hub-form__field textarea:focus {
    outline: none;
    border-color: #3d5a7d;
}

.hub-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.hub-form__submit {
    display: inline-block;
    padding: 12px 25px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hub-form__submit:hover {
    background-color: #333;
}

.hub-forum__error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Statistiques */
.hub-stats h2 {
    margin: 0 0 25px 0;
}

.hub-stats__teaser {
    margin-bottom: 30px;
}

.hub-stats__teaser-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    background-color: #3d5a7d;
    color: #fff;
    border-radius: 8px;
}

.hub-stats__teaser-number {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.hub-stats__teaser-label {
    font-size: 0.9em;
    margin-top: 5px;
}

.hub-stats__placeholder {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.hub-stats__icon {
    color: #ccc;
    margin-bottom: 20px;
}

.hub-stats__placeholder h3 {
    margin: 0 0 15px 0;
    color: #666;
}

.hub-stats__placeholder p {
    color: #888;
    margin: 0 0 15px 0;
}

.hub-stats__features {
    display: inline-block;
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hub-stats__features li {
    padding: 5px 0;
    color: #666;
}

.hub-stats__features li::before {
    content: "\2022";
    color: #3d5a7d;
    font-weight: bold;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hub-nav {
        flex-direction: column;
    }

    .hub-nav__item {
        justify-content: center;
    }

    .hub-sortie {
        flex-wrap: wrap;
    }

    .hub-sortie__date {
        min-width: 50px;
        padding: 8px;
    }

    .hub-sortie__jour {
        font-size: 1.2em;
    }

    .hub-sortie__info {
        flex-basis: calc(100% - 90px);
    }

    .hub-sortie__actions {
        width: 100%;
        margin-top: 10px;
    }

    .hub-sortie__gpx-btn {
        display: block;
        text-align: center;
    }

    .hub-topic {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hub-topic__replies {
        flex-direction: row;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .hub-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .hub-sorties__header,
    .hub-forum__header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/**
 * PWA - Bandeau de mise à jour
 */
.pwa-update-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #3d5a7d;
    color: #fff;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pwa-update-banner--visible {
    transform: translateY(0);
}

.pwa-update-banner__text {
    font-weight: 500;
}

.pwa-update-banner__btn {
    padding: 8px 16px;
    background-color: #fff;
    color: #3d5a7d;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pwa-update-banner__btn:hover {
    background-color: #e9ecef;
}

.pwa-update-banner__close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.pwa-update-banner__close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .pwa-update-banner {
        flex-direction: column;
        gap: 10px;
        padding-right: 40px;
    }

    .pwa-update-banner__close {
        top: 10px;
        transform: none;
    }
}