/*
Theme Name: B18 Versatile
Theme URI: https://b18versatile.com/
Author: B18 Versatile
Author URI: https://b18versatile.com/
Description: Thème WordPress one-page pour B18 Versatile (community manager, vidéaste, web design). Entièrement personnalisable via le Customizer WordPress : logo, images, textes, couleurs, sections (hero, services, portfolio, timeline À propos, équipe, contact). Basé sur Bootstrap 5, compatible page builders.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b18-versatile
Tags: one-page, agency, portfolio, custom-logo, custom-colors, custom-menu, customizer, block-styles, wide-blocks, translation-ready
*/

/* The main visual styles live in assets/css/styles.css (loaded via functions.php).
   This file is required by WordPress and also contains theme-level subtle enhancements. */

/* === Subtle enhancements (modernisation légère) === */
:root {
    --b18-primary: #ffc800;
    --b18-primary-dark: #e6b400;
    --b18-transition: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Smooth transitions on interactive elements */
.btn,
.portfolio-item,
.team-member img,
.nav-link,
.timeline-image {
    transition: transform .35s var(--b18-transition),
                box-shadow .35s var(--b18-transition),
                background-color .25s ease,
                color .25s ease !important;
}

/* Buttons hover lift */
.btn-primary:hover,
.btn-xl:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(255, 200, 0, .55);
}

/* Portfolio item subtle zoom */
.portfolio-item:hover {
    transform: translateY(-4px);
}

.portfolio-item img {
    transition: transform .6s var(--b18-transition);
}
.portfolio-item:hover img {
    transform: scale(1.04);
}

/* Team member hover */
.team-member img {
    will-change: transform;
}
.team-member:hover img {
    transform: scale(1.04);
    box-shadow: 0 14px 40px -16px rgba(0, 0, 0, .35);
}

/* Timeline image subtle zoom */
.timeline > li .timeline-image:hover {
    transform: scale(1.03);
}

/* Nav link underline animation */
#mainNav .navbar-nav > li.nav-item > a.nav-link {
    position: relative;
}
#mainNav .navbar-nav > li.nav-item > a.nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: .6rem;
    height: 2px;
    background: var(--b18-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s var(--b18-transition);
}
#mainNav .navbar-nav > li.nav-item > a.nav-link:hover::after {
    transform: scaleX(1);
}

/* Section heading: small accent bar under titles */
.section-heading {
    position: relative;
    display: inline-block;
}
.section-heading::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--b18-primary);
    border-radius: 2px;
}

/* Focus visible accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--b18-primary);
    outline-offset: 3px;
}

/* WordPress alignment classes */
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter{ display: block; margin-left: auto; margin-right: auto; }
.alignleft  { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }

/* WP gallery / caption defaults */
.wp-caption     { max-width: 100%; }
.wp-caption-text{ font-size: .875rem; color: #6c757d; text-align: center; }
.screen-reader-text{
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

/* Sticky logo sizing */
.navbar-brand img {
    max-height: 1.75rem;
    width: auto;
}
#mainNav.navbar-shrink .navbar-brand img {
    max-height: 1.5rem;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
