/* =========================================================
   GRACYL — FOOTER + MODALES + COOKIES
   ========================================================= */

body.modal-open{
  overflow:hidden;
}

.gracyl-footer,
.gracyl-footer *{
  box-sizing:border-box;
}

.gracyl-footer{
  position:relative;
  overflow:hidden;
  padding:72px 0 34px;
  background:
    radial-gradient(52% 90% at 10% 0%, rgba(18,179,255,.14), transparent 70%),
    radial-gradient(48% 80% at 90% 20%, rgba(255,22,139,.12), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,250,255,.94));
  border-top:1px solid rgba(15,23,42,.06);
}

.gracyl-footer::before{
  content:"";
  position:absolute;
  inset:auto 8% 0 8%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(15,23,42,.14), transparent);
}

.gracyl-footer__top{
  display:grid;
  grid-template-columns:minmax(260px, 420px) 1fr;
  gap:clamp(34px, 6vw, 90px);
  align-items:start;
}

.gracyl-footer__logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--ink, #0F172A);
  text-decoration:none;
  font-weight:850;
  letter-spacing:-.03em;
  font-size:1.3rem;
}

.gracyl-footer__logo img{
  width:42px;
  height:42px;
  object-fit:contain;
}

.gracyl-footer__brand p{
  margin:18px 0 0;
  max-width:44ch;
  color:var(--muted, #5B6A7E);
  line-height:1.72;
}

.gracyl-footer__links{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}

.gracyl-footer__links h3{
  margin:0 0 14px;
  font-size:.8rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:color-mix(in oklab, var(--muted, #5B6A7E), #000 10%);
}

.gracyl-footer__links a,
.gracyl-footer__cookie-link{
  display:block;
  width:max-content;
  max-width:100%;
  margin:9px 0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--ink, #0F172A);
  text-decoration:none;
  font:inherit;
  font-weight:650;
  cursor:pointer;
  opacity:.82;
  transition:opacity .2s ease, transform .2s ease, color .2s ease;
}

.gracyl-footer__links a:hover,
.gracyl-footer__cookie-link:hover{
  opacity:1;
  color:var(--brand, #FF168B);
  transform:translateX(3px);
}

.gracyl-footer__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-top:54px;
  padding-top:26px;
  border-top:1px solid rgba(15,23,42,.08);
}

.gracyl-footer__bottom p{
  margin:0;
}

.gracyl-footer .slogan{
  font-weight:750;
  color:var(--ink, #0F172A);
}

.gracyl-footer .slogan em{
  color:var(--brand, #FF168B);
  font-style:normal;
}

.gracyl-footer .copy{
  color:var(--muted, #5B6A7E);
  font-size:.92rem;
}


/* MODALES */

.gracyl-modal{
  position:fixed;
  inset:0;
  z-index:100000;
  display:none;
  padding:24px;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  overflow:auto;
}

.gracyl-modal.is-open{
  display:grid;
  place-items:center;
}

.gracyl-modal__dialog{
  position:relative;
  width:min(980px, 100%);
  max-height:min(82vh, 900px);
  overflow:auto;
  padding:clamp(26px, 4vw, 48px);
  border-radius:34px;
  background:
    radial-gradient(80% 90% at 10% 0%, rgba(18,179,255,.10), transparent 66%),
    radial-gradient(70% 80% at 100% 100%, rgba(255,22,139,.09), transparent 66%),
    rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.76);
  box-shadow:
    0 34px 100px rgba(15,23,42,.24),
    inset 0 1px 0 rgba(255,255,255,.82);
}

.gracyl-modal__close{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.76);
  color:var(--ink, #0F172A);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(15,23,42,.10);
}

.gracyl-modal h2{
  margin:0 54px 24px 0;
  font-size:clamp(30px, 4vw, 48px);
  line-height:1.04;
  letter-spacing:-.055em;
}

.gracyl-legal-content{
  color:var(--muted, #5B6A7E);
  line-height:1.72;
}

.gracyl-legal-content h3{
  margin:28px 0 10px;
  color:var(--ink, #0F172A);
  font-size:1.05rem;
}

.gracyl-legal-content p{
  margin:.8rem 0;
}

.gracyl-modal__btn{
  margin-top:22px;
  width:100%;
  padding:13px 18px;
  border:0;
  border-radius:999px;
  background:linear-gradient(90deg, #FF168B, #FF4FA3);
  color:#fff;
  font-weight:850;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(255,22,139,.22);
}


/* COOKIES BANNER */

.gracyl-cookie-banner{
  position:fixed;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:99998;
  display:none;
}

.gracyl-cookie-banner.is-visible{
  display:block;
}

.gracyl-cookie-banner__card{
  width:min(1080px, 100%);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:18px;
  border-radius:28px;
  background:
    radial-gradient(70% 100% at 10% 0%, rgba(18,179,255,.16), transparent 68%),
    radial-gradient(70% 100% at 95% 100%, rgba(255,22,139,.13), transparent 68%),
    rgba(15,23,42,.90);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 24px 70px rgba(15,23,42,.32);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
}

.gracyl-cookie-banner__text h2{
  margin:0 0 6px;
  font-size:1.05rem;
  letter-spacing:-.02em;
}

.gracyl-cookie-banner__text p{
  margin:0;
  max-width:72ch;
  color:rgba(255,255,255,.76);
  line-height:1.55;
  font-size:.94rem;
}

.gracyl-cookie-banner__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.gracyl-cookie-banner__actions button{
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
}

#cookie-refuse,
#cookie-customize{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
}

#cookie-accept{
  border:0;
  background:linear-gradient(90deg, #FF168B, #FF4FA3);
  color:#fff;
}


/* COOKIES MODAL */

.gracyl-cookie-modal{
  position:fixed;
  inset:0;
  z-index:100001;
  display:none;
  padding:24px;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.gracyl-cookie-modal.is-open{
  display:grid;
  place-items:center;
}

.gracyl-cookie-modal__dialog{
  width:min(820px, 100%);
  overflow:hidden;
  border-radius:30px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 34px 100px rgba(15,23,42,.26);
}

.gracyl-cookie-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.gracyl-cookie-modal__head h2{
  margin:0;
  font-size:1.25rem;
}

#cookie-modal-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  background:rgba(15,23,42,.06);
  cursor:pointer;
  font-size:22px;
}

.gracyl-cookie-modal__body{
  padding:24px;
}

.gracyl-cookie-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(15,23,42,.08);
  margin-bottom:14px;
}

.gracyl-cookie-row h3{
  margin:0 0 6px;
  font-size:1rem;
}

.gracyl-cookie-row p{
  margin:0;
  color:var(--muted, #5B6A7E);
  line-height:1.5;
}

.gracyl-cookie-row > span{
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(18,179,255,.12);
  color:#0369A1;
  font-weight:800;
  font-size:.86rem;
}

.gracyl-cookie-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}

.gracyl-cookie-toggle input{
  width:20px;
  height:20px;
}

.gracyl-cookie-modal__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.gracyl-cookie-modal__actions button{
  flex:1;
  min-width:220px;
  padding:13px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:850;
}

#cookie-save{
  border:0;
  background:linear-gradient(90deg, #FF168B, #FF4FA3);
  color:#fff;
}

#cookie-refuse-all{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  color:var(--ink, #0F172A);
}


/* BOUTON PERSISTANT */

.gracyl-cookie-manage{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:99997;
  display:none;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.86);
  color:var(--ink, #0F172A);
  font-weight:800;
  cursor:pointer;
  box-shadow:0 16px 38px rgba(15,23,42,.14);
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
}

.gracyl-cookie-manage.is-visible{
  display:inline-flex;
}

.gracyl-cookie-manage:hover{
  background:#fff;
}


/* RESPONSIVE */

@media (max-width:860px){
  .gracyl-footer__top{
    grid-template-columns:1fr;
  }

  .gracyl-footer__links{
    grid-template-columns:1fr 1fr;
  }

  .gracyl-cookie-banner__card{
    align-items:flex-start;
    flex-direction:column;
  }

  .gracyl-cookie-banner__actions{
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width:560px){
  .gracyl-footer{
    padding:54px 0 28px;
  }

  .gracyl-footer__links{
    grid-template-columns:1fr;
  }

  .gracyl-footer__bottom{
    align-items:flex-start;
    flex-direction:column;
  }

  .gracyl-modal,
  .gracyl-cookie-modal{
    padding:12px;
  }

  .gracyl-modal__dialog{
    border-radius:24px;
    padding:24px;
  }

  .gracyl-cookie-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .gracyl-cookie-modal__actions button{
    width:100%;
  }
}

#cookie-manage{
	display: none !important;
}