/**
 * FFRE AAP - Styles Front-end
 * Formulaire multi-étapes + Dashboard Scientifique
 *
 * Palette : Bleu FFRE #0072CE, Bleu foncé #004B87
 */

/* ================================================================
   VARIABLES
   ================================================================ */

:root {
    --ffre-blue: #0072CE;
    --ffre-blue-dark: #004B87;
    --ffre-blue-light: #E8F4FD;
    --ffre-blue-hover: #005FA3;
    --ffre-blue-electric: #007AFF;
    --ffre-green: #28A745;
    --ffre-green-light: #F2FDF5;
    --ffre-orange: #F59E0B;
    --ffre-orange-light: #FFF3CD;
    --ffre-red: #DC3545;
    --ffre-red-light: #FFEEF1;
    --ffre-white: #FFFFFF;
    --ffre-background: #F1F5F9;
    --ffre-gray-50: #F8F9FA;
    --ffre-gray-100: #F1F3F5;
    --ffre-gray-200: #E9ECEF;
    --ffre-gray-300: #DEE2E6;
    --ffre-gray-400: #CED4DA;
    --ffre-gray-500: #ADB5BD;
    --ffre-gray-600: #6C757D;
    --ffre-gray-700: #495057;
    --ffre-gray-800: #343A40;
    --ffre-gray-900: #212529;
    --ffre-alert: #FAF6F3;
    --ffre-border: #DEE2E6;
    --ffre-radius: 8px;
    --ffre-radius-sm: 4px;
    --ffre-radius-lg: 20px;
    --ffre-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --ffre-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --ffre-transition: 0.2s ease;
    --ffre-font: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ================================================================
   RESET / BASE
   ================================================================ */


.ffre-page-wrapper {
    max-width: none;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 40px;
    background: var(--ffre-blue-dark);
    background: linear-gradient(130deg, #007AFF 27.24%, #004999 100%);
}

.ffre-app {
    font-family: var(--ffre-font), sans-serif;
    color: var(--ffre-gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    max-width: 1800px;
    margin: 0 auto;
}

.ffre-app *, .ffre-app *::before, .ffre-app *::after {
    box-sizing: border-box;
}

/* ================================================================
   HEADER
   ================================================================ */

.ffre-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ffre-white);
    padding: 20px 12px;
    background-color: transparent;
}

.ffre-header__left {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: var(--ffre-radius-sm);
    background-color: #1987FF;
}

a.ffre-header__left--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    color: #FFF;
}
a.ffre-header__left--link:hover {
    opacity: 0.85;
}

.ffre-header__title {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.ffre-header__subtitle {
    font-size: 13px;
    opacity: 0.8;
}
.ffre-header__center {
    flex-grow: 0;
}
.ffre-header__center img {
    max-width: 229px;
    height: auto;
    width: auto;
}

.ffre-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ffre-header__right .ffre-btn {
    border-radius: var(--ffre-radius);
}

.ffre-header__user {
    font-size: 13px;
    color: #80B5EF;
}

.ffre-header__user strong {
    display: block;
    font-size: 14px;
    color: var(--ffre-white);
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 200px;
}

@media screen and (max-width: 700px) {
    .ffre-header {
        flex-wrap: wrap;
        padding-left: 0;
        padding-right: 0;
        gap: 15px 20px;
    }
    .ffre-header__center {
        order: 0;
        width: 50%;
    }
    .ffre-header__center img {
        max-width: 150px;
    }
    .ffre-header__left {
        order: 1;
        text-align: right;
        padding: 5px 10px;
    }
    .ffre-header__title {
        font-size: 14px;
    }
    .ffre-header__subtitle {
        font-size: 12px;
    }
    .ffre-header__right {
        order: 2;
    }
}

/* ================================================================
   ALERT BANNER
   ================================================================ */

.ffre-alert {
    padding: 12px 32px;
    font-size: 14px;
    text-align: center;
    border-radius: var(--ffre-radius);
}
.ffre-main .ffre-alert {
    margin-bottom: 50px;
}

.ffre-alert--info {
    background: var(--ffre-alert);
    color: var(--ffre-gray-700);
}

.ffre-alert--warning {
    background: var(--ffre-red-light);
    color: var(--ffre-red);
    font-weight: 600;
}

/* ================================================================
   LAYOUT
   ================================================================ */

.ffre-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 600px;
    background: var(--ffre-white);
    border: 1px solid var(--ffre-gray-200);
    border-top: none;
    border-radius: var(--ffre-radius-lg) var(--ffre-radius-lg) 0 0;
    overflow: hidden;
}

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

/* ================================================================
   SIDEBAR / STEPPER
   ================================================================ */

.ffre-sidebar {
    background: var(--ffre-gray-50);
    border-right: 1px solid var(--ffre-gray-200);
    padding: 32px 24px;
}

.ffre-stepper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ffre-stepper__content {
    display: flex;
    flex-direction: column;
    padding-top: 6px;
}

.ffre-stepper__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    position: relative;
    cursor: default;
}

.ffre-stepper__item--completed.ffre-stepper__item:not(:last-child)::after {
    background: var(--ffre-green);
}

.ffre-stepper__item--completed,
.ffre-stepper__item--current {
    cursor: pointer;
}

/* Ligne verticale entre les étapes */
.ffre-stepper__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 38px;
    bottom: -12px;
    width: 2px;
    background: var(--ffre-gray-300);
}

.ffre-stepper__item--completed:not(:last-child)::after {
    background: var(--ffre-blue);
}

/* Indicateur (cercle) */
.ffre-stepper__indicator {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--ffre-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--ffre-white);
    transition: all var(--ffre-transition);
    z-index: 2;
}

.ffre-stepper__item--completed .ffre-stepper__indicator {
    background: var(--ffre-green);
    border-color: var(--ffre-green);
    color: var(--ffre-white);
}

.ffre-stepper__item--current .ffre-stepper__indicator {
    border-color: var(--ffre-blue);
    background: var(--ffre-blue-light);
    color: var(--ffre-blue);
}

.ffre-stepper__indicator .ffre-icon {
    width: 16px;
    height: 16px;
}

/* Contenu texte */
.ffre-stepper__top {
    display: flex;
    align-content: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.ffre-stepper__label {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--ffre-gray-500);
}

.ffre-stepper__badge {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    color: var(--ffre-blue);
    font-weight: 600;
}

.ffre-stepper__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ffre-gray-800);
    display: block;
    margin-top: 2px;
}

.ffre-stepper__item--pending .ffre-stepper__title {
    color: var(--ffre-gray-500);
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */

.ffre-main {
    padding: 32px 40px;
}

.ffre-step-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.ffre-step-header__number {
    font-size: 20px;
    font-weight: 700;
    color: var(--ffre-blue);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--ffre-blue-light);
}

.ffre-step-header__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ffre-blue);
    margin: 0;
}

.ffre-step-description {
    color: var(--ffre-gray-700);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.ffre-step-description a {
    color: var(--ffre-blue);
    font-weight: 500;
}

/* ================================================================
   FORM WRAPPER
   ================================================================ */

.ffre-form-wrapper {
    background: var(--ffre-gray-50);
    border: 1px solid var(--ffre-gray-200);
    border-radius: var(--ffre-radius);
    padding: 32px;
    margin-bottom: 24px;
}

/* ================================================================
   FIELDS
   ================================================================ */

.ffre-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ffre-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-basis: 100%;
}

.ffre-field.ffre-field--col-2 {
    flex-basis: calc(50% - 10px);
}

.ffre-field-row--inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .ffre-field-row--inline {
        grid-template-columns: 1fr;
    }
}

.ffre-field__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ffre-gray-800);
}

.ffre-field__required {
    color: var(--ffre-red);
    margin-left: 2px;
}

/* Inputs */
.ffre-input,
.ffre-textarea,
.ffre-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ffre-gray-300);
    border-radius: var(--ffre-radius-sm);
    font-size: 14px;
    font-family: var(--ffre-font);
    color: var(--ffre-gray-900);
    background: var(--ffre-white);
    transition: border-color var(--ffre-transition), box-shadow var(--ffre-transition);
}

.ffre-input:focus,
.ffre-textarea:focus,
.ffre-select:focus {
    outline: none;
    border-color: var(--ffre-blue);
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.15);
}

.ffre-textarea {
    resize: vertical;
    min-height: 100px;
}

.ffre-textarea--wysiwyg {
    min-height: 200px;
}

/* Number with prefix */
.ffre-input-group {
    display: flex;
    align-items: stretch;
}

.ffre-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--ffre-gray-100);
    border: 1px solid var(--ffre-gray-300);
    border-right: none;
    border-radius: var(--ffre-radius-sm) 0 0 var(--ffre-radius-sm);
    font-size: 14px;
    color: var(--ffre-gray-600);
}

.ffre-input-group .ffre-input {
    border-radius: 0 var(--ffre-radius-sm) var(--ffre-radius-sm) 0;
}

/* Radio */
.ffre-radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ffre-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.ffre-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ffre-blue);
    cursor: pointer;
}

/* Help text */
.ffre-field__help {
    font-size: 12px;
    color: var(--ffre-gray-500);
    margin: 0;
}

.ffre-field__counter {
    font-size: 12px;
    color: var(--ffre-gray-500);
    margin: 0;
}

.ffre-word-count--over {
    color: var(--ffre-red);
    font-weight: 700;
}

/* Error state */
.ffre-field--has-error .ffre-input,
.ffre-field--has-error .ffre-textarea,
.ffre-field--has-error .ffre-select {
    border-color: var(--ffre-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.ffre-field__error {
    font-size: 13px;
    color: var(--ffre-red);
    margin: 0;
    display: none;
}

/* ================================================================
   FILE UPLOAD
   ================================================================ */

.ffre-file-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ffre-file-existing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    padding: 10px 14px;
    background: var(--ffre-blue-light);
    border: 1px solid var(--ffre-blue);
    border-radius: var(--ffre-radius-sm);
    font-size: 13px;
}

.ffre-file-existing__name {
    font-weight: 600;
    color: var(--ffre-blue-dark);
}

.ffre-file-existing__size {
    color: var(--ffre-gray-500);
}

.ffre-file-existing__download {
    color: var(--ffre-blue);
    text-decoration: none;
    font-weight: 500;
}

.ffre-file-existing__download:hover {
    text-decoration: underline;
}

.ffre-file-existing__delete {
    background: none;
    border: none;
    color: var(--ffre-red);
    cursor: pointer;
    font-size: 13px;
    margin-left: auto;
}

.ffre-file-existing__delete:hover {
    text-decoration: underline;
}

.ffre-file-input {
    font-size: 14px;
}

/* ================================================================
   THEMATIQUE CARDS (Étape 1)
   ================================================================ */

.ffre-thematiques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ffre-thematique-card {
    background: var(--ffre-white);
    border: 2px solid var(--ffre-gray-200);
    border-radius: var(--ffre-radius);
    padding: 24px;
    cursor: pointer;
    transition: all var(--ffre-transition);
    display: flex;
    flex-direction: column;
}

.ffre-thematique-card:hover {
    border-color: var(--ffre-blue);
    box-shadow: var(--ffre-shadow-lg);
}

.ffre-thematique-card--selected {
    border-color: var(--ffre-blue);
    background: var(--ffre-blue-light);
}

.ffre-thematique-card--disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(30%);
}

.ffre-thematique-card__header {
    margin-bottom: 12px;
}

.ffre-thematique-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ffre-gray-900);
    margin: 0 0 4px 0;
}

.ffre-thematique-card__amount {
    font-size: 17px;
    font-weight: 600;
    color: var(--ffre-blue);
}

.ffre-thematique-card__body {
    font-size: 13px;
    color: var(--ffre-gray-600);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}
.ffre-thematique-card__body p,
.ffre-thematique-card__body ul li,
.ffre-thematique-card__body ol li {
    font-size: 13px;
    line-height: 1.6;
}
.ffre-thematique-card__body ul {
    list-style: circle outside;
    padding-left: 20px;
}
.ffre-thematique-card__footer {
    border-top: 1px solid var(--ffre-gray-200);
    padding-top: 12px;
}

/* ================================================================
   REPEATABLE BLOCKS
   ================================================================ */
.ffre-repeatable {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.ffre-repeatable__item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--ffre-white);
    border: 1px solid var(--ffre-gray-200);
    border-radius: var(--ffre-radius);
    padding: 20px;
    margin-bottom: 0;
    position: relative;
    width: calc(50% - 10px);
}

.ffre-repeatable__title {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ffre-gray-800);
    margin: 0 0 5px 0;
    flex-basis: 100%;
}

.ffre-repeatable__remove {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--ffre-red);
    cursor: pointer;
    font-size: 13px;
}

/* ================================================================
   BUTTONS
   ================================================================ */

a.ffre-btn,
.ffre-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--ffre-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--ffre-font);
    cursor: pointer;
    transition: all var(--ffre-transition);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.4;
}

a.ffre-btn--primary,
.ffre-btn--primary {
    background: var(--ffre-blue-electric);
    color: var(--ffre-white);
    border-color: var(--ffre-blue-electric);
}

a.ffre-btn--primary:hover,
.ffre-btn--primary:hover {
    background: var(--ffre-blue);
    border-color: var(--ffre-blue);
}

a.ffre-btn--outline,
.ffre-btn--outline {
    background: var(--ffre-white);
    color: var(--ffre-blue);
    border-color: var(--ffre-blue);
}

a.ffre-btn--outline:hover,
.ffre-btn--outline:hover {
    background: var(--ffre-blue-light);
}

.ffre-btn--ghost {
    background: none;
    color: var(--ffre-gray-600);
    background-color: var(--ffre-white);
    border: 2px solid var(--ffre-gray-100);
    padding: 12px 16px;
}

.ffre-btn--ghost:hover {
    color: var(--ffre-gray-800);
    background-color: var(--ffre-gray-100);
    border-color: var(--ffre-gray-200);
}

.ffre-btn--secondary {
    border: none;
    color: var(--ffre-blue);
    background-color:  var(--ffre-blue-light);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.ffre-btn--secondary:hover {
    background-color:  var(--ffre-white);
}
.ffre-btn--link {
    background: none;
    border: none;
    color: var(--ffre-blue);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
}

.ffre-btn--link:hover {
    text-decoration: underline;
}

.ffre-btn--lg {
    padding: 14px 32px;
}

.ffre-btn--sm {
    padding: 6px 14px;
    font-size: 13px;
}

.ffre-btn--select {
    width: 100%;
    background: var(--ffre-white);
    color: var(--ffre-gray-700);
    border: 1px solid var(--ffre-gray-300);
    border-radius: var(--ffre-radius-sm);
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
}

.ffre-btn--selected {
    background: var(--ffre-blue);
    color: var(--ffre-white);
    border-color: var(--ffre-blue);
}

.ffre-btn--loading {
    opacity: 0.6;
    pointer-events: none;
}

.ffre-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================================================
   ACTIONS BAR
   ================================================================ */

.ffre-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.ffre-actions__left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}

/* ================================================================
   FEEDBACK
   ================================================================ */

.ffre-feedback {
    display: none;
    padding: 14px 20px;
    border-radius: var(--ffre-radius-sm);
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.5;
}

.ffre-feedback ul {
    margin: 8px 0 0 20px;
    padding: 0;
    list-style: circle inside;
}

.ffre-feedback ul li {
    font-size: 14px;
    line-height: 1.4;
}

.ffre-feedback--success {
    background: var(--ffre-green-light);
    color: #155724;
    border: 1px solid #C3E6CB;
}

.ffre-feedback--error {
    background: var(--ffre-red-light);
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.ffre-feedback--warning {
    background: var(--ffre-orange-light);
    color: #856404;
    border: 1px solid #FFEEBA;
}


/* ================================================================
   DASHBOARD SCIENTIFIQUE
   ================================================================ */

.ffre-dashboard {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: var(--ffre-font);
}

.ffre-dashboard__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--ffre-gray-900);
}

.ffre-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.ffre-dashboard-card {
    background: var(--ffre-white);
    border: 1px solid var(--ffre-gray-200);
    border-radius: var(--ffre-radius);
    overflow: hidden;
    transition: box-shadow var(--ffre-transition);
}

.ffre-dashboard-card:hover {
    box-shadow: var(--ffre-shadow-lg);
}

.ffre-dashboard-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ffre-gray-100);
}

.ffre-dashboard-card__ref {
    font-weight: 700;
    font-size: 15px;
    color: var(--ffre-gray-800);
}

.ffre-dashboard-card__body {
    padding: 16px 20px;
}

.ffre-dashboard-card__body p {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: var(--ffre-gray-700);
}

.ffre-dashboard-card__date {
    font-size: 13px;
    color: var(--ffre-gray-500);
}

.ffre-dashboard-card__actions {
    padding: 12px 20px;
    border-top: 1px solid var(--ffre-gray-100);
}

/* Progress bar */
.ffre-progress {
    height: 6px;
    background: var(--ffre-gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.ffre-progress__bar {
    height: 100%;
    background: var(--ffre-blue);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.ffre-progress__label {
    font-size: 12px;
    color: var(--ffre-gray-500);
    margin-top: 4px;
}

/* Badge statut */
.ffre-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ffre-badge--brouillon {
    background: var(--ffre-orange-light);
    color: #92400E;
}

.ffre-badge--soumis {
    background: #21AF7D;
    color: var(--ffre-white);
}

.ffre-badge--en_evaluation {
    background: #E0E7FF;
    color: #3730A3;
}

.ffre-badge--evalue {
    background: var(--ffre-green-light);
    color: #21AF7D;
}

.ffre-badge--accepte {
    background: var(--ffre-green-light);
    color: #21AF7D;
}

.ffre-badge--refuse {
    background: var(--ffre-red-light);
    color: #721C24;
}

/* ================================================================
   NOTICES
   ================================================================ */

.ffre-notice {
    padding: 20px 24px;
    border-radius: var(--ffre-radius);
    font-size: 14px;
    line-height: 1.6;
}

.ffre-notice--info {
    background: var(--ffre-blue-light);
    color: var(--ffre-blue-dark);
}

.ffre-notice--warning {
    background: var(--ffre-orange-light);
    color: #92400E;
}

.ffre-notice--error {
    background: var(--ffre-red-light);
    color: #721C24;
}

.ffre-notice .ffre-btn {
    margin-top: 12px;
}

/* ================================================================
   UTILITIES
   ================================================================ */

.ffre-text--muted {
    color: var(--ffre-gray-500);
}

.ffre-text--red {
    color: var(--ffre-red);
    font-size: 13px;
    margin: 0 0 4px 0;
}

/* ================================================================
   AUTH PAGE (Connexion / Inscription)
   ================================================================ */

.ffre-auth-w {
    padding: 20px;
    border-radius: var(--ffre-radius-lg);
    background-color: var(--ffre-white);
}
.ffre-auth-container {
    max-width: 560px;
    margin: 60px auto;
    padding: 0 20px;
}

.ffre-auth__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ffre-blue);
    margin: 0 0 8px 0;
}

.ffre-auth__subtitle {
    font-size: 14px;
    line-height: 1.4;
    color: var(--ffre-gray-700);
    margin: 0 0 4px 0;
}

.ffre-auth__list {
    font-size: 14px;
    line-height: 1.4;
    color: var(--ffre-gray-700);
    margin: 0 0 20px 10px;
    padding: 0;
    list-style: circle inside;
}

ul.ffre-auth__list li {
    font-size: 14px;
    line-height: 1.4;
}

.ffre-auth__form-card {
    border: 1px solid var(--ffre-gray-200);
    border-radius: var(--ffre-radius);
    padding: 28px;
    background: var(--ffre-gray-50);
    margin-top: 20px;
    margin-bottom: 20px;
}

.ffre-auth__success {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background-color: #4caf50;
    border-radius: 50px;
}
.ffre-auth__success span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #FFF;
}

.ffre-auth__field {
    margin-bottom: 16px;
}

.ffre-auth__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ffre-gray-800);
    margin-bottom: 6px;
}

.ffre-auth__password-wrap {
    position: relative;
}

.ffre-auth__password-wrap .ffre-input {
    padding-right: 44px;
}

.ffre-auth__toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ffre-gray-500);
    padding: 4px;
}

.ffre-auth__toggle-pw:hover {
    color: var(--ffre-gray-700);
}

.ffre-auth__toggle-pw svg {
    display: block;
}

.ffre-auth__forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--ffre-blue);
    text-decoration: none;
    margin-top: 6px;
}

.ffre-auth__forgot:hover {
    text-decoration: underline;
}

.ffre-auth__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.ffre-auth__remember {
    font-size: 13px;
    color: var(--ffre-gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ffre-auth__remember input {
    accent-color: var(--ffre-blue);
}

.ffre-auth__help {
    font-size: 13px;
    color: var(--ffre-gray-600);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.ffre-auth__separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--ffre-gray-400);
    font-size: 13px;
}

.ffre-auth__separator::before,
.ffre-auth__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ffre-gray-300);
}

.ffre-auth__feedback {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--ffre-radius-sm);
    font-size: 14px;
        display: none;
    }

.ffre-auth__feedback--error {
    display: block;
    color: var(--ffre-red);
    border: 1px solid var(--ffre-red-light);
    background: var(--ffre-red-light);
}

.ffre-auth__feedback--success {
    display: block;
    background: var(--ffre-green-light);
    color: #155724;
    border: 1px solid #C3E6CB;
}

.ffre-btn--full {
    width: 100%;
    text-align: center;
}

/* ================================================================
   PASSWORD STRENGTH INDICATOR
   ================================================================ */

.ffre-pw-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ffre-pw-strength__bar {
    flex: 1;
    height: 6px;
    background: var(--ffre-gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.ffre-pw-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.ffre-pw-strength__label {
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
}

/* ================================================================
   DASHBOARD V2 (maquette carte progression)
   ================================================================ */

.ffre-dashboard-v2 {
    padding: 32px 40px;
    background: var(--ffre-white);
    border: 1px solid var(--ffre-gray-200);
    border-top: none;
    border-radius: var(--ffre-radius);
    min-height: 400px;
}

.ffre-dashboard-v2__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ffre-blue);
    margin: 0 0 16px 0;
}

.ffre-dashboard-v2__description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ffre-gray-700);
    margin-bottom: 32px;
}

.ffre-dashboard-v2__description p {
    font-size: 14px;
    line-height: 1.5;
}

.ffre-dashboard-v2__description p + p {
    margin-top: 8px;
}

.ffre-dashboard-v2__description strong {
    color: var(--ffre-gray-900);
}

.ffre-dashboard-v2__empty {
    text-align: center;
    padding: 60px 20px;
}

.ffre-dashboard-v2__empty p {
    font-size: 15px;
    color: var(--ffre-gray-600);
    margin-bottom: 20px;
}

/* Tracker Card */
.ffre-tracker-card {
    max-width: 420px;
    border: 1px solid var(--ffre-gray-200);
    border-radius: var(--ffre-radius);
    padding: 24px;
    box-shadow: var(--ffre-shadow);
    background: var(--ffre-white);
}

.ffre-tracker-card__header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ffre-blue);
    margin: 0 0 16px 0;
}

.ffre-tracker-card__progress {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--ffre-gray-50);
    border: 1px solid var(--ffre-blue-light);
    border-radius: var(--ffre-radius);
    margin-bottom: 20px;
}

/* Circular progress */
.ffre-circle-progress {
    width: 64px;
    height: 64px;
    position: relative;
    flex-shrink: 0;
}

.ffre-circle-progress svg {
    width: 100%;
    height: 100%;
}

.ffre-circle-bg {
    fill: none;
    stroke: var(--ffre-gray-200);
    stroke-width: 6;
}

.ffre-circle-fill {
    fill: none;
    stroke: var(--ffre-blue);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
    }

.ffre-circle-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--ffre-blue);
    background: var(--ffre-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ffre-tracker-card__step-info {
    display: flex;
        flex-direction: column;
    gap: 2px;
}

.ffre-tracker-card__step-label {
    font-size: 13px;
    color: var(--ffre-blue);
    font-weight: 500;
}

.ffre-tracker-card__step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ffre-gray-900);
}

.ffre-tracker-card__submitted {
    text-align: center;
    padding: 12px 0;
}

/* Tracker card : état soumis */
.ffre-circle-fill--complete {
    stroke: var(--ffre-green);
}

.ffre-circle-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ffre-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffre-tracker-card__complete {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--ffre-green);
}

.ffre-tracker-card__complete-msg {
    font-size: 13px;
    color: var(--ffre-gray-600);
    margin: 4px 0 0 0;
    line-height: 1.5;
}

.ffre-text--green {
    color: var(--ffre-green);
    font-weight: 600;
}

.ffre-tracker-card__dates {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ffre-gray-100);
}

.ffre-tracker-card__dates p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .ffre-auth-container {
        margin: 32px auto;
    }
    .ffre-dashboard-v2 {
        padding: 20px;
    }
}

/* Récapitulatif étape 13 */
.ffre-recap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.ffre-recap__section {
    border: 1px solid var(--ffre-border);
    border-radius: 8px;
    padding: 16px 20px;
}
.ffre-recap__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ffre-blue);
    margin: 0 0 12px;
    border-bottom: 1px solid var(--ffre-border);
    padding-bottom: 8px;
}
.ffre-recap__row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
}
.ffre-recap__row:last-child {
    border-bottom: none;
}
.ffre-recap__label {
    flex: 0 0 260px;
    font-weight: 600;
    color: #555;
}
.ffre-recap__value {
    flex: 1;
    color: #222;
}
.ffre-recap__value--empty {
    color: #aaa;
    font-style: italic;
}
a.ffre-recap__value--file {
    display: inline-block;
    width: auto;
    padding: 4px 10px;
    color: var(--ffre-blue);
    border-radius: var(--ffre-radius-sm);
    border: 1px solid var(--ffre-blue);
    text-decoration: none;
}
a.ffre-recap__value--file:hover {
    background-color: var(--ffre-white);
    text-decoration: none;
}
.ffre-recap__value--text {
    white-space: pre-wrap;
}
.ffre-recap__group {
    padding: 8px 0 4px;
    font-size: 0.875rem;
    color: var(--ffre-blue);
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
}
.ffre-recap__row--sub {
    padding-left: 16px;
}

.ffre-recap__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ffre-recap__header .ffre-recap__title {
    margin-bottom: 0;
}
.ffre-recap__edit {
    flex-shrink: 0;
}
.ffre-recap__value--file {
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
}
.ffre-recap__value--file:hover {
    text-decoration: underline;
}