/* Wave School — couche "vibe surf" : animations et ambiance */

:root {
	--vibe-ocean: #0066B3;
	--vibe-deep: #003B66;
	--vibe-sun: #F7941D;
	--vibe-sand: #FFF4E6;
	--vibe-foam: rgba(255, 255, 255, 0.85);
}

/* Barre de progression de lecture */
.vibe-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 100%;
	transform-origin: 0 50%;
	transform: scaleX(var(--vibe-progress, 0));
	background: linear-gradient(90deg, var(--vibe-sun), #FFC46B, var(--vibe-ocean));
	z-index: 100200;
	pointer-events: none;
}

/* Header en verre dépoli au scroll */
.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.86) !important;
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	box-shadow: 0 8px 30px rgba(0, 40, 80, 0.1);
}

/* ---------- HERO ---------- */
.dbs-hero-slider { isolation: isolate; }

.dbs-hero-slider__overlay {
	background:
		radial-gradient(120% 80% at 15% 110%, rgba(247, 148, 29, 0.35), transparent 60%),
		linear-gradient(180deg, rgba(0, 30, 60, 0.25) 0%, rgba(0, 40, 80, 0.45) 60%, rgba(0, 59, 102, 0.7) 100%) !important;
}

.dbs-hero__title {
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
	letter-spacing: -0.01em;
}
.dbs-hero__title .vibe-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(0.6em) rotate(3deg);
	animation: vibe-word 0.75s cubic-bezier(.2, .8, .2, 1) forwards;
	animation-delay: calc(var(--w, 0) * 90ms + 150ms);
}
@keyframes vibe-word {
	to { opacity: 1; transform: none; }
}

.dbs-hero__logo {
	animation: vibe-bob 5s ease-in-out infinite;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3));
}
@keyframes vibe-bob {
	0%, 100% { transform: translateY(0) rotate(-1.5deg); }
	50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* Vagues multicouches animées */
.dbs-waves {
	height: clamp(60px, 9vw, 130px);
	bottom: -2px !important;
}
.dbs-waves__svg {
	width: 100%;
	height: 100% !important;
	display: block;
}
.dbs-waves__parallax > use {
	animation: vibe-wave 22s cubic-bezier(.55, .5, .45, .5) infinite;
}
.dbs-waves__parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 9s; }
.dbs-waves__parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 12s; }
.dbs-waves__parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 15s; }
.dbs-waves__parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 22s; }
@keyframes vibe-wave {
	0% { transform: translate3d(-90px, 0, 0); }
	100% { transform: translate3d(85px, 0, 0); }
}

/* Écume / bulles qui remontent */
.dbs-hero-slider__foam {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
}
.dbs-hero-slider__foam span {
	position: absolute;
	bottom: -40px;
	left: calc(var(--i) * 7.3% + 2%);
	width: calc(6px + (var(--i) * 3 % 14) * 1px);
	height: calc(6px + (var(--i) * 3 % 14) * 1px);
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0.25) 60%, transparent 70%);
	opacity: 0;
	animation: vibe-bubble calc(7s + (var(--i) * 5 % 7) * 1s) linear infinite;
	animation-delay: calc(var(--i) * -0.9s);
}
@keyframes vibe-bubble {
	0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
	12% { opacity: 0.8; }
	50% { transform: translate3d(18px, -45vh, 0) scale(1); }
	85% { opacity: 0.5; }
	100% { transform: translate3d(-12px, -90vh, 0) scale(1.15); opacity: 0; }
}

/* Indicateur de scroll */
.dbs-hero-slider__scroll {
	position: absolute;
	left: 50%;
	bottom: clamp(70px, 10vw, 140px);
	transform: translateX(-50%);
	z-index: 6;
	width: 28px;
	height: 46px;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 20px;
	display: block;
}
.dbs-hero-slider__scroll span {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 4px;
	height: 9px;
	margin-left: -2px;
	border-radius: 2px;
	background: #fff;
	animation: vibe-scroll 1.8s ease-in-out infinite;
}
@keyframes vibe-scroll {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(16px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}
.dbs-hero-anchor { position: absolute; bottom: 0; }
@media (max-height: 860px) {
	.dbs-hero-slider__scroll { display: none; }
}

/* ---------- BOUTONS ---------- */
.btn,
.elementor-button,
.dbs-btn {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease !important;
}
.btn-primary,
.dbs-btn-primary {
	background-image: linear-gradient(120deg, var(--vibe-sun) 0%, #FFB347 50%, var(--vibe-sun) 100%) !important;
	background-size: 200% 100% !important;
	box-shadow: 0 10px 24px rgba(247, 148, 29, 0.35);
}
.btn-primary:hover,
.dbs-btn-primary:hover {
	background-position: 100% 0 !important;
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(247, 148, 29, 0.45);
}
.btn::before,
.dbs-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s ease;
}
.btn:hover::before,
.dbs-btn:hover::before {
	transform: translateX(120%);
}
.vibe-ripple {
	position: absolute;
	border-radius: 50%;
	transform: scale(0);
	background: rgba(255, 255, 255, 0.55);
	animation: vibe-ripple 0.65s ease-out forwards;
	pointer-events: none;
	z-index: 0;
}
@keyframes vibe-ripple {
	to { transform: scale(3.2); opacity: 0; }
}

/* Pulsation du bouton Réserver du header */
.header-actions .btn-primary,
.header-reserve {
	animation: vibe-pulse 2.8s ease-in-out infinite;
}
@keyframes vibe-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(247, 148, 29, 0.55); }
	60% { box-shadow: 0 0 0 12px rgba(247, 148, 29, 0); }
}

/* ---------- TITRES DE SECTIONS ---------- */
.dbs-section-title h2::after {
	width: 90px !important;
	height: 10px !important;
	background: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='10' viewBox='0 0 30 10'%3E%3Cpath d='M0 5 Q7.5 0 15 5 T30 5' fill='none' stroke='%23F7941D' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: repeat-x !important;
	background-size: 30px 10px !important;
	animation: vibe-underline 2.4s linear infinite;
	border-radius: 0 !important;
}
@keyframes vibe-underline {
	to { background-position: 30px 0; }
}

.dbs-section-title h2 {
	background: linear-gradient(90deg, var(--color-dark, #1A1A2E), var(--vibe-ocean), var(--color-dark, #1A1A2E));
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: vibe-shine 7s linear infinite;
}
.dbs-section--primary .dbs-section-title h2,
.dbs-section--dark .dbs-section-title h2 {
	background: none;
	-webkit-text-fill-color: currentColor;
	animation: none;
}
@keyframes vibe-shine {
	to { background-position: 200% center; }
}

/* ---------- SECTIONS : séparateurs vagues ---------- */
.dbs-section--light,
.dbs-section--primary,
.dbs-section--dark {
	position: relative;
}
.dbs-section--light::before,
.dbs-section--primary::before,
.dbs-section--dark::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: 28px;
	background-repeat: repeat-x;
	background-size: 240px 28px;
	animation: vibe-divider 12s linear infinite;
	pointer-events: none;
	z-index: 1;
}
.dbs-section--light::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='28' viewBox='0 0 240 28'%3E%3Cpath d='M0 0h240v10c-30 0-30 14-60 14s-30-14-60-14-30 14-60 14S30 10 0 10z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.dbs-section--primary::before,
.dbs-section--dark::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='28' viewBox='0 0 240 28'%3E%3Cpath d='M0 0h240v10c-30 0-30 14-60 14s-30-14-60-14-30 14-60 14S30 10 0 10z' fill='%23ffffff'/%3E%3C/svg%3E");
}
@keyframes vibe-divider {
	to { background-position: 240px 0; }
}

/* Section bleue : reflets d'eau */
.dbs-section--primary {
	background:
		radial-gradient(60% 80% at 10% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
		radial-gradient(50% 70% at 90% 100%, rgba(247, 148, 29, 0.22), transparent 60%),
		linear-gradient(135deg, var(--vibe-ocean), var(--vibe-deep)) !important;
	background-size: 160% 160%, 160% 160%, 100% 100% !important;
	animation: vibe-water 14s ease-in-out infinite alternate;
}
@keyframes vibe-water {
	from { background-position: 0% 0%, 100% 100%, 0 0; }
	to { background-position: 40% 30%, 60% 70%, 0 0; }
}

/* ---------- BANDEAU DÉFILANT ---------- */
.vibe-marquee {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, var(--vibe-sun), #FF7A1A);
	color: #fff;
	padding: 14px 0;
	transform: rotate(-1.2deg) scale(1.02);
	margin: 26px 0 30px;
	box-shadow: 0 12px 30px rgba(247, 148, 29, 0.3);
	z-index: 2;
}
.vibe-marquee__track {
	display: flex;
	width: max-content;
	animation: vibe-marquee 32s linear infinite;
}
.vibe-marquee:hover .vibe-marquee__track { animation-play-state: paused; }
.vibe-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding-right: 18px;
	font-family: var(--font-heading, 'Montserrat', sans-serif);
	font-weight: 800;
	font-size: clamp(14px, 2vw, 20px);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.vibe-marquee__item svg {
	width: 26px;
	height: 26px;
	flex: none;
	animation: vibe-spin 6s linear infinite;
}
@keyframes vibe-marquee {
	to { transform: translateX(-50%); }
}
@keyframes vibe-spin {
	to { transform: rotate(360deg); }
}

/* ---------- CARTES ---------- */
.dbs-activity-card,
.dbs-pricing-card,
.dbs-news-card,
.dbs-review-card,
.dbs-trip-city,
.dbs-trip-service {
	transform-style: preserve-3d;
	will-change: transform;
}
.vibe-tilt {
	transition: transform 0.18s ease-out, box-shadow 0.3s ease !important;
}
.vibe-tilt.is-tilting {
	box-shadow: 0 26px 50px rgba(0, 40, 80, 0.22) !important;
}
.vibe-tilt .vibe-glare {
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.35), transparent 55%);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 4;
}
.vibe-tilt.is-tilting .vibe-glare { opacity: 1; }

.dbs-activity-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.dbs-activity-card__title {
	transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), letter-spacing 0.4s ease;
}
.dbs-activity-card:hover .dbs-activity-card__title {
	transform: translateY(-6px);
	letter-spacing: 0.08em;
}
.dbs-activity-card__link::after {
	content: ' →';
	display: inline-block;
	transition: transform 0.3s ease;
}
.dbs-activity-card:hover .dbs-activity-card__link::after {
	transform: translateX(6px);
}

.dbs-pricing-card--featured {
	animation: vibe-float 6s ease-in-out infinite;
}
@keyframes vibe-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

.dbs-review-card__stars {
	background: linear-gradient(90deg, #F7941D 40%, #FFD27A 50%, #F7941D 60%);
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: vibe-shine 4s linear infinite;
}

/* ---------- REVEAL plus vivant ---------- */
.dbs-reveal {
	opacity: 0;
	transform: translateY(40px) scale(0.97);
	filter: blur(4px);
}
.dbs-reveal.is-in {
	animation: vibe-in 0.9s cubic-bezier(.2, .8, .2, 1) var(--dbs-delay, 0ms) both !important;
}
@keyframes vibe-in {
	from { opacity: 0; transform: translateY(40px) scale(0.97); filter: blur(4px); }
	to { opacity: 1; transform: none; filter: none; }
}
.vibe-from-left.dbs-reveal { transform: translateX(-50px); }
.vibe-from-left.dbs-reveal.is-in { animation-name: vibe-in-left !important; }
.vibe-from-right.dbs-reveal { transform: translateX(50px); }
.vibe-from-right.dbs-reveal.is-in { animation-name: vibe-in-right !important; }
@keyframes vibe-in-left {
	from { opacity: 0; transform: translateX(-50px); filter: blur(4px); }
	to { opacity: 1; transform: none; filter: none; }
}
@keyframes vibe-in-right {
	from { opacity: 0; transform: translateX(50px); filter: blur(4px); }
	to { opacity: 1; transform: none; filter: none; }
}

/* Parallax léger sur images */
.vibe-parallax {
	will-change: transform;
	transition: transform 0.1s linear;
}

/* ---------- MÉTÉO : vagues vivantes ---------- */
.dbs-weather-card {
	transition: transform 0.4s ease;
}
.dbs-weather-card::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20c15 0 15-10 30-10s15 10 30 10 15-10 30-10 15 10 30 10v20H0z' fill='rgba(255,255,255,0.18)'/%3E%3C/svg%3E");
	background-size: 120px 40px;
	background-repeat: repeat-x;
	animation: vibe-divider 5s linear infinite;
	pointer-events: none;
}
.dbs-weather-card:hover { transform: rotate(-1deg) scale(1.02); }

/* ---------- FOOTER : vague animée en haut ---------- */
.site-footer {
	position: relative;
}
.site-footer::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -26px;
	height: 28px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='28' viewBox='0 0 240 28'%3E%3Cpath d='M0 28V18c30 0 30-14 60-14s30 14 60 14 30-14 60-14 30 14 60 14v10z' fill='%2312182b'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-size: 240px 28px;
	animation: vibe-divider 14s linear infinite reverse;
	pointer-events: none;
}

/* WhatsApp : petit balancement */
.dbs-whatsapp {
	animation: vibe-wiggle 5s ease-in-out infinite;
}
@keyframes vibe-wiggle {
	0%, 88%, 100% { transform: rotate(0); }
	90% { transform: rotate(-12deg) scale(1.08); }
	93% { transform: rotate(10deg) scale(1.08); }
	96% { transform: rotate(-6deg); }
}

/* Curseur "surf" sur les liens de cartes (desktop) */
@media (hover: hover) and (pointer: fine) {
	.dbs-activity-card,
	.dbs-gallery-item {
		cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%23F7941D' fill-opacity='.9'/%3E%3Cpath d='M9 19c3 0 3-3 6-3s3 3 6 3 3-3 4-3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 17 17, pointer;
	}
}

/* Mobile : on garde l'animation, en plus léger */
@media (max-width: 768px) {
	.dbs-hero-slider__foam span:nth-child(n+8) { display: none; }
	.dbs-hero-slider__scroll { display: none; }
	.vibe-marquee { transform: rotate(-1.5deg) scale(1.04); padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.dbs-hero__title .vibe-word,
	.dbs-reveal {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
	.dbs-hero-slider__foam { display: none; }
}
