/* =========================================================
   DEMASKED FOOTER — MINIMAL PREMIUM (glass)
========================================================= */

.dm-footer{
  width: 100%;
  max-width: none;
}

.dm-footer{
  position: relative;
  margin-top: 110px;
  padding: 70px 0 34px;
  overflow: hidden;
}

@supports (content-visibility: auto) {
  .dm-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 640px;
  }
}

/* séparation haut ultra légère */
.dm-footer::before{
  content:"";
  position:absolute;
  top:0; left:0;
  width:100%;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  opacity:.7;
}

.dm-footer__bg{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(123,73,255,.20), transparent 62%),
    radial-gradient(900px 420px at 80% 0%, rgba(183,156,255,.14), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.42));
  pointer-events:none;
}

.dm-footer__wrap{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px; /* espace latéral */
}

.dm-footer__top{
  display:grid;
  grid-template-columns: 1.05fr .75fr 1.2fr; /* newsletter plus large */
  gap: clamp(18px, 3vw, 46px);
  align-items:start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 980px){
  .dm-footer__top{ grid-template-columns: 1fr; }
}

.dm-footer__logo{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: rgba(255,255,255,.92);
}

.dm-footer__mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(135deg, rgba(123,73,255,.80), rgba(183,156,255,.55));
  box-shadow: 0 0 44px rgba(123,73,255,.20);
}

.dm-footer__name{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.dm-footer__tagline{
  margin: 12px 0 14px;
  color: rgba(255,255,255,.70);
  line-height: 1.6;
  max-width: 420px;
}

.dm-footer__title{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.80);
}

.dm-footer__muted{
  margin: 0 0 12px;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}

/* Pages links */
.dm-footer__links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}
.dm-footer__links a{
  color: rgba(255,255,255,.70);
  text-decoration:none;
  transition: color .18s ease, text-shadow .18s ease, transform .18s ease;
}
.dm-footer__links a:hover{
  color: rgba(255,255,255,.92);
  text-shadow: 0 0 22px rgba(123,73,255,.20);
  transform: translateX(2px);
}

/* Social */
.dm-footer__social{
  display:flex;
  gap: 10px;
}
.dm-footer__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dm-footer__icon:hover{
  transform: translateY(-2px);
  border-color: rgba(183,156,255,.40);
  box-shadow: 0 18px 55px rgba(0,0,0,.35), 0 0 45px rgba(123,73,255,.16);
}

/* Newsletter — bouton dans le champ */
.dm-footer__form{
  position: relative;
  max-width: 720px; /* champ long */
}
.dm-footer__input{
  width: 100%;
  height: 58px;
  padding: 0 150px 0 18px; /* place pour bouton */
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color: rgba(255,255,255,.92);
  outline: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06) inset;
  transition: border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}
.dm-footer__input::placeholder{ color: rgba(255,255,255,.55); }
.dm-footer__input:focus{
  border-color: rgba(183,156,255,.55);
  box-shadow: 0 24px 75px rgba(0,0,0,.40), 0 0 60px rgba(123,73,255,.16);
  filter: saturate(1.03) brightness(1.02);
}

.dm-footer__btn{
  position:absolute;
  top: 7px;
  right: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(123,73,255,.95), rgba(183,156,255,.78));
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor:pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,.35), 0 0 40px rgba(123,73,255,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  overflow:hidden;
}
.dm-footer__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03) saturate(1.05);
  box-shadow: 0 18px 55px rgba(0,0,0,.42), 0 0 55px rgba(123,73,255,.24);
}



@media (max-width: 520px){
  .dm-footer__input{ padding-right: 18px; height: 56px; }
  .dm-footer__btn{
    position: static;
    width: 100%;
    margin-top: 10px;
    height: 50px;
    border-radius: 16px;
  }
}

/* Bottom bar */
.dm-footer__bottom{
  padding-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dm-footer__copy{
  color: rgba(255,255,255,.60);
  font-size: 13px;
}

.dm-footer__legal{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.dm-footer__legal a{
  color: rgba(255,255,255,.60);
  text-decoration:none;
  font-size: 13px;
  transition: color .18s ease;
}
.dm-footer__legal a:hover{ color: rgba(255,255,255,.90); }

.dm-footer__topBtn{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.90);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dm-footer__topBtn:hover{
  transform: translateY(-2px);
  border-color: rgba(183,156,255,.40);
  box-shadow: 0 18px 55px rgba(0,0,0,.35), 0 0 45px rgba(123,73,255,.16);
}

.dm-footer__sr{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* =========================================
   FORCE FOOTER FULL WIDTH (même si parent limité)
========================================= */
.dm-footer{
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* évite les petits décalages sur certains thèmes */
body{ overflow-x: hidden; }

/* le fond doit couvrir toute la largeur */
.dm-footer__bg{
  left: 0;
  right: 0;
}

/* ================================
   Back to top — Premium Hover
================================ */

.dm-footer__topBtn{
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;

  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(255,255,255,.85);
  font-size: 16px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  overflow: hidden;

  transition: 
    transform .25s cubic-bezier(.22,.61,.36,1),
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease;
}

/* Glow effect layer */
.dm-footer__topBtn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background: radial-gradient(circle at 50% 30%, rgba(123,73,255,.45), transparent 70%);
  opacity:0;
  transition: opacity .25s ease;
  pointer-events:none;
}

/* Hover */
.dm-footer__topBtn:hover{
  transform: translateY(-4px) scale(1.05);

  border-color: rgba(183,156,255,.45);
  background: linear-gradient(
    135deg,
    rgba(123,73,255,.35),
    rgba(183,156,255,.25)
  );

  box-shadow:
    0 20px 60px rgba(0,0,0,.45),
    0 0 60px rgba(123,73,255,.25);
}

.dm-footer__topBtn:hover::before{
  opacity:1;
}

/* Active press */
.dm-footer__topBtn:active{
  transform: translateY(-1px) scale(.98);
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 0 30px rgba(123,73,255,.18);
}

/* Footer Logo Image */

.dm-footer__logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dm-footer__logoImg{
  height: 60px; /* ajuste si besoin */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(123,73,255,.25));
  transition: transform .25s ease, filter .25s ease;
}

.dm-footer__logo:hover .dm-footer__logoImg{
  transform: scale(1.05);
  filter: drop-shadow(0 0 35px rgba(123,73,255,.45));
}

/* ===============================
   Social Icons — Premium Glass
================================ */

.dm-footer__social{
  display: flex;
  gap: 12px;
}

.dm-footer__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(255,255,255,.85);
  text-decoration: none;

  transition:
    transform .25s cubic-bezier(.22,.61,.36,1),
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease;
}

.dm-footer__icon svg{
  width: 18px;
  height: 18px;
}

.dm-footer__icon:hover{
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(183,156,255,.45);
  background: linear-gradient(
    135deg,
    rgba(123,73,255,.35),
    rgba(183,156,255,.25)
  );
  box-shadow:
    0 18px 55px rgba(0,0,0,.45),
    0 0 55px rgba(123,73,255,.22);
}

