/* =========================================================
   Virginia Capitals — styles du thème
   Les couleurs, polices et tailles des blocs se règlent dans Elementor.
   Ce fichier gère l'en-tête, les effets et les éléments décoratifs.
   ========================================================= */

:root {
	--vc-accent: var(--e-global-color-accent, #fa510f);
	--vc-navy: var(--e-global-color-secondary, #101824);
	--vc-grey: var(--e-global-color-vc_grey, #eef2f3);
	--vc-muted: var(--e-global-color-vc_muted, #5b6573);
	--vc-line: rgba(16, 24, 36, .12);
	--vc-ease: cubic-bezier(.2, .7, .2, 1);
	--vc-gutter: clamp(16px, 3vw, 30px);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "DM Sans", system-ui, sans-serif; font-weight: 300; color: var(--vc-navy); overflow-x: hidden; }
.vc-container { width: 100%; max-width: 1410px; margin: 0 auto; padding: 0 var(--vc-gutter); }

/* ---------- Logo ---------- */
.vc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--vc-navy); }
.vc-logo--light { color: #fff; }
.vc-logo__mark { width: 38px; height: 38px; color: var(--vc-accent); flex: none; }
.vc-logo__text { font-size: 24px; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.vc-logo__text b { font-weight: 700; }
.vc-logo-img { max-height: 50px; width: auto; }

/* ---------- Barre supérieure ---------- */
.vc-topbar { background: #fff; font-size: 14px; border-bottom: 1px solid var(--vc-line); }
.vc-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.vc-topbar__info { display: flex; gap: 40px; }
.vc-topbar__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--vc-navy); }
.vc-topbar__item svg { width: 15px; height: 15px; color: var(--vc-accent); }
.vc-topbar__social { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 400; }
.vc-topbar__social a { color: var(--vc-navy); }
.vc-topbar__social a::before { content: "/ "; color: var(--vc-accent); }
.vc-topbar a:hover { color: var(--vc-accent); }

/* ---------- En-tête ---------- */
.vc-header { position: sticky; top: 0; z-index: 99; background: var(--vc-grey); transition: box-shadow .3s, background .3s; }
.admin-bar .vc-header { top: 32px; }
.vc-header.is-scrolled { background: rgba(238, 242, 243, .94); backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(16, 24, 36, .08); }
.vc-header__inner { display: flex; align-items: center; gap: 36px; height: 100px; transition: height .3s; }
.vc-header.is-scrolled .vc-header__inner { height: 76px; }
.vc-header__logo { display: inline-flex; }
.vc-header__sep { width: 1px; height: 32px; background: var(--vc-line); }

.vc-nav { margin-left: auto; }
.vc-menu { display: flex; gap: 38px; margin: 0; padding: 0; list-style: none; font-size: 17px; font-weight: 400; }
.vc-menu li { position: relative; }
.vc-menu a { position: relative; display: block; padding: 6px 0; color: var(--vc-navy); }
.vc-menu > li > a::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
	background: var(--vc-accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--vc-ease);
}
.vc-menu a:hover, .vc-menu a.is-active, .vc-menu .current-menu-item > a:not([href*="#"]) { color: var(--vc-accent); }
.vc-menu > li > a:hover::after, .vc-menu > li > a.is-active::after { transform: scaleX(1); transform-origin: left; }
/* sous-menus */
.vc-menu .sub-menu {
	position: absolute; top: 100%; left: -20px; min-width: 220px; margin: 0; padding: 12px 20px; list-style: none;
	background: #fff; box-shadow: 0 20px 40px rgba(16, 24, 36, .1);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--vc-ease);
}
.vc-menu li:hover > .sub-menu, .vc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.vc-menu .sub-menu a { padding: 8px 0; font-size: 15px; }

.vc-header__phone { display: inline-flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 400; margin-left: 30px; color: var(--vc-navy); }
.vc-header__phone-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--vc-accent); color: #fff; display: grid; place-items: center; transition: background .3s; }
.vc-header__phone-icon svg { width: 19px; height: 19px; }
.vc-header__phone:hover { color: var(--vc-accent); }
.vc-header__phone:hover .vc-header__phone-icon { background: var(--vc-navy); }

.vc-burger { display: none; width: 44px; height: 44px; background: none !important; border: 0; cursor: pointer; padding: 10px; margin-left: 4px; }
.vc-burger span { display: block; height: 2px; background: var(--vc-navy); margin: 6px 0; transition: transform .3s, opacity .3s; }
.vc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.vc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.vc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Étiquette (« eyebrow ») ---------- */
.vc-eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: 14px; }
.vc-eyebrow .elementor-heading-title::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .6; }
.vc-eyebrow--light .elementor-heading-title::after { background: var(--vc-accent); opacity: 1; }
.vc-eyebrow--center .elementor-heading-title::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Boutons ---------- */
.elementor-button .elementor-button-icon svg { width: .8em; height: .8em; transform: rotate(-45deg); transition: transform .3s var(--vc-ease); }
.elementor-button:hover .elementor-button-icon svg { transform: rotate(-45deg) translateX(3px); }
.vc-link .elementor-button-icon { color: var(--vc-accent); fill: var(--vc-accent); }
.vc-link .elementor-button-icon svg { fill: var(--vc-accent); }
.vc-arrow-icon svg { transform: rotate(-45deg); }

.elementor-button { white-space: nowrap; }
.vc-nowrap .elementor-heading-title { white-space: nowrap; }

/* ---------- Héros ---------- */
.vc-hero { position: relative; overflow: hidden; }
.vc-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 110px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 110px);
}
.vc-lead { opacity: .85; max-width: 540px; }

.vc-hero-visual { position: relative; min-height: 480px; color: #fff; }
.vc-hero-star { position: absolute; width: 110px; height: 110px; color: var(--vc-accent); top: -20px; left: -10px; animation: vc-spin 18s linear infinite; z-index: 2; }
@keyframes vc-spin { to { transform: rotate(360deg); } }
.vc-dash {
	position: absolute; right: 0; top: 50px; width: min(470px, 92%);
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px);
	padding: 30px 30px 24px;
}
.vc-dash__head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .7); }
.vc-badge { background: var(--vc-accent); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 99px; }
.vc-dash__value { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.03em; margin: 10px 0 24px; font-weight: 400; }
.vc-dash__chart { display: block; width: 100%; height: 170px; }
.vc-dash__legend { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: 10px; }
.vc-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: vc-draw 2.2s .4s var(--vc-ease) forwards; }
@keyframes vc-draw { to { stroke-dashoffset: 0; } }
.vc-mini { position: absolute; background: #fff; color: var(--vc-navy); padding: 20px 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: vc-float 6s ease-in-out infinite; }
.vc-mini span { display: block; font-size: 13px; color: var(--vc-muted); }
.vc-mini strong { display: block; font-size: 30px; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.vc-mini--a { left: 0; bottom: 30px; }
.vc-mini--b { right: 30px; bottom: -10px; background: var(--vc-accent); color: #fff; animation-delay: -3s; }
.vc-mini--b span { color: rgba(255, 255, 255, .85); }
@keyframes vc-float { 50% { transform: translateY(-12px); } }

/* ---------- Tuiles sous le héros ---------- */
.elementor .vc-tiles { position: relative; z-index: 2; margin-top: -120px; background: linear-gradient(transparent 50%, var(--vc-grey) 50%); }
.vc-tiles .elementor-icon-box-title { margin-top: 0; }

/* ---------- À propos ---------- */
.vc-about-media { position: relative; }
.elementor .vc-about-badge { --position: absolute; position: absolute; right: -24px; bottom: -34px; z-index: 2; }
.vc-about-badge .elementor-counter { flex-direction: row-reverse !important; justify-content: flex-end; align-items: center; gap: 16px; }
.vc-about-badge .elementor-counter-number-wrapper { font-size: 58px !important; }
.vc-about-badge .elementor-counter-title { font-size: 15px !important; line-height: 1.35 !important; max-width: 130px; }

.vc-lift { transition: transform .4s var(--vc-ease), box-shadow .4s; }
.vc-lift:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(16, 24, 36, .08); }

/* ---------- Services ---------- */
.vc-zoom { overflow: hidden; }
.vc-zoom img { display: block; width: 100%; aspect-ratio: 500 / 355; object-fit: cover; transition: transform .8s var(--vc-ease); }
.vc-card:hover .vc-zoom img { transform: scale(1.06); }
.elementor .vc-grow { flex: 1 1 0 !important; min-width: 0; }

/* ---------- Résultats ---------- */
.vc-results { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 22px) !important; }
.vc-counter .elementor-counter { align-items: flex-start; }
.vc-counter .elementor-counter-number-wrapper { margin-bottom: 8px; }
.vc-dim { opacity: .7; }
.vc-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; height: 220px; border-bottom: 1px solid rgba(255, 255, 255, .3); margin-bottom: 30px; }
.vc-bar { flex: 1; position: relative; height: var(--h); background: var(--vc-accent); transform-origin: bottom; transition: transform 1.2s var(--vc-ease); }
.vc-bar span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.vc-js .vc-bars:not(.is-visible) .vc-bar { transform: scaleY(0); }
.vc-bar:nth-child(2) { transition-delay: .1s; } .vc-bar:nth-child(3) { transition-delay: .2s; }
.vc-bar:nth-child(4) { transition-delay: .3s; } .vc-bar:nth-child(5) { transition-delay: .4s; }
.vc-bar:nth-child(6) { transition-delay: .5s; }

/* ---------- Agenda ---------- */
.vc-dots { background-image: radial-gradient(rgba(16, 24, 36, .13) 1.4px, transparent 1.6px) !important; background-size: 14px 14px !important; }
.vc-event { transition: transform .35s var(--vc-ease), box-shadow .35s; }
.vc-event:hover { transform: translateX(6px); box-shadow: -6px 0 0 var(--vc-accent); }

/* ---------- Guide ---------- */
.vc-old-price { text-decoration: line-through; color: var(--vc-muted); font-size: 22px; margin-right: 14px; }
.vc-new-price { color: var(--vc-accent); font-size: 40px; font-weight: 400; letter-spacing: -.03em; }

/* ---------- Bandeau défilant ---------- */
.vc-marquee { overflow: hidden; padding: 26px 0; color: #fff; }
.vc-marquee__track { display: flex; width: max-content; animation: vc-marquee 28s linear infinite; }
.vc-marquee span { font-size: clamp(36px, 5vw, 70px); letter-spacing: -.035em; line-height: 1; padding: 0 34px; white-space: nowrap; font-weight: 300; }
.vc-marquee i { font-style: normal; font-size: clamp(22px, 3vw, 40px); align-self: center; color: var(--vc-navy); }
@keyframes vc-marquee { to { transform: translateX(-50%); } }

/* ---------- Formulaire ---------- */
.vc-contact-form { display: grid; gap: 22px; margin-top: 10px; }
.vc-field { display: block; position: relative; }
.vc-contact-form input, .vc-contact-form select, .vc-contact-form textarea {
	width: 100%; border: 0 !important; border-bottom: 1px solid rgba(16, 24, 36, .3) !important; border-radius: 0 !important;
	background: transparent !important; padding: 14px 0 !important; outline: none; box-shadow: none !important;
	font: 400 16px/1.4 "DM Sans", sans-serif; color: var(--vc-navy); appearance: none; transition: border-color .3s;
}
.vc-contact-form textarea { resize: vertical; min-height: 54px; }
.vc-contact-form ::placeholder { color: var(--vc-muted); opacity: 1; }
.vc-contact-form input:focus, .vc-contact-form select:focus, .vc-contact-form textarea:focus { border-color: var(--vc-accent) !important; }
.vc-contact-form select:invalid { color: var(--vc-muted); }
.vc-field--select::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid var(--vc-navy); border-bottom: 2px solid var(--vc-navy); transform: rotate(45deg); pointer-events: none;
}
.vc-field.is-error input, .vc-field.is-error select { border-color: #d92d20 !important; }
.vc-submit {
	margin-top: 18px; width: 100%; padding: 22px !important; border: 0 !important; border-radius: 999px !important; cursor: pointer;
	background: var(--vc-accent) !important; color: #fff !important; font: 400 16px/1 "DM Sans", sans-serif; transition: background .3s;
}
.vc-submit:hover, .vc-submit:focus { background: var(--vc-navy) !important; }
.vc-form-msg { min-height: 1.4em; margin: 0; font-weight: 400; text-align: center; }
.vc-form-msg.is-ok { color: #1a7f4b; }
.vc-form-msg.is-error { color: #d92d20; }
.vc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vc-big-link { display: inline-block; margin-top: 4px; font-size: 21px; color: var(--vc-navy) !important; font-weight: 400; }
.vc-big-link:hover { color: var(--vc-accent) !important; }

/* ---------- Partenaires ---------- */
.elementor-widget-image.vc-partner { opacity: .55; transition: opacity .3s; max-width: 200px; }
.elementor-widget-image.vc-partner:hover { opacity: 1; }

/* ---------- Pied de page ---------- */
.vc-footer { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 18px) !important; }
.vc-footer-logo { display: inline-flex; }
.vc-footer-links svg { transform: rotate(-45deg); }
.vc-footer-links a:hover .elementor-icon-list-text { color: var(--vc-accent) !important; }
.elementor .vc-footer a, .vc-site-footer .elementor a { color: inherit; }
.vc-site-footer a:hover { color: var(--vc-accent); }
.vc-footer-fallback { background: var(--vc-navy); color: rgba(255, 255, 255, .7); padding: 60px 0; }
.vc-footer-fallback p { margin: 20px 0 0; }

/* ---------- Retour en haut ---------- */
.vc-to-top {
	position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
	background: var(--vc-grey); color: var(--vc-accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(16, 24, 36, .15);
	opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s var(--vc-ease);
}
.vc-to-top svg { width: 16px; height: 16px; }
.vc-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.vc-to-top:hover { background: var(--vc-accent); color: #fff; }

/* ---------- Apparition au défilement (hors éditeur) ---------- */
.vc-js body:not(.elementor-editor-active) .vc-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--vc-ease), transform .9s var(--vc-ease); }
.vc-js body:not(.elementor-editor-active) .vc-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.vc-js .vc-reveal { opacity: 1 !important; transform: none !important; }
	.vc-js .vc-bars .vc-bar { transform: none !important; }
	.vc-draw { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.vc-menu { gap: 26px; font-size: 16px; }
	.vc-hide-md { display: none; }
	.vc-header__phone { margin-left: 10px; }
}

@media (max-width: 1024px) {
	.vc-header__inner { height: 80px; gap: 16px; }
	.vc-header__sep { display: none; }
	.vc-burger { display: block; }
	.vc-header__phone { margin-left: auto; }
	.vc-nav {
		position: fixed; left: 0; right: 0; top: var(--vc-nav-top, 80px); margin: 0;
		background: var(--vc-grey); padding: 10px var(--vc-gutter) 30px; box-shadow: 0 20px 30px rgba(16, 24, 36, .1);
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--vc-ease);
		max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.vc-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.vc-menu { flex-direction: column; gap: 0; }
	.vc-menu a { padding: 14px 0; border-bottom: 1px solid var(--vc-line); font-size: 18px; }
	.vc-menu > li > a::after { display: none; }
	.vc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 16px; }

	.vc-hero-visual { min-height: 420px; }
	.vc-dash { position: relative; left: 0; right: auto; top: 40px; width: 100%; }
	.elementor .vc-tiles { margin-top: -90px; }
	.elementor .vc-about-badge { right: 16px; }
}

@media (max-width: 767px) {
	.vc-hide-sm { display: none !important; }
	.vc-topbar__info { gap: 20px; }
	.vc-logo__text { font-size: 20px; }
	.vc-logo__mark { width: 32px; height: 32px; }
	.vc-header__phone-icon { width: 40px; height: 40px; }
	.vc-hero-visual { min-height: 400px; }
	.vc-hero-star { width: 70px; height: 70px; }
	.vc-mini { padding: 14px 18px; }
	.vc-mini strong { font-size: 22px; }
	.vc-mini--a { bottom: -20px; }
	.vc-mini--b { right: 0; bottom: -40px; }
	.elementor .vc-about-badge { bottom: -28px; padding: 18px 22px !important; }
	.vc-about-badge .elementor-counter-number-wrapper { font-size: 42px !important; }
	.vc-to-top { width: 50px; height: 50px; right: 16px; bottom: 16px; }
}
@media (max-width: 782px) {
	.admin-bar .vc-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .vc-header { top: 0; }
}
