/* Styles personnalisés pour la documentation */

/* Hero section */
.mdx-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 2rem 0;
}

/* Lottie animation */
lottie-player {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  margin: 2rem;
}

@media (max-width: 1220px) {
  lottie-player {
    margin: 2rem 4rem;
  }
}

lottie-player:hover {
  transform: scale(1.05);
}

.mdx-hero__image {
  flex: 1;
  text-align: center;
  margin-right: 2rem;
}

.mdx-hero__image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mdx-hero__content {
  flex: 1;
  padding: 1rem;
}

.mdx-hero__content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--md-primary-fg-color);
}

.mdx-hero__content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--md-default-fg-color--light);
}

/* Boutons */
.md-button {
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.6rem 1.2rem;
  border-radius: 0.3rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.md-button--primary {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border: 2px solid var(--md-primary-fg-color);
}

.md-button--primary:hover {
  background-color: transparent;
  color: var(--md-primary-fg-color);
}

.md-button:not(.md-button--primary) {
  background-color: transparent;
  color: var(--md-primary-fg-color);
  border: 2px solid var(--md-primary-fg-color);
}

.md-button:not(.md-button--primary):hover {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

/* Responsive */
@media screen and (max-width: 76.24em) {
  .mdx-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .mdx-hero__image {
    margin-right: 0;
    margin-bottom: 2rem;
  }
  
  .mdx-hero__content h1 {
    font-size: 2rem;
  }
}

/* Cards pour les sections */
.md-typeset .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.md-typeset .card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1.5rem;
  background: var(--md-default-bg-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.md-typeset .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.md-typeset .card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

/* Icônes dans les boutons */
.md-button .twemoji {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Amélioration de l'annonce */
.md-banner {
  background: linear-gradient(135deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  color: var(--md-primary-bg-color);
}

.md-banner a {
  color: var(--md-primary-bg-color);
  font-weight: 500;
}

.md-banner a:hover {
  color: var(--md-primary-bg-color);
  text-decoration: underline;
}

/* Masquer la Table of Contents (TOC) sur toutes les pages */
.md-sidebar--secondary {
    display: none !important;
}

.md-nav--secondary {
    display: none !important;
}

.md-nav__list--secondary {
    display: none !important;
}

/* Masquer également le label "Table of contents" */
.md-nav__title[for="__toc"] {
    display: none !important;
}

/* Masquer le bouton toggle de la TOC si présent */
.md-nav__title .md-nav__button {
    display: none !important;
}

/* Styles pour les champs de formulaire dans la checklist */
.checklist-input {
    display: inline-block;
    min-width: 200px;
    padding: 0.4rem 0.6rem;
    margin: 0 0.3rem;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-bottom: 2px solid var(--md-primary-fg-color);
    border-radius: 4px;
    background: var(--md-default-bg-color);
    color: var(--md-default-fg-color);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.checklist-input:hover {
    border-color: var(--md-primary-fg-color);
}

.checklist-input:focus {
    outline: none;
    border-bottom-color: var(--md-accent-fg-color);
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.checklist-input::placeholder {
    color: var(--md-default-fg-color--light);
    font-style: italic;
    opacity: 0.7;
}

.checklist-textarea {
    display: block;
    width: 100%;
    max-width: 600px;
    min-width: 300px;
    min-height: 60px;
    padding: 0.6rem;
    margin: 0.5rem 0;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-bottom: 2px solid var(--md-primary-fg-color);
    border-radius: 4px;
    background: var(--md-default-bg-color);
    color: var(--md-default-fg-color);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.checklist-textarea:hover {
    border-color: var(--md-primary-fg-color);
}

.checklist-textarea:focus {
    outline: none;
    border-bottom-color: var(--md-accent-fg-color);
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-textarea::placeholder {
    color: var(--md-default-fg-color--light);
    font-style: italic;
    opacity: 0.7;
}

/* Style pour les champs de type date */
.checklist-input[type="date"] {
    min-width: 180px;
    cursor: pointer;
}

/* Style pour les champs de type number */
.checklist-input[type="number"] {
    min-width: 120px;
}

/* Style pour les champs de type email */
.checklist-input[type="email"] {
    min-width: 250px;
}

/* Styles pour les checkboxes et radio buttons */
.checklist-checkbox,
.checklist-radio {
    width: 18px;
    height: 18px;
    margin: 0 0.5rem 0 0;
    cursor: pointer;
    accent-color: var(--md-primary-fg-color);
    vertical-align: middle;
    flex-shrink: 0;
}

.checklist-checkbox:checked,
.checklist-radio:checked {
    accent-color: var(--md-accent-fg-color);
}

.checklist-checkbox:hover,
.checklist-radio:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.checklist-checkbox-label,
.checklist-radio-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 1rem;
    user-select: none;
    transition: color 0.2s ease;
}

.checklist-checkbox-label:hover,
.checklist-radio-label:hover {
    color: var(--md-primary-fg-color);
}

/* Style pour les champs obligatoires (disabled) */
.checklist-checkbox:disabled,
.checklist-radio:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checklist-checkbox:disabled + strong,
.checklist-radio:disabled + strong {
    color: var(--md-primary-fg-color);
    font-weight: 600;
}

.checklist-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

/* Style pour les groupes de choix Oui/Non */
.checklist-yesno {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Style pour les items de liste de tâches */
.task-list-item {
    margin-top: 1rem;
}

/* Style pour les notes explicatives dans la checklist */
.md-typeset blockquote {
    border-left: 4px solid var(--md-primary-fg-color);
    background: var(--md-default-bg-color--light);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.md-typeset blockquote strong {
    color: var(--md-primary-fg-color);
}

/* Style pour le bouton de téléchargement PDF */
#download-pdf-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#download-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#download-pdf-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.md-typeset h3 {
    margin-bottom: 0 !important;
}

.task-list{
  margin-top: 0 !important; 
} 