body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: white;
}

.center-horizontal {
    text-align: center;
}

.d-none {
    display: none !important;
}

.h2 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 20px;
}

.paragraph {
    font-size: 14px;
    line-height: 20px;
    color: #222222;
}

.small {
    font-size: 14px;
}

#reload-random {
    position: fixed;
    right: 0;
    bottom: 80px;
    left: 0;
    width: 40px;
    height: 40px;
    margin-right: auto;
    margin-left: auto;
    background-color: #e1306c;
    border-radius: 50%;
}

#reload-random i {
    color: #fff;
}

#view-ads,
#view-profile {
    padding-right: 10px;
    padding-left: 10px;
}

ul.menu {
    padding-left: 0;
    list-style-type: none;
}

.actions {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 10px;
    gap: 12px;
}

.model-form {
    margin-top: 50px;
}

.legal-contents {
    margin-top: 100px;
    margin-bottom: 50px;
    padding-right: 20px;
    padding-left: 20px;
}

.add-card {
    display: flex;
    align-items: center;
    font-size: 14px;
    background-color: #e1306c;
    border-radius: 20px;
}

.add-card span {
    margin-left: 3px;
}


/*HEADER*/
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 56px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    /* background: rgba(15, 15, 18, 0.9); */
    /* backdrop-filter: blur(10px); */

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 1000;
}

.app-title {
    font-size: 16px;
    color: #e1306c;
    letter-spacing: 0.5px;
}

/*END HEADER*/



/*ICON BTN*/
.icon-button {
    background: none;
    border: none;
    color: #e1306c;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    cursor: pointer;

    transition: background-color 0.2s ease, transform 0.15s ease;
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon-button:active {
    transform: scale(0.92);
}

.icon-button i {
    font-size: 22px;
}

/*END ICON BTN*/



/*GRID*/
.grid {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

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

@media (min-width: 421px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/*END GRID*/



/*CARD*/
#models-grid .card,
#projects .card,
#ads .card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

#models-grid .card img,
#projects .card img:not(.logo),
#ads .card img:not(.logo) {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}

@media (max-width: 420px) {

    #random-model .card,
    #unique-model .card {
        width: 100%;
    }

    #projects .card img:not(.logo),
    #ads .card img:not(.logo) {
        height: 250px;
    }
}

@media (min-width: 421px) {

    #random-model .card,
    #unique-model .card {
        max-width: 320px;
        margin-right: auto;
        margin-left: auto;
    }

    #projects .card img:not(.logo),
    #ads .card img:not(.logo) {
        height: 420px;
    }
}

#random-model .card,
#unique-model .card {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-shadow: 0 -25px 30px rgba(0, 0, 0, 0.1);
}

#random-model .card img,
#unique-model .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    border-radius: 20px;
}

.card .gradient-overlay {
    position: relative;
}

.card .gradient-overlay:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(#00000000, #000);
    content: "";
}

/*END CARD*/


/*OVERLAY*/
.overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

#ads .card .overlay,
#projects .card .overlay {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    color: #fff;
}

/*END OVERLAY*/



/*NAME*/
#random-model .overlay .name,
#unique-model .overlay .name {
    font-size: 20px;
    font-weight: 600;
}

#ads .card .overlay .name,
#projects .card .overlay .name {
    font-size: 15px;
    font-weight: 600;
}

/*END NAME*/



/*DESCRIPTION*/
.description {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

/*END DESCRIPTION*/



/*BADGES NETWORKS*/
.badges {
    /* position: absolute;
  top: 12px;
  left: 12px; */
    display: flex;
    justify-content: center;
    gap: 6px;
}

.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.badge-network {
    background: #1e40af;
    color: #fff;
}

.badge-sector {
    background: #065f46;
    color: #fff;
}

/*END BADGES NETWORKS*/



/*VIEW DISPLAY*/
.view {
    display: none;
    padding: 50px 0 80px 0;
}

.view.active {
    display: block;
}

/*END VIEW DISPLAY*/



/*BOTTOM NAV*/
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 33%;
    background: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
}

.bottom-nav button i {
    color: #e1306c;
    font-size: 18px;
}

.bottom-nav button.active {
    color: #fff;
    font-weight: 600;
}

/*END BOTTOM NAV*/



/*SELECT*/
/* Container optionnel si tu veux l'encadrer */
#view-list select {
    width: 100%;
    /* margin: 16px 0; */
}

/* Style principal du select */
#sector-filter {
    appearance: none;
    /* supprime le style natif */
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;

    padding: 12px 40px 12px 14px;

    font-size: 14px;
    font-weight: 500;

    border: 2px solid #e1306c;
    color: #222;

    border-radius: 12px;

    cursor: pointer;

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

/* Hover */
/* #sector-filter:hover {
  border-color: rgba(255, 255, 255, 0.35);
} */

/* Focus (accessibilité + UX) */
#sector-filter:focus {
    outline: none;
    border-color: #2563eb;
    /* bleu premium */
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

/* Option du select */
#sector-filter option {
    background-color: #111;
    color: #fff;
}

/*END SELECT*/



/*SOCIALS*/
.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    padding: 0;
    list-style: none;
}

.social a,
.social button {
    width: 32px;
    height: 32px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 14px;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.15s ease;
}

.social a:hover {
    transform: scale(1.1);
}

.social a img {
    margin-bottom: 0 !important;
}

/* Variantes */
.social.instagram a,
.social.instagram button {
    background: #e1306c;
    border: 0 none;
}

.social.of a {
    background: #1da1f2;
}

.social.mym a {
    background: #000000;
}

.social.twitter a {
    background: #222222;
}

/*END SOCIALS*/



/*CTA*/
.external-link {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 10px 5px;
    background: #e1306c;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/*END CTA*/



/*SCRATCH*/
.scratch-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 2;
    overflow: hidden;
}

.scratch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scratch-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 20px;
}

/*END SCRATCH*/



/*PRICE*/
.offer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 50px;
}

.price {
    font-size: 16px;
}

.promotion {
    position: absolute;
    top: 5px;
    right: 0;
    display: block;
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
    background-color: #e1306c;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/*END PRICE*/



/*LOGO*/
.logo {
    height: 30px;
    margin-right: auto;
    margin-bottom: 5px;
    margin-left: auto;
}

/*END LOGO*/


/*FORM*/
.create-model-card,
.create-pro-advert,
.cta,
.link {
    display: block;
    text-decoration: none;
}

.create-model-card,
.create-pro-advert,
.cta {
    padding: 15px;
}

.link {
    padding: 10px;
}

.create-model-card,
.create-pro-advert,
.share-button {
    display: block;
    font-weight: bold;
    color: #ffffff;
    background-color: #e1306c;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
}

.link {
    color: #222222;
}

button.cta {
    width: 100%;
    color: #ffffff;
    text-transform: uppercase;
    border: 0 none;
}

/*END FORM*/



/*PARAMETERS*/
.section {
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #f2f2f2;
    border-radius: 10px;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #e1306c;
}

input:focus+.slider {
    box-shadow: 0 0 1px #e1306c;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/*END PARAMETERS*/



/*SHARE*/
.share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.share-modal.active {
    display: flex;
}

.share-content {
    position: relative;
    background: #000000;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 280px;
    text-align: center;
    color: #ffffff;
}

.share-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.share-actions a {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    background: #222;
    color: #fff;
    text-decoration: none;
}

.close-share {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    float: right;
    cursor: pointer;
}

.share-model {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    background: #ffffff;
    border: 2px solid #e1306c;
    transition: background 0.2s ease, transform 0.15s ease;
}

.share-model i {
    color: #e1306c;
}

/*END SHARE*/


/*CLIPBOARD*/
.instagram-copy.copied {
    opacity: 0.6;
    position: relative;
}

.instagram-copy.copied::after {
    content: "Copié ✔️";
    position: absolute;
    top: -20px;
    font-size: 12px;
}

.insta-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.insta-modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    animation: fadeIn 0.2s ease-out;
}

.insta-modal-content h3 {
    margin-bottom: 10px;
}

.insta-steps {
    text-align: left;
    margin: 15px 0;
    font-size: 14px;
}

.insta-close {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*END CLIPBOARD*/