/* =========================================================
   Chez Donald v2 — Widgets Elementor CSS
   ========================================================= */

/* ── HERO ─────────────────────────────────────────────── */
.cd2-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, #0E4A7E 0%, #1A6BAF 55%, #3A8FD6 100%);
}

.cd2-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.cd2-hero__shapes::before,
.cd2-hero__shapes::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cd2-hero__shapes::before {
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,204,0,.12) 0%, transparent 70%);
}

.cd2-hero__shapes::after {
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244,135,43,.1) 0%, transparent 70%);
}

.cd2-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px;
}

.cd2-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #FFCC00;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cd2-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.cd2-hero__title-accent {
  display: block;
  color: #FFCC00;
}

.cd2-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 28px;
}

.cd2-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cd2-hero__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  border: 2px solid transparent;
}

.cd2-hero__btn--primary {
  background: #F4872B;
  color: #fff;
  box-shadow: 0 8px 30px rgba(244,135,43,.4);
}

.cd2-hero__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(244,135,43,.5);
  color: #fff;
}

.cd2-hero__btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

.cd2-hero__btn--outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  transform: translateY(-3px);
}

.cd2-hero__stats {
  display: flex;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.cd2-hero__stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFCC00;
  line-height: 1;
  margin-bottom: 3px;
}

.cd2-hero__stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
}

.cd2-hero__visual { position: relative; }

.cd2-hero__card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  transform: rotate(2deg);
  transition: transform .4s ease;
}

.cd2-hero__card:hover { transform: rotate(0deg); }
.cd2-hero__card img { width: 100%; height: 400px; object-fit: cover; display: block; }

.cd2-hero__float {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 16px 50px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.cd2-hero__float--1 {
  bottom: -16px;
  left: -24px;
  animation: cd2-float-1 4s ease-in-out infinite;
}

.cd2-hero__float--2 {
  top: -12px;
  right: -16px;
  animation: cd2-float-2 5s ease-in-out infinite;
}

@keyframes cd2-float-1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes cd2-float-2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

.cd2-hero__float-icon { font-size: 1.5rem; flex-shrink: 0; }
.cd2-hero__float-main { font-weight: 800; font-size: 0.82rem; color: #1A1A2E; }
.cd2-hero__float-sub  { font-size: 0.72rem; color: #6C757D; }

@media (max-width: 1024px) {
  .cd2-hero__inner { grid-template-columns: 1fr; }
  .cd2-hero__visual { display: none; }
  .cd2-hero { min-height: auto; }
}

/* ── CLASSES ────────────────────────────────────────────── */
.cd2-classes-grid {
  display: grid;
  gap: 20px;
}

.cd2-classes-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cd2-classes-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cd2-classes-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .cd2-classes-grid--3,
  .cd2-classes-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cd2-classes-grid { grid-template-columns: 1fr; }
}

.cd2-class-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}

.cd2-class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(0,0,0,.14);
}

.cd2-class-card__header {
  padding: 24px 20px 18px;
  color: white;
}

.cd2-class-card__emoji {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cd2-class-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.cd2-class-card__age {
  display: inline-block;
  background: rgba(255,255,255,.22);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cd2-class-card__body { padding: 18px 20px; }

.cd2-class-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cd2-class-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #495057;
  line-height: 1.4;
}

.cd2-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4CAF50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.cd2-class-card__horaires {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.82rem;
  color: #6C757D;
  font-weight: 600;
}

/* ── STATS ──────────────────────────────────────────────── */
.cd2-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.cd2-stats--vertical { flex-direction: column; align-items: flex-start; gap: 20px; }

.cd2-stats--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  text-align: center;
}

.cd2-stat { text-align: center; }
.cd2-stats--vertical .cd2-stat { text-align: left; display: flex; align-items: center; gap: 16px; }

.cd2-stat__icon { font-size: 2rem; margin-bottom: 6px; }
.cd2-stats--vertical .cd2-stat__icon { margin-bottom: 0; }

.cd2-stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #FFCC00;
  line-height: 1;
  margin-bottom: 4px;
}

.cd2-stat__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
}

/* ── ÉVÉNEMENTS ─────────────────────────────────────────── */
.cd2-events { display: flex; flex-direction: column; gap: 0; }

.cd2-event {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}

.cd2-event:last-child { border-bottom: none; }
.cd2-event--past { opacity: .55; }

.cd2-events--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cd2-events--cards .cd2-event { border-bottom: none; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }

.cd2-event__date {
  background: #F4872B;
  color: white;
  width: 52px;
  height: 58px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd2-event__day   { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.cd2-event__month { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; opacity: .88; }
.cd2-event__info  { flex: 1; }
.cd2-event__title { font-weight: 700; font-size: 0.92rem; color: #1A1A2E; margin-bottom: 3px; }

.cd2-event__meta {
  font-size: 0.78rem;
  color: #6C757D;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cd2-event__countdown {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6C757D;
  white-space: nowrap;
  background: #f8f9fa;
  padding: 3px 8px;
  border-radius: 6px;
}

.cd2-event__countdown--soon { background: rgba(244,135,43,.1); color: #D96A10; }

.cd2-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 50px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.cd2-badge--red { background: rgba(229,57,53,.1); color: #B71C1C; }

/* ── CONTACT FORM ───────────────────────────────────────── */
.cd2-contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) { .cd2-contact { grid-template-columns: 1fr; } }

.cd2-contact__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cd2-contact__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F4872B, #D96A10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(244,135,43,.3);
}

.cd2-contact__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6C757D; margin-bottom: 2px; }
.cd2-contact__value { font-weight: 700; color: #1A1A2E; font-size: 0.9rem; }
.cd2-contact__map   { margin-top: 16px; border-radius: 12px; overflow: hidden; }

.cd2-form { display: flex; flex-direction: column; gap: 14px; }

.cd2-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) { .cd2-form__row { grid-template-columns: 1fr; } }

.cd2-form__group { display: flex; flex-direction: column; gap: 5px; }

.cd2-form__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6C757D;
}

.cd2-form__input,
.cd2-form__select,
.cd2-form__textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color .2s;
  background: #fff;
  color: #1A1A2E;
}

.cd2-form__input:focus,
.cd2-form__select:focus,
.cd2-form__textarea:focus { border-color: #F4872B; }

.cd2-form__textarea { resize: vertical; min-height: 100px; }

.cd2-form__submit {
  background: #F4872B;
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}

.cd2-form__submit:hover { background: #D96A10; transform: translateY(-2px); }

.cd2-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.cd2-alert--success { background: rgba(76,175,80,.12); color: #2E7D32; }

/* ── PORTAIL LOCKED ─────────────────────────────────────── */
.cd2-portal-locked {
  text-align: center;
  padding: 60px 20px;
  background: #FDF9F5;
  border-radius: 20px;
}

.cd2-portal-locked__icon { font-size: 4rem; margin-bottom: 16px; }
.cd2-portal-locked h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.cd2-portal-locked p  { color: #6C757D; margin-bottom: 20px; }

/* ── BTN ────────────────────────────────────────────────── */
.cd2-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.cd2-btn--primary { background: #F4872B; color: white; }
.cd2-btn--primary:hover { background: #D96A10; color: white; transform: translateY(-2px); }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.cd2-empty {
  text-align: center;
  color: #6C757D;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 12px;
}

/* ── ELEMENTOR EDITOR PANEL ─────────────────────────────── */
.elementor-panel .cd2-widget-icon { color: #F4872B; }
