/* Les Dauphins de la Mer — couche d'animations (apparition au défilement, parallaxe,
   cartes lumineuses, effets de texte). Ajoutée par-dessus l'export WordPress sans le modifier.
   Tout le mouvement dépend de html.dlm-js (posée seulement si l'utilisateur n'a pas demandé
   à réduire les animations). */
:root {
  --dlm-blue: #0376c7;
  --dlm-cyan: #0fb6e0;
  --dlm-foam: #bdf1ff;
  --dlm-ease: cubic-bezier(.16, 1, .3, 1);
  --dlm-glow-soft: rgba(15, 182, 224, .11);
  --dlm-glow-core: rgba(255, 255, 255, .28);
  --dlm-ring: rgba(140, 230, 255, .95);
  --dlm-shadow: 0 26px 50px -22px rgba(3, 118, 199, .55);
}

/* ---------- 1. Apparition au défilement ---------- */
.dlm-js:not(.dlm-off) :where(
  #content .vc_column-inner > .wpb_wrapper > :not(.vc_row, .vc_empty_space, .wpb_animate_when_almost_visible, .vc_grid-container-wrapper, script, style, link):not(:has(.icon_list_item)),
  #content .icon_list_item):not(.dlm-done) {
  opacity: 0;
  transform: translate3d(var(--dlm-rx, 0), var(--dlm-ry, 42px), 0) scale(var(--dlm-rs, 1));
  filter: blur(8px);
  transition:
    opacity .9s var(--dlm-ease) var(--dlm-d, 0ms),
    transform 1.15s var(--dlm-ease) var(--dlm-d, 0ms),
    filter .9s var(--dlm-ease) var(--dlm-d, 0ms);
}
.dlm-js:not(.dlm-off) [data-dlm-reveal].is-in:not(.dlm-done) {
  opacity: 1;
  transform: none;
  filter: none;
}
[data-dlm-reveal="left"]  { --dlm-rx: -56px; --dlm-ry: 0px; }
[data-dlm-reveal="right"] { --dlm-rx: 56px;  --dlm-ry: 0px; }
[data-dlm-reveal="zoom"]  { --dlm-ry: 24px;  --dlm-rs: .92; }
/* Les titres découpés en mots s'animent mot par mot, pas en bloc */
.dlm-js:not(.dlm-off) [data-dlm-reveal="text"]:not(.dlm-done) { opacity: 1; transform: none; filter: none; }
/* Filet de secours : si le script ne se charge pas, tout redevient visible */
.dlm-js:not(.dlm-ready) :where(#content .vc_column-inner > .wpb_wrapper > *, #content .icon_list_item) {
  animation: dlm-failsafe 0s 2.5s forwards;
}
@keyframes dlm-failsafe { to { opacity: 1; transform: none; filter: none; } }

/* Filets sous les titres : ils se dessinent depuis le centre */
.dlm-js [data-dlm-reveal] .vc_sep_line,
.dlm-js .vc_separator[data-dlm-reveal] .vc_sep_line {
  transform: scaleX(0);
  transition: transform 1.3s var(--dlm-ease) calc(var(--dlm-d, 0ms) + 250ms);
}
.dlm-js .is-in .vc_sep_line, .dlm-js .vc_separator.is-in .vc_sep_line, .dlm-js .dlm-done .vc_sep_line { transform: scaleX(1); }
.dlm-js .vc_sep_holder_l .vc_sep_line { transform-origin: right center; }
.dlm-js .vc_sep_holder_r .vc_sep_line { transform-origin: left center; }

/* ---------- 2. Effets de texte ---------- */
.dlm-w { display: inline-block; }
.dlm-js .dlm-split .dlm-w {
  opacity: 0;
  transform: translate3d(0, .6em, 0) rotate(3deg);
  filter: blur(7px);
  transition:
    opacity .8s var(--dlm-ease),
    transform 1s var(--dlm-ease),
    filter .8s var(--dlm-ease);
  transition-delay: calc(var(--dlm-d, 0ms) + var(--i, 0) * 60ms);
}
.dlm-js .dlm-split.is-in .dlm-w { opacity: 1; transform: none; filter: none; }

/* Reflet lumineux qui balaie les titres, mot après mot */
.dlm-shine .dlm-w {
  background-image: linear-gradient(105deg, var(--dlm-c) 0 42%, var(--dlm-sweep, var(--dlm-foam)) 50%, var(--dlm-c) 58% 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dlm-js .dlm-shine.is-in .dlm-w {
  animation: dlm-shine 1.6s var(--dlm-ease) both;
  animation-delay: calc(var(--dlm-d, 0ms) + 700ms + var(--i, 0) * 90ms);
}
.dlm-shine:hover .dlm-w {
  animation: dlm-shine-again 1.3s var(--dlm-ease) both !important;
  animation-delay: calc(var(--i, 0) * 70ms) !important;
}
@keyframes dlm-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes dlm-shine-again { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Titres manuscrits (Parisienne) : écrits de gauche à droite */
.dlm-js .dlm-ink:not(.dlm-done) {
  clip-path: inset(-30% 100% -30% -8%);
  transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1) calc(var(--dlm-d, 0ms) + 100ms);
}
.dlm-js .dlm-ink.is-in { clip-path: inset(-30% -8% -30% -8%); }

/* Halo lumineux sur les titres clairs posés sur fond bleu */
.dlm-js .dlm-halo.is-in { animation: dlm-halo 2.6s ease-out calc(var(--dlm-d, 0ms) + 600ms) both; }
@keyframes dlm-halo {
  0% { text-shadow: 0 0 0 rgba(189, 241, 255, 0); }
  40% { text-shadow: 0 0 22px rgba(189, 241, 255, .85), 0 0 4px rgba(255, 255, 255, .6); }
  100% { text-shadow: 0 0 10px rgba(189, 241, 255, .25); }
}

/* ---------- 3. Cartes lumineuses ---------- */
.dlm-card { position: relative; isolation: isolate; --mx: 50%; --my: 50%; }

/* Cartes à icône : un halo vitré apparaît autour, sans changer la mise en page */
.dlm-card--panel { transition: translate .6s var(--dlm-ease); }
.dlm-card--panel::before,
.dlm-card--panel::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--dlm-ease);
}
.dlm-card--panel::before {
  z-index: -1;
  background:
    radial-gradient(280px circle at var(--mx) var(--my), var(--dlm-glow-core), var(--dlm-glow-soft) 45%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(15, 182, 224, .05));
  box-shadow: var(--dlm-shadow);
}
.dlm-card--panel::after {
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx) var(--my), var(--dlm-ring), rgba(15, 182, 224, .35) 45%, rgba(15, 182, 224, .12) 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.dlm-card--panel:hover { translate: 0 -6px; }
.dlm-card--panel:hover::before, .dlm-card--panel:hover::after,
.dlm-card--panel.dlm-pulse::before, .dlm-card--panel.dlm-pulse::after { opacity: 1; }
.dlm-card--panel .aio-icon, .dlm-card--panel .ult-just-icon-wrapper .aio-icon {
  transition: transform .6s var(--dlm-ease), filter .6s var(--dlm-ease);
}
.dlm-card--panel:hover .aio-icon {
  transform: translateY(-4px) scale(1.12);
  filter: drop-shadow(0 0 14px rgba(140, 230, 255, .85));
}

/* Photos et vignettes : projecteur qui suit la souris + reflet qui balaie l'image */
.dlm-card--media {
  overflow: hidden;
  transition: box-shadow .6s var(--dlm-ease), translate .6s var(--dlm-ease);
}
.dlm-card--media img { transition: scale 1.1s var(--dlm-ease); }
.dlm-card--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .26), rgba(255, 255, 255, .08) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--dlm-ease);
}
.dlm-card--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .38) 49%, rgba(255, 255, 255, .12) 53%, transparent 66%);
  transform: translateX(-130%);
}
.dlm-card--media:hover { box-shadow: var(--dlm-shadow), 0 0 0 1px rgba(15, 182, 224, .45); translate: 0 -4px; }
.dlm-card--media:hover::after { opacity: 1; }
.dlm-card--media:hover img { scale: 1.04; }
.dlm-card--media:hover::before, .dlm-card--media.dlm-pulse::before { animation: dlm-sheen 1.3s var(--dlm-ease) both; }
@keyframes dlm-sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

/* Galerie : l'image de fond de la vignette zoome doucement */
.vc_grid-item-mini.dlm-card--media .vc_gitem-zone { transition: transform 1.1s var(--dlm-ease); }
.vc_grid-item-mini.dlm-card--media:hover .vc_gitem-zone { transform: scale(1.06); }

/* Bouton de réservation : reflet lumineux régulier */
.dlm-btn-glow { position: relative; overflow: hidden; isolation: isolate; }
.dlm-btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-140%);
  animation: dlm-btn-sheen 4.5s ease-in-out 1.5s infinite;
}
.dlm-btn-glow:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 14px 34px -10px rgba(0, 0, 0, .45); }
@keyframes dlm-btn-sheen { 0%, 55% { transform: translateX(-140%); } 85%, 100% { transform: translateX(140%); } }

/* Éléments de liste à icône (accueil) : l'icône s'illumine */
.icon_list_item .icon_list_icon { transition: transform .5s var(--dlm-ease), box-shadow .5s var(--dlm-ease); }
.icon_list_item:hover .icon_list_icon { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(15, 182, 224, .15), 0 0 22px rgba(15, 182, 224, .55); }

/* ---------- 4. Parallaxe ---------- */
.dlm-js [data-dlm-parallax] { translate: 0 var(--dlm-py, 0px); will-change: translate; }
.dlm-js #main-slideshow sr7-content { translate: 0 var(--dlm-hero-y, 0px); opacity: var(--dlm-hero-o, 1); will-change: translate, opacity; }

/* Reflets d'eau (caustiques) dans les bandeaux bleus */
.upb_row_bg.dlm-has-caustics { overflow: hidden; }
.dlm-caustics {
  position: absolute;
  inset: -25% -10%;
  pointer-events: none;
  z-index: 0;
  translate: 0 var(--dlm-py, 0px);
  background:
    radial-gradient(38% 30% at 18% 30%, rgba(189, 241, 255, .28), transparent 70%),
    radial-gradient(30% 26% at 78% 62%, rgba(255, 255, 255, .18), transparent 70%),
    radial-gradient(26% 22% at 50% 90%, rgba(15, 182, 224, .35), transparent 70%);
  mix-blend-mode: screen;
  filter: blur(6px);
}
.dlm-js .dlm-caustics { animation: dlm-drift 18s ease-in-out infinite alternate; }
@keyframes dlm-drift {
  0% { transform: translate3d(-3%, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(4%, 2%, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .dlm-btn-glow::after, .dlm-caustics { animation: none !important; }
  .dlm-card--panel:hover, .dlm-card--media:hover { translate: none; }
}
