/* ====================================================
   PAGINATION FORMULAIRES - VERSION SIMPLIFIÉE
   ==================================================== */

/* Structure flexbox pour l'ensemble */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

#content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mat-input input[readonly] {
    background-color: #c5c5c5 !important;
    cursor: not-allowed;
}

/* ========================================
   BOUTON SUBMIT EN HAUT
   ======================================== */

.form-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 12px 15px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #45a049;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ========================================
   FORMULAIRE ET CONTENEUR DES PAGES
   ======================================== */

#newMedia {
    display: flex;
    flex-direction: column;
    flex: 1; /* Prend l'espace disponible automatiquement */
}

/* Conteneur des pages */
.pages-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.pages-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* PAGES DE FORMULAIRE */
.form-page {
    min-width: 100%;
    width: 100%;
    height: 100%;
    padding: 0; /* Pas de padding ici ! */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* Container interne pour le padding */
.form-page > * {
    padding: 15px; /* Padding sur le contenu, pas sur la page */
}

/* SECTIONS DANS UNE PAGE */
.form-section {
    margin-bottom: 5px;
    background-color: antiquewhite;
    border-radius: 10px;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Adapter les formBlock existants */
.form-page .formBlock {
    border: none;
}

.form-page .formBlock h1 {
    font-size: 18px;
    color: #1976d2;
    margin-bottom: 15px;
}

/* ========================================
   BARRE DE PROGRESSION - STICKY EN BAS
   ======================================== */

.progress-bar {
    position: sticky;
    bottom: 0;
    background: white;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    height: 50px;
    flex-shrink: 0;
}

.progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #9e9e9e;
    font-size: 14px;
    font-weight: 600;
    border-right: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.progress-step:last-child {
    border-right: none;
}

.progress-step.active {
    background: #1976d2;
    color: white;
}

.progress-step.completed {
    background: #4CAF50;
    color: white;
}

.progress-step:active {
    transform: scale(0.95);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 400px) {
    .progress-step {
        font-size: 12px;
        padding: 0 4px;
    }
}

@media (max-width: 360px) {
    .progress-step {
        font-size: 11px;
    }
}
