/* LANDING */
.hero {
  background:
    radial-gradient(ellipse at top left,    #D3E4EF 0%, transparent 70%),
    radial-gradient(ellipse at top right,   #F8E8BF 0%, transparent 70%),
    radial-gradient(ellipse at bottom right,#EFE5F1 0%, transparent 70%),
    radial-gradient(ellipse at bottom left, #D8E9E2 0%, transparent 70%),
    #ffffff;
  padding: var(--margin-top-title) 0 60px;
}

.hero-content {
  text-align: center;
  padding-bottom: var(--margin-bottom-title);
}


.secondary-cards {
  margin-top: 24px;
}

.secondary-cards .features {
  grid-template-columns: repeat(4, 1fr);
}

.secondary-cards .card {
  padding: 16px;
}

.secondary-cards .card-image {
  width: 140px;
  height: 140px;
}

@media (max-width: 900px) {
  .secondary-cards .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .secondary-cards .features {
    grid-template-columns: 1fr;
  }
}

.section-title {
  margin-bottom: 16px;
}

.calendar-section {
  margin-top: 40px;
  padding: 40px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
}

.calendar-side {
  max-width: 380px;
}

.calendar-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .calendar-section {
    justify-content: center;
    text-align: center;
  }
}

.calendar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.calendar-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
}

.calendar-btn-wrapper {
  position: relative;
  display: inline-block;
}

.article-calendar-btn {
  margin-top: var(--margin-bottom-title);
}

.calendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.calendar-btn:hover {
  background: #333;
}

.calendar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 200px;
  overflow: hidden;
  z-index: 100;
}

.calendar-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.calendar-option:hover {
  background: #f5f5f5;
}

.calendar-option + .calendar-option {
  border-top: 1px solid #f0f0f0;
}

/* BLOG */


.blog-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 64px;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #8ad7ff, #c9ecff);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-white);
  margin: 32px 0;
}

.cards-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}



/* LOGIN */
.login-page {
  min-height: calc(100vh - 80px);
}

.login-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  max-width: 480px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  border-color: #8ad7ff;
}

.field textarea {
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.error-msg {
  color: #e05c5c;
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
}

.error-msg.success-msg {
  color: #2f8f5b;
}

.btn-full {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
}

/* ARTICLE BODY (rendu public) */
.article-body {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.8;
}

.article-body h1, .article-body h2, .article-body h3 {
  color: var(--color-black);
  font-weight: 600;
  margin-block-start: 1em;
}

.article-body h1 { font-size: 56px; }
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 20px; }

.video-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

/* EDIT ARTICLE */
.edit-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
}


#quill-editor {
  min-height: 320px;
  font-size: 16px;
  font-family: inherit;
}

.ql-toolbar {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  border-color: #e0e0e0 !important;
}

.ql-container {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  border-color: #e0e0e0 !important;
  font-family: inherit !important;
  font-size: 16px !important;
}

.edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.btn-cancel {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 500;
  padding: 12px 8px;
}

/* ADMIN */
.admin-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drag-handle {
  cursor: grab;
  color: #bbb;
  font-size: 20px;
  flex-shrink: 0;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.admin-link {
  display: block;
  flex: 1;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e0e0e0;
  text-decoration: none;
  color: var(--color-black);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.admin-link:hover {
  border-color: #8ad7ff;
  background: #f0faff;
}

/* RESPONSIVE */
@media (min-width: 900px) {
  .cards-container {
    padding: 64px;
  }

  .cards-container.secondary-cards {
    padding: 24px 64px 64px 64px;
  }
}

@media (max-width: 768px) {
  .h1 {
    font-size: 38px;
  }

  .blog-content {
    padding: 40px 24px;
  }

}
