/* ── Surgical Help — Custom Styles ─────────────── */

/* Custom font */

@import url("https://use.typekit.net/rct8hya.css");

/* ── Variables ────────────────────────────────────────── */
:root {
    --cf-color-primary: #1E1E1E;
    --cf-color-accent: #707070;
    --cf-color-red: #c0392b;
    --cf-color-cream: #f5f3ee;
    --cf-color-light: #ffffff;
    --cf-color-dark: #1a1917;
    --cf-color-green: #89c355;
    --cf-font-display: 'Raleway', sans-serif;
    --cf-font-body: 'Lato', Georgia, serif;
}

/* ── Base ─────────────────────────────────────────────── */
body, p, a, label, input, button {
    font-family: var(--cf-font-body);
    color: var(--cf-color-dark);
}

body {
    background-color: var(--cf-color-light);
}

body #cf-main img {
    width: 100%!important;
    max-height: 60dvh!important;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    font-size: 0.85rem;
}

.bg-green {
    background-color: var(--cf-color-green)
}

.color-light {
    color: var(--cf-color-light);
}

.green-line {
    color: var(--cf-color-green);
    width: 3em;
}

#menu-header li.active > a {
    display: inline-flex;
    align-items: center;
    position: relative;
}

#menu-header li.active > a::after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    right: 0;
}


.cf-title-display, h1, h2, h3, h4, h5, h6 {
    font-family: var(--cf-font-display);
    font-weight: 700;
    /*font-size: 2.8rem;*/
    line-height: 1.1;
}

.cf-surtitre {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cf-color-accent);
    margin-bottom: .5rem;
}

/* ── Header — base ────────────────────────────────────── */
.cf-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background .3s ease, box-shadow .3s ease;
}

.cf-header .navbar {
    padding: 0.5rem 0;
    align-items: flex-end;
}

.cf-header-spacer {
    height: 160px; /* logo 128 + padding */
}

/* ── Header — transparent (pages avec hero) ──────────── */
.cf-header--transparent {
    background: transparent;
    color: var(--cf-color-dark);
}

.cf-header--transparent .nav-link {
    color: var(--cf-color-dark);
}

.cf-header--transparent .cf-site-name {
    color: #fff;
}

.cf-header--transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Header — scrolled / pages sans hero ─────────────── */
.cf-header--scrolled {
    background: var(--cf-color-cream);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
    color: var(--cf-color-dark);
}

.cf-header--scrolled .nav-link {
    color: var(--cf-color-dark);
}

.cf-header--scrolled .cf-site-name {
    color: var(--cf-color-primary);
}

.cf-header--scrolled .custom-logo {
    width: 92px;
    height: auto;
    transition: width .3s ease;
}

.cf-header--scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a1917' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Transparent + scrolled : scrolled gagne */
.cf-header--transparent.cf-header--scrolled .nav-link {
    color: var(--cf-color-dark);
}
.cf-header--transparent.cf-header--scrolled .cf-site-name {
    color: var(--cf-color-primary);
}
.cf-header--transparent.cf-header--scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a1917' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Logo ─────────────────────────────────────────────── */
.cf-logo, .custom-logo-link {
    align-self: flex-start;
    max-width: 128px ;
    max-height: 128px;
    width: auto;
    height: auto;
}

.custom-logo-link img {
    width: 100%;
    height: auto;
}

.custom-logo {
    transition: width .3s ease;
}

.cf-site-name {
    font-family: var(--cf-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .3s ease;
}

/* ── Nav links ────────────────────────────────────────── */
.cf-header .navbar-collapse {
    align-self: flex-end;
}

.cf-header .navbar-nav {
    align-items: flex-end;
}

.cf-header .navbar-nav .nav-link {
    font-family: var(--cf-font-body);
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    padding-bottom: 0.5rem;
    transition: opacity .2s ease;
    text-decoration: none;
}

.cf-header .navbar-nav .nav-link:hover {
    opacity: 0.6;
}

.cf-header .navbar-nav .nav-link.active {
    opacity: 0.6;
}

/* ── Chevron dropdown ────────────────────────────────── */
.cf-header .dropdown-toggle::after {
    display: none;
}

.cf-header .dropdown-toggle::before {
    content: '\25BE';
    font-size: 10px;
    opacity: 0.5;
    margin-left: 3px;
    float: right;
    line-height: inherit;
    order: 1;
}

/* Hack : le chevron se place après le texte via flexbox */
.cf-header .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ── Dropdown menu ───────────────────────────────────── */
.cf-header .dropdown-menu {
    background: var(--cf-color-cream);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
    display: block;
    pointer-events: none;
}

.cf-header .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cf-header .dropdown-menu .dropdown-item {
    font-family: var(--cf-font-body);
    font-size: 13px;
    padding: 10px 20px;
    color: var(--cf-color-dark);
    transition: background .15s ease, color .15s ease;
}

.cf-header .dropdown-menu .dropdown-item:hover,
.cf-header .dropdown-menu .dropdown-item:focus {
    background: rgba(192,57,43,0.06);
    color: var(--cf-color-red);
}

.cf-header .dropdown-menu .dropdown-item.active {
    background: rgba(192,57,43,0.06);
    color: var(--cf-color-red);
}

/* ── Burger mobile ───────────────────────────────────── */
.cf-header .navbar-toggler {
    border: none;
    padding: 4px;
    box-shadow: none;
}

.cf-header .navbar-toggler:focus {
    box-shadow: none;
}

.cf-header .navbar-toggler-icon {
    width: 22px;
    height: 22px;
}

/* ── Responsive mobile < 992px ───────────────────────── */
@media (max-width: 991.98px) {
    .cf-header .navbar-collapse {
        background: var(--cf-color-cream);
        padding: 1rem;
        margin-top: 8px;
    }

    .cf-header .navbar-nav .nav-link {
        color: var(--cf-color-dark);
        padding: 12px 16px;
    }

    .cf-header .dropdown-menu {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        display: none;
    }

    .cf-header .dropdown-menu.show {
        display: block;
    }

    .cf-header--transparent .navbar-collapse .nav-link {
        color: var(--cf-color-dark);
    }
}

/* ── Hero RevSlider placeholder ───────────────────────── */
.cf-hero-slider-placeholder {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: var(--cf-color-primary);
    display: flex;
    align-items: flex-end;
}

.cf-hero-slider-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 50%);
    pointer-events: none;
}

.cf-hero-slider-inner {
    position: relative;
    z-index: 1;
    max-height: 80vh;
    margin-bottom: 2rem;
}

.cf-hero-slider-title {
    font-family: var(--cf-font-display);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.cf-hero-slider-subtitle {
    font-family: var(--cf-font-body);
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    margin-top: .5rem;
}

@media (max-width: 768px) {
    .cf-hero-slider-title {
        font-size: 2.5rem;
    }
}

.cf-btn-decouvrir, .cf-btn-vin {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cf-color-accent);
    border: 1px solid var(--cf-color-accent);
    padding: 1rem 1.2rem;
    border-radius: 0;
    width: 100%;
}

.cf-btn-decouvrir:hover,
.cf-btn-vin:hover {
    background: var(--cf-color-accent);
    color: #fff;
}

/* ── Front Page ──────────────────────────────────────────────── */



/* ── Map ──────────────────────────────────────────────── */
.cf-map-wrapper {
    width: 100%;
    line-height: 0;
}

/* ── Footer ───────────────────────────────────────────── */
.cf-footer {
    background: var(--cf-color-primary);
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.cf-footer a {
    color: rgba(255,255,255,.7);
}

.cf-footer a:hover {
    color: #fff;
}

.cf-footer * {
    color: var(--cf-color-light);
}

.cf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-widget-title {
    font-family: var(--cf-font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .cf-footer {
        text-align: center;
    }

    .cf-footer .row > div + div {
        margin-top: 2rem;
    }
}
