/* ============================================
   Congrès Hautbois 2026 AFH — Feuille de style
   Bootstrap 5.3 + custom
   ============================================ */

:root {
    --primary:       #1b3a6b;
    --primary-dark:  #0f2347;
    --primary-light: #2a5099;
    --accent:        #c9a55a;
    --accent-light:  #e8c97a;
    --accent-dark:   #a8843f;
    --dark:          #111827;
    --text:          #2d3748;
    --text-muted:    #6b7280;
    --white-card:    rgba(255, 255, 255, 0.97);
    --nav-bg:        rgba(11, 25, 54, 0.88);
    --overlay:       rgba(11, 25, 54, 0.78);
    --transition:    all 0.3s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-dark);
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }

/* ============================================
   NAVBAR
   ============================================ */
#mainNav {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 165, 90, 0.2);
    padding: 0.5rem 0;
    transition: background 0.4s ease, box-shadow 0.35s ease;
}

#mainNav.scrolled {
    background: rgba(11, 25, 54, 0.98);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-decoration: none;
}

.brand-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
}

.brand-subtitle {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.nav-link {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.55rem 0.75rem !important;
    position: relative;
    transition: color 0.25s ease !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.75rem;
    right: 0.75rem;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: center;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* ============================================
   HERO (page d'accueil)
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 7rem 1rem 5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.35rem 1.2rem;
    border-radius: 2px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    margin: 1rem 0 0.5rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 1.8rem;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-meta i { color: var(--accent); }
.hero-sep { color: var(--accent); opacity: 0.7; }

.hero-venue {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.6rem;
    animation: bounce 2.2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   PAGE BANNER (pages intérieures)
   ============================================ */
.page-banner {
    min-height: 230px;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-top: 76px;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11,25,54,.65) 0%, rgba(11,25,54,.92) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 0 1.8rem;
    color: #fff;
    width: 100%;
}

.page-banner h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.4rem;
}

.page-banner .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.page-banner .breadcrumb-item.active {
    color: var(--accent);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 3rem 0 5rem;
    flex: 1;
}

.content-card {
    background: var(--white-card);
    border-radius: 6px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
}

/* Styles appliqués au contenu WYSIWYG */
.content-card h2 {
    font-size: 1.85rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
}

.content-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.content-card h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-top: 1.5rem;
}

.content-card p { margin-bottom: 1rem; }

.content-card img {
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    margin: 0.75rem 0;
}

.content-card ul,
.content-card ol {
    padding-left: 1.6rem;
    margin-bottom: 1rem;
}

.content-card li { margin-bottom: 0.3rem; }

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.content-card table th {
    background: var(--primary);
    color: #fff;
    padding: 0.7rem 1rem;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-card table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.content-card table tr:nth-child(even) td { background: #f9fafb; }
.content-card table tr:hover td { background: #f0f4ff; }

.content-card blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1.2rem;
    margin: 1.5rem 0;
    background: #fdf8f0;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--text-muted);
}

.content-card hr {
    border-color: #e5e7eb;
    margin: 2rem 0;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(168, 132, 63, 0.45);
    transform: translateY(-1px);
}

/* ============================================
   FORMULAIRE CONTACT
   ============================================ */
.contact-form .form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(42, 80, 153, 0.15);
    outline: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: rgba(11, 25, 54, 0.96);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.6);
    padding: 1.8rem 0 1.5rem;
    border-top: 1px solid rgba(201, 165, 90, 0.18);
    font-size: 0.83rem;
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.footer-hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0 0.8rem;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-light);
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-accent  { color: var(--accent) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }

.divider-accent {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 0.8rem 0 1.2rem;
    border-radius: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    body { background-attachment: scroll; } /* fix iOS */

    .navbar-collapse {
        background: rgba(11, 25, 54, 0.98);
        padding: 0.75rem 1rem 1rem;
        border-top: 1px solid rgba(201, 165, 90, 0.18);
        border-radius: 0 0 6px 6px;
        margin-top: 0.5rem;
    }

    .nav-link::after { display: none; }
    .nav-link { padding: 0.55rem 0.5rem !important; }
}

@media (max-width: 767px) {
    .content-card { padding: 1.5rem 1.25rem; }

    .hero-meta {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.75rem 1.2rem;
    }

    .hero-sep { display: none; }
}

@media (max-width: 575px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
}
