.signup-hero {
    margin-bottom: 1.5rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
    width: 100%;
}

.signup-hero {
    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 5rem 1.5rem;
    border-radius: 24px;

    overflow: hidden;
}

/* overlay pour lisibilité texte */
.signup-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.signup-hero > * {
    position: relative;
    z-index: 1;
}

.signup-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 0.8rem;
}

.signup-tag-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #fff6ee;
    border: 1px solid rgba(244, 161, 46, 0.28);
    color: var(--brand-brown);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.signup-tag-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 161, 46, 0.55);
    box-shadow: 0 8px 18px rgba(244, 161, 46, 0.12);
}

.signup-tag-choice input {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    accent-color: var(--brand-primary);
}

.signup-tag-choice span {
    line-height: 1.25;
}

/* =========================
   ADMIN INSCRIPTION — CHAMPS UNIFORMES
   ========================= */

.admin-form .form-input,
.admin-form select.form-input,
.admin-form input.form-input[type="text"],
.admin-form input.form-input[type="number"],
.admin-form input.form-input[type="email"],
.admin-form input.form-input[type="url"],
.admin-form input.form-input[type="color"] {
    min-height: 58px;
    height: 58px;
    line-height: 1.2;
}

/* On ne force pas la hauteur des textarea */
.admin-form textarea.form-input {
    height: auto;
    min-height: 190px;
    line-height: 1.5;
}

/* Correction des champs couleur */
.admin-form input.form-input[type="color"] {
    width: 100%;
    padding: 0.65rem 1rem;
    cursor: pointer;
    background: #ffffff;
}

/* Chrome / Edge / Safari */
.admin-form input.form-input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.admin-form input.form-input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

/* Firefox */
.admin-form input.form-input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 8px;
}

/* =========================
   ADMIN INSCRIPTION — CARTES DE CHOIX
   ========================= */

.admin-choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-choice-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    min-height: 58px;
    padding: 0.85rem 1rem;

    border: 1px solid rgba(91, 55, 33, 0.22);
    border-radius: 14px;

    background: #ffffff;
    color: #121212;

    font-weight: 800;
    cursor: pointer;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.admin-choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 161, 46, 0.65);
    box-shadow: 0 8px 18px rgba(244, 161, 46, 0.12);
}

.admin-choice-card input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    accent-color: var(--brand-primary);
}

.admin-choice-card span {
    line-height: 1.25;
}

@media (max-width: 760px) {
    .admin-choice-row {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PAGE INSCRIPTION — FORMULAIRE HERO PUBLIC
   ========================= */

.signup-form input[type="text"],
.signup-form input[type="email"] {
    width: 100%;
}

/* =========================
   ADMIN SECTIONS INSCRIPTION
   ========================= */

.admin-sections-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.admin-section-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: flex-start;

    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(91, 55, 33, 0.14);
    border-radius: 20px;

    background: #ffffff;
    box-shadow: 0 10px 26px rgba(18, 18, 18, 0.07);

    cursor: grab;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.admin-section-item:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 161, 46, 0.34);
    box-shadow: 0 16px 34px rgba(18, 18, 18, 0.10);
}

.admin-section-item.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.admin-section-handle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    margin-top: 0.15rem;

    border-radius: 10px;
    background: #fff6ee;
    color: var(--brand-brown);

    font-size: 1rem;
}

.admin-section-preview {
    min-width: 0;
}

.admin-section-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.admin-section-preview h3 {
    margin: 0 0 0.8rem;
    color: #121212;
    font-size: 1.18rem;
    line-height: 1.35;
}

.admin-section-preview p {
    margin: 0.8rem 0 0;
    color: #2a2a2a;
    line-height: 1.6;
}

.admin-section-image {
    display: block;

    width: auto;
    max-width: 280px;
    max-height: 220px;

    margin: 0.7rem 0 0;

    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(18, 18, 18, 0.08);
}

.admin-section-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    min-width: 120px;
    align-items: stretch;
}

.admin-section-actions .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 760px) {
    .admin-section-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-section-handle {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0.8rem;
    }

    .admin-section-actions {
        width: 100%;
        min-width: 0;
    }

    .admin-section-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-section-actions .btn {
        width: auto;
    }

    .admin-section-image {
        max-width: 100%;
    }
}

/* =========================
   ADMIN SECTIONS — CHOIX VISUELS
   ========================= */

.admin-choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-choice-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    padding: 0.95rem 1rem;
    border: 1px solid rgba(91, 55, 33, 0.16);
    border-radius: 16px;

    background: #ffffff;
    font-weight: 800;
    color: #121212;

    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.admin-choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 161, 46, 0.65);
    box-shadow: 0 8px 18px rgba(244, 161, 46, 0.12);
}

.admin-choice-card input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    accent-color: var(--brand-primary);
}

@media (max-width: 760px) {
    .admin-choice-row {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PAGE INSCRIPTION — SECTIONS DYNAMIQUES
   ========================= */

.signup-dynamic-section {
    overflow: hidden;
}

.signup-dynamic-title {
    margin: 0 0 1.3rem;
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 800;
}

.signup-dynamic-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.signup-dynamic-section--image-right .signup-dynamic-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
}

.signup-dynamic-section--image-left .signup-dynamic-layout {
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
}

.signup-dynamic-section--image-left .signup-dynamic-text {
    order: 2;
}

.signup-dynamic-section--image-left .signup-dynamic-media {
    order: 1;
    justify-content: flex-start;
}

.signup-dynamic-section--image-right .signup-dynamic-text {
    order: 1;
}

.signup-dynamic-section--image-right .signup-dynamic-media {
    order: 2;
    justify-content: flex-end;
}

.signup-dynamic-text {
    min-width: 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

.signup-dynamic-text p:first-child {
    margin-top: 0;
}

.signup-dynamic-text p:last-child {
    margin-bottom: 0;
}

.signup-dynamic-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-dynamic-image {
    display: block;

    width: 100%;
    max-width: 340px;
    height: auto;

    object-fit: contain;

    border: 4px solid var(--brand-primary);
    border-radius: 18px;

    box-shadow: 0 14px 30px rgba(18, 18, 18, 0.12);
}

.signup-dynamic-text--cta {
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .signup-dynamic-layout {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .signup-dynamic-section--image-left .signup-dynamic-text,
    .signup-dynamic-section--image-right .signup-dynamic-text {
        order: 1 !important;
    }

    .signup-dynamic-section--image-left .signup-dynamic-media,
    .signup-dynamic-section--image-right .signup-dynamic-media {
        order: 2 !important;
    }

    .signup-dynamic-media {
        justify-content: center;
    }

    .signup-dynamic-image {
        max-width: 100%;
    }
}

/* =========================
   ADMIN SECTIONS — GALERIE
   ========================= */

.admin-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.admin-gallery-preview-image {
    display: block;

    width: 86px;
    height: 86px;

    object-fit: cover;

    border: 3px solid var(--brand-primary);
    border-radius: 14px;

    box-shadow: 0 8px 18px rgba(18, 18, 18, 0.08);
}

/* =========================
   PAGE INSCRIPTION — GALERIE
   ========================= */

.signup-gallery-intro {
    margin-bottom: 1.4rem;
}

.signup-gallery {
    display: grid;
    gap: 1.2rem;
}

.signup-gallery--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-gallery--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signup-gallery--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signup-gallery-item {
    margin: 0;
}

.signup-gallery-image {
    display: block;

    width: 100%;
    height: 400px;

    object-fit: cover;
    object-position: center top;

    background: #ffffff;

    border: 4px solid var(--brand-primary);
    border-radius: 18px;

    box-shadow: 0 14px 30px rgba(18, 18, 18, 0.12);
}

@media (max-width: 760px) {
    .signup-gallery,
    .signup-gallery--2,
    .signup-gallery--3,
    .signup-gallery--4 {
        grid-template-columns: 1fr;
    }

    .signup-gallery-image {
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}

/* =========================
   PAGE INSCRIPTION — CTA
   ========================= */

.signup-cta-button-row {
    display: flex;
    justify-content: center;
    margin-top: 1.4rem;
}

.signup-cta-button {
    min-width: 230px;
    justify-content: center;
}

@media (max-width: 560px) {
    .signup-cta-button {
        width: 100%;
        min-width: 0;
    }
}