/* Calendrier de l'avent – styles spécifiques */
.avent-hero{
  background: linear-gradient(135deg,#0d2233 0%,#123556 40%,#215a86 70%,#1e90ff 100%);
  color:#fff;
  padding:40px 0 30px;
  position:relative;
  overflow:hidden;
}
.avent-hero::before,
.avent-hero::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
}
.avent-hero::before{
  background-image:
    radial-gradient(circle at 10% 20%,rgba(255,255,255,.15) 0,transparent 60%),
    radial-gradient(circle at 80% 0,rgba(255,255,255,.18) 0,transparent 55%);
  opacity:.8;
}
.avent-hero::after{
  background-image:
    radial-gradient(circle at 0 100%,rgba(255,255,255,.12) 0,transparent 55%),
    radial-gradient(circle at 100% 100%,rgba(255,255,255,.18) 0,transparent 55%);
  opacity:.7;
}

.avent-hero-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  z-index:1;
}
.avent-hero-text h1{
  font-size:2.2rem;
  margin:0 0 8px;
}
.avent-hero-text p{
  margin:0 0 6px;
  max-width:540px;
  font-size:1.02rem;
}
.avent-info-msg{
  margin-top:10px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  display:inline-block;
  font-size:.9rem;
}

.avent-hero-deco{
  position:relative;
  width:220px;
  min-width:200px;
  height:180px;
}
.avent-tree{
  position:absolute;
  bottom:0;
  left:15%;
  width:120px;
  height:150px;
  background:linear-gradient(to top,#0f5132,#198754);
  clip-path:polygon(50% 0,90% 30%,70% 30%,95% 55%,70% 55%,100% 85%,0 85%,30% 55%,5% 55%,30% 30%,10% 30%);
  box-shadow:0 14px 30px rgba(0,0,0,.35);
}
.avent-tree::before{
  content:'';
  position:absolute;
  bottom:-22px;
  left:50%;
  transform:translateX(-50%);
  width:26px;
  height:26px;
  background:#6c4a2f;
  border-radius:6px;
}
.avent-tree::after{
  content:'★';
  position:absolute;
  top:-18px;
  left:50%;
  transform:translateX(-50%);
  font-size:26px;
  color:#ffd966;
  text-shadow:0 0 10px rgba(255,217,102,.9);
}
.avent-snowman{
  position:absolute;
  bottom:0;
  right:5%;
  width:70px;
  height:90px;
}
.avent-snowman::before,
.avent-snowman::after{
  content:'';
  position:absolute;
  border-radius:50%;
  background:linear-gradient(145deg,#fff,#f3f4f6);
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}
.avent-snowman::before{
  width:70px;
  height:70px;
  bottom:0;
}
.avent-snowman::after{
  width:48px;
  height:48px;
  bottom:50px;
  left:50%;
  transform:translateX(-50%);
}
.avent-garland{
  position:absolute;
  top:10px;
  left:-10px;
  right:-10px;
  height:60px;
  background:
    radial-gradient(circle,#ffd966 0,rgba(255,217,102,0) 55%) 10% 30%/10px 10px no-repeat,
    radial-gradient(circle,#ff6b6b 0,rgba(255,107,107,0) 55%) 30% 60%/10px 10px no-repeat,
    radial-gradient(circle,#4ade80 0,rgba(74,222,128,0) 55%) 55% 25%/10px 10px no-repeat,
    radial-gradient(circle,#60a5fa 0,rgba(96,165,250,0) 55%) 80% 55%/10px 10px no-repeat;
  border-bottom:2px dashed rgba(255,255,255,.45);
}

.avent-wrapper{
  margin:20px auto 40px;
}
.avent-calendar-card{
  background:var(--card,#ffffff);
  border-radius:var(--radius,18px);
  box-shadow:var(--shadow,0 10px 30px rgba(0,0,0,0.06));
  padding:20px 18px 24px;
  position:relative;
  overflow:hidden;
}
.avent-calendar-card::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(circle at 0 0,rgba(255,255,255,.8) 0,transparent 60%),
    radial-gradient(circle at 100% 100%,rgba(220,38,38,.12) 0,transparent 60%);
  opacity:.4;
  pointer-events:none;
}
.avent-calendar-card > *{
  position:relative;
  z-index:1;
}
.avent-calendar-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
}
.avent-calendar-header h2{
  margin:0;
  font-size:1.4rem;
}
.avent-calendar-header p{
  margin:0;
  font-size:.95rem;
  color:var(--brand-muted,#6b7280);
}

.avent-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:10px;
}

.avent-day{
  position:relative;
  border:none;
  border-radius:16px;
  padding:14px 10px;
  cursor:pointer;
  background:linear-gradient(145deg,#d9463b,#b91c1c);
  color:#fff;
  box-shadow:0 10px 18px rgba(185,28,28,.35);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  text-align:left;
  min-height:90px;
  overflow:hidden;
}
.avent-day .avent-day-front{
  position:relative;
  z-index:2;
}
.avent-day-number{
  font-size:1.5rem;
  font-weight:700;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}
.avent-day-label{
  font-size:.85rem;
  opacity:.95;
}
.avent-day-gift-hint{
  margin-top:4px;
  font-size:.8rem;
  opacity:.9;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.avent-day::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at 0 0,rgba(255,255,255,.15),transparent 60%);
  opacity:0;
  transition:opacity .18s ease;
}
.avent-day:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 22px rgba(185,28,28,.45);
}
.avent-day:hover::before{
  opacity:1;
}
.avent-day:disabled{
  cursor:not-allowed;
  filter:grayscale(.3) brightness(.92);
  box-shadow:none;
  background:linear-gradient(145deg,#9ca3af,#6b7280);
}
.avent-day.is-past{
  background:linear-gradient(145deg,#166534,#15803d);
  box-shadow:0 10px 18px rgba(22,101,52,.35);
}
.avent-day.is-today{
  background:linear-gradient(145deg,#f97316,#ea580c);
  box-shadow:0 10px 22px rgba(234,88,12,.5);
}

/* Cadenas plus esthétique */
.avent-day-lock{
  position:absolute;
  top:8px;
  right:10px;
  width:30px;
  height:30px;
  border-radius:999px;
  background:radial-gradient(circle at 30% 20%,#f9fafb 0,#e5e7eb 55%,#d1d5db 100%);
  border:1px solid rgba(15,23,42,.15);
  box-shadow:0 2px 5px rgba(15,23,42,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:scale(.9);
  transition:opacity .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.avent-day-lock::before,
.avent-day-lock::after{
  content:'';
  position:absolute;
}

.avent-day-lock::before{
  top:5px;
  width:16px;
  height:12px;
  border-radius:10px 10px 0 0;
  border:2px solid rgba(15,23,42,.9);
  border-bottom:none;
}

.avent-day-lock::after{
  bottom:6px;
  left:50%;
  transform:translateX(-50%);
  width:7px;
  height:10px;
  border-radius:999px;
  background:radial-gradient(circle at 50% 25%,#f9fafb 0,#111827 60%,#020617 100%);
}

.avent-day:disabled .avent-day-lock{
  opacity:1;
  transform:scale(1);
}

.avent-day.is-today .avent-day-lock{
  opacity:1;
  background:radial-gradient(circle at 30% 20%,#fef9c3 0,#facc15 55%,#eab308 100%);
  box-shadow:0 3px 8px rgba(202,138,4,.55);
}
.avent-day.is-today .avent-day-lock::before{
  border-color:#78350f;
}
.avent-day.is-today .avent-day-lock::after{
  background:radial-gradient(circle at 50% 25%,#fef9c3 0,#78350f 60%,#451a03 100%);
}

/* Modals */
.avent-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  z-index:2147483640;
  display:none;
}
.avent-modal{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  max-width:480px;
  width:92%;
  background:#fff;
  border-radius:18px;
  box-shadow:0 22px 60px rgba(15,23,42,.45);
  z-index:2147483641;
  display:none;
}
.avent-modal-inner{
  padding:18px 18px 20px;
}
.avent-modal h2{
  margin:0 0 10px;
  font-size:1.35rem;
}
.avent-modal-text{
  margin:0 0 12px;
  font-size:.95rem;
  color:#4b5563;
}
.avent-form-row{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
}
.avent-form-row label{
  font-size:.9rem;
  color:#374151;
}
.avent-form-row input[type=text],
.avent-form-row input[type=email]{
  padding:9px 10px;
  border-radius:10px;
  border:1px solid #d1d5db;
  font-size:.95rem;
}
.avent-form-row input:focus{
  outline:none;
  border-color:#1e90ff;
  box-shadow:0 0 0 1px rgba(30,144,255,.4);
}
.avent-checkbox-row label{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:.9rem;
}
.avent-checkbox-row input[type=checkbox]{
  margin-top:2px;
}
.avent-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}
.avent-btn-primary,
.avent-btn-secondary{
  border-radius:999px;
  padding:8px 14px;
  font-size:.9rem;
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.avent-btn-primary{
  background:#1e90ff;
  color:#fff;
  box-shadow:0 8px 18px rgba(37,99,235,.35);
}
.avent-btn-primary:disabled{
  opacity:.8;
  cursor:wait;
  box-shadow:none;
}
.avent-btn-secondary{
  background:#e5e7eb;
  color:#111827;
}
.avent-modal-error{
  display:none;
  background:#fee2e2;
  color:#b91c1c;
  padding:8px 10px;
  border-radius:10px;
  font-size:.85rem;
  margin-bottom:10px;
}
body.avent-modal-open{
  overflow:hidden;
}

/* Gift popup */
.avent-gift-content{
  display:flex;
  gap:16px;
  align-items:center;
}
.avent-gift-image-wrap{
  width:180px;
  min-width:140px;
  max-width:100%;
  border-radius:14px;
  background:linear-gradient(135deg,#ef4444,#f97316);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 22px rgba(220,38,38,.45);
  padding:6px;
}
.avent-gift-image-wrap img{
  max-width:100%;
  max-height:260px;
  height:auto;
  width:auto;
  object-fit:contain;
  display:block;
}
.avent-gift-text h3{
  margin:0 0 4px;
  font-size:1.1rem;
}

/* Wheel */
.avent-wheel-modal{
  max-width:520px;
}
.avent-wheel-wrap{
  margin:12px auto 10px;
  width:260px;
  max-width:100%;
  position:relative;
}
.avent-wheel{
  width:100%;
  padding-top:100%;
  border-radius:50%;
  background:radial-gradient(circle at 30% 20%,#fff 0,#fecaca 45%,#b91c1c 80%);
  position:relative;
  box-shadow:0 18px 35px rgba(0,0,0,.35);
  overflow:hidden;
}
.avent-wheel-inner{
  position:absolute;
  inset:16px;
  border-radius:50%;
  background:conic-gradient(
    from 0deg,
    #fecaca 0deg 120deg,   /* rouge / perdu */
    #fef3c7 120deg 240deg, /* jaune / rejouer */
    #bbf7d0 240deg 360deg  /* vert / gagné */
  );
}
.avent-wheel-seg{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  text-transform:uppercase;
  font-size:.8rem;
  color:#111827;
}
.seg-perdu{
  transform:rotate(60deg);
}
.seg-rejouer{
  transform:rotate(180deg);
}
.seg-gagne{
  transform:rotate(300deg);
}
.avent-wheel-center{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:72px;
  height:72px;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  box-shadow:0 0 0 4px rgba(248,250,252,.9),0 0 0 10px rgba(248,113,113,.8);
}
.avent-wheel-pointer{
  position:absolute;
  top:-18px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:12px solid transparent;
  border-right:12px solid transparent;
  border-bottom:18px solid #facc15;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.35));
}
.avent-wheel-result{
  margin-top:10px;
  font-size:.95rem;
  text-align:center;
  color:#111827;
}

/* Légende de la roue */
.avent-wheel-legend{
  margin-top:8px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  font-size:.8rem;
  color:#374151;
}
.legend-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.legend-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
}
.legend-dot-green{
  background:#22c55e;
}
.legend-dot-yellow{
  background:#facc15;
}
.legend-dot-red{
  background:#ef4444;
}

/* Responsive */
@media (max-width:900px){
  .avent-hero-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .avent-hero-deco{
    align-self:center;
  }
}
@media (max-width:700px){
  .avent-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media (max-width:500px){
  /* Ajustements mobiles pour des cases plus homogènes */
  .avent-day{
    min-height:100px;
  }
  .avent-day-lock{
    top:6px;
    right:6px;
    width:24px;
    height:24px;
  }
  .avent-day-lock::before{
    top:4px;
    width:13px;
    height:10px;
  }
  .avent-day-lock::after{
    bottom:4px;
    width:6px;
    height:8px;
  }

  .avent-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .avent-calendar-card{
    padding:16px 12px 18px;
  }
  .avent-day{
    padding:12px 8px;
    min-height:80px;
  }
  .avent-gift-content{
    flex-direction:column;
    align-items:flex-start;
  }
  .avent-gift-image-wrap{
    width:100%;
  }
}


/* Hero Santa image overrides */

.avent-hero-deco{
  position:relative;
  width:260px;
  min-width:220px;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.avent-hero-santa{
  max-width:100%;
  height:auto;
  display:block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
  border-radius:18px;
}
