/* =============================================
   Groupe Saint Georges Zalka — Public Site
   Font: Inter via Google Fonts
   Palette: #0054A4 / #001D4A / #EEF9FF
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
    --primary: #0054A4;
    --primary-dark: #003d7a;
    --dark: #001D4A;
    --light-bg: #EEF9FF;
    --border: #D6E8F7;
    --muted: #5A7A99;
    --white: #ffffff;
    --success: #09ba00;
    --danger: #E31B23;
    --warning: #F59E0B;
    --meute: #F59E0B;
    --troupe: #09ba00;
    --clan: #E31B23;

    --nav-h: 72px;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0, 29, 74, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 29, 74, 0.14);
}

/* ── Reset ─────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--dark);
    background: var(--white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

/* ── Navbar ─────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 24px;
}

/* Brand */
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #001D4A, #0054A4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-brand-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.site-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.site-brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.site-brand-sub {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 500;
}

/* Desktop links */
.site-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav-links>li {
    position: relative;
}

.site-nav-links>li>a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    white-space: nowrap;
}

.site-nav-links>li>a:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.site-nav-links>li>a.active {
    color: var(--primary);
    font-weight: 600;
}

/* CTA button */
.site-nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
}

.site-nav-cta:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

/* Dropdown */
.has-dropdown:hover .site-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.site-dropdown {
    position: absolute;
    top: calc(100% + 0);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 6px;
    margin: 0;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.18s ease;
    pointer-events: none;
}

.site-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: 8px;
    transition: all 0.15s;
}

.site-dropdown li a:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.unite-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Mobile toggle */
.site-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.site-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.25s;
}

.site-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.site-mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 0 20px;
}

.site-mobile-menu.open {
    display: block;
}

.site-mobile-menu ul {
    list-style: none;
    padding: 0 16px;
    margin: 0;
}

.site-mobile-menu li a {
    display: block;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    border-radius: 8px;
    transition: all 0.15s;
}

.site-mobile-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.mobile-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    padding: 12px 12px 4px;
}

.mobile-unite-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.mobile-cta {
    background: var(--primary) !important;
    color: #fff !important;
    text-align: center;
    margin-top: 8px;
    font-weight: 600 !important;
}

/* ── Section utilities ──────────────────────── */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-light {
    background: var(--light-bg);
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-title.white {
    color: #fff;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Hero ───────────────────────────────────── */
.hero {
    min-height: calc(100vh - var(--nav-h));
    background: linear-gradient(135deg,
            #001D4A 0%,
            #0054A4 60%,
            #006bc7 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    color: #60a5fa;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: var(--light-bg);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Cards ──────────────────────────────────── */
.pub-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pub-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.pub-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.pub-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 3rem;
}

.pub-card-body {
    padding: 20px;
}

/* ── Unite cards ────────────────────────────── */
.unite-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s;
    border-top: 4px solid transparent;
    cursor: pointer;
}

.unite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.unite-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
}

.unite-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.unite-card-ages {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Buttons ────────────────────────────────── */
.btn-primary-pub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    border: none;
    transition: all 0.15s;
    cursor: pointer;
}

.btn-primary-pub:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-pub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    transition: all 0.15s;
}

.btn-outline-pub:hover {
    background: var(--primary);
    color: #fff !important;
}

/* ── News card ──────────────────────────────── */
.news-badge-pinned {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef9c3;
    color: #854d0e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #fde68a;
    margin-bottom: 8px;
}

/* ── Form ───────────────────────────────────── */
.pub-form-control {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--dark);
    background: var(--white);
    border: 1px solid #c8dff2;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}

.pub-form-control::placeholder {
    color: #9ab8d4;
}

.pub-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 84, 164, 0.12);
    outline: none;
}

.pub-form-control.is-invalid {
    border-color: var(--danger);
}

.pub-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    display: block;
}

.pub-invalid-feedback {
    font-size: 0.76rem;
    color: var(--danger);
    margin-top: 4px;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.footer-brand-sub {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 16px;
}

.footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.footer-contact li i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all 0.15s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff !important;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.footer-cta-btn:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    padding: 20px 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

/* ── Page hero (inner pages) ────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
}

.page-hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

/* ── Gallery grid ───────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 29, 74, 0.8));
    opacity: 0;
    transition: opacity 0.25s;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-caption {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 500;
}

/* ── Calendar ───────────────────────────────── */
#publicCalendar {
    border-radius: var(--radius);
    overflow: hidden;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 991.98px) {
    .section {
        padding: 56px 0;
    }

    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 40px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 48px 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}