/* =============================================================
   VARIABLES CSS — Palette validée à l'Étape 0
   ============================================================= */
:root {
    --jf-color-primary: #2C3E50;
    --jf-color-secondary: #F4EDE4;
    --jf-color-accent: #D9633D;
    --jf-color-accent-hover: #E07856;
    --jf-color-sage: #7C9885;
    --jf-color-text: #2E2E2E;
    --jf-color-text-light: #FAF8F5;
    --jf-color-border: #E5DED3;

    --jf-font-heading: 'Fraunces', Georgia, serif;
    --jf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --jf-container-width: 1200px;
    --jf-radius: 12px;
    --jf-transition-speed: 0.3s;
}

/* =============================================================
   RESET LÉGER
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Respect de la préférence utilisateur de réduction des animations */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--jf-font-body);
    color: var(--jf-color-text);
    background-color: #FFFFFF;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--jf-font-heading);
    color: var(--jf-color-primary);
    line-height: 1.25;
    margin-top: 0;
}

a {
    color: var(--jf-color-accent);
    text-decoration: none;
    transition: color var(--jf-transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--jf-color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================================
   ACCESSIBILITÉ — lien d'évitement
   ============================================================= */
.jf-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--jf-color-primary);
    color: var(--jf-color-text-light);
    padding: 0.75rem 1rem;
    z-index: 9999;
}

.jf-skip-link:focus {
    left: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    overflow: hidden;
}

/* =============================================================
   LAYOUT GÉNÉRAL
   ============================================================= */
.jf-container {
    max-width: var(--jf-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* =============================================================
   HEADER
   ============================================================= */
.jf-topbar {
    background-color: var(--jf-color-primary);
    color: var(--jf-color-text-light);
    font-size: 0.85rem;
}

.jf-topbar-inner {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    padding: 0.5rem 1.5rem;
    flex-wrap: wrap;
}

.jf-topbar-highlight {
    color: var(--jf-color-sage);
    font-weight: 600;
}

.jf-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.jf-logo {
    font-family: var(--jf-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jf-color-primary);
}

.jf-menu {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.jf-menu a {
    color: var(--jf-color-text);
    font-weight: 500;
}

.jf-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--jf-radius);
    font-weight: 600;
    transition: transform var(--jf-transition-speed) ease, box-shadow var(--jf-transition-speed) ease;
}

.jf-btn-accent {
    background-color: var(--jf-color-accent);
    color: var(--jf-color-text-light);
}

.jf-btn-accent:hover,
.jf-btn-accent:focus {
    background-color: var(--jf-color-accent-hover);
    color: var(--jf-color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 99, 61, 0.3);
}

/* =============================================================
   FOOTER
   ============================================================= */
.jf-site-footer {
    background-color: var(--jf-color-primary);
    color: var(--jf-color-text-light);
    margin-top: 4rem;
}

.jf-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 1.5rem;
}

.jf-footer-widget-title {
    color: var(--jf-color-text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.jf-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.jf-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.jf-footer-menu {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jf-footer-menu a {
    color: var(--jf-color-text-light);
}

/* =============================================================
   RESPONSIVE — Footer en colonne sur mobile
   ============================================================= */
@media (max-width: 768px) {
    .jf-footer-columns {
        grid-template-columns: 1fr;
    }

    .jf-topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .jf-header-main {
        justify-content: center;
        text-align: center;
    }
}

/* =============================================================
   FALLBACK CONTENT (index.php)
   ============================================================= */
.jf-fallback-content {
    padding: 3rem 1.5rem;
}