/* ============================================
   SECUFER Formation - Header & Footer
   Design moderne bleu / orange
   ============================================ */

:root {
    --sf-blue: #1B3A5F;
    --sf-blue-dark: #0F2744;
    --sf-blue-deeper: #091A30;
    --sf-blue-light: #2563EB;
    --sf-orange: #F7941D;
    --sf-orange-hover: #E8850A;
    --sf-orange-light: #FFF3E0;
    --sf-white: #FFFFFF;
    --sf-gray-50: #F8FAFC;
    --sf-gray-100: #F1F5F9;
    --sf-gray-200: #E2E8F0;
    --sf-gray-400: #94A3B8;
    --sf-gray-600: #475569;
    --sf-text: #1E293B;
    --sf-radius: 8px;
    --sf-radius-lg: 12px;
    --sf-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --sf-shadow-lg: 0 10px 25px -5px rgba(0,0,0,.15);
    --sf-transition: all .3s cubic-bezier(.4,0,.2,1);
    --sf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sf-container: 1200px;
}

.sf-topbar, .sf-header, .sf-footer,
.sf-mobile-menu, .sf-mobile-overlay {
    font-family: var(--sf-font);
    box-sizing: border-box;
    line-height: 1.6;
}
.sf-topbar *, .sf-header *, .sf-footer *,
.sf-mobile-menu * {
    box-sizing: border-box;
}
.sf-container {
    max-width: var(--sf-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TOP BAR ========== */
.sf-topbar {
    background: var(--sf-blue-dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sf-topbar .sf-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sf-topbar-left, .sf-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.sf-topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: var(--sf-transition);
}
a.sf-topbar-item:hover { color: var(--sf-orange); }
.sf-topbar-item i {
    font-size: 12px;
    color: var(--sf-orange);
}
.sf-qualiopi-badge {
    background: rgba(247,148,29,.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

/* ========== MAIN HEADER ========== */
.sf-header {
    background: var(--sf-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sf-shadow);
    transition: var(--sf-transition);
}
.sf-header.sf-scrolled { box-shadow: var(--sf-shadow-lg); }
.sf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}
.sf-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.sf-logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Navigation */
.sf-nav { flex: 1; display: flex; justify-content: center; }
.sf-nav-list, .sf-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sf-nav-list > li, .sf-nav .menu > li { position: relative; }
.sf-nav-list > li > a, .sf-nav .menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: var(--sf-blue);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--sf-radius);
    transition: var(--sf-transition);
    white-space: nowrap;
}
.sf-nav-list > li > a i { font-size: 10px; transition: var(--sf-transition); }
.sf-nav-list > li > a:hover,
.sf-nav-list > li.current-menu-item > a,
.sf-nav .menu > li > a:hover,
.sf-nav .menu > li.current-menu-item > a {
    color: var(--sf-orange);
    background: var(--sf-orange-light);
}
.sf-nav-list > li:hover > a i { transform: rotate(180deg); }

/* Submenu */
.sf-sub-menu, .sf-nav-list .sub-menu, .sf-nav .menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--sf-white);
    border-radius: var(--sf-radius-lg);
    box-shadow: var(--sf-shadow-lg);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--sf-transition);
    list-style: none;
    margin: 0;
    z-index: 100;
    border: 1px solid var(--sf-gray-200);
}
.sf-has-sub:hover .sf-sub-menu,
.sf-nav-list > li:hover > .sub-menu,
.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.sf-sub-menu li a, .sf-nav-list .sub-menu li a, .sf-nav .menu .sub-menu li a {
    display: block;
    padding: 10px 14px;
    color: var(--sf-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--sf-radius);
    transition: var(--sf-transition);
}
.sf-sub-menu li a:hover, .sf-nav-list .sub-menu li a:hover, .sf-nav .menu .sub-menu li a:hover {
    background: var(--sf-orange-light);
    color: var(--sf-orange);
}

/* CTA Buttons */
.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--sf-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--sf-transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    font-family: var(--sf-font);
}
.sf-btn i { font-size: 14px; }
.sf-btn-orange {
    background: var(--sf-orange);
    color: var(--sf-white);
    border-color: var(--sf-orange);
}
.sf-btn-orange:hover {
    background: var(--sf-orange-hover);
    border-color: var(--sf-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247,148,29,.35);
    color: var(--sf-white);
}
.sf-btn-blue {
    background: var(--sf-blue);
    color: var(--sf-white);
    border-color: var(--sf-blue);
}
.sf-btn-blue:hover {
    background: var(--sf-blue-dark);
    border-color: var(--sf-blue-dark);
    color: var(--sf-white);
}
.sf-btn-white-outline {
    background: transparent;
    color: var(--sf-white);
    border-color: rgba(255,255,255,.4);
}
.sf-btn-white-outline:hover {
    background: var(--sf-white);
    color: var(--sf-blue);
    border-color: var(--sf-white);
    transform: translateY(-2px);
}
.sf-btn-full { width: 100%; justify-content: center; }

/* Hamburger */
.sf-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}
.sf-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}
.sf-hamburger span {
    display: block;
    height: 3px;
    background: var(--sf-blue);
    border-radius: 3px;
    transition: var(--sf-transition);
}
.sf-mobile-toggle[aria-expanded="true"] .sf-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.sf-mobile-toggle[aria-expanded="true"] .sf-hamburger span:nth-child(2) { opacity: 0; }
.sf-mobile-toggle[aria-expanded="true"] .sf-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========== MOBILE MENU ========== */
.sf-mobile-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,39,68,.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--sf-transition);
}
.sf-mobile-overlay.sf-active { opacity: 1; visibility: visible; }
.sf-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--sf-white);
    z-index: 9999;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -4px 0 25px rgba(0,0,0,.15);
}
.sf-mobile-menu.sf-active { right: 0; }
.sf-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sf-gray-200);
}
.sf-mobile-menu-header .sf-logo-img { height: 36px; }
.sf-mobile-close {
    background: var(--sf-gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sf-blue);
    font-size: 18px;
    transition: var(--sf-transition);
}
.sf-mobile-close:hover {
    background: var(--sf-orange-light);
    color: var(--sf-orange);
}
.sf-mobile-nav { flex: 1; padding: 12px 0; }
.sf-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sf-mobile-nav-list li a {
    display: block;
    padding: 14px 24px;
    color: var(--sf-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: var(--sf-transition);
}
.sf-mobile-nav-list li a:hover,
.sf-mobile-nav-list li.current-menu-item a {
    background: var(--sf-orange-light);
    color: var(--sf-orange);
    border-left-color: var(--sf-orange);
}
.sf-mobile-cta {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--sf-gray-200);
}

/* ========== FOOTER CTA BAND ========== */
.sf-footer-cta {
    background: linear-gradient(135deg, var(--sf-blue) 0%, var(--sf-blue-dark) 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.sf-footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(247,148,29,.12) 0%, transparent 70%);
    border-radius: 50%;
}
.sf-footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.sf-footer-cta-text h3 {
    color: var(--sf-white);
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    font-family: var(--sf-font);
}
.sf-footer-cta-text p {
    color: rgba(255,255,255,.75);
    font-size: 15px;
    margin: 0;
}
.sf-footer-cta-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ========== FOOTER MAIN ========== */
.sf-footer-main {
    background: var(--sf-blue-deeper);
    padding: 56px 0 40px;
}
.sf-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
}
.sf-footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
.sf-footer-logo-wrap { margin-bottom: 4px; }
.sf-footer-desc {
    color: rgba(255,255,255,.6);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px;
}
.sf-certif-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(247,148,29,.12);
    color: var(--sf-orange);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.sf-footer-title {
    color: var(--sf-white);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sf-orange);
    display: inline-block;
    font-family: var(--sf-font);
}
.sf-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sf-footer-links li { margin-bottom: 10px; }
.sf-footer-links li a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--sf-transition);
}
.sf-footer-links li a:hover {
    color: var(--sf-orange);
    transform: translateX(4px);
}
.sf-footer-links li a i {
    font-size: 13px;
    width: 18px;
    color: var(--sf-orange);
    opacity: .7;
}

/* Footer contact */
.sf-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sf-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
}
.sf-footer-contact li i {
    color: var(--sf-orange);
    font-size: 15px;
    margin-top: 2px;
    width: 18px;
    flex-shrink: 0;
}
.sf-footer-contact li a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: var(--sf-transition);
}
.sf-footer-contact li a:hover { color: var(--sf-orange); }

/* Social */
.sf-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.sf-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: var(--sf-transition);
    font-size: 16px;
}
.sf-footer-social a:hover {
    background: var(--sf-orange);
    color: var(--sf-white);
    transform: translateY(-3px);
}

/* ========== FOOTER BOTTOM ========== */
.sf-footer-bottom {
    background: var(--sf-blue-dark);
    padding: 18px 0;
}
.sf-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sf-footer-bottom p {
    color: rgba(255,255,255,.45);
    font-size: 13px;
    margin: 0;
}
.sf-footer-legal { display: flex; gap: 20px; }
.sf-footer-legal a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: 13px;
    transition: var(--sf-transition);
}
.sf-footer-legal a:hover { color: var(--sf-orange); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .sf-nav { display: none; }
    .sf-header-cta { display: none; }
    .sf-mobile-toggle { display: flex; }
    .sf-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .sf-footer-cta-inner { flex-direction: column; text-align: center; }
    .sf-footer-cta-buttons { justify-content: center; }
}
@media (max-width: 768px) {
    .sf-topbar-right { display: none; }
    .sf-topbar-left { gap: 12px; }
    .sf-topbar { padding: 6px 0; }
    .sf-topbar-item span { font-size: 12px; }
    .sf-header-inner { min-height: 60px; }
    .sf-logo-img { height: 38px; }
    .sf-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .sf-footer-main { padding: 40px 0 30px; }
    .sf-footer-cta { padding: 36px 0; }
    .sf-footer-cta-text h3 { font-size: 22px; }
    .sf-footer-cta-buttons { flex-direction: column; width: 100%; }
    .sf-footer-cta-buttons .sf-btn { width: 100%; justify-content: center; }
    .sf-footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
    .sf-footer-legal { gap: 14px; }
}
@media (max-width: 480px) {
    .sf-topbar-left { flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* ========== NEVE OVERRIDES ========== */
.hfg_header,
footer.site-footer,
.site-footer,
.nv-navbar-toggle {
    display: none !important;
}
