/* Charte du site public (chargée après styles.css) */

:root {
    --primary-color: #1b4a6b;
    --primary-dark: #123348;
    --primary-light: #2a6a8f;
    --secondary-color: #b0894a;
    --secondary-dark: #8c6b38;
    --accent-color: #c4a574;
    --accent-light: #e4d4b4;
    --success-color: #2d4a3e;
    --success-light: #3d6a56;
    --text-dark: #1c1917;
    --text-medium: #3f3a36;
    --text-light: #5c564f;
    --bg-light: #f4efe6;
    --bg-white: #fffcf7;
    --bg-warm: #f7f3ec;
    --bg-cool: #eef3f6;
    --gradient-primary: #1b4a6b;
    --gradient-secondary: #b0894a;
    --gradient-success: #2d4a3e;
    --gradient-accent: #c4a574;
    --gradient-hero: #1b4a6b;
    --gradient-warm: #f7f3ec;
    --gradient-cool: #eef3f6;
    --shadow-sm: 0 1px 2px rgba(18, 38, 58, 0.06);
    --shadow-md: 0 1px 3px rgba(18, 38, 58, 0.08);
    --shadow-lg: 0 8px 24px rgba(18, 38, 58, 0.1);
    --shadow-xl: 0 12px 32px rgba(18, 38, 58, 0.12);
    --shadow-colored: 0 1px 3px rgba(18, 38, 58, 0.08);
    --shadow-secondary: 0 1px 3px rgba(18, 38, 58, 0.08);
    --shadow-success: 0 1px 3px rgba(18, 38, 58, 0.08);
    --border-radius-sm: 3px;
    --border-radius: 4px;
    --border-radius-lg: 6px;
    --border-radius-xl: 8px;
    --transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.25s ease, color 0.25s ease;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    background: var(--bg-warm);
    color: var(--text-dark);
}

/* Chrome et Firefox inchangés. Edge agrandit souvent la page : on la ramène. */
html.is-edge {
    zoom: 0.72;
}

@media (max-width: 768px) {
    html.is-edge {
        zoom: 1;
    }
}

.navbar,
.navbar.scrolled {
    -webkit-backdrop-filter: none;
}

h1, h2, h3, h4,
.hero-title,
.section-title,
.subsection-header h3,
.subsection-title,
.category-title,
.logo h2,
.page-header h1,
.activities .section-title,
.footer-section h3,
.footer-section h4 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0;
}

.logo h2,
.logo:hover h2,
.category-title,
.login-header h2,
.subsection-header h3,
.section-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--primary-dark) !important;
}

.section-title,
.subsection-header h3 {
    color: var(--text-dark) !important;
}

.logo span {
    color: var(--text-medium);
    opacity: 1;
    letter-spacing: 0.02em;
}

.navbar,
.navbar.scrolled,
.nav-wrapper .nav-menu {
    background: #fffcf7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid rgba(18, 38, 58, 0.1);
}

.nav-link {
    font-weight: 600;
    border-radius: 4px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link::before {
    display: none;
}

.nav-link::after {
    display: block;
    background: var(--secondary-color);
    height: 2px;
    border-radius: 1px;
}

.nav-link:hover {
    transform: none;
    background: var(--bg-light);
    border-color: transparent;
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    background: var(--bg-light);
    border-color: transparent;
    color: var(--primary-color);
}

.dropdown-menu {
    background: #fffcf7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 4px;
    border: 1px solid rgba(18, 38, 58, 0.12);
    box-shadow: 0 8px 24px rgba(18, 38, 58, 0.08);
}

.hamburger span,
.bar {
    background: var(--primary-color);
}

.btn,
.btn-secondary,
.btn-success,
.read-more-btn,
.read-less-toggle {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 0 rgba(18, 38, 58, 0.18);
    filter: none;
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn::before {
    display: none;
}

.btn:hover,
.read-more-btn:hover,
.read-less-toggle:hover {
    transform: translateY(-3px);
    background: var(--primary-dark) !important;
    box-shadow: 0 10px 22px rgba(18, 38, 58, 0.2) !important;
    filter: none;
}

.hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
}

.hero-buttons .btn {
    width: 100%;
    min-width: 13.5rem;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.btn-secondary {
    background: var(--secondary-color) !important;
}

.btn-secondary:hover {
    background: var(--secondary-dark) !important;
}

.btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: none;
}

.hero .btn-outline:hover {
    background: #fff !important;
    color: var(--primary-dark) !important;
    transform: translateY(-3px);
}

.page-header {
    background: var(--primary-dark) !important;
    min-height: 0;
}

.page-header h1,
.page-header p {
    color: #fff !important;
}

.page-nav-static {
    background: #fffcf7;
    border-bottom: 1px solid rgba(18, 38, 58, 0.1);
    border-top: none;
    box-shadow: none;
}

.page-nav-link {
    border-radius: 4px;
    border: none;
}

.page-nav-link {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.page-nav-link:hover {
    transform: translateY(-2px);
    background: var(--bg-light);
    color: var(--primary-color);
}

.page-nav-link.active {
    box-shadow: 0 4px 12px rgba(18, 38, 58, 0.12);
}

.news-card,
.schedule-card,
.song-card,
.info-card,
.activity-card,
.team-card,
.gallery-item,
.contact-form-wrapper,
.message-content,
.message-card,
.resource-card,
.event-card,
.value-card,
.video-card,
.video-item,
.about-fold {
    border-radius: 6px !important;
    box-shadow: 0 8px 22px rgba(18, 38, 58, 0.08);
    border: 1px solid rgba(18, 38, 58, 0.1) !important;
    border-top: 3px solid var(--secondary-color) !important;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.news-card:hover,
.schedule-card:hover,
.song-card:hover,
.info-card:hover,
.activity-card:hover,
.team-card:hover,
.gallery-item:hover,
.message-card:hover,
.resource-card:hover,
.event-card:hover,
.value-card:hover,
.video-card:hover,
.video-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 36px rgba(18, 38, 58, 0.14) !important;
}

.news-card::before,
.schedule-card::before,
.activity-card::before,
.info-card::before,
.event-card::before,
.resource-card::before,
.value-card::before {
    display: none !important;
}

.info-icon,
.schedule-icon,
.activity-icon,
#culte .activity-icon,
#enfants .activity-icon,
#chorale .activity-icon,
#formation .activity-icon,
#groupes .activity-icon,
#priere .activity-icon,
#milekla .activity-icon,
.schedule-card:nth-child(1) .schedule-icon,
.schedule-card:nth-child(2) .schedule-icon,
.info-card:nth-child(2) .info-icon,
.info-card:nth-child(3) .info-icon,
.info-card:nth-child(4) .info-icon {
    background: var(--primary-color) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #fff;
    transition: transform 0.35s ease, background-color 0.35s ease;
}

.info-card:hover .info-icon,
.schedule-card:hover .schedule-icon,
.activity-card:hover .activity-icon,
.event-card:hover .event-icon,
.resource-card:hover .resource-icon {
    transform: scale(1.08) !important;
    background: var(--primary-dark) !important;
}

.news-image,
.news-image img,
.gallery-image,
.gallery-image img,
.video-thumbnail,
.event-image img {
    border-radius: 0;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img,
.gallery-item:hover .gallery-image,
.gallery-item:hover .gallery-image img,
.video-item:hover .video-thumbnail img,
.event-card:hover .event-image img {
    transform: scale(1.05);
}

.footer {
    background: #12263a;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    border-radius: 4px;
    border-color: rgba(18, 38, 58, 0.16);
}

.activities .container {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.hero-title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    font-weight: 600;
}

.hero-subtitle {
    font-weight: 400;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.about,
.events,
.contact {
    background: #ebe4d6;
}

.schedule,
.activities,
.resources {
    background: #f3f6f8;
}

.news {
    background: #ebe4d6;
}

.section-header {
    margin-bottom: 1.75rem;
}

.section-title,
.subsection-header h3,
.category-title {
    position: relative;
    padding-bottom: 0.15rem;
}

.section-title::after,
.subsection-header h3::after,
.subsection-title::after,
.category-title::after {
    display: block !important;
    content: "";
    width: 48px;
    height: 3px;
    margin: 0.7rem auto 0;
    background: var(--secondary-color);
    border-radius: 1px;
}

.about-fold .subsection-title::after {
    margin: 0.55rem 0 0;
}

.news-link {
    color: var(--primary-color);
}

.news-link:hover {
    color: var(--secondary-dark);
}

.logo-link {
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.03);
}

.nav-item > .nav-link::after,
.nav-item:hover > .nav-link::after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-item:hover > .nav-link::after,
.nav-link.active::after,
.nav-item > .nav-link.active::after {
    width: 55%;
}

.dropdown-link {
    border-radius: 4px;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.dropdown-link::before {
    display: none;
}

.dropdown-link:hover {
    transform: translateX(6px);
    background: var(--bg-light);
    color: var(--primary-color);
}

.footer-section ul li a {
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.social-link {
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);
}

.about-fold-toggle,
.admin-fold-toggle {
    transition: background-color 0.25s ease, color 0.25s ease;
}

.about-fold-toggle:hover {
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        min-width: 0;
        width: min(100%, 280px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .news-card:hover,
    .schedule-card:hover,
    .song-card:hover,
    .info-card:hover,
    .activity-card:hover,
    .team-card:hover,
    .gallery-item:hover,
    .message-card:hover,
    .resource-card:hover,
    .event-card:hover,
    .value-card:hover,
    .video-card:hover,
    .video-item:hover,
    .btn:hover,
    .social-link:hover {
        transform: none !important;
    }
}
