/* LPF Réservation — styles */
.lpf-reservation { font-family: inherit; max-width: 760px; margin: 0 auto; padding: 1.5rem; }

/* Indicateur d'étapes */
.lpf-steps { display: flex; gap: 0; list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: step; }
.lpf-step-dot { flex: 1; text-align: center; padding: .5rem; font-size: .8rem; color: #999; border-bottom: 3px solid #e0e0e0; }
.lpf-step-dot--active { color: #e74c3c; border-color: #e74c3c; font-weight: 700; }
.lpf-step-dot--done { color: #27ae60; border-color: #27ae60; }

/* Cartes de choix */
.lpf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.lpf-card { background: #fff; border: 2px solid #e0e0e0; border-radius: 8px; padding: 1.2rem; cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; display: flex; flex-direction: column; gap: .3rem; }
.lpf-card:hover { border-color: #e74c3c; box-shadow: 0 2px 8px rgba(231,76,60,.15); }
.lpf-card--active { border-color: #e74c3c; background: #fff5f5; }
.lpf-card strong { display: block; font-size: 1rem; }
.lpf-card span { font-size: .85rem; color: #666; }

/* Liste de semaines */
.lpf-semaines { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.lpf-semaine-item { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border: 1px solid #e0e0e0; border-radius: 6px; cursor: pointer; }
.lpf-semaine-item input { width: 18px; height: 18px; cursor: pointer; }
.lpf-semaine-item--complet { opacity: .5; cursor: not-allowed; background: #f9f9f9; }
.lpf-semaine-item--passe { opacity: .4; }
.lpf-semaine-label { flex: 1; font-weight: 500; }
.lpf-semaine-nb-jours { font-size: .8rem; color: #888; }
.lpf-semaine-places { font-size: .8rem; padding: .2rem .5rem; border-radius: 12px; background: #e8f5e9; color: #2e7d32; }
.lpf-places--complet { background: #ffebee; color: #c62828; }

/* Calendrier */
.lpf-calendrier { margin-bottom: 1.5rem; }
.lpf-calendrier-mois { margin-bottom: 1.5rem; }
.lpf-calendrier-mois h3 { font-size: 1rem; margin-bottom: .5rem; }
.lpf-calendrier-grille { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.lpf-cal-header { text-align: center; font-size: .75rem; font-weight: 700; color: #888; padding: .25rem; }
.lpf-cal-day { border: 1px solid #e0e0e0; border-radius: 4px; padding: .5rem; text-align: center; cursor: pointer; background: #fff; font-size: .9rem; transition: background .15s; }
.lpf-cal-day:hover:not(:disabled) { background: #fff5f5; border-color: #e74c3c; }
.lpf-cal-day--selected { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.lpf-cal-day--complet { background: #f5f5f5; color: #bbb; cursor: not-allowed; }
.lpf-cal-day--passe { opacity: .4; cursor: not-allowed; }
.lpf-cal-day--empty { border: none; background: transparent; cursor: default; }

/* Formulaire enfant */
.lpf-enfant-form { border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.2rem; margin-bottom: 1rem; }
.lpf-enfant-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.lpf-enfant-header h3 { margin: 0; font-size: 1rem; }
.lpf-field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; font-size: .9rem; }
.lpf-field input,
.lpf-field select { padding: .4rem .6rem; border: 1px solid #ccc; border-radius: 4px; font-size: .95rem; width: 100%; box-sizing: border-box; background: #fff; }
.lpf-field select { appearance: auto; }
.lpf-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Enfants sauvegardés */
.lpf-saved-section { margin-bottom: 1.5rem; }
.lpf-saved-hint { font-size: .85rem; color: #666; margin-bottom: .75rem; }
.lpf-saved-empty { font-size: .85rem; color: #999; font-style: italic; }
.lpf-loading-text { font-size: .85rem; color: #888; }
.lpf-saved-cards { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.lpf-saved-card { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border: 2px solid #e0e0e0; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; text-align: left; }
.lpf-saved-card:hover { border-color: #e74c3c; }
.lpf-saved-card--selected { border-color: #e74c3c; background: #fff5f5; }
.lpf-saved-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e74c3c; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.lpf-saved-info { display: flex; flex-direction: column; }
.lpf-saved-info strong { font-size: .9rem; }
.lpf-saved-info span { font-size: .8rem; color: #888; }
.lpf-saved-check { margin-left: .5rem; color: #e74c3c; font-weight: 700; }
.lpf-enfants-forms { margin-top: 1.5rem; }
.lpf-enfants-forms h3 { font-size: .95rem; color: #555; margin-bottom: .75rem; }
.lpf-enfant-header h4 { margin: 0; font-size: 1rem; }

/* Options repas */
.lpf-options-repas { margin: 1.5rem 0; }
.lpf-options-repas h3 { font-size: .95rem; margin-bottom: .75rem; }
.lpf-options-row { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1rem; background: #f9f9f9; border-radius: 6px; margin-bottom: .5rem; }
.lpf-options-row strong { flex: 1; font-size: .85rem; }
.lpf-options-row label { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; cursor: pointer; }
.lpf-options { background: #f9f9f9; border-radius: 6px; padding: .75rem 1rem; margin-top: .5rem; }
.lpf-options strong { display: block; font-size: .85rem; margin-bottom: .4rem; }
.lpf-options label { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1rem; font-size: .9rem; cursor: pointer; }

/* Boutons */
.lpf-step-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.lpf-btn { padding: .6rem 1.2rem; border: none; border-radius: 6px; cursor: pointer; font-size: .95rem; font-weight: 600; transition: background .2s; }
.lpf-btn--back { background: #f0f0f0; color: #333; }
.lpf-btn--back:hover { background: #e0e0e0; }
.lpf-btn--next, .lpf-btn--submit { background: #e74c3c; color: #fff; margin-left: auto; }
.lpf-btn--next:hover, .lpf-btn--submit:hover { background: #c0392b; }
.lpf-btn--next:disabled, .lpf-btn--submit:disabled { opacity: .5; cursor: not-allowed; }
.lpf-btn--add-child { background: #eaf4ff; color: #1565c0; border: 1px dashed #90caf9; width: 100%; margin-top: .5rem; }
.lpf-btn--remove { background: transparent; color: #c62828; font-size: .8rem; padding: .2rem .5rem; }

/* Messages */
.lpf-message { padding: .75rem 1rem; border-radius: 6px; margin-top: 1rem; }
.lpf-message--success { background: #e8f5e9; color: #2e7d32; }
.lpf-message--error   { background: #ffebee; color: #c62828; }
.lpf-loading { text-align: center; color: #888; padding: 1rem; }

/* Mention remise fratrie */
.lpf-discount-hint { font-size: .85rem; color: #555; background: #fffde7; border: 1px solid #ffe082; border-radius: 6px; padding: .6rem .9rem; margin: .75rem 0 .5rem; }

/* ─── Mon Compte — Mes enfants & Mes documents ───────────────────────────── */
.lpf-account { max-width: 760px; }
.lpf-account h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.lpf-account-intro { color: #555; font-size: .9rem; margin-bottom: 1.5rem; }
.lpf-empty { color: #999; font-style: italic; margin-bottom: 1.5rem; }

/* Notifications */
.lpf-notice { padding: .7rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
.lpf-notice--success { background: #e8f5e9; color: #2e7d32; }
.lpf-notice--error   { background: #ffebee; color: #c62828; }

/* Fiche enfant (liste) */
.lpf-children-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.lpf-child-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; }
.lpf-child-card--editing { border-color: #e74c3c; flex-direction: column; align-items: stretch; }
.lpf-child-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e74c3c; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.lpf-child-info { flex: 1; }
.lpf-child-info strong { display: block; font-size: .95rem; }
.lpf-child-info span { font-size: .82rem; color: #777; }
.lpf-child-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.lpf-child-edit-header { margin-bottom: 1rem; }
.lpf-child-edit-header strong { display: block; font-size: 1rem; }
.lpf-child-edit-header em { font-size: .85rem; color: #777; }

/* Formulaire enfant (ajout / édition) */
.lpf-child-edit-form .lpf-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.lpf-child-edit-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; font-weight: 500; }
.lpf-child-edit-form input { padding: .4rem .6rem; border: 1px solid #ccc; border-radius: 4px; font-size: .9rem; }
.lpf-field-full { grid-column: 1 / -1; }
.lpf-add-child-section { border-top: 1px solid #e0e0e0; padding-top: 1.5rem; margin-top: .5rem; }
.lpf-add-child-section h3 { font-size: 1rem; margin-bottom: 1rem; }

/* Boutons Mon Compte — reset du style WC/thème */
.lpf-account .button,
.lpf-account button[type="submit"] {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .9rem; border-radius: 6px; font-size: .85rem; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
    border: 1.5px solid #d0d0d0; background: #fff; color: #333;
    box-shadow: none; line-height: 1.4;
}
.lpf-account .button:hover { background: #f5f5f5; border-color: #bbb; color: #111; }

/* Bouton primaire (Enregistrer, Ajouter) */
.lpf-account .button-primary,
.lpf-account button.button-primary {
    background: #e74c3c; border-color: #e74c3c; color: #fff;
}
.lpf-account .button-primary:hover { background: #c0392b; border-color: #c0392b; color: #fff; }

/* Bouton suppression */
.lpf-btn-delete { border-color: #f8bbd0 !important; color: #c62828 !important; background: #fff !important; }
.lpf-btn-delete:hover { background: #ffebee !important; border-color: #e57373 !important; }

/* Table documents */
.lpf-documents-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; font-size: .9rem; }
.lpf-documents-table th { text-align: left; padding: .5rem .75rem; background: #f5f5f5; border-bottom: 2px solid #e0e0e0; font-size: .8rem; text-transform: uppercase; color: #666; }
.lpf-documents-table td { padding: .6rem .75rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.lpf-documents-table a { color: #1565c0; text-decoration: none; }
.lpf-documents-table a:hover { text-decoration: underline; }

/* Formulaire upload */
.lpf-upload-section { border-top: 1px solid #e0e0e0; padding-top: 1.5rem; }
.lpf-upload-section h3 { font-size: 1rem; margin-bottom: 1rem; }
.lpf-upload-form .lpf-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.lpf-upload-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; font-weight: 500; }
.lpf-upload-form input[type="text"],
.lpf-upload-form select { padding: .4rem .6rem; border: 1px solid #ccc; border-radius: 4px; font-size: .9rem; }
.lpf-upload-form input[type="file"] { font-size: .85rem; }
.lpf-upload-form small { font-size: .78rem; color: #999; }
