/* ==============================================
   PAGE BULLETINS D'INSCRIPTION — Chapter 91
   Créé le 28/03/2026
   Style moderne inspiré de la page Staff
=============================================== */

/* Masquer le header visuel (overlay-layer) UNIQUEMENT sur cette page */
.page-template-template-bulletins-inscription .header .overlay-layer {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-template-template-bulletins-inscription .intro-section {
    display: none !important;
}

/* Réduire l'espace du header au minimum */
.page-template-template-bulletins-inscription .header {
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===============================================
   SECTION PRINCIPALE
=============================================== */
.bulletin-section {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    overflow: hidden;
    min-height: 100vh;
}

.bulletin-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bulletin-overlay {
    position: relative;
    z-index: 2;
}

/* ===============================================
   EN-TÊTE
=============================================== */
.bulletin-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 80px;
}

.bulletin-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.bulletin-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #ff6b00;
    margin: 0 0 25px;
    letter-spacing: 1px;
}

.bulletin-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.bulletin-divider span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #ff6b00;
}

.bulletin-divider span:nth-child(1) { width: 40px; opacity: 0.4; }
.bulletin-divider span:nth-child(2) { width: 70px; opacity: 1; }
.bulletin-divider span:nth-child(3) { width: 40px; opacity: 0.4; }

.bulletin-intro {
    font-size: 15px;
    color: #aaa;
    line-height: 1.7;
}

.bulletin-intro a {
    color: #ff6b00;
    text-decoration: none;
}

.bulletin-intro a:hover {
    text-decoration: underline;
}

/* ===============================================
   TÉLÉCHARGEMENT DES BULLETINS
=============================================== */
.bulletin-downloads {
    max-width: 960px;
    margin: 0 auto 30px;
    text-align: center;
}

.bulletin-downloads-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px;
}

.bulletin-downloads-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.bulletin-download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    min-width: 280px;
}

.bulletin-download-btn:hover {
    border-color: #f16c20;
    background: rgba(241, 108, 32, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 108, 32, 0.2);
    color: #fff;
    text-decoration: none;
}

.bulletin-download-icon {
    color: #f16c20;
    flex-shrink: 0;
    display: flex;
}

.bulletin-download-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
    flex: 1;
}

.bulletin-download-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.bulletin-download-info span {
    font-size: 12px;
    color: #888;
}

.bulletin-download-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f16c20;
    background: rgba(241, 108, 32, 0.15);
    border: 1px solid rgba(241, 108, 32, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .bulletin-download-btn {
        min-width: 100%;
    }
}

/* ===============================================
   CARTE CONTENEUR
=============================================== */
.bulletin-card {
    background: rgba(10, 10, 10, 0.85);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .bulletin-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
}

/* ===============================================
   SÉLECTEUR TYPE
=============================================== */
.bulletin-type-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.bulletin-type-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Bouton + upload (style identique à new_membre) */
.bulletin-upload-toggle {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f16c20 0%, #e05a10 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(241,108,32,0.5), 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
    align-self: center;
}
.bulletin-upload-toggle:hover {
    background: linear-gradient(135deg, #ff7a30 0%, #f16c20 100%);
    box-shadow: 0 6px 24px rgba(241,108,32,0.7), 0 3px 8px rgba(0,0,0,0.35);
    transform: scale(1.1) rotate(90deg);
}
.bulletin-upload-toggle:active {
    transform: scale(0.95);
}
.bulletin-upload-toggle.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #e05a10 0%, #c04800 100%);
}

/* Panneau upload */
.bulletin-upload-panel {
    display: none;
    background: rgba(30,15,5,0.9);
    border: 1px solid rgba(241,108,32,0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}
.bulletin-upload-panel.bulletin-upload-panel-open {
    display: block;
    animation: fadeInDown 0.25s ease;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bulletin-upload-title {
    color: #f16c20;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bulletin-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.bulletin-upload-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bulletin-upload-label {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}
.bulletin-upload-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 8px 10px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.bulletin-upload-input::-webkit-file-upload-button {
    background: rgba(241,108,32,0.2);
    border: 1px solid rgba(241,108,32,0.4);
    border-radius: 4px;
    color: #f16c20;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
}
.bulletin-upload-current {
    font-size: 11px;
    color: #666;
    word-break: break-all;
}
.bulletin-upload-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f16c20 0%, #e05a10 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bulletin-upload-submit:hover {
    background: linear-gradient(135deg, #ff7a30 0%, #f16c20 100%);
    transform: translateY(-1px);
}
.bulletin-upload-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}
.bulletin-upload-msg-ok  { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.bulletin-upload-msg-err { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.bulletin-type-wrapper {
    position: relative;
}
.bulletin-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 40px 28px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    min-width: 180px;
}
.bulletin-type-dl {
    position: absolute;
    bottom: 7px;
    right: 9px;
    opacity: 0.35;
    transition: opacity 0.2s ease, color 0.2s ease;
    line-height: 1;
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.bulletin-type-wrapper:hover .bulletin-type-dl,
.bulletin-type-wrapper:has(.bulletin-type-btn.active) .bulletin-type-dl {
    opacity: 1;
    color: #ff6b00;
}

.bulletin-type-btn:hover {
    border-color: rgba(255,107,0,0.5);
    background: rgba(255,107,0,0.05);
    color: #fff;
}

.bulletin-type-btn.active {
    border-color: #ff6b00;
    background: rgba(255,107,0,0.1);
    color: #fff;
}

.bulletin-type-icon {
    font-size: 30px;
}

.bulletin-type-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bulletin-type-price {
    font-size: 22px;
    font-weight: 800;
    color: #ff6b00;
}

/* ===============================================
   MESSAGES ERREUR / SUCCÈS
=============================================== */
.bulletin-error {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.4);
    border-radius: 10px;
    padding: 16px 20px;
    color: #ff8c94;
    font-size: 14px;
    margin-bottom: 30px;
}

.bulletin-error-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.bulletin-success {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}

.bulletin-success-icon {
    width: 70px;
    height: 70px;
    background: rgba(40,167,69,0.2);
    border: 2px solid #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #28a745;
    margin: 0 auto 24px;
}

.bulletin-success h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 16px;
}

.bulletin-success p {
    color: #aaa;
    font-size: 15px;
    margin-bottom: 10px;
}

.bulletin-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: #ff6b00;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.bulletin-btn:hover {
    background: #e06000;
    color: #fff;
}

/* ===============================================
   FORMULAIRE
=============================================== */
.bulletin-form {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.bulletin-form.bulletin-form-visible {
    display: block;
}

/* ===============================================
   INDICATEUR DE PAGE
=============================================== */
.bulletin-page-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,107,0,0.6);
    padding: 12px 0 6px;
    margin-bottom: 6px;
}

.bulletin-page-label-verso {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px dashed rgba(255,107,0,0.2);
}

/* ===============================================
   SECTIONS DU FORMULAIRE
=============================================== */
.bulletin-section-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.bulletin-section-block:hover {
    border-color: rgba(255,107,0,0.2);
}

.bulletin-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff6b00;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,107,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulletin-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: #ff6b00;
    border-radius: 2px;
    flex-shrink: 0;
}

.bulletin-section-note {
    font-size: 13px;
    color: #888;
    margin: -10px 0 16px;
}

.bulletin-section-note strong {
    color: #ccc;
}

/* ===============================================
   GRILLE DE CHAMPS
=============================================== */
.bulletin-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bulletin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bulletin-field-full {
    grid-column: 1 / -1;
}

.bulletin-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
}

.bulletin-hint {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #666;
}

.bulletin-field input[type="text"],
.bulletin-field input[type="tel"],
.bulletin-field input[type="email"],
.bulletin-field input[type="date"],
.bulletin-field select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 11px 14px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.bulletin-field input::placeholder {
    color: rgba(255,255,255,0.2);
}

.bulletin-field input:focus,
.bulletin-field select:focus {
    outline: none;
    border-color: rgba(255,107,0,0.6);
    background: rgba(255,107,0,0.05);
}

.bulletin-field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.bulletin-field select option {
    background: #222;
    color: #fff;
}

.req {
    color: #ff6b00;
}

/* ===============================================
   TABLE URGENCE
=============================================== */
.bulletin-urgence-table {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.bulletin-urgence-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 1px;
    background: rgba(255,107,0,0.15);
    padding: 0;
}

.bulletin-urgence-header span {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ff6b00;
}

.bulletin-urgence-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 1px;
    background: rgba(255,255,255,0.05);
}

.bulletin-urgence-row input {
    background: rgba(255,255,255,0.04);
    border: none;
    border-right: 1px solid rgba(255,255,255,0.07);
    padding: 11px 14px;
    color: #fff;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.bulletin-urgence-row input:last-child {
    border-right: none;
}

.bulletin-urgence-row input::placeholder {
    color: rgba(255,255,255,0.2);
}

.bulletin-urgence-row input:focus {
    outline: none;
    background: rgba(255,107,0,0.05);
}

/* ===============================================
   COTISATION
=============================================== */
.bulletin-cotisation .bulletin-tarifs {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.bulletin-tarif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,107,0,0.08);
    border: 1px solid rgba(255,107,0,0.25);
    border-radius: 8px;
    padding: 12px 20px;
}

.bulletin-tarif-label {
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bulletin-tarif-prix {
    font-size: 24px;
    font-weight: 800;
    color: #ff6b00;
}

.bulletin-tarif-sep {
    color: #555;
    font-size: 13px;
    font-style: italic;
}

.bulletin-tarif-note {
    font-size: 12px;
    color: #666;
    margin: 0 0 16px;
    font-style: italic;
}

.bulletin-virement-note {
    font-size: 12px;
    color: #666;
    margin: 8px 0 0;
    font-style: italic;
}

/* ===============================================
   CHECKBOXES / RADIOS
=============================================== */
.bulletin-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.bulletin-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px !important;
    color: #ccc !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    padding: 8px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: all 0.2s;
}

.bulletin-checkbox-label:hover {
    border-color: rgba(255,107,0,0.4);
    background: rgba(255,107,0,0.05);
    color: #fff !important;
}

.bulletin-checkbox-label input[type="radio"],
.bulletin-checkbox-label input[type="checkbox"] {
    accent-color: #ff6b00;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===============================================
   SECTIONS LÉGALES
=============================================== */
.bulletin-legal .bulletin-legal-text {
    margin-bottom: 18px;
}

.bulletin-legal .bulletin-legal-text p {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 10px;
    text-align: justify;
}

.bulletin-accept-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #ccc !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.bulletin-accept-label:hover {
    border-color: rgba(255,107,0,0.4);
    background: rgba(255,107,0,0.05);
}

.bulletin-accept-required {
    border-color: rgba(255,107,0,0.2);
}

.bulletin-accept-label input[type="checkbox"] {
    accent-color: #ff6b00;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===============================================
   BOUTON SOUMETTRE
=============================================== */
.bulletin-submit-zone {
    text-align: center;
    padding: 40px 0 20px;
}

.bulletin-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #ff6b00 0%, #e05500 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(255,107,0,0.3);
    text-transform: uppercase;
}

.bulletin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255,107,0,0.45);
    background: linear-gradient(135deg, #ff7a15 0%, #ff6b00 100%);
}

.bulletin-submit-btn:active {
    transform: translateY(0);
}

.bulletin-submit-arrow {
    font-size: 20px;
    transition: transform 0.2s;
}

.bulletin-submit-btn:hover .bulletin-submit-arrow {
    transform: translateX(4px);
}

/* ===============================================
   RESPONSIVE
=============================================== */
@media (max-width: 768px) {
    .bulletin-section {
        padding: 60px 0 80px;
    }

    .bulletin-title {
        font-size: 26px;
    }

    .bulletin-subtitle {
        font-size: 16px;
    }

    .bulletin-fields-grid {
        grid-template-columns: 1fr;
    }

    .bulletin-field-full {
        grid-column: 1;
    }

    .bulletin-urgence-header,
    .bulletin-urgence-row {
        grid-template-columns: 1fr;
    }

    .bulletin-urgence-header span {
        display: none;
    }

    .bulletin-urgence-row input {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .bulletin-urgence-row input:last-child {
        border-bottom: none;
    }

    .bulletin-type-selector {
        flex-direction: column;
        align-items: center;
    }

    .bulletin-type-wrapper {
        width: 100%;
        max-width: 300px;
    }
    .bulletin-type-btn {
        width: 100%;
    }
    .bulletin-type-row {
        flex-direction: column;
    }
    .bulletin-upload-toggle {
        width: 46px;
        height: 46px;
    }
    .bulletin-upload-grid {
        grid-template-columns: 1fr;
    }

    .bulletin-cotisation .bulletin-tarifs {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulletin-submit-btn {
        padding: 16px 28px;
        font-size: 14px;
    }

    .bulletin-section-block {
        padding: 20px 16px;
    }

    .bulletin-checkboxes {
        flex-direction: column;
    }
}
