/*
Theme Name:   NXT Chiropractor Child
Theme URI:    https://novexthemes.com/product/nxtchiropractor-free-chiropractor-wordpress-theme/
Description:  Thème enfant de NXT Chiropractor. Permet d'ajouter des personnalisations sans modifier le thème parent.
Author:       ICT
Template:     nxt-chiropractor
Version:      1.0.0
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  nxt-chiropractor-child
*/

/* ===== Personnalisations ===== */

:root {
    --color-brand: #fab519 !important;
	--color-brand-hover: #fab519b5 !important;
	--color-footer-copyright : #183763 !important;
}

p.site-title {
    display: none;
}

.container {
    width: 90% !important;
}

.custom-logo {
    max-height: 70px;
    margin: 10px 0px 10px 0px;
}

.footer-side {
    background-color: #183763;
}

.main-navigation a{
	font-size:1rem !important;
	letter-spacing: 0.03em !important;
}

.footer-copyright {
    background-color: var(--color-footer-copyright);
}

header.entry-header {
    display: none;
}

.content-wrapper {
    width: 90% !important;
	padding: 0px;
}

.single .site-main, .page .site-main {
    padding:0px;
}

.elementor-element > .elementor-container {
    max-width: 90% !important;
    margin: auto !important;
    justify-content: center;
    justify-items: center;
}



.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    margin-top: var(--space-3);
}

/* ===== Bouton RENDEZ-VOUS (remplace .header-search) ===== */

/* Make the header sticky */
#masthead {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    /* Note: If the header background is not set by the parent theme, you may need to add a background-color here */
}

.header-rdv-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(125deg, var(--color-brand), var(--color-brand-3));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-rdv-btn:hover,
.header-rdv-btn:focus {
    background: linear-gradient(125deg, var(--color-brand-hover), var(--color-brand-3));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--color-brand) 35%, transparent);
}

.header-rdv-btn:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

.header-rdv-icon {
    display: inline-flex;
}

.header-rdv-icon svg {
    width: 1.15em;
    height: 1.15em;
    fill: currentColor;
}

.container{
	padding: 0;
}

.underline:after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 3px;
    border-radius: 5px;
    background-color: #FAB519;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-brand);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-brand-hover);
    transform: translateY(-3px);
}

.scroll-top:focus {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

.scroll-top-icon {
    width: 25px;
    height: 20px;
}

span.scroll-top-icon svg
{
    width: 20px !important;
}

/* ===== Sidebar sociale fixe (remplace .header-utility) ===== */

.sticky-social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background-color: var(--color-brand);
    border-radius: 0 8px 8px 0;
    padding: 8px 6px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15);
}

.sticky-social-sidebar .utility-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.sticky-social-sidebar .utility-social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.sticky-social-sidebar .utility-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .sticky-social-sidebar {
        top: auto;
        bottom: 80px;
        transform: none;
    }
}

/* Fix: le bouton submenu-toggle reste fixe sur la ligne du lien en mobile */
@media (max-width: 768px) {
    .main-navigation.toggled .submenu-toggle {
        top: 0.75rem;
        transform: none;
    }
}