/* ================================
   novatra – Annonce de cession à publier
   CSS dédié propre
   ================================ */

/* Bloc qui contient la carte blanche sous le H1 */
.novatra-annonce-outer {
    margin: 32px auto 48px;   /* espace raisonnable avec le titre et le bas de page */
}

/* -------- CADRE BLANC PRINCIPAL -------- */
.novatra-annonce-wrapper {
    max-width: 1040px;        /* >>> largeur du cadre blanc <<< */
    margin: 0 auto;
    padding: 20px 48px 70px; /* padding bas large pour contenir boutons + halo */
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* Titre dans la carte : "Annonce de cession à publier" */
.novatra-title-page {
    font-size: 2.5rem;
    margin: 0 0 12px 0;
    text-align: center;
}

.novatra-title-block {
   font-size: font-size: clamp(34px, 6.2w, 52px)); /* 1.8rem; */
   weight: 600; 
   text-align: center;
}


/* Texte descriptif */
.novatra-info {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

/* -------- LIGNE DES 2 BOUTONS -------- */

/* Conteneur des boutons "Créer / Modifier" */
.novatra-actions {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    justify-content: center;  /* centré dans le cadre blanc */
    align-items: center;
}

/* Boutons eux-mêmes */
.novatra-actions .novatra-btn {
    flex: 1 1 0;              /* les deux boutons se partagent la largeur disponible */
    max-width: 420px;         /* empêche un bouton démesuré */
    padding: 14px 32px;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;      /* pas de retour à la ligne dans le texte du bouton */
}

/* Couleurs des boutons (tu adaptes si besoin à ton dégradé) */
.novatra-btn-primary {
    background: linear-gradient(135deg, #00b96b, #1b5cfa);
    color: #ffffff;
}

.novatra-btn-secondary {
    background: linear-gradient(135deg, #00b96b, #1b5cfa);
    color: #ffffff;
}

.novatra-btn-primary:hover,
.novatra-btn-secondary:hover {
    filter: brightness(1.05);
}

/* -------- RESTE DU FORMULAIRE (écrans suivants) -------- */

.novatra-form {
    margin-top: 15px;
}

.novatra-form p {
    margin: 0 0 12px 0;
}

.novatra-form label {
    font-weight: 500;
}

.novatra-form input[type="text"],
.novatra-form input[type="email"],
.novatra-form input[type="url"],
.novatra-form input[type="password"],
.novatra-form select,
.novatra-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.95rem;
}

/* Messages */
.novatra-error {
    padding: 8px 10px;
    background: #ffebee;
    border-left: 3px solid #c62828;
    color: #c62828;
    margin-bottom: 15px;
}

.novatra-success {
    padding: 8px 10px;
    background: #e8f5e9;
    border-left: 3px solid #2e7d32;
    color: #2e7d32;
    margin-bottom: 15px;
}

/* Responsive : sur mobile on accepte que les boutons passent l’un sous l’autre */
@media (max-width: 640px) {

    .novatra-annonce-wrapper {
        max-width: 100%;
        padding: 24px 20px 80px;
    }

    .novatra-actions {
        flex-direction: column;
        gap: 16px;
    }

    .novatra-actions .novatra-btn {
        max-width: 100%;
        width: 100%;
    }
}

/* Étapes du formulaire multi-step */
.novatra-step {
    margin-top: 20px;
}

.novatra-step-hidden {
    display: none;
}

/*=====================================================================
 * Champ image "figure abrégée" : rapprocher le bouton du label */
 */

/* On réduit l'espace au-dessus de la zone d'input */
.acf-field[data-name="figure_abrege"] .acf-input {
    margin-top: 6px !important;   /* ajuste : 0, 2, 4 px selon ce que tu préfères */
    padding-top: 0 !important;
}

/* Augmenter la marge haute */
.acf-field[data-key="field_691761d8b0e42"] .acf-label {
    margin-top: 6px !important;
}

/* On enlève la marge propre au champ fichier si besoin */
.acf-field[data-name="figure_abrege"] .acf-input input[type="file"] {
    margin-top: 0 !important;
}

/* Supprimer le petit carré blanc du champ "figure abrégée" */
.acf-field[data-key="field_691761d8b0e42"] .image-wrap {
    display: none !important;
}

/* Rapprocher le bouton du label si besoin */
.acf-field[data-key="field_691761d8b0e42"] .acf-label {
    margin-bottom: 6px !important;
}

/* Augmenter la marge haute */
.acf-field[data-key="field_69175fd443be5"] .acf-label {
    margin-top: 6px !important;
}

/* Réduire l’espace autour du texte d’aide sous teaser_resume */
.novatra-form p.novatra-info {
    margin-top: 12px !important;    /* espace entre le champ et le texte */
    margin-bottom: 12px !important; /* espace entre le texte et le bouton */
}


/* -------------------------------------------------
   PAGE "Céder une technologie" (ID 435) :
   Supprimer le spacer au-dessus du contenu
   ------------------------------------------------- */

body.page-id-435 .wp-block-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* -------------------------------------------------
   PAGE "Céder une technologie" (ID 435) :
   Supprimer le titre principal
   ------------------------------------------------- */

body.page-id-435 .h1.wp-block-post-title {
    display: none !important;
}


/* ----------------------*/

.sc-btn{
  position: relative;
}

/* Badge sur le bord haut, à l’intérieur du bouton */
.sc-btn-1::before,
.sc-btn-2::before{
  content: "Annonce à déposer";
  position: absolute;
  top: 10px;
  left: 16px;
  z-index: 3;
  pointer-events: none;

  padding: 6px 10px;
  border-radius: 999px;

  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;

  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}

.sc-btn{
  overflow: visible;
}

.sc-btn-1::before,
.sc-btn-2::before{
  top: 0;
  transform: translateY(-50%);
}
