/* ════════════════════════════════════════════════════════════════
 * IT'S RUGBY — Pages PMPro publiques (inscription / devenir-membre / merci)
 * Style brand : teal #1C3D34 / vanilla #F2E5D2 / sage #ABC8A2 / g-bright #8ED968
 * ════════════════════════════════════════════════════════════════ */

/* ---------------------------------------------------------
 * Utilitaires PMPro — règles minimales reprises de la base PMPro
 * (le bundle frontend de PMPro est dequeue, on rapatrie l'essentiel)
 * --------------------------------------------------------- */
.pmpro_hidden {
    display: none;
}
.pmpro_a11y-screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------
 * 0) Cache TOUS les H1 doublons des pages PMPro
 *    On rend notre propre .page-hero via the_content filter (PHP),
 *    donc tout autre H1 (thème + content hardcodé) est redondant.
 * --------------------------------------------------------- */
body.pmpro-checkout .article-body > h1,
body.pmpro-levels .article-body > h1,
body.pmpro-confirmation .article-body > h1,
body.pmpro-account .article-body > h1,
body.pmpro-cancel .article-body > h1,
body.pmpro-invoice .article-body > h1,
body.pmpro-login .its-page-title,
.pmpro > h1:first-child,
.pmpro_checkout > h1:first-child,
.pmpro_account > h1:first-child,
.article-body:has(> .page-hero) > .its-page-title,
body.page-id-316146 .its-page-title,
body.page-id-316147 .its-page-title {
    display: none !important;
}
/* Mais on garde notre hero injecté via the_content (.page-hero h1 reste visible) */
body.pmpro-checkout .article-body .page-hero h1,
body.pmpro-levels .article-body .page-hero h1,
body.pmpro-confirmation .article-body .page-hero h1,
body.pmpro-account .article-body .page-hero h1,
body.pmpro-login .article-body .page-hero h1 {
    display: block !important;
}

/* ---------------------------------------------------------
 * 1) Casser les contraintes du thème — page-hero edge-to-edge
 * --------------------------------------------------------- */
body.pmpro-checkout .article-body,
body.pmpro-levels .article-body,
body.pmpro-confirmation .article-body,
body.pmpro-account .article-body,
body.pmpro-cancel .article-body,
body.pmpro-invoice .article-body,
body.pmpro-login .article-body,
body.pmpro-login .container.its-page-container,
.container:has(> .article-body > .page-hero),
.article-body:has(> .page-hero) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
body.pmpro-checkout .article-body > .pmpro,
body.pmpro-levels .article-body > .pmpro,
body.pmpro-confirmation .article-body > .pmpro,
body.pmpro-account .article-body > .pmpro,
body.pmpro-cancel .article-body > .pmpro,
body.pmpro-invoice .article-body > .pmpro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* ---------------------------------------------------------
 * 2) PMPro Form (checkout / inscription)
 * --------------------------------------------------------- */
.pmpro_form,
.pmpro form {
    background: #fff;
    border: 1px solid var(--border, #C4C4C4);
    box-shadow: 0 2px 12px rgba(28, 61, 52, 0.06);
    padding: 32px;
    margin: 0 auto 32px;
}

.pmpro_form_field,
.pmpro_form .pmpro_form_field {
    margin-bottom: 18px;
}

.pmpro_form label,
.pmpro_form .pmpro_form_label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--teal, #1C3D34);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.pmpro_form input[type="text"],
.pmpro_form input[type="email"],
.pmpro_form input[type="tel"],
.pmpro_form input[type="password"],
.pmpro_form input[type="url"],
.pmpro_form input[type="number"],
.pmpro_form select,
.pmpro_form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border, #C4C4C4);
    background: #fff;
    color: var(--ink, #1A1A1A);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pmpro_form input:focus,
.pmpro_form input:focus-visible,
.pmpro_form select:focus,
.pmpro_form select:focus-visible,
.pmpro_form textarea:focus,
.pmpro_form textarea:focus-visible {
    outline: none !important;
    border-color: var(--g-bright, #8ED968) !important;
    box-shadow: 0 0 0 3px rgba(142, 217, 104, 0.25) !important;
}
.pmpro_form input,
.pmpro_form select,
.pmpro_form textarea {
    outline: none !important;
}
.pmpro_form input:hover,
.pmpro_form select:hover,
.pmpro_form textarea:hover {
    border-color: var(--sage, #ABC8A2) !important;
}
.pmpro_form input:-webkit-autofill {
    -webkit-text-fill-color: var(--ink, #1A1A1A) !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    border-color: var(--border, #C4C4C4) !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Section/legend titles dans le checkout */
.pmpro_form fieldset,
.pmpro_checkout-fields,
.pmpro_checkout-fields-display_name,
.pmpro_checkout_section {
    border: none;
    padding: 0;
    margin: 0 0 28px;
}
.pmpro_form fieldset legend,
.pmpro_checkout-fields > h3,
.pmpro_checkout_box-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--teal, #1C3D34);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border, #C4C4C4);
    width: 100%;
}

/* Boutons PMPro — solides teal par défaut */
.pmpro_btn,
.pmpro_btn-submit,
.pmpro_btn-submit-checkout,
.pmpro_form input[type="submit"],
.pmpro_form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: none;
    background: var(--teal, #1C3D34);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, color 0.15s;
    box-shadow: 0 1px 3px rgba(28, 61, 52, 0.2);
    text-decoration: none;
}
.pmpro_btn:hover,
.pmpro_btn-submit:hover,
.pmpro_form input[type="submit"]:hover,
.pmpro_form button[type="submit"]:hover {
    background: var(--teal-dk, #172713);
    box-shadow: 0 2px 6px rgba(28, 61, 52, 0.3);
}
.pmpro_btn-cancel,
.pmpro_btn-back {
    background: #fff;
    color: var(--teal, #1C3D34);
    border: 1px solid var(--teal, #1C3D34);
}
.pmpro_btn-cancel:hover {
    background: var(--vanilla, #F2E5D2);
}

/* Variante "plain" : bouton texte discret (toggle "Voir mot de passe", etc.)
   Spécificité .pmpro_btn.pmpro_btn-plain (0,2,0) > .pmpro_btn (0,1,0) → override propre. */
.pmpro_btn.pmpro_btn-plain,
button.pmpro_btn-plain,
.pmpro_form .pmpro_btn-plain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    background: transparent;
    color: var(--muted, #6B6B6B);
    border: 0;
    box-shadow: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
}
.pmpro_btn.pmpro_btn-plain:hover,
button.pmpro_btn-plain:hover,
.pmpro_form .pmpro_btn-plain:hover {
    background: transparent;
    color: var(--teal, #1C3D34);
    box-shadow: none;
}
.pmpro_btn.pmpro_btn-plain svg,
button.pmpro_btn-plain svg,
.pmpro_form .pmpro_btn-plain svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Espacement du wrapper du toggle pour qu'il ne soit pas collé au champ */
.pmpro_form_field-password-toggle,
.pmpro_form .pmpro_form_field-password-toggle,
.login-password .pmpro_form_field-password-toggle {
    margin-top: 6px;
    margin-bottom: 4px;
}

/* ---------------------------------------------------------
 * 3) Cartes & titres de section dans le checkout
 *    PMPro 3.x rend chaque section dans .pmpro_card / .pmpro_card_content
 *    avec des titres (h2) en .pmpro_card_title ou .pmpro_form_heading.
 *    Sans override, on récupère deux H2 incohérents (un en uppercase
 *    parce qu'il est dans un <legend>, l'autre non). On harmonise tout.
 * --------------------------------------------------------- */
/* Cartes : flat, on évite le double cadre car .pmpro_form a déjà sa boîte */
.pmpro_form .pmpro_card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 0 28px;
}
.pmpro_form .pmpro_card:last-child {
    margin-bottom: 0;
}
.pmpro_form .pmpro_card_content {
    padding: 0;
}
.pmpro_form .pmpro_card_actions {
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 1px dashed var(--border, #C4C4C4);
}

/* Le <legend> qui enveloppe le H2 "Informations du compte" : on le neutralise
   pour éviter qu'il dessine un second titre / une seconde bordure au-dessus.
   `display: contents` fait disparaître la boîte du legend (rendu spécial
   table-caption-like de certains navigateurs) sans retirer ses enfants. */
.pmpro_form .pmpro_form_legend {
    display: contents !important;
}
/* Fallback pour les navigateurs sans display:contents (vieux Edge < 79) :
   on ramène le legend à un block neutre. */
@supports not (display: contents) {
    .pmpro_form .pmpro_form_legend {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: inherit !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        width: 100%;
    }
}

/* Titres de section harmonisés (Informations sur l'adhésion / Informations du compte / etc.) */
.pmpro_form .pmpro_card_title,
.pmpro_form .pmpro_form_heading,
.pmpro_form .pmpro_form_legend .pmpro_form_heading,
.pmpro_form h2.pmpro_font-large {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--teal, #1C3D34) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    line-height: 1.3 !important;
    padding: 0 0 8px !important;
    margin: 0 0 16px !important;
    border-bottom: 2px solid var(--border, #C4C4C4) !important;
    background: transparent !important;
}

/* Bloc "Informations sur l'adhésion" : on le met en avant comme un récap commande */
.pmpro_form #pmpro_pricing_fields {
    background: var(--vanilla, #F2E5D2);
    border-left: 3px solid var(--teal, #1C3D34);
    padding: 18px 22px !important;
    margin: 0 0 28px !important;
}
.pmpro_form #pmpro_pricing_fields .pmpro_card_title {
    border-bottom-color: rgba(28, 61, 52, 0.18) !important;
}
.pmpro_form .pmpro_level_name_text {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink, #1A1A1A);
}
.pmpro_form .pmpro_level_name_text strong {
    color: var(--teal, #1C3D34);
    font-weight: 800;
}
.pmpro_form #pmpro_level_cost {
    margin-top: 6px;
}
.pmpro_form .pmpro_level_cost_text,
.pmpro_form .pmpro_level_cost_text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink, #1A1A1A);
}
.pmpro_form .pmpro_level_cost_text strong {
    color: var(--teal, #1C3D34);
    font-weight: 800;
    font-size: 17px;
}
.pmpro_form .pmpro_level_expiration_text,
.pmpro_form .pmpro_level_expiration_text p {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted, #6B6B6B);
}

/* "Vous êtes connecté en tant que <strong>x</strong>." : message info, pas un titre */
.pmpro_form #pmpro_user_fields > .pmpro_card > .pmpro_card_content > p:first-of-type,
.pmpro_form .pmpro_user_fields p:has(strong + a),
.pmpro_form .pmpro_user_fields > .pmpro_card_content > p {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #fff;
    border-left: 3px solid var(--sage, #ABC8A2);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink, #1A1A1A);
}

/* ---------------------------------------------------------
 * 4) Bloc consentements RGPD (CGU / Newsletter / Partenaires)
 * --------------------------------------------------------- */
.its-checkout-consents {
    background: var(--vanilla, #F2E5D2);
    border: none !important;
    padding: 24px !important;
    margin: 24px 0 !important;
}
.its-checkout-consents legend {
    background: var(--teal, #1C3D34) !important;
    color: #fff !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    margin-bottom: 16px !important;
    width: auto !important;
}
.its-checkout-consents-intro {
    margin: 0 0 14px !important;
    font-size: 13px;
    color: var(--ink, #1A1A1A);
    line-height: 1.55;
}

.its-checkout-consent {
    background: #fff;
    padding: 14px 18px;
    margin-bottom: 12px;
    border: 1px solid var(--border, #C4C4C4);
    border-left: 3px solid var(--border, #C4C4C4);
    transition: border-left-color 0.15s, box-shadow 0.15s;
}
.its-checkout-consent:has(input:checked) {
    border-left-color: var(--g-bright, #8ED968);
    box-shadow: 0 1px 4px rgba(28, 61, 52, 0.06);
}
.its-checkout-consent--required {
    border-left-color: var(--red, #C0392B);
    background: #FFFAFA;
}
.its-checkout-consent--required:has(input:checked) {
    border-left-color: var(--g-bright, #8ED968);
    background: #fff;
}

.its-checkout-consent label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin: 0 !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ink, #1A1A1A) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.55;
}
.its-checkout-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--g-bright, #8ED968);
    cursor: pointer;
}
.its-checkout-consent-text {
    flex: 1;
}
.its-checkout-consent-text strong {
    display: inline;
    color: var(--ink, #1A1A1A);
    font-weight: 700;
}
.its-checkout-consent small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted, #6B6B6B);
    line-height: 1.5;
}
.its-checkout-consent-rationale {
    margin-top: 8px !important;
    padding: 10px 12px;
    background: var(--vanilla, #F2E5D2);
    border-left: 3px solid var(--teal, #1C3D34);
    color: var(--ink, #1A1A1A) !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
}
.its-checkout-consent-rationale strong {
    color: var(--teal, #1C3D34);
    font-weight: 700;
}
.its-checkout-consent a {
    color: var(--teal, #1C3D34);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}
.its-checkout-consent a:hover {
    color: var(--teal-dk, #172713);
}
.its-checkout-consent-required-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--red, #C0392B);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.its-checkout-rgpd-info {
    margin: 16px 0 0;
    padding: 14px 18px;
    background: #fff;
    border-left: 3px solid var(--teal, #1C3D34);
    font-size: 12px;
    color: var(--muted, #6B6B6B);
    line-height: 1.55;
}
.its-checkout-rgpd-info a {
    color: var(--teal, #1C3D34);
    font-weight: 700;
}

/* ---------------------------------------------------------
 * 4) Levels page (/devenir-membre/)
 * --------------------------------------------------------- */
.pmpro_levels-table,
.pmpro_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto 32px;
    background: transparent;
}
.pmpro_levels-table thead,
.pmpro_table thead {
    display: none;
}
.pmpro_levels-table tbody,
.pmpro_table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.pmpro_levels-table tr,
.pmpro_table tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border, #C4C4C4);
    box-shadow: 0 2px 12px rgba(28, 61, 52, 0.06);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.pmpro_levels-table tr:hover,
.pmpro_table tr:hover {
    border-color: var(--teal, #1C3D34);
    box-shadow: 0 4px 18px rgba(28, 61, 52, 0.12);
    transform: translateY(-2px);
}
.pmpro_levels-table td,
.pmpro_table td {
    border: none;
    padding: 16px 20px;
    text-align: left;
}
.pmpro_levels-table td.pmpro_level-name,
.pmpro_table td.pmpro_level-name {
    background: var(--teal, #1C3D34);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    border-bottom: 3px solid var(--g-bright, #8ED968);
}
.pmpro_levels-table td.pmpro_level-price,
.pmpro_table td.pmpro_level-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--teal, #1C3D34);
}
.pmpro_levels-table td.pmpro_level-expiration,
.pmpro_levels-table td.pmpro_level-description,
.pmpro_table td.pmpro_level-expiration,
.pmpro_table td.pmpro_level-description {
    color: var(--muted, #6B6B6B);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}
.pmpro_levels-table td.pmpro_level-select,
.pmpro_table td.pmpro_level-select {
    padding-top: 0;
    padding-bottom: 24px;
}
.pmpro_levels-table .pmpro_btn-select,
.pmpro_table .pmpro_btn-select,
.pmpro_levels-table a.pmpro_btn,
.pmpro_table a.pmpro_btn {
    width: 100%;
    justify-content: center;
}

/* ---------------------------------------------------------
 * 5) Confirmation page (/merci-inscription/)
 *
 * PMPro 3.x rend la confirmation dans :
 *   .pmpro > .pmpro_section > <p>message</p> + .pmpro_card + .pmpro_actions_nav
 * (et NON .pmpro_confirmation — sélecteur historique laissé pour les pages
 * legacy /account/ /invoice/ qui utilisent encore ce wrapper).
 * --------------------------------------------------------- */
body.pmpro-confirmation .article-body > .pmpro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 16px;
}
body.pmpro-confirmation .pmpro_section {
    background: #fff;
    border: 1px solid var(--border, #C4C4C4);
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
/* Paragraphe d'intro PMPro ("Nous vous remercions…" + "Ci-dessous…")
   Pair teal/vanilla : fond blanc → texte teal */
body.pmpro-confirmation .pmpro_section > p {
    margin: 0 0 12px;
    line-height: 1.6;
    color: var(--teal, #1C3D34);
    font-size: 15px;
}
body.pmpro-confirmation .pmpro_section > p:nth-of-type(2) {
    color: var(--teal, #1C3D34);
    opacity: .8;
    font-size: 14px;
    margin-bottom: 24px;
}
body.pmpro-confirmation .pmpro_spacer {
    height: 8px;
}
/* Carte "Bienvenue, X" */
body.pmpro-confirmation .pmpro_card {
    background: var(--vanilla, #F2E5D2);
    border: 1px solid var(--border, #C4C4C4);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0 0 20px;
}
body.pmpro-confirmation .pmpro_card_title.pmpro_heading-with-avatar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(28, 61, 52, .15);
    font-size: 18px;
    font-weight: 800;
    color: var(--teal, #1C3D34);
    line-height: 1.2;
}
body.pmpro-confirmation .pmpro_card_title .avatar,
body.pmpro-confirmation .pmpro_card_title img.avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--g-bright, #8ED968);
    object-fit: cover;
    flex: 0 0 56px;
}
body.pmpro-confirmation .pmpro_list.pmpro_list-plain {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.pmpro-confirmation .pmpro_list-plain .pmpro_list_item {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(28, 61, 52, .12);
    font-size: 14px;
    line-height: 1.5;
    color: var(--teal, #1C3D34);
}
body.pmpro-confirmation .pmpro_list-plain .pmpro_list_item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
body.pmpro-confirmation .pmpro_list-plain .pmpro_list_item strong {
    display: inline-block;
    min-width: 130px;
    color: var(--teal, #1C3D34);
    font-weight: 700;
}
/* Bouton "Voir votre compte →" */
body.pmpro-confirmation .pmpro_actions_nav {
    margin: 0;
    text-align: center;
}
body.pmpro-confirmation .pmpro_actions_nav-right {
    display: inline-block;
}
body.pmpro-confirmation .pmpro_actions_nav-right a {
    display: inline-block;
    padding: 11px 22px;
    background: var(--teal, #1C3D34);
    color: var(--vanilla, #F2E5D2);
    border: 1px solid var(--teal, #1C3D34);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background .15s ease, transform .15s ease;
}
body.pmpro-confirmation .pmpro_actions_nav-right a:hover,
body.pmpro-confirmation .pmpro_actions_nav-right a:focus-visible {
    background: var(--teal-dk, #172713);
    border-color: var(--teal-dk, #172713);
    color: var(--vanilla, #F2E5D2);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Anciens sélecteurs : conservés pour pages /account/ /invoice/ legacy. */
.pmpro_account-membership,
.pmpro_invoice {
    background: #fff;
    border: 1px solid var(--border, #C4C4C4);
    padding: 28px 32px;
    margin: 0 auto 24px;
}
.pmpro_account-membership h2,
.pmpro_invoice h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--teal, #1C3D34);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--g-bright, #8ED968);
}

/* Messages PMPro (succès / erreur) */
.pmpro_message,
.pmpro_success,
.pmpro_error {
    padding: 14px 18px;
    margin: 0 0 20px;
    border-left: 3px solid var(--teal, #1C3D34);
    background: var(--vanilla, #F2E5D2);
    color: var(--teal, #1C3D34);
    font-size: 14px;
}
.pmpro_success {
    border-left-color: var(--sage, #ABC8A2);
    background: var(--sage-lt, #D7EAE2);
}
.pmpro_error {
    border-left-color: var(--red, #C0392B);
    background: var(--red-lt, #FDECEA);
    color: #8B1A1A;
}

/* ---------------------------------------------------------
 * 5b) Page confirmation — section "Et maintenant ?"
 *     Cartes role-aware injectées après [pmpro_confirmation]
 *     (cf. its-rugby-core/inc/its-merci-inscription.php)
 * --------------------------------------------------------- */
.its-next-steps {
    margin: 16px auto 48px;
    max-width: 1100px;
    padding: 0 24px;
}
.its-next-steps-header {
    margin: 0 0 18px;
    text-align: center;
}
.its-next-steps-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--teal, #1C3D34);
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.its-next-steps-intro {
    font-size: 14px;
    color: var(--teal, #1C3D34);
    opacity: .8;
    margin: 0;
    line-height: 1.5;
}
.its-next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.its-next-step-card {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid var(--border, #C4C4C4);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    min-height: 160px;
}
.its-next-step-card:hover,
.its-next-step-card:focus-visible {
    border-color: var(--teal, #1C3D34);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    text-decoration: none;
}
.its-next-step-card--primary {
    background: var(--teal, #1C3D34);
    border-color: var(--teal, #1C3D34);
    color: var(--vanilla, #F2E5D2);
}
.its-next-step-card--primary:hover,
.its-next-step-card--primary:focus-visible {
    background: var(--teal-dk, #172713);
    border-color: var(--teal-dk, #172713);
    color: var(--vanilla, #F2E5D2);
}
.its-next-step-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--teal, #1C3D34);
    opacity: .65;
    margin: 0 0 8px;
}
.its-next-step-card--primary .its-next-step-eyebrow {
    color: var(--vanilla, #F2E5D2);
    opacity: .7;
}
.its-next-step-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--teal, #1C3D34);
    margin: 0 0 8px;
    line-height: 1.25;
}
.its-next-step-card--primary h3 {
    color: var(--vanilla, #F2E5D2);
}
.its-next-step-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--teal, #1C3D34);
    opacity: .85;
    margin: 0 0 16px;
    flex: 1;
}
.its-next-step-card--primary p {
    color: var(--vanilla, #F2E5D2);
    opacity: .9;
}
.its-next-step-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--teal, #1C3D34);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.its-next-step-card--primary .its-next-step-cta {
    color: var(--vanilla, #F2E5D2);
}

/* ---------------------------------------------------------
 * 5c) Pages DOI (/verifier-mon-email/ + /valider-mon-compte/)
 *     Shortcodes [its_doi_pending] / [its_doi_validate]
 *     cf. its-rugby-core/inc/its-doi-signup.php
 * --------------------------------------------------------- */
.its-doi-card {
    max-width: 560px;
    margin: 32px auto 48px;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid var(--border, #C4C4C4);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    text-align: center;
}
.its-doi-card--error {
    border-color: var(--red, #C0392B);
}
.its-doi-card--success {
    border-color: var(--g-bright, #8ED968);
}
.its-doi-card--error .its-doi-icon {
    border-color: var(--red, #C0392B);
    color: var(--red, #C0392B);
}
.its-doi-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--vanilla, #F2E5D2);
    color: var(--teal, #1C3D34);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--g-bright, #8ED968);
}
.its-doi-card h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--teal, #1C3D34);
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}
.its-doi-lead {
    font-size: 15px;
    line-height: 1.6;
    color: var(--teal, #1C3D34);
    margin: 0 0 20px;
}
.its-doi-lead strong {
    color: var(--teal, #1C3D34);
    font-weight: 700;
}
.its-doi-hints {
    list-style: none;
    margin: 20px 0 24px;
    padding: 16px 20px;
    background: var(--vanilla, #F2E5D2);
    border-radius: 8px;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: var(--teal, #1C3D34);
}
.its-doi-hints li {
    padding-left: 18px;
    position: relative;
}
.its-doi-hints li + li {
    margin-top: 6px;
}
.its-doi-hints li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--g-bright, #8ED968);
}
.its-doi-resend-form {
    margin: 0 0 18px;
}
.its-doi-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--teal, #1C3D34);
    color: var(--vanilla, #F2E5D2);
    border: 1px solid var(--teal, #1C3D34);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.its-doi-btn:hover,
.its-doi-btn:focus-visible {
    background: var(--teal-dk, #172713);
    border-color: var(--teal-dk, #172713);
    color: var(--vanilla, #F2E5D2);
    text-decoration: none;
    transform: translateY(-1px);
}
.its-doi-btn--secondary {
    background: var(--vanilla, #F2E5D2);
    color: var(--teal, #1C3D34);
    border-color: var(--teal, #1C3D34);
}
.its-doi-btn--secondary:hover,
.its-doi-btn--secondary:focus-visible {
    background: var(--teal, #1C3D34);
    color: var(--vanilla, #F2E5D2);
}
.its-doi-help {
    font-size: 13px;
    line-height: 1.5;
    color: var(--teal, #1C3D34);
    opacity: .75;
    margin: 16px 0 0;
}
.its-doi-help a {
    color: var(--teal, #1C3D34);
    font-weight: 700;
}
.its-doi-msg {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.its-doi-msg--success {
    background: var(--sage-lt, #D7EAE2);
    color: var(--teal, #1C3D34);
    border-left: 3px solid var(--g-bright, #8ED968);
}
.its-doi-msg--error {
    background: var(--red-lt, #FDECEA);
    color: #8B1A1A;
    border-left: 3px solid var(--red, #C0392B);
}
.its-doi-msg--info {
    background: var(--vanilla, #F2E5D2);
    color: var(--teal, #1C3D34);
    border-left: 3px solid var(--teal, #1C3D34);
}

/* Bandeau "Compte activé" sur /merci-inscription/?just_validated=1
 * Utilise désormais le même shell que .its-doi-card (variante --success)
 * pour un design cohérent à travers tout le flow DOI. */

/* ---------------------------------------------------------
 * 6) Politique de confidentialité (page WP standard)
 *    Conserve la lisibilité du contenu long
 * --------------------------------------------------------- */
body.page-id-312902 .article-body,
body.page-template-default[class*="politique"] .article-body {
    line-height: 1.7;
}
body.page-id-312902 .article-body h2,
body.page-template-default[class*="politique"] .article-body h2 {
    color: var(--teal, #1C3D34);
    font-size: 22px;
    font-weight: 800;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--g-bright, #8ED968);
    letter-spacing: 0.3px;
}
body.page-id-312902 .article-body h3,
body.page-template-default[class*="politique"] .article-body h3 {
    color: var(--teal, #1C3D34);
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0 10px;
}
body.page-id-312902 .article-body p,
body.page-template-default[class*="politique"] .article-body p {
    color: var(--ink, #1A1A1A);
    font-size: 15px;
    margin-bottom: 14px;
}
body.page-id-312902 .article-body a,
body.page-template-default[class*="politique"] .article-body a {
    color: var(--teal, #1C3D34);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.page-id-312902 .article-body a:hover,
body.page-template-default[class*="politique"] .article-body a:hover {
    color: var(--teal-dk, #172713);
}

/* ════════════════════════════════════════════════════════════════
 * LOGIN — page /connexion/ (pmpro_login_page_id)
 * Layout deux colonnes : carte de connexion + panneau argumentaire.
 * Le markup est injecté via inc/its-tpl-login.php (filter the_content).
 * ════════════════════════════════════════════════════════════════ */

/* Hero teal pleine largeur (réutilise .page-hero de itsrugby-common.css) */
body.pmpro-login .its-login-hero {
    margin: 0 0 40px;
}

/* Shell deux colonnes — carte (1.1fr) + aside (1fr) */
body.pmpro-login .its-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
    align-items: start;
}

/* ---------------------------------------------------------
 * Carte de connexion (à gauche)
 * --------------------------------------------------------- */
body.pmpro-login .its-login-card {
    background: var(--white, #fff);
    border: 1px solid var(--border, #C4C4C4);
    box-shadow: 0 4px 18px rgba(28, 61, 52, 0.08);
    padding: 36px 36px 28px;
}
body.pmpro-login .its-login-card .pmpro {
    max-width: none;
    margin: 0;
    padding: 0;
}
body.pmpro-login .its-login-card .pmpro_section {
    padding: 0;
    margin: 0;
}
body.pmpro-login .its-login-card .pmpro_card,
body.pmpro-login .its-login-card .pmpro_card_content,
body.pmpro-login .its-login-card .pmpro_login_wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Le formulaire dans la carte : on neutralise la boîte (.pmpro_form a une boîte
   par défaut, mais on en a déjà une avec .its-login-card) */
body.pmpro-login .its-login-card .pmpro_form,
body.pmpro-login .its-login-card form#loginform {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* WP login_form rend des <p class="login-username">/<login-password>/<login-submit>
   sans wrapper. On en fait des champs branded. */
body.pmpro-login .its-login-card form#loginform > p {
    margin: 0 0 16px;
}
body.pmpro-login .its-login-card form#loginform label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--teal, #1C3D34);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
body.pmpro-login .its-login-card form#loginform input[type="text"],
body.pmpro-login .its-login-card form#loginform input[type="email"],
body.pmpro-login .its-login-card form#loginform input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border, #C4C4C4);
    background: var(--white, #fff);
    color: var(--ink, #1A1A1A);
    /* 16px minimum : sous 16px, iOS/Safari zoome au focus du champ (page décalée) */
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
body.pmpro-login .its-login-card form#loginform input:focus,
body.pmpro-login .its-login-card form#loginform input:focus-visible {
    outline: none;
    border-color: var(--g-bright, #8ED968);
    box-shadow: 0 0 0 3px rgba(142, 217, 104, 0.25);
}
body.pmpro-login .its-login-card form#loginform input:hover {
    border-color: var(--sage, #ABC8A2);
}

/* Bloc "Rester connecté" */
body.pmpro-login .its-login-card .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 22px;
    font-size: 13px;
    color: var(--muted, #6B6B6B);
}
body.pmpro-login .its-login-card .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink, #1A1A1A);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
body.pmpro-login .its-login-card .login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--g-bright, #8ED968);
    cursor: pointer;
}

/* Bouton "Connexion" en pleine largeur */
body.pmpro-login .its-login-card .login-submit {
    margin: 8px 0 0;
}
body.pmpro-login .its-login-card .login-submit input[type="submit"],
body.pmpro-login .its-login-card .login-submit .button-primary,
body.pmpro-login .its-login-card form#loginform .pmpro_btn-submit {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    background: var(--teal, #1C3D34);
    color: var(--white, #fff);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
    box-shadow: 0 1px 3px rgba(28, 61, 52, 0.2);
}
body.pmpro-login .its-login-card .login-submit input[type="submit"]:hover,
body.pmpro-login .its-login-card .login-submit .button-primary:hover {
    background: var(--teal-dk, #172713);
    box-shadow: 0 2px 8px rgba(28, 61, 52, 0.3);
}
body.pmpro-login .its-login-card .login-submit input[type="submit"]:active {
    transform: translateY(1px);
}

/* Toggle "Afficher / Masquer le mot de passe" — styling générique défini plus haut
   (.pmpro_btn.pmpro_btn-plain). Rien de spécifique à la carte login ici. */

/* Liens d'action (Mot de passe oublié / Rejoindre) */
body.pmpro-login .its-login-card .pmpro_card_actions {
    border-top: 1px solid var(--border, #C4C4C4);
    margin-top: 24px;
    padding-top: 18px;
}
body.pmpro-login .its-login-card .pmpro_actions_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: var(--muted, #6B6B6B);
}
body.pmpro-login .its-login-card .pmpro_actions_nav a {
    color: var(--teal, #1C3D34);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(28, 61, 52, 0.25);
    transition: text-decoration-color 0.15s, color 0.15s;
}
body.pmpro-login .its-login-card .pmpro_actions_nav a:hover {
    color: var(--teal-dk, #172713);
    text-decoration-color: var(--g-bright, #8ED968);
}

/* Messages PMPro (erreur / succès / info) en haut de la carte */
body.pmpro-login .its-login-card .pmpro_message {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 3px solid var(--teal, #1C3D34);
    background: var(--vanilla, #F2E5D2);
    color: var(--teal, #1C3D34);
    font-size: 13px;
    line-height: 1.5;
}
body.pmpro-login .its-login-card .pmpro_error {
    border-left-color: var(--red, #C0392B);
    background: var(--red-lt, #FDECEA);
    color: #8B1A1A;
}
body.pmpro-login .its-login-card .pmpro_success {
    border-left-color: var(--sage, #ABC8A2);
    background: var(--sage-lt, #D7EAE2);
}

/* ---------------------------------------------------------
 * Aside argumentaire (à droite)
 * --------------------------------------------------------- */
body.pmpro-login .its-login-side {
    background: var(--vanilla, #F2E5D2);
    border-left: 3px solid var(--teal, #1C3D34);
    padding: 32px 28px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
body.pmpro-login .its-login-side-eyebrow {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    background: var(--teal, #1C3D34);
    color: var(--vanilla, #F2E5D2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
body.pmpro-login .its-login-side-title {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--teal, #1C3D34);
    margin: 0 0 18px;
    letter-spacing: -0.2px;
}
body.pmpro-login .its-login-side-bullets {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
}
body.pmpro-login .its-login-side-bullets li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink, #1A1A1A);
}
body.pmpro-login .its-login-side-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--g-bright, #8ED968);
    clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 20%, 84% 8%, 38% 64%);
}

/* CTA inscription en bas de l'aside */
body.pmpro-login .its-login-side-cta,
body.pmpro-login .its-login-side-cta:link,
body.pmpro-login .its-login-side-cta:visited {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    background: var(--white, #fff);
    border: 1px solid var(--teal, #1C3D34);
    color: var(--teal, #1C3D34);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    will-change: transform;
}
body.pmpro-login .its-login-side-cta:hover,
body.pmpro-login .its-login-side-cta:focus-visible {
    background: var(--teal, #1C3D34);
    color: var(--white, #fff);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(28, 61, 52, 0.28);
    transform: translateY(-1px);
    outline: none;
}
body.pmpro-login .its-login-side-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(28, 61, 52, 0.2);
}
/* Spans internes — on force la couleur sur les deux états (parent + spans)
   pour éviter tout effet "teal sur teal" si une règle externe casse l'inherit. */
body.pmpro-login .its-login-side-cta-label,
body.pmpro-login .its-login-side-cta-action {
    color: var(--teal, #1C3D34);
    transition: color 0.18s ease;
}
body.pmpro-login .its-login-side-cta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: 0.7;
}
body.pmpro-login .its-login-side-cta-action {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
}
body.pmpro-login .its-login-side-cta:hover .its-login-side-cta-label,
body.pmpro-login .its-login-side-cta:hover .its-login-side-cta-action,
body.pmpro-login .its-login-side-cta:focus-visible .its-login-side-cta-label,
body.pmpro-login .its-login-side-cta:focus-visible .its-login-side-cta-action {
    color: var(--white, #fff);
}
body.pmpro-login .its-login-side-cta:hover .its-login-side-cta-label,
body.pmpro-login .its-login-side-cta:focus-visible .its-login-side-cta-label {
    opacity: 0.85;
}

/* ---------------------------------------------------------
 * 7) Responsive
 * --------------------------------------------------------- */
@media (max-width: 900px) {
    body.pmpro-login .its-login-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    body.pmpro-login .its-login-side {
        order: 2;
    }
    body.pmpro-login .its-login-card {
        order: 1;
    }
}

@media (max-width: 768px) {
    body.pmpro-checkout .article-body > h1:first-child,
    body.pmpro-levels .article-body > h1:first-child,
    body.pmpro-confirmation .article-body > h1:first-child {
        padding: 36px 16px 44px !important;
        font-size: 28px !important;
    }
    .pmpro_form { padding: 20px 16px; }
    .pmpro_levels-table tbody,
    .pmpro_table tbody {
        grid-template-columns: 1fr;
    }
    body.pmpro-login .its-login-hero {
        margin-bottom: 24px;
    }
    body.pmpro-login .its-login-shell {
        padding: 0 16px 48px;
    }
    body.pmpro-login .its-login-card {
        padding: 24px 20px 22px;
    }
    body.pmpro-login .its-login-side {
        padding: 24px 20px;
    }
    body.pmpro-login .its-login-side-title {
        font-size: 19px;
    }
}

/* ════════════════════════════════════════════════════════════════
 * WIZARD MULTI-ETAPES — Inscription PMPro
 * Decoupe le formulaire en etapes navigables (cf. itsrugby-pmpro-wizard.js)
 * ════════════════════════════════════════════════════════════════ */

/* Stepper : barre de progression en haut du formulaire */
.its-checkout-wizard .its-stepper {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    counter-reset: step;
}
.its-checkout-wizard .its-stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    text-align: center;
    color: var(--muted, #6B6B6B);
    cursor: default;
}
/* Trait entre les etapes */
.its-checkout-wizard .its-stepper-item + .its-stepper-item::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 50%;
    left: -50%;
    height: 2px;
    background: var(--border, #C4C4C4);
    z-index: 0;
}
.its-checkout-wizard .its-stepper-item.is-done + .its-stepper-item::before,
.its-checkout-wizard .its-stepper-item.is-active::before {
    background: var(--teal, #1C3D34);
}
.its-checkout-wizard .its-stepper-num {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--border, #C4C4C4);
    color: var(--muted, #6B6B6B);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.its-checkout-wizard .its-stepper-item.is-active .its-stepper-num {
    background: var(--teal, #1C3D34);
    border-color: var(--teal, #1C3D34);
    color: var(--vanilla, #F2E5D2);
}
.its-checkout-wizard .its-stepper-item.is-done .its-stepper-num {
    background: var(--g-bright, #8ED968);
    border-color: var(--g-bright, #8ED968);
    color: var(--teal, #1C3D34);
}
.its-checkout-wizard .its-stepper-item.is-done .its-stepper-num::before {
    content: '\2713'; /* check */
    font-size: 15px;
}
.its-checkout-wizard .its-stepper-item.is-done .its-stepper-num {
    font-size: 0;
}
.its-checkout-wizard .its-stepper-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
    color: inherit;
}
.its-checkout-wizard .its-stepper-item.is-active,
.its-checkout-wizard .its-stepper-item.is-active .its-stepper-label {
    color: var(--teal, #1C3D34);
}
.its-checkout-wizard .its-stepper-item.is-done,
.its-checkout-wizard .its-stepper-item.is-done .its-stepper-label {
    color: var(--teal, #1C3D34);
    cursor: pointer;
}

/* Etapes : on masque toutes sauf la courante */
.its-checkout-wizard .its-step--hidden {
    display: none !important;
}

/* Boutons de navigation */
.its-checkout-wizard .its-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 0 16px;
}
.its-checkout-wizard .its-wizard-btn {
    appearance: none;
    border: 1px solid var(--teal, #1C3D34);
    background: var(--teal, #1C3D34);
    color: var(--vanilla, #F2E5D2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 22px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.its-checkout-wizard .its-wizard-btn:hover:not(:disabled) {
    background: var(--vanilla, #F2E5D2);
    color: var(--teal, #1C3D34);
}
.its-checkout-wizard .its-wizard-btn--prev {
    background: #fff;
    color: var(--teal, #1C3D34);
}
.its-checkout-wizard .its-wizard-btn--prev:hover:not(:disabled) {
    background: var(--vanilla, #F2E5D2);
}
.its-checkout-wizard .its-wizard-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Masquage du submit PMPro tant qu'on n'est pas a la derniere etape */
.its-checkout-wizard .its-submit-wrap--hidden {
    display: none !important;
}

/* Responsive : sur mobile, on retrecit les labels du stepper */
@media (max-width: 600px) {
    .its-checkout-wizard .its-stepper-label {
        font-size: 10px;
        letter-spacing: 0.2px;
    }
    .its-checkout-wizard .its-stepper-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .its-checkout-wizard .its-stepper-item + .its-stepper-item::before {
        top: 14px;
    }
    .its-checkout-wizard .its-wizard-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ---------------------------------------------------------
 * 5) Champ telephone facultatif (checkout signup)
 *    Reprend le style du selecteur +33 / numero utilise dans
 *    l'espace perso (.its-account-phone-*), adapte au context PMPro.
 * --------------------------------------------------------- */
.its-checkout-phone {
    background: var(--vanilla, #F2E5D2);
    border: none !important;
    padding: 20px 24px !important;
    margin: 24px 0 16px !important;
}
.its-checkout-phone legend {
    background: var(--teal, #1C3D34) !important;
    color: var(--vanilla, #F2E5D2) !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    margin-bottom: 14px !important;
    width: auto !important;
}
.its-checkout-phone .its-checkout-phone-row > label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--teal, #1C3D34);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.its-checkout-phone-inputs {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.its-checkout-phone-code {
    flex: 0 0 180px;
    width: 180px;
    max-width: 180px;
    min-width: 0;
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--border, #C4C4C4);
    background: #fff;
    color: var(--teal, #1C3D34);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231C3D34' stroke-width='2'><path d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 7px;
}
.its-checkout-phone-num {
    flex: 1 1 200px;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--border, #C4C4C4);
    background: #fff;
    color: var(--teal, #1C3D34);
    font-size: 14px;
    font-family: inherit;
}
.its-checkout-phone-code:focus,
.its-checkout-phone-num:focus {
    outline: none;
    border-color: var(--g-bright, #8ED968);
    box-shadow: 0 0 0 3px rgba(142, 217, 104, 0.25);
}
.its-checkout-phone-help {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink, #1A1A1A);
    opacity: 0.78;
    line-height: 1.45;
}
@media (max-width: 520px) {
    .its-checkout-phone-inputs { flex-direction: column; }
    .its-checkout-phone-code { width: 100%; max-width: 100%; }
    .its-checkout-phone-num { min-width: 0; width: 100%; }
}

/* Phone OBLIGATOIRE imbrique dans le bloc Informations (ou a defaut
 * Consentements) par le wizard JS. On homogeneise avec les autres
 * champs : carte blanche, bord standard, marge condensee. */
#pmpro_form_fieldset-informations .its-checkout-phone,
.its-checkout-consents > .its-checkout-phone {
    background: #fff;
    padding: 14px 18px !important;
    margin: 0 0 16px !important;
    border: 1px solid var(--border, #C4C4C4) !important;
}

/* Marqueur "*" sur le label "Votre numéro *" — meme palette que les
 * required PMPro standard (rouge atténué). */
.its-checkout-phone-required {
    color: #d63638;
    margin-left: 2px;
    font-weight: 700;
}
