/* =========================================================
LIGHTBOX
========================================================= */

.overlay {
  position:fixed;
  top:15px;
  right:15px;
  bottom:15px;
  left:15px;
  z-index:10000;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  padding:0;
  background:rgba(0,0,0,.96);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

.lightbox__frame {
  position:relative;
  width:100%;
  max-width:none;
  height:100%;
  max-height:none;
  display:flex;
  flex-direction:column;
  padding:clamp(20px,2.5vw,38px) clamp(18px,2.8vw,44px) clamp(70px,5vw,75px);
  background:radial-gradient(circle at 50% 100%,rgba(184,184,184,.09),transparent 28%),#050608;
  border:1px solid rgba(255,255,255,.22);
  border-radius:6px;
  box-shadow:0 0 30px rgba(0,0,0,.9),inset 0 0 32px rgba(255,255,255,.012);
  overflow:hidden;
  box-sizing:border-box;
}

.lightbox__topbar {
  width:100%;
  min-height:clamp(36px,4vw,54px);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-shrink:0;
}

.lightbox__label {
  display:inline-flex;
  align-items:center;
  gap:clamp(8px,.8vw,12px);
  color:rgba(255,255,255,.78);
  font-family:"Montserrat",Arial,sans-serif;
  font-size:clamp(8px,.95vw,13px);
  font-weight:500;
  letter-spacing:clamp(2px,.28vw,4px);
}

.lightbox__label-dot {
  width:8px;
  height:8px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--other-color);
}

.closeButton {
  width:clamp(32px,3.2vw,47px);
  height:clamp(32px,3.2vw,47px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  background:transparent;
  color:var(--other-color);
  cursor:pointer;
  transition:color 220ms ease,transform 220ms ease;
}

.closeButton svg {
  width:100%;
  height:100%;
}

.closeButton:hover {
  color:var(--other-color);
  transform:rotate(90deg);
}

.containerLigthBox {
  position:relative;
  width:100%;
  min-height:0;
  flex:1;
  display:grid;
  grid-template-columns:clamp(34px,4vw,52px) minmax(0,1fr) clamp(34px,4vw,52px);
  align-items:center;
  gap:clamp(10px,1.5vw,22px);
}

.divImg {
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  overflow:auto;
  background:white;
  border:1px solid rgba(255,255,255,.18);
  border-radius:4px;
  overscroll-behavior:contain;
  box-shadow:0 0 14px rgba(255,255,255,.07),0 0 34px rgba(0,0,0,.75);
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.34) rgba(0,0,0,.15);
}

.arrow {
  width:100%;
  height:clamp(48px,6vw,72px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:transparent;
  border:1px solid black;
  color:var(--other-color);
  font-size:clamp(24px,3vw,38px);
  cursor:pointer;
  transition:border-color 220ms ease,color 220ms ease,background 220ms ease,transform 220ms ease;
}

.arrow:hover {
  color:var(--other-color);
  background:black;
  transform:scale(1.2);
}

.scrollIndicator {
  position:absolute;
  left:50%;
  bottom:30px;
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:clamp(10px,1.5vw,20px);
  transform:translateX(-50%);
  pointer-events:none;
  opacity:1;
  z-index:20;
  transition:opacity 450ms ease;
}

.scrollIndicator svg {
  width:40px;
  height:40px;
  color:var(--other-color);
  animation:scrollArrow 1.4s infinite;
}

@media (hover:hover) and (pointer:fine) {
  .overlay--web .scrollIndicator {
    pointer-events:auto;
    cursor:s-resize;
  }
}

@keyframes scrollArrow {
  0% {
    transform:translateY(0);
    opacity:0;
  }

  20% {
    opacity:1;
  }

  60% {
    transform:translateY(12px);
    opacity:1;
  }

  100% {
    transform:translateY(18px);
    opacity:0;
  }
}

.colorValue {
  width:clamp(95px,8vw,125px);
  height:clamp(34px,3.5vw,44px);
  padding:0 clamp(10px,1vw,14px);
  border:1px solid rgba(255,255,255,.22);
  border-radius:4px;
  background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(0,0,0,.9));
  color:rgba(255,255,255,.73);
  font-family:monospace;
  font-size:clamp(9px,1vw,14px);
  text-align:center;
  text-transform:uppercase;
  outline:none;
  box-sizing:border-box;
  transition:border-color 220ms ease,box-shadow 220ms ease,color 220ms ease;
}

.colorValue:focus {
  border-color:var(--animation-accent);
  box-shadow:0 0 7px color-mix(in srgb,var(--animation-accent) 38%,transparent);
}

.colorValue.is-invalid {
  border-color:#ff5c5c;
  color:#ff8a8a;
  box-shadow:0 0 7px rgba(255,92,92,.28);
}

.overlay button:focus-visible,
.overlay input:focus-visible,
.overlay textarea:focus-visible,
.overlay select:focus-visible,
.overlay [tabindex]:focus-visible {
  outline:2px solid rgba(255,255,255,.95);
  outline-offset:3px;
}

@media screen and (max-width:1000px) {
  .containerLigthBox {
    width:100%;
  }
}

@media screen and (max-width:800px) {
  .overlay--web {
    padding:0;
  }

  .overlay--web .lightbox__frame {
    width:100%;
    max-width:none;
    height:100%;
    max-height:none;
    padding:10px 5px 8px;
    box-sizing:border-box;
  }

  .overlay--web .containerLigthBox {
    width:100%;
    grid-template-columns:20px minmax(0,1fr) 20px;
    gap:5px;
  }

  .overlay--web .arrow {
    width:20px;
    height:40px;
    font-size:18px;
  }

  .overlay--web .divImg {
    width:100%;
    min-width:0;
  }

  .overlay--web .lightbox__label {
    font-size:7px;
    letter-spacing:1.5px;
  }

  .overlay--animation .lightbox__label {
    font-size:7px;
    letter-spacing:1.5px;
  }

  .overlay--web .scrollIndicator {
    height:48px;
  }
}

@media screen and (max-width:600px) {
  .overlay {
    top:6px;
    right:6px;
    bottom:6px;
    left:6px;
    padding:0;
  }
}

@media screen and (max-width:360px) {
  .overlay {
    top:6px;
    right:6px;
    bottom:6px;
    left:6px;
    padding:0;
  }

  .overlay--web {
    padding:0;
  }

  .overlay--web .lightbox__frame {
    width:100%;
    height:100%;
    padding:8px 5px 5px;
  }

  .overlay--web .containerLigthBox {
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }

  .overlay--web .arrow {
    display:none;
  }
}


/* =========================================================
LIGHTBOX DES ANIMATIONS
========================================================= */

.overlay--animation {
  --animation-accent:#b8b8b8;
}

.overlay--animation .lightbox__frame {
  width:100%;
  max-width:none;
  height:100%;
  max-height:none;
  display:flex;
  flex-direction:column;
  padding:clamp(20px,2.5vw,38px) clamp(18px,2.8vw,44px) clamp(22px,2.5vw,36px);
  background:radial-gradient(circle at 50% 105%,color-mix(in srgb,var(--animation-accent) 16%,transparent),transparent 31%),#050608;
  overflow:hidden;
  box-sizing:border-box;
}

.overlay--animation .lightbox__label {
  display:inline-flex;
}

.overlay--animation .containerLigthBox {
  width:100%!important;
  height:auto!important;
  min-width:0;
  min-height:0;
  flex:1 1 auto!important;
  display:grid!important;
  grid-template-columns:clamp(36px,4vw,52px) minmax(0,3fr) minmax(270px,.95fr) clamp(36px,4vw,52px)!important;
  grid-template-rows:minmax(0,1fr)!important;
  grid-template-areas:"left preview controls right"!important;
  align-items:stretch!important;
  gap:clamp(12px,1.5vw,22px)!important;
  overflow:hidden;
  box-sizing:border-box;
}

.overlay--animation .arrow\.left {
  grid-area:left;
  align-self:center;
}

.overlay--animation .arrow\.right {
  grid-area:right;
  align-self:center;
}

.overlay--animation .divImg.animation-preview {
  grid-area:preview;
  width:100%!important;
  height:100%!important;
  min-width:0;
  min-height:0;
  margin:0!important;
}

.overlay--animation .divTexte.animation-controls {
  grid-area:controls;
  width:100%!important;
  height:100%!important;
  max-width:100%;
  max-height:100%;
  min-width:0;
  min-height:0;
  margin:0!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto;
  box-sizing:border-box;
  overflow:hidden;
}

.overlay--animation .scrollIndicator {
  display:none!important;
}

.overlay--web .divTexte {
  display:none!important;
}


/* ---------------------------------------------------------
PRÉVISUALISATION
---------------------------------------------------------- */

.animation-preview {
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:white;
  border:1px solid rgba(255,255,255,.2)!important;
  border-radius:6px;
}

.animation-preview__content {
  position:relative;
  z-index:5;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.animation-preview__title {
  font-size:clamp(18px,6vw,60px);
  letter-spacing:3px;
}

.animation-preview__particles,
.animation-preview__stars {
  position:absolute;
  inset:0;
  pointer-events:none;
}

.animation-preview__particles {
  z-index:2;
  overflow:hidden;
}

.animation-preview__stars {
  opacity:.72;
  background-image:radial-gradient(circle,var(--animation-accent) 0 1px,transparent 1.5px),radial-gradient(circle,var(--animation-accent) 0 1px,transparent 1.5px),radial-gradient(circle,rgba(255,255,255,.7) 0 .7px,transparent 1.2px);
  background-size:67px 79px,103px 91px,137px 121px;
  background-position:5px 13px,31px 51px,77px 19px;
  animation:animationStarsMove 16s linear infinite;
}

@keyframes animationStarsMove {
  from {
    background-position:5px 13px,31px 51px,77px 19px;
  }

  to {
    background-position:72px 92px,-72px 142px,214px 140px;
  }
}


/* ---------------------------------------------------------
PANNEAU DE PERSONNALISATION
---------------------------------------------------------- */

.animation-controls {
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  gap:clamp(16px,2vw,28px);
  padding:clamp(18px,2vw,28px) clamp(16px,1.8vw,26px);
  box-sizing:border-box;
  background:linear-gradient(150deg,color-mix(in srgb,var(--animation-accent) 3.5%,transparent),rgba(4,5,9,.99) 38%);
  border:1px solid color-mix(in srgb,var(--animation-accent) 38%,rgba(255,255,255,.12));
  border-radius:6px;
  box-shadow:inset 0 0 26px rgba(255,255,255,.012);
  overflow:hidden;
}

.animation-controls>.animation-control-group:first-child {
  grid-row:1;
  align-self:start;
}

.animation-controls>.animation-control-group:nth-child(2) {
  min-height:0;
  grid-row:2;
  align-self:center;
}

.animation-controls > .animation-control-group:nth-child(2) > .animation-control-label {
  width:100%;
  text-align:center;
}

.animation-reset-button {
  grid-row:3;
  align-self:end;
  margin:0;
}

.animation-control-group {
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:clamp(10px,1.1vw,15px);
}

.animation-control-label {
  color:color-mix(in srgb,var(--animation-accent) 55%,white);
  font-family:"Montserrat",Arial,sans-serif;
  font-size:clamp(9px,1vw,14px);
  font-weight:500;
  letter-spacing:clamp(1px,.2vw,3px);
}

.input__ligthBox__text {
  width:100%;
  height:clamp(46px,5vw,65px);
  padding:0 clamp(14px,1.4vw,20px);
  border:1px solid rgba(255,255,255,.22);
  border-radius:4px;
  background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(0,0,0,.9));
  color:rgba(255,255,255,.92);
  font-family:"Montserrat",Arial,sans-serif;
  font-size:clamp(10px,1.1vw,15px);
  letter-spacing:1.5px;
  outline:none;
  box-sizing:border-box;
  transition:border-color 220ms ease,box-shadow 220ms ease;
}

.input__ligthBox__text:focus {
  border-color:var(--animation-accent);
  box-shadow:0 0 7px color-mix(in srgb,var(--animation-accent) 38%,transparent);
}

#colorPicker {
  width:100%!important;
  max-width:100%;
  min-width:0;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  box-sizing:border-box;
}

#colorPicker > div {
  max-width:none!important;
  min-width:0;
  height:auto!important;
  display:block;
}

#colorPicker svg,
#colorPicker canvas {
  max-width:none!important;
  height:auto!important;
  display:block;
}

.animation-color-value {
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(10px,1vw,14px);
}

.animation-color-swatch {
  width:clamp(25px,2.5vw,38px);
  height:clamp(25px,2.5vw,38px);
  flex-shrink:0;
  border-radius:50%;
  background:var(--animation-accent);
  box-shadow:0 0 9px color-mix(in srgb,var(--animation-accent) 52%,transparent);
}


/* =========================================================
ÉCRANS LARGES PEU HAUTS
========================================================= */

@media screen and (min-width:851px) and (max-height:750px) {
  .overlay--animation .lightbox__frame {
    padding:14px 24px;
  }

  .overlay--animation .lightbox__topbar {
    min-height:34px;
  }

  .overlay--animation .animation-controls {
    gap:12px;
    padding:14px 18px;
  }

  .overlay--animation .animation-control-group {
    gap:8px;
  }

  .overlay--animation .input__ligthBox__text {
    height:40px;
  }

  .overlay--animation .animation-reset-button {
    min-height:40px;
  }

  .overlay--animation .colorValue {
    height:38px;
  }
}


/* =========================================================
MOBILE ANIMATIONS
========================================================= */

@media screen and (max-width:850px) {
  .overlay {
    top:6px;
    right:6px;
    bottom:6px;
    left:6px;
    padding:0;
  }

  .overlay--animation {
    padding:0;
  }

  .overlay--animation .lightbox__frame {
    width:100%;
    height:100%;
    max-height:none;
    padding:10px 7px 8px;
    overflow:auto;
  }

  .overlay--animation .lightbox__topbar {
    min-height:44px;
  }

  .overlay--animation .containerLigthBox {
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr) 32px!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:"left preview right" ". controls ."!important;
    align-content:start!important;
    align-items:center!important;
    gap:8px!important;
    overflow:visible;
  }

  .overlay--animation .divImg.animation-preview {
    grid-area:preview;
    width:100%!important;
    height:auto!important;
    min-width:0;
    min-height:0;
    aspect-ratio:1.6/1;
    margin:0!important;
    overflow:hidden!important;
  }

  .overlay--animation .divTexte.animation-controls {
    grid-area:controls;
    width:100%!important;
    height:auto!important;
    max-width:100%;
    max-height:none;
    min-width:0;
    min-height:0;
    margin:0!important;
    padding:14px 12px;
    display:grid!important;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    gap:14px;
    box-sizing:border-box;
    overflow:hidden;
  }

  .overlay--animation .arrow\.left {
    grid-area:left;
    align-self:center;
  }

  .overlay--animation .arrow\.right {
    grid-area:right;
    align-self:center;
  }

  .overlay--animation .arrow {
    width:100%;
    height:46px;
    font-size:22px;
  }

  .overlay--animation .input__ligthBox__text {
    height:46px;
  }

  .overlay--animation .lightbox__label {
    font-size:9px;
    letter-spacing:1px;
  }

  .overlay--animation .animation-preview__title {
    font-size:clamp(18px,7vw,36px);
  }

  .overlay--animation .animation-controls > .animation-control-group:first-child {
    width:100%;
    min-width:0;
    grid-column:1;
    grid-row:1;
    align-self:start;
  }

  .overlay--animation .animation-controls > .animation-control-group:first-child .animation-control-label {
    display:none;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) {
    width:100%;
    min-width:0;
    min-height:0;
    grid-column:1;
    grid-row:2;
    display:grid;
    grid-template-columns:minmax(90px,.85fr) minmax(0,1.35fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:16px;
    row-gap:10px;
    align-self:start;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) > .animation-control-label {
    grid-column:1/-1;
    grid-row:1;
    width:100%;
    display:block;
    margin:0;
    text-align:center;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) #colorPicker {
    grid-column:1;
    grid-row:2;
    width:100%!important;
    max-width:100%;
    margin:0 auto;
    justify-self:stretch;
    align-self:center;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) .animation-color-value {
    grid-column:2;
    grid-row:2;
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:32px minmax(0,1fr);
    align-items:center;
    justify-content:stretch;
    gap:10px;
  }

  .overlay--animation .animation-color-swatch {
    width:32px;
    height:32px;
    flex:0 0 32px;
  }

  .overlay--animation .colorValue {
    width:100%;
    max-width:none;
    min-width:0;
    height:42px;
    padding:0 12px;
    font-size:11px;
  }

  .overlay--animation .animation-reset-button {
    width:100%;
    min-height:46px;
    grid-column:1;
    grid-row:3;
    align-self:start;
    margin:0;
  }
}


/* =========================================================
TRÈS PETITS ÉCRANS
========================================================= */

@media screen and (max-width:380px) {
  .overlay--animation {
    padding:0;
  }

  .overlay--animation .lightbox__frame {
    padding:8px 6px 7px;
  }

  .overlay--animation .lightbox__topbar {
    min-height:40px;
  }

  .overlay--animation .containerLigthBox {
    grid-template-columns:28px minmax(0,1fr) 28px!important;
    gap:6px!important;
  }

  .overlay--animation .divImg.animation-preview {
    aspect-ratio:1.85/1;
  }

  .overlay--animation .arrow {
    height:42px;
    font-size:20px;
  }

  .overlay--animation .divTexte.animation-controls {
    padding:10px;
    gap:11px;
  }

  .overlay--animation .input__ligthBox__text {
    height:42px;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) {
    grid-template-columns:minmax(82px,.8fr) minmax(0,1.2fr);
    column-gap:10px;
    row-gap:8px;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) .animation-color-value {
    grid-template-columns:28px minmax(0,1fr);
    gap:7px;
  }

  .overlay--animation .animation-color-swatch {
    width:28px;
    height:28px;
    flex-basis:28px;
  }

  .overlay--animation .colorValue {
    width:100%;
    height:40px;
    padding:0 8px;
    font-size:10px;
  }

  .overlay--animation .animation-reset-button {
    min-height:42px;
  }
}


/* =========================================================
TÉLÉPHONE PAYSAGE
========================================================= */

@media screen and (orientation:landscape) and (max-width:1000px) and (max-height:500px) {
  .overlay--animation {
    top:6px;
    right:6px;
    bottom:6px;
    left:6px;
    padding:0;
    align-items:stretch;
    justify-content:stretch;
    z-index:10000;
  }

  .overlay--animation .lightbox__frame {
    width:100%;
    max-width:none;
    height:100%;
    max-height:none;
    padding:6px 8px 8px;
    overflow:hidden;
    border-radius:5px;
  }

  .overlay--animation .lightbox__topbar {
    min-height:30px;
    align-items:center;
  }

  .overlay--animation .lightbox__label {
    font-size:7px;
    letter-spacing:1px;
  }

  .overlay--animation .closeButton {
    width:28px;
    height:28px;
    flex:0 0 28px;
  }

  .overlay--animation .containerLigthBox {
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    flex:1 1 auto!important;
    display:grid!important;
    grid-template-columns:24px minmax(0,1.45fr) minmax(170px,.85fr) 24px!important;
    grid-template-rows:minmax(0,1fr)!important;
    grid-template-areas:"left preview controls right"!important;
    align-content:stretch!important;
    align-items:stretch!important;
    gap:6px!important;
    overflow:hidden;
  }

  .overlay--animation .arrow\.left {
    grid-area:left;
    align-self:center;
  }

  .overlay--animation .arrow\.right {
    grid-area:right;
    align-self:center;
  }

  .overlay--animation .arrow {
    width:100%;
    height:40px;
    font-size:18px;
  }

  .overlay--animation .divImg.animation-preview {
    grid-area:preview;
    width:100%!important;
    height:100%!important;
    min-width:0;
    min-height:0;
    aspect-ratio:auto;
    margin:0!important;
    overflow:hidden!important;
  }

  .overlay--animation .animation-preview__title {
    font-size:clamp(16px,4vw,30px);
  }

  .overlay--animation .divTexte.animation-controls {
    grid-area:controls;
    width:100%!important;
    height:100%!important;
    max-width:100%;
    max-height:100%;
    min-width:0;
    min-height:0;
    margin:0!important;
    padding:6px 8px;
    display:grid!important;
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr) auto;
    gap:5px;
    overflow:hidden;
  }

  .overlay--animation .animation-control-group {
    gap:5px;
  }

  .overlay--animation .animation-controls > .animation-control-group:first-child {
    width:100%;
    min-width:0;
    grid-column:1;
    grid-row:1;
    align-self:start;
  }

  .overlay--animation .animation-controls > .animation-control-group:first-child .animation-control-label {
    display:none;
  }

  .overlay--animation .input__ligthBox__text {
    height:32px;
    padding:0 8px;
    font-size:9px;
    letter-spacing:1px;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) {
    width:100%;
    min-width:0;
    min-height:0;
    grid-column:1;
    grid-row:2;
    display:grid;
    grid-template-columns:minmax(70px,.8fr) minmax(0,1.2fr);
    grid-template-rows:auto minmax(0,1fr);
    align-items:center;
    column-gap:8px;
    row-gap:4px;
    align-self:stretch;
    overflow:hidden;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) > .animation-control-label {
    grid-column:1/-1;
    grid-row:1;
    width:100%;
    display:block;
    margin:0;
    font-size:8px;
    letter-spacing:1px;
    text-align:center;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) #colorPicker {
    grid-column:1;
    grid-row:2;
    width:100%!important;
    height:100%;
    max-width:100%;
    min-height:0;
    margin:0 auto;
    justify-self:stretch;
    align-self:center;
    overflow:hidden;
  }

  .overlay--animation #colorPicker > div {
    width:auto!important;
    max-width:clamp(72px,24vh,110px)!important;
    max-height:clamp(72px,24vh,110px)!important;
    margin:0 auto;
  }

  .overlay--animation #colorPicker svg,
  .overlay--animation #colorPicker canvas {
    width:auto!important;
    max-width:100%!important;
    max-height:clamp(72px,24vh,110px)!important;
    height:auto!important;
    margin:0 auto;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) .animation-color-value {
    grid-column:2;
    grid-row:2;
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:24px minmax(0,1fr);
    align-items:center;
    justify-content:stretch;
    gap:6px;
  }

  .overlay--animation .animation-color-swatch {
    width:24px;
    height:24px;
    flex:0 0 24px;
  }

  .overlay--animation .colorValue {
    width:100%;
    max-width:none;
    min-width:0;
    height:32px;
    padding:0 6px;
    font-size:9px;
  }

  .overlay--animation .animation-reset-button {
    width:100%;
    min-height:34px;
    grid-column:1;
    grid-row:3;
    align-self:end;
    margin:0;
    font-size:9px;
  }
}

/* =========================================================
   MOBILE PORTRAIT AVEC HAUTEUR SUFFISANTE
========================================================= */

@media screen and (orientation:portrait) and (max-width:650px) and (min-height:650px) {
  .overlay--animation .containerLigthBox {
    flex:1 1 auto!important;
    align-content:safe center!important;
  }

  .overlay--animation .divImg.animation-preview {
    aspect-ratio:1.3/1;
  }

  .overlay--animation .animation-preview__title {
    font-size:clamp(22px,8vw,40px);
  }

  .overlay--animation .divTexte.animation-controls {
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    gap:12px;
  }

  .overlay--animation .animation-controls > .animation-control-group:first-child {
    grid-column:1;
    grid-row:1;
    width:100%;
    align-self:start;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) {
    grid-column:1;
    grid-row:2;
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    align-items:center;
    justify-items:center;
    row-gap:10px;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) > .animation-control-label {
    grid-column:1;
    grid-row:1;
    width:100%;
    text-align:center;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) #colorPicker {
    grid-column:1;
    grid-row:2;
    width:100%!important;
    max-width:145px;
    margin:0 auto;
    justify-self:center;
  }

  .overlay--animation .animation-controls > .animation-control-group:nth-child(2) .animation-color-value {
    grid-column:1;
    grid-row:3;
    width:min(100%,230px);
    margin:0 auto;
    display:grid;
    grid-template-columns:32px minmax(0,1fr);
    align-items:center;
    gap:10px;
  }

  .overlay--animation .animation-reset-button {
    grid-column:1;
    grid-row:3;
    width:100%;
    margin:10px 0 12px;
  }
}


/* =========================================================
RÉDUCTION DES MOUVEMENTS
========================================================= */

@media (prefers-reduced-motion:reduce) {
  .overlay,
  .overlay *,
  .overlay *::before,
  .overlay *::after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    animation-delay:0ms!important;
    transition-duration:.01ms!important;
    transition-delay:0ms!important;
  }

  .scrollIndicator {
    display:none!important;
  }
}