/*
Theme Name: CSFV Theme
Theme URI: https://csfv.ch
Author: CSFV
Description: Thème WordPress sur mesure pour le Centre de Soins et de Formation Veillon. Header et footer intégrés, contenu géré par Elementor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: csfv
*/

/* Reset & Variables */
:root {
    --csfv-primary: #004b66;
    --csfv-primary-light: #006b8f;
    --csfv-accent: #e8f4f8;
    --csfv-gold: #c9962a;
    --csfv-text: #0f172a;
    --csfv-muted: #64748b;
    --csfv-light-bg: #f5f8f8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--csfv-text);
    background: var(--csfv-light-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* Typography */
.csfv-display {
    font-family: 'DM Serif Display', serif;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* HEADER */

.csfv-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

.csfv-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.csfv-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.csfv-logo img {
    width: 45px;
    height: auto;
}

.csfv-logo__text {
    margin-top: 1px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--csfv-primary);
}

footer .csfv-logo__text {
    color: #fff;
}

footer .csfv-logo {
    margin-bottom: 10px;
}

/* Desktop Nav */
.csfv-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.csfv-nav li{
    list-style: none;
}

.csfv-header_inner_group{
    display: flex;
    column-gap: 60px;
}

.csfv-nav a,
.csfv-nav .csfv-dropdown__toggle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--csfv-text);
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 15px 0;
}

.csfv-nav a:hover,
.csfv-nav .csfv-dropdown__toggle:hover,
.csfv-nav .current-menu-item>a,
.csfv-nav .current-menu-ancestor>a,
.csfv-nav .current-menu-ancestor>.csfv-dropdown__toggle,
.csfv-nav .current-anchor-item>a {
    color: var(--csfv-primary);
}

/* Dropdown */
.csfv-dropdown {
    position: relative;
}

.csfv-dropdown__toggle .csfv-icon-chevron {
    font-size: 18px;
    transition: transform 0.2s;
}

.csfv-dropdown .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(0, 75, 102, 0.12);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.csfv-dropdown:hover .sub-menu,
.csfv-dropdown:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.csfv-dropdown .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.csfv-dropdown .sub-menu a:hover {
    background: #f8fafc;
}

/* CTAs header */
.csfv-header__ctas {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.csfv-btn{
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    gap: 6px;
    padding: 0 20px;
}

.csfv-btn-outline {
    color: var(--csfv-primary);
    border: 1px solid rgba(0, 75, 102, 0.3);
}

.csfv-btn-outline:hover {
    border-color: var(--csfv-primary);
    background: var(--csfv-accent);
}

.csfv-btn-primary {
    color: #fff;
    background: var(--csfv-primary);
    border: none;
}

.csfv-btn-primary:hover {
    background: var(--csfv-primary-light);
}

/* Mobile Toggle */
.csfv-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.csfv-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--csfv-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.csfv-burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.csfv-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.csfv-burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.csfv-mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    padding: 1.5rem;
}

.csfv-mobile-nav.is-open {
    display: block;
}

.csfv-mobile-nav .menu a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    color: var(--csfv-text);
}

.csfv-mobile-nav a:hover {
    color: var(--csfv-primary);
}

.csfv-mobile-nav .sub-menu {
    padding-left: 1rem;
}

.csfv-mobile-nav .sub-menu a {
    font-size: 0.875rem;
    color: var(--csfv-muted);
}

.csfv-mobile-nav__ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.csfv-mobile-nav__ctas .csfv-btn-primary,
.csfv-mobile-nav__ctas .csfv-btn-outline {
    justify-content: center;
    width: 100%;
    padding: 0.875rem;
}

/* Material Icons (inline) */
.csfv-icon {
    margin-top: 3px;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* FOOTER */
.csfv-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 0;
}

.csfv-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.csfv-footer__inner--4col {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.csfv-footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.csfv-footer__links a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.csfv-footer__links a:hover {
    color: #cbd5e1;
}

.csfv-footer__brand p {
    font-size: 0.875rem;
    color: #94a3b8;
    max-width: 320px;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.csfv-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.csfv-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
}

.csfv-footer h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.csfv-footer__address,
.csfv-footer__contact {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #94a3b8;
}

.csfv-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #7ec8e3;
    margin-top: 1rem;
    transition: text-decoration 0.2s;
}

.csfv-footer__contact-link:hover {
    text-decoration: underline;
}

.csfv-footer__bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding: 24px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.csfv-footer__bottom a {
    color: #64748b;
    transition: color 0.2s;
}

.csfv-footer__bottom a:hover {
    color: #cbd5e1;
}

.csfv-main {
    padding: 0;
    margin: 0;
    width: 100%;
}

.elementor-page .csfv-main,
.elementor-page .site-main {
    padding: 0;
    margin: 0;
}

.elementor {
    width: 100%;
    max-width: 100%;
}

.elementor-section.elementor-section-stretched {
    max-width: 100%;
}

@media (min-width: 1024px) {
    .csfv-nav {
        display: flex;
    }

    .csfv-header__ctas {
        display: flex;
    }

    .csfv-burger {
        display: none;
    }
}

@media (max-width: 768px) {
    .csfv-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.admin-bar .csfv-header {
    top: 32px;
}

.admin-bar .csfv-mobile-nav {
    top: 112px;
}

/* 80px header + 32px admin bar */

@media (max-width: 782px) {
    .admin-bar .csfv-header {
        top: 46px;
    }
    .admin-bar .csfv-mobile-nav {
        top: 126px;
    }
}

.csfv-bot-right {
    width: fit-content !important;
    bottom: 0;
    top: auto !important;
}

.csfv-bot-right>div {
    margin: 0 !important;
}

.csfv-bg-blur {
    backdrop-filter: blur(12px);
}