:root {
	--alert-color: #E6E6E6;
	--primary-text-color: #141414;
	--secondary-text-color: #FFFFFF;
	--background-color: #F3F3F3;
	--contact-color: #0056A8;
	--lists-color: #0056A8;
	--warning-color: #eaae4e;
    --red-color: #FF0005;
    --pink-color: #FF83F0;
    --violet-color: #8131FF;
    --blue-color: #2B63FF;
    --skyblue-color: #00B7F9;
    --green-color: #4AE88F;
    --fluogreen-color: #AEFF22;
    --yellow-color: #FFD400;
    --active-color:#2B63FF;
    --light-gray: #616161;
    --inactive-color: rgba(20, 20, 20, 0.40);
    --regular-font-size: 1rem;
	--regular-small-font-size: 0.65rem;
}
.success-color {
    color: #2cbc6b;
}
main {
    font-family: "gilroyregular";
    position: relative;
    color: var(--primary-text-color);
    font-size: 1rem;
    font-weight: 400;
}
main p {
    margin: 0 0 12px 0;
}
.ariane, nav .nav-wrapper {
    height: revert;
}
.row {
	margin-bottom: 10px;
}

.acBoard, .acInner, .acDetail {
    margin: 0 0 10px 0 !important;
    position: relative;
}

.container {
	width: 100%;
}
.titre1 {
    font-family: "gilroymedium";
    font-size: 1.5rem;
    font-weight: 500;
    word-wrap: break-word;
}
.container .subtitle1 {
    font-family: "gilroyregular";
    font-size: 1.25rem;
    font-weight: 400;
}
.container .subtitle2 {
    font-family: "gilroyregular";
    font-size: 1rem;
    font-weight: 400;
}
.container .body1 {
    font-family: "gilroyregular";
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0 0 12px 0;
}
.container .lightbody{
    font-family: "gilroyregular";
    color: var(--light-gray);
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0 0 12px 0;
}
.container caption{
    font-family: "gilroyregular";
    font-size: 0.75rem;
    font-weight: 400;
}
.container .overline {
    font-family: "gilroyregular";
    font-size: 0.625rem;
    font-weight: 400;
    text-transform: uppercase;
}

.container button {
    font-family: "gilroymedium";
    font-size: 1rem;
    font-weight: 500;
    background-color: var(--blue-color);
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 12px 0;
    display: flex;
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
    color: var(--secondary-text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.container button.active {
    background-color: var(--active-color);
    color: var(--secondary-text-color);
}
.container button.inactive {
    background-color: var(--inactive-color);
    color: var(--secondary-text-color);
}
.container button:hover {
    opacity: 0.9;
}
.btn-small {
	background-color: var(--contact-color);
	height: 1.5rem;
	line-height: 1.5rem;

}

.acContent {
    display: flex;
    flex-wrap: wrap; /* pour gérer le responsive */
    justify-content: flex-start; /* aligne à gauche */
}
.acContent .col{
    gap: 24px;
}
.acContent .col.noSpaces{
    margin: 0;
    gap: 0;
}
.row.acContent > div {
    box-sizing: border-box;
}
/** WELCOME **/
.acWelcome {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    gap: 16px;
    min-height: 65px;
}
.acWelcome .titre1 {
    flex: 1 1 auto;
}


/** INNER PAGES **/
.acInner, .acDetail {
    color: var(--primary-text-color);
    min-height: 60vh;
    position: relative;
    top: -1rem;
}

/*** ***/
#topAccount {
    min-height: 44px;
    margin: auto;
    color:  var(--secondary-text-color);
    background-color: var(--alert-color);
    font-size: 1.125rem !important;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    display: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
#topAccount p{
    margin: auto; /* Important */
    display: table-cell;
}

#topAccount i#warning {
    color: var(--warning-color);
    vertical-align: text-bottom;
}


/* =============================================================================
 * CARTES (CARDS)
 * ============================================================================= */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    background-color: var(--secondary-text-color);
}
.card.blue-card {
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    background: rgba(5, 101, 255, 0.10);
    border: 1px solid rgba(20, 20, 20, 0.10);
    display: flex;
    flex-direction: column;
    padding: 32px;
}
.card.card-boxed { max-width: 450px; }
.card.card-event { display: flex; column-gap: 20px; }
.card.nobkg { background-color: transparent; box-shadow: none; transition: none; }
.card.btn-like { max-width: unset; height: calc(100% - 12px); cursor: pointer; transition: box-shadow 0.3s ease; margin-bottom: 12px; }
.card.btn-like:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.card.large { max-width: unset; height: auto; min-height: 500px; }

.card-content-wrapper-col {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.card-content-wrapper {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;/*was flex-start;*/
    min-height:60px;
    gap: 16px;
}
.card-content {
    padding: 16px 20px !important;
    display: flex;
    align-items: center;
    gap: 16px;
}
.card-content .material-icons.left { margin: 0; float: none; font-size: 24px; flex-shrink: 0; }
.card-content .material-icons.right { margin: 0; float: none; margin-left: auto; font-size: 28px; flex-shrink: 0; }
.card-text { flex: 1; min-width: 0; }
.card-text p { font-size: 1rem; margin: 4px 0 0 0; line-height: 1.3; }

.btn-like .card-title { margin: 0 !important; font-size: 1.125rem; font-weight: 500; line-height: 1.4 !important; color: var(--primary-text-color) !important; }
.card .card-title { color: var(--blue-color); font-size: 1.125rem; }
.card .popup-section { font-size: 1rem; border-bottom: 1px var(--primary-text-color) solid; }
.card .info-section { min-width: 0; }

.card .card-content-wrapper .col-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 50px;
}
.card .card-content-wrapper .col-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
}
.card a {
    color: var(--blue-color);
    text-decoration: underline;
}
a.card-button,
button.card-button,
.card a.card-button,
.card a.card-button-action {
    font-family: "gilroymedium";
    font-size: 1rem;
    font-weight: 500;
    background-color: var(--secondary-text-color);
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 16px 20px;
    display: flex;
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
    color: var(--primary-text-color);
    gap: 12px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    width: 100%;
    height: 44px;
    position: relative;
    margin: 15px 0;
}
.card a.card-button-action {
    padding: 12px 14px;
    border: 1px dashed var(--blue-color);
    color: var(--blue-color);
    gap: 10px;
}

a.card-button .left-icon,
.card a.card-button .left-icon,
.card a.card-button-action .left-icon{
    font-size: 24px;
    flex-shrink: 0;
    color: var(--primary-text-color);
}
.card a.card-button-action .left-icon { color: var(--blue-color); }
a.card-button.active:not(.ischapter) .left-icon,
.card a.card-button.active:not(.ischapter) .left-icon {
    filter: brightness(0) invert(1);
}
a.card-button .card-button-text,
.card a.card-button .card-button-text,
.card a.card-button-action .card-button-text {
    flex: 1;
    text-align: center;
}
.card a.card-button .chevron-icon,
.card a.card-button-action .chevron-icon {
    font-size: 28px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary-text-color);
}
.card a.card-button-action .chevron-icon { color: var(--blue-color); }
.card a.card-button.active .chevron-icon { color: var(--secondary-text-color); }
.card a.card-button-action.active .chevron-icon { color: var(--blue-color); }
a.card-button.small, .card a.card-button.small { width: max-content; padding: 12px; }
a.card-button.active, .card a.card-button.active {
    background-color: var(--active-color);
    color: var(--secondary-text-color);
    cursor: pointer;
}
a.card-button.active:is(.ischapter), .card a.card-button.active:is(.ischapter) {
    background-color: var(--secondary-text-color);
    color: var(--primary-text-color);
}
a.card-button.inactive, .card a.card-button.inactive {
    background-color: var(--inactive-color);
    color: var(--secondary-text-color);
    cursor: none;
}
a.card-button.active:hover:not(.ischapter),
.card a.card-button.active:hover:not(.ischapter) {
    background-color: var(--secondary-text-color);
    color: var(--active-color);
    border: 1px solid var(--active-color);
}
a.card-button.ischapter { height: 60px; }

.card a.goto-button {
    display: flex; background-color: var(--blue-color); width: 34px; height: 34px; border-radius: 50%;
    padding: 5px 11px; justify-content: center; align-items: center; flex-shrink: 0; color: var(--secondary-text-color);
    cursor: pointer; transition: background-color 0.3s ease; text-decoration: none;
    background-image: url('/images/account/arrow-right.svg');
}
.card a.goto-button:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.card a.goto-button span { display: none; }

.card a.del-line, .card a.vdots {
    display: flex; width: 44px; height: 44px; border-radius: 6px; padding: 5px 6px;
    justify-content: center; align-items: center; flex-shrink: 0; cursor: pointer;
    transition: background-color 0.3s ease; text-decoration: none; background-repeat: no-repeat;
    background-position: center; margin: 5px;
}
.card a.edit-button, .card a.del-button, .card a.list-button, .card a.add-button {
    display: flex; background-color: var(--blue-color); width: 44px; height: 44px; border-radius: 6px;
    padding: 5px 6px; justify-content: center; align-items: center; flex-shrink: 0; color: var(--secondary-text-color);
    cursor: pointer; transition: background-color 0.3s ease; text-decoration: none;
    background-repeat: no-repeat; background-position: center; margin: 15px 0;
}
.card a.edit-button { background-image: url('/images/account/edit-icon.svg'); }
.card a.add-button { background-image: url('/images/account/add-icon.svg'); }
.card a.del-button { background-image: url('/images/account/remove-icon.svg'); }
.card a.list-button { background-image: url('/images/account/list-icon-w.svg'); }
.card a.del-line { background-image: url('/images/account/close-line.png'); }
.card a.vdots { background-image: url('/images/account/tabler_dots-vertical.svg'); }
.card a.edit-button:hover, .card a.del-button:hover, .card a.add-button:hover, .card a.list-button:hover, .card a.del-line:hover, .card a.vdots:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.card a.edit-button span, .card a.del-button span, .card a.add-button span, .card a.list-button span, .card a.del-line span, .card a.vdots span { display: none; }

.card a.open-btn, .card a.del-btn, .card a.up-btn, .card a.down-btn {
    background-color: transparent; width: 13px; height: 13px; border-radius: 6px; padding: 5px 6px;
    justify-content: center; align-items: center; color: var(--primary-text-color); cursor: pointer;
    transition: background-color 0.3s ease; text-decoration: none; background-repeat: no-repeat; background-position: center; margin: 10px;
}
.card a.open-btn { background-image: url('/images/account/open-in-new.svg'); }
.card a.del-btn { background-image: url('/images/account/delete.svg'); }
.card a.up-btn { background-image: url('/images/account/up-icon.svg'); }
.card a.down-btn { background-image: url('/images/account/down-icon.svg'); }
.card a.open-btn span, .card a.del-btn span, .card a.up-btn span, .card a.down-btn span { display: none; }

/* FLOATING CARD (Empty state) */
.floating-card {
    padding: 7rem 5rem;
    margin: 2rem auto;
    box-shadow: unset !important;
    border: none !important;
    background: rgba(173, 199, 255, 0.10);
    border-radius: 6px;
}
.floating-card__body { display: flex; gap: 2rem; }
.floating-card__left { flex: 1 1 0; display: flex; flex-direction: column; gap: 1rem; }
.floating-card__right { flex: 0 0 auto; }
.floating-card__img { max-width: 100%; border-radius: 12px; object-fit: cover; display: block; }
.floating-card__actions { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.floating-card__features { display: flex; justify-content: flex-start; gap: 2.5rem; margin-top: 2rem; padding-top: 1.5rem; }
.floating-card__feature { display: flex; align-items: center; gap: .6rem; font-family: gilroyregular; font-size: 1.25rem; font-weight: 400; max-width: 12rem; }
.floating-card__feature i.material-icons { font-size: 1.6rem; color: #222; flex-shrink: 0; }

/* INNER PAGE & DETAILS CARDS */
.acInner .card .card-content-wrapper > div:not(.col):not(.col-left):not(.col-right) {
    flex: 1; display: flex; align-items: center; justify-content: center;
}
.acInner .card .card-content-wrapper > div.sticky-left:not(a) {
    justify-content: flex-start !important; flex-direction: column; align-items: flex-start !important;
}
.acInner .card .card-content-wrapper > div.sticky-left p { width: 100%; }
.acDetail .card .card-content-wrapper .col-right { align-items: flex-start; }
.acDetail .card-expandable-content .card div.col-right{ flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 10px; }

/* EXPANDABLE CARDS */
.card.expandable {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 12px;
}
.card.expandable > .open a.card-button { border-radius: unset; justify-content: unset; flex-shrink: unset; box-shadow: unset; }
.card.expandable.open a.card-button .chevron-icon { transform: rotate(180deg); color: var(--primary-text-col); }
.card-expandable-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px; }
.card.expandable.open .card-expandable-content { max-height: max-content; padding: 20px; }
.card-expandable-content p { margin: 0 0 20px 0; font-size: 0.95rem; color: #666; }
.card-expandable-content input {
    width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; margin-bottom: 16px; font-family: "gilroyregular";
}
.card-expandable-content input:focus { outline: none; border-color: #2196F3; }
.card-expandable-content .btn-validate {
    background-color: #2962FF; color: white; border: none; border-radius: 6px; padding: 12px 32px; font-size: 1rem; font-weight: 500; cursor: pointer; display: block; margin: 0 auto; font-family: "gilroymedium";
}
.card-expandable-content .btn-validate:hover { background-color: #1E40AF; }
.card .card-header { width: 100%; }
.separation { border-bottom: 1px var(--inactive-color) solid; width: calc(100% - 1.5rem); margin: 0 0.75rem; min-height: 1px; }


/* =============================================================================
 * FORMS, TAGS & MODALS
 * ============================================================================= */
.tag {
    display: flex; padding: 5px 8px; justify-content: center; align-items: center; gap: 10px; border-radius: 6px; font-size: 14px; font-weight: 500;
}
.tag.tlightgray { border: 0.5px solid #60758D; background-color: rgba(96, 117, 141, 0.10); color: #60758D !important; }
.tag.torange { border: 0.5px solid #F59E0B; background-color: rgba(255, 153, 0, 0.10); color: #F59E0B ; }
.tag.tgreen { border: 0.5px solid #00C94F; background-color: rgba(0, 201, 79, 0.10); color: #00C94F; }
.tag.tred { border: 0.5px solid #FF2B3A; background-color: rgba(255, 43, 58, 0.10); color: #FF2B3A; }
.tag.tgrey { border: 0.5px solid #616161; background-color: rgba(97, 97, 97, 0.10); color: #616161; }
.col-filter { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tag.tblue.active { border: 0.5px solid var(--blue-color); background-color: var(--blue-color); color: #FFFFFF; }
.tag.tblue.inactive { border: 0.5px solid var(--blue-color); background-color: #FFFFFF; color: var(--blue-color); }

input[type=text], input[type=password], input[type=email], input[type=url], textarea, textarea.materialize-textarea {
    font-size: 1rem !important;
}

.modal, .modal .modal-content {
    border-radius: 10px;
    background-color: var(--secondary-text-color);
}


/* =============================================================================
 * COMPOSANTS PARTAGÉS
 * ============================================================================= */

/* --- BOUTONS AC-BTN --- */
.ac-btn,
.card a.ac-btn,
.card-expandable-content a.ac-btn,
button.ac-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px;
    border-radius: 6px; font-family: "gilroymedium", sans-serif; font-size: 0.9rem; cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s, box-shadow 0.2s; text-decoration: none !important;
    white-space: nowrap; border: 1px solid transparent; line-height: 1.2;
}
.ac-btn i, .card a.ac-btn i, button.ac-btn i { font-size: 18px; color: inherit !important; }

.ac-btn--primary, .card a.ac-btn--primary, button.ac-btn--primary { background: var(--blue-color) !important; color: #FFFFFF !important; border-color: var(--blue-color) !important; }
.ac-btn--primary:hover, .card a.ac-btn--primary:hover, button.ac-btn--primary:hover { background: #1A50E0 !important; color: #FFFFFF !important; opacity: 1; }

.ac-btn--secondary, .card a.ac-btn--secondary, button.ac-btn--secondary { background: #FFFFFF !important; color: var(--blue-color)F !important; border-color: var(--blue-color) !important; }
.ac-btn--secondary:hover, .card a.ac-btn--secondary:hover, button.ac-btn--secondary:hover { background: #F0F5FF !important; color: var(--blue-color) !important; opacity: 1; }

.ac-btn--outline, .card a.ac-btn--outline { background: #FFFFFF !important; color: #1A1A1A !important; border-color: #E0E0E0 !important; }
.ac-btn--outline:hover, .card a.ac-btn--outline:hover { background: #F5F5F5 !important; color: #1A1A1A !important; }

.ac-btn--dark, .card a.ac-btn--dark { background: #1A1A1A !important; color: #FFFFFF !important; border-color: #1A1A1A !important; }
.ac-btn--dark:hover, .card a.ac-btn--dark:hover { background: #333 !important; color: #FFFFFF !important; }

.ac-btn--inactive, .card a.ac-btn--inactive { background: #E8EEF9 !important; color: #9AADD4 !important; border-color: #E8EEF9 !important; cursor: default; pointer-events: none; }

.ac-btn--sm { padding: 8px 14px; font-size: 0.82rem; }
.ac-btn--sm i { font-size: 16px; }
.ac-btn--lg { padding: 14px 20px; font-size: 0.95rem; }
.ac-btn--block { width: 100%; }

/* --- STEPPER --- */
.stepper-wrapper { width: 100%; }
.stepper-error {
    display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #DC2626;
    font-family: "gilroymedium", sans-serif; margin-bottom: 8px; padding: 6px 12px; background: #FEF2F2; border-radius: 6px; border: 1px solid #FECACA;
}
.stepper-error .material-icons { font-size: 17px; }
.stepper { display: flex; align-items: flex-start; width: 100%; }
.stepper-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 auto; min-width: 80px; max-width: 95px; }
.stepper-connector { flex: 1; height: 2px; background: #E0E0E0; margin-top: 21px; min-width: 24px; }
.stepper-connector.active { background: #1A7A4A; }
.stepper-circle {
    width: 42px; height: 42px; border-radius: 50%; border: 2px solid #E0E0E0; background: #F5F5F5;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s;
}
.stepper-circle .material-icons { font-size: 20px; color: #BDBDBD; }
.stepper-step.done .stepper-circle { background: #1A7A4A; border-color: #1A7A4A; }
.stepper-step.done .stepper-circle .material-icons { color: #FFF; }
.stepper-step.current .stepper-circle { background: #F59E0B; border-color: #F59E0B; }
.stepper-step.current .stepper-circle .material-icons { color: #FFF; }
.stepper-step.current.has-error .stepper-circle { background: #DC2626; border-color: #DC2626; }
.stepper-step.pending .stepper-circle { background: #F5F5F5; border-color: #E0E0E0; }

.stepper-labels { text-align: center; }
.stepper-label-main { display: block; font-size: 0.75rem; font-family: "gilroymedium", sans-serif; color: #BDBDBD; line-height: 1.3; text-align: center; }
.stepper-step.done .stepper-label-main, .stepper-step.current .stepper-label-main { color: #1A1A1A; }
.stepper-label-sub { display: block; font-size: 0.72rem; font-family: "gilroyregular", sans-serif; text-align: center; color: #BDBDBD; margin-top: 2px; }
.stepper-step.done .stepper-label-sub { color: #666; }
.stepper-step.current .stepper-label-sub { color: #B45309; }
.stepper-step.current.has-error .stepper-label-sub { color: #DC2626; }
.stepper-label-state { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; font-family: "gilroymedium", sans-serif; color: #BDBDBD; margin-top: 3px; }
.stepper-step.done .stepper-label-state { color: #1A7A4A; }
.stepper-step.current .stepper-label-state { color: #F59E0B; }
.stepper-step.current.has-error .stepper-label-state { color: #DC2626; }

/* --- DROPZONE --- */
.ac-dropzone {
    border: 2px dashed #C8D6FF; border-radius: 10px; background: #F5F8FF; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; padding: 28px 20px; text-align: center;
}
.ac-dropzone:hover, .ac-dropzone.drag-over { border-color: var(--blue-color); background: #EEF3FF; }
.ac-dropzone.drag-over { box-shadow: 0 0 0 3px rgba(43, 99, 255, 0.12); }
.ac-dropzone__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.ac-dropzone__icon { font-size: 28px; color: var(--blue-color); display: block; margin-bottom: 4px; }
.ac-dropzone__text { font-size: 0.9rem; color: #444; margin: 0; }
.ac-dropzone__link { color: var(--blue-color) !important; text-decoration: underline !important; pointer-events: all; }
.ac-dropzone__hint { font-size: 0.78rem; color: #999; margin: 0; }

.ac-files-list { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.ac-file-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0F0F0; }
.ac-file-item:last-child { border-bottom: none; }
.ac-file-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ac-file-icon { font-size: 20px; color: var(--blue-color); flex-shrink: 0; }
.ac-file-name { font-size: 0.88rem; color: #1A1A1A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-file-remove {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid #E0E0E0; background: #FFFFFF; color: #888; cursor: pointer; flex-shrink: 0; padding: 0;
    box-shadow: none; transition: background 0.15s, color 0.15s;
}
.ac-file-remove:hover { background: #FEF2F2; border-color: #FECACA; color: #DC2626; }
.ac-file-remove .material-icons { font-size: 16px; }

#uploaded-files-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.uploaded-file-item { position: relative; padding-bottom: 15px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.uploaded-file-name { font-size: 12px; text-align: center; word-break: break-word; color: #333; max-width: 100%; }
.remove-file-btn {
    position: absolute; top: 0; right: 0; border: none; width: 24px; height: 24px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; background-color: var(--secondary-text-color) !important; color: var(--primary-text-color) !important;
    box-shadow: unset !important; transition: unset !important; border-radius: none !important;
}
.remove-file-btn::before { content: '×'; font-size: 18px; line-height: 1; }

/* --- BANNIÈRE D'URGENCE --- */
.articles-urgency-banner { display: flex; align-items: center; justify-content: center; gap: 48px; border-radius: 10px; padding: 14px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.articles-urgency-banner--green { background: #EDFDF5; border: 1px solid #1A7A4A; }
.articles-urgency-banner--orange { background: #FFF8EE; border: 1px solid #F59E0B; }
.articles-urgency-banner--red { background: #FEF2F2; border: 1px solid #DC2626; }
.articles-urgency-banner__col { display: flex; align-items: center; gap: 12px; min-width: 0; }
.articles-urgency-banner__icon { font-size: 22px; flex-shrink: 0; }
.articles-urgency-banner--green .articles-urgency-banner__icon { color: #1A7A4A; }
.articles-urgency-banner--orange .articles-urgency-banner__icon { color: #B45309; }
.articles-urgency-banner--red .articles-urgency-banner__icon { color: #DC2626; }
.articles-urgency-banner__text-main { display: block; font-family: "gilroymedium", sans-serif; font-size: 0.9rem; line-height: 1.3; }
.articles-urgency-banner--green .articles-urgency-banner__text-main { color: #1A7A4A; }
.articles-urgency-banner--orange .articles-urgency-banner__text-main { color: #B45309; }
.articles-urgency-banner--red .articles-urgency-banner__text-main { color: #DC2626; }
.articles-urgency-banner__text-sub { display: block; font-size: 0.78rem; color: #666; margin-top: 2px; }

/* --- EMPTY STATE --- */
.cst-empty-state {
    background: #fff; border: 1px solid #EEECE8; border-radius: 10px;
    padding: 60px 20px; text-align: center; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
}
.cst-empty-icon { font-size: 48px; color: #9A978E; margin-bottom: 16px; }
.cst-empty-title { font-size: 18px; font-weight: 600; color: #1A1A1A; margin: 0 0 8px; }
.cst-empty-desc { font-size: 14px; color: #636059; margin-bottom: 24px; }
.cst-empty-btn { text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }

/* --- MODAL --- */
#modal-delete-confirm {max-width: 420px;}
#modal-delete-confirm .modal-footer {height: auto;min-height: 72px;display: flex;justify-content: flex-end;align-items: center;gap: 10px;padding: 0 10px 0;border: none;box-sizing: border-box;}
#modal-delete-confirm .modal-footer .ac-btn {height: 42px;min-width: 96px;padding: 0 18px;display: inline-flex;align-items: center;justify-content: center;line-height: 1;}

/* --- DEV SCENARIO & FAKE MODE BANNER --- */
.dev-scenario-panel { margin: 60px 0 40px 0; padding: 20px 24px; border-radius: 10px; background: #1A1A1A; color: #F5F5F5; font-family: "gilroyregular", sans-serif; }
.dev-scenario-panel__title { font-family: "gilroymedium", sans-serif; font-size: 0.9rem; letter-spacing: 0.3px; color: #FFD400; margin: 0 0 12px 0; text-transform: uppercase; }
.dev-scenario-panel__title::before { content: '🧪 '; }
.dev-scenario-panel__description { font-size: 0.85rem; color: #BDBDBD; margin: 0 0 14px 0; line-height: 1.4; }
.dev-scenario-panel__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dev-scenario-panel__select { flex: 1; min-width: 260px; padding: 10px 12px; border-radius: 6px; background: #2A2A2A; color: #F5F5F5; border: 1px solid #3A3A3A; font-family: inherit; font-size: 0.9rem; cursor: pointer; }
.dev-scenario-panel__select:focus { outline: none; border-color: #FFD400; }
.dev-scenario-panel__reset { padding: 10px 14px; border-radius: 6px; background: transparent; color: #F5F5F5; border: 1px solid #3A3A3A; font-family: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: none; }
.dev-scenario-panel__reset:hover { background: #2A2A2A; color: #FFFFFF; }

.fake-mode-banner { background: #1A1A1A; color: #FFD400; padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-family: "gilroymedium", sans-serif; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; letter-spacing: 0.3px; }
.fake-mode-banner::before { content: '⚠'; font-size: 1.1rem; }
.fake-mode-banner a { color: #FFD400; text-decoration: underline; margin-left: auto; }


/* =============================================================================
 * PHOTOS MASONRY
 * ============================================================================= */
.photos-masonry {
    column-count: 4;
    column-gap: 10px;
    padding: 10px;
}
.photos-masonry .masonry-item {
    display: block;
    width: 100%;
    margin: 0 0 10px 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.photos-masonry .masonry-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.photos-masonry .masonry-item img {
    display: block;
    width: 100%;
    height: auto;
}
/* =============================================================================
 *  COMPOSANT PARTAGÉ : DROPZONE & LISTE FICHIERS (Brief, Customise...)
 * ============================================================================= */
.cst-upload-block { display: flex; flex-direction: column; gap: 10px; }
.cst-dropzone { border: 2px dashed #C8D6FF; border-radius: 10px; background: #F5F8FF; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; padding: 28px 20px; text-align: center; }
.cst-dropzone:hover, .cst-dropzone.drag-over { border-color: var(--blue-color); background: #EEF3FF; }
.cst-dropzone.drag-over { box-shadow: 0 0 0 3px rgba(43, 99, 255, 0.12); }
.cst-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.cst-dropzone-icon { font-size: 28px; color: var(--blue-color); display: block; margin-bottom: 4px; }
.cst-dropzone-text { font-size: 0.9rem; color: #444; margin: 0; }
.cst-dropzone-link { color: var(--blue-color) !important; text-decoration: underline !important; pointer-events: all; }
.cst-dropzone-hint { font-size: 0.78rem; color: #999; margin: 0; }

.cst-files-list { display: flex; flex-direction: column; gap: 0; margin-top: 4px; min-width: 0; }
.cst-file-item { display: flex; flex-direction: column; gap: 0; padding: 16px 0; border-bottom: 1px solid #F0F0F0; min-width: 0; }
.cst-file-item:last-child { border-bottom: none; }
.cst-file-main-row { display: flex; align-items: center; gap: 10px; min-width: 0; }

.cst-file-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; overflow: hidden; }
.cst-file-icon { font-size: 20px; color: var(--blue-color); flex-shrink: 0; }
.cst-file-name-group { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; overflow: hidden; }
.cst-file-name { font-size: 0.88rem; color: #1A1A1A; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }

.cst-file-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 4px 0; }
.cst-file-action-btn {display: inline-flex; align-items: center; justify-content: center;width: 44px; height: 44px; border-radius: 12px;background: var(--blue-color); color: #FFFFFF;cursor: pointer; border: none; padding: 0; flex-shrink: 0;box-shadow: 0 2px 4px rgba(43, 99, 255, 0.15);transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;}
.cst-file-action-btn .material-icons { font-size: 22px; color: #FFFFFF !important; }
.cst-file-action-btn:hover {transform: translateY(-2px);box-shadow: 0 6px 16px rgba(43, 99, 255, 0.35);}
.cst-file-action-btn.cst-file-remove-btn:hover {background-color: #DC2626; /* Rouge */box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);}

@media only screen and (max-width: 768px) {
    .cst-file-action-btn { width: 36px; height: 36px; border-radius: 8px; }
    .cst-file-action-btn .material-icons { font-size: 18px; }
}
/* =============================================================================
 * RESPONSIVE GLOBAL
 * ============================================================================= */

@media (max-width: 1200px) {
    /* MASONRY */
    .photos-masonry { column-count: 3; }
}

@media only screen and (max-width: 990px) {
    /* FLOATING CARD */
    .floating-card { padding: 4rem; }
    .floating-card__body { flex-direction: column; }
    .floating-card__img { width: 100%; }
    .floating-card__actions { gap: 0.4rem; }
    .floating-card__features { flex-direction: column; gap: 1rem; }
}

@media only screen and (max-width: 768px) {
    /* CARTES STANDARD */
    .card { max-width: 600px; }
    .card-content { padding: 14px 16px !important; }
    .card a.card-button { padding: 14px 16px; font-size: 0.95rem; }
    .card a.card-button .left-icon { font-size: 22px; }
    .acInner .card .card-content-wrapper > div:not(.col):not(.col-left):not(.col-right) { flex-direction: column; }

    /* MASONRY */
    .photos-masonry { column-count: 2; }

    /* COMPOSANTS / DROPZONE / STEPPER */
    #uploaded-files-container { gap: 8px; }
    .uploaded-file-item { min-width: 120px; max-width: 150px; padding: 10px; }
    .stepper-step { min-width: 70px !important; max-width: 80px !important; }
    .stepper-circle { width: 34px; height: 34px; }
    .stepper-circle .material-icons { font-size: 17px; }
    .stepper-connector { margin-top: 17px; }
    .ac-dropzone { padding: 20px 12px; }
    .articles-urgency-banner { flex-direction: column; gap: 16px; }
    .articles-urgency-banner__col { width: 100%; }
    .dev-scenario-panel__form { flex-direction: column; align-items: stretch; }
    .dev-scenario-panel__select,
    .dev-scenario-panel__reset { width: 100%; }
}

@media (max-width: 480px)  {
    /* MASONRY */
    .photos-masonry { column-count: 1; }
}