/* =========================================================
 * Objectif PN — Components
 * Hero, sections, parcours, tool cards, CTA bands, footer
 * Tous utilisent les tokens de tokens.css
 * =========================================================
 */

/* ===== HEADER ===== */

.opn-site .ast-primary-header-bar {
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--opn-border);
    box-shadow: none;
}
.opn-custom-logo img,
.custom-logo {
    max-height: 60px !important;
    width: auto;
}
.opn-site .main-header-menu a,
.opn-site .ast-builder-menu .menu-item a {
    font-family: var(--opn-sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--opn-text);
    transition: color var(--opn-fast);
}
.opn-site .main-header-menu a:hover {
    color: var(--opn-gold);
}

/* ===== BOUTONS ===== */

.opn-btn,
.opn-site .wp-block-button__link.wp-element-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--opn-radius-sm);
    font-family: var(--opn-sans);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all var(--opn-base);
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.2;
}

.opn-btn-gold,
.opn-site .wp-block-button__link.wp-element-button {
    background: var(--opn-gold);
    color: var(--opn-primary) !important;
    border-color: var(--opn-gold);
}
.opn-btn-gold:hover,
.opn-site .wp-block-button__link.wp-element-button:hover {
    background: var(--opn-gold-light);
    color: var(--opn-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--opn-shadow-gold);
}

.opn-btn-primary {
    background: var(--opn-primary);
    color: var(--opn-cream) !important;
    border-color: var(--opn-primary);
}
.opn-btn-primary:hover {
    background: var(--opn-primary-mid);
    color: var(--opn-cream) !important;
    transform: translateY(-2px);
    box-shadow: var(--opn-shadow-lg);
}

.opn-btn-ghost {
    background: transparent;
    color: var(--opn-cream) !important;
    border-color: rgba(250, 248, 243, 0.3);
}
.opn-btn-ghost:hover {
    background: rgba(250, 248, 243, 0.08);
    border-color: var(--opn-cream);
    color: var(--opn-cream) !important;
}

.opn-site .is-style-outline .wp-block-button__link.wp-element-button {
    background: transparent;
    color: var(--opn-primary) !important;
    border: 1px solid var(--opn-primary);
}
.opn-site .is-style-outline .wp-block-button__link.wp-element-button:hover {
    background: var(--opn-primary);
    color: var(--opn-cream) !important;
}

/* ===== HERO ===== */

.opn-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--opn-primary) 0%, var(--opn-primary-mid) 60%, #1c4978 100%);
    color: var(--opn-cream);
    overflow: hidden;
    padding: 4rem 0;
    margin-top: 0 !important;
}

.opn-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 70% 30%, rgba(201, 169, 110, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 70%, rgba(93, 169, 233, 0.10) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cpath d='M0,600 Q300,400 600,500 T1200,300' stroke='%23C9A96E' stroke-width='1' fill='none' opacity='0.3' stroke-dasharray='8,8'/%3E%3Cpath d='M0,300 Q400,500 800,200 T1200,500' stroke='%235DA9E9' stroke-width='1' fill='none' opacity='0.2' stroke-dasharray='8,8'/%3E%3Ccircle cx='200' cy='150' r='2' fill='%23FAF8F3' opacity='0.6'/%3E%3Ccircle cx='950' cy='250' r='2' fill='%23FAF8F3' opacity='0.5'/%3E%3Ccircle cx='550' cy='100' r='1.5' fill='%23FAF8F3' opacity='0.4'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.opn-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.opn-hero-eyebrow {
    display: inline-block;
    font-family: var(--opn-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--opn-gold);
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}
.opn-hero-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2.5rem;
    height: 1px;
    background: var(--opn-gold);
}

.opn-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    color: var(--opn-cream) !important;
    margin: 0 0 1.5rem !important;
    letter-spacing: -0.02em !important;
    white-space: pre-line;
}
.opn-hero-title .opn-italic-gold {
    color: var(--opn-gold);
    font-style: italic;
    font-weight: 500;
}

.opn-hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(250, 248, 243, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.opn-hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== TRUST BAR ===== */

.opn-trust {
    background: var(--opn-primary);
    color: rgba(250, 248, 243, 0.7);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
}
.opn-trust-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    font-size: 0.9rem;
    align-items: center;
}
.opn-trust-item strong {
    color: var(--opn-gold);
    font-weight: 500;
    margin-right: 0.3rem;
}

/* ===== SECTIONS ===== */

.opn-section {
    padding: 6rem 0;
}
.opn-bg-cream { background: var(--opn-cream); }
.opn-bg-white { background: #fff; }
.opn-bg-dark { background: var(--opn-charcoal); color: rgba(250, 248, 243, 0.85); }
.opn-bg-dark h2, .opn-bg-dark h3 { color: var(--opn-cream); }
.opn-bg-navy { background: var(--opn-primary); color: var(--opn-cream); }
.opn-bg-navy h2, .opn-bg-navy h3 { color: var(--opn-cream); }

.opn-eyebrow {
    display: inline-block;
    font-family: var(--opn-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--opn-gold-dark);
    margin-bottom: 1rem;
}
.opn-eyebrow-gold { color: var(--opn-gold); }

.opn-section-title {
    font-family: var(--opn-serif) !important;
    font-size: clamp(2rem, 4vw, 2.8rem) !important;
    font-weight: 400 !important;
    margin: 0 0 1rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.15 !important;
    color: var(--opn-heading) !important;
}

.opn-section-intro {
    font-size: 1.1rem;
    color: var(--opn-muted);
    max-width: 720px;
    margin-bottom: 4rem;
    line-height: 1.7;
}
.opn-section-intro-light {
    color: rgba(250, 248, 243, 0.8);
    margin: 0 auto 3rem;
}

/* ===== PARCOURS ===== */

.opn-parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}
.opn-step {
    position: relative;
}
.opn-step-num {
    font-family: var(--opn-serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--opn-gold-dark);
    line-height: 1;
    margin-bottom: 1rem;
    font-style: italic;
}
.opn-step h3 {
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
}
.opn-step p {
    color: var(--opn-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== TOOL CARDS ===== */

.opn-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.opn-tool-card {
    background: #fff;
    border: 1px solid var(--opn-border);
    border-radius: var(--opn-radius);
    padding: 2rem;
    transition: all var(--opn-slow);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: block;
    color: var(--opn-text);
}
.opn-tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--opn-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--opn-base);
}
.opn-tool-card:hover {
    border-color: var(--opn-gold);
    transform: translateY(-4px);
    box-shadow: var(--opn-shadow-lg);
    color: var(--opn-text);
}
.opn-tool-card:hover::before {
    transform: scaleX(1);
}
.opn-tool-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--opn-radius);
    background: rgba(201, 169, 110, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--opn-primary);
}
.opn-tool-icon svg {
    width: 28px;
    height: 28px;
}
.opn-tool-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
    color: var(--opn-heading);
}
.opn-tool-card p {
    color: var(--opn-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.opn-tool-tag {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--opn-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--opn-gold-dark);
    letter-spacing: 0.05em;
}

/* ===== COMPANIES GRID ===== */

.opn-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--opn-border);
    border: 1px solid var(--opn-border);
    border-radius: var(--opn-radius);
    overflow: hidden;
    margin-top: 1rem;
}
.opn-company {
    background: #fff;
    padding: 1.5rem;
    text-align: center;
    transition: background var(--opn-fast);
}
.opn-company:hover {
    background: rgba(201, 169, 110, 0.05);
}
.opn-company-name {
    font-family: var(--opn-serif);
    font-size: 1rem;
    color: var(--opn-primary);
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.opn-company-meta {
    font-size: 0.75rem;
    color: var(--opn-muted);
    letter-spacing: 0.03em;
    line-height: 1.5;
}
.opn-company-refused {
    color: #C04848;
    font-weight: 500;
}

/* ===== CTA BAND ===== */

.opn-cta-band {
    background: var(--opn-primary);
    color: var(--opn-cream);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.opn-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 50%, rgba(201, 169, 110, 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.opn-cta-band > * { position: relative; z-index: 1; }
.opn-cta-band .opn-section-title {
    color: var(--opn-cream) !important;
    margin: 0 auto 1rem !important;
}

/* ===== FOOTER ===== */

.opn-site .site-footer,
.opn-site footer.site-footer {
    background: var(--opn-charcoal);
    color: rgba(250, 248, 243, 0.6);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}
.opn-site .site-footer h2,
.opn-site .site-footer h3,
.opn-site .site-footer h4,
.opn-site .site-footer h5 {
    color: var(--opn-cream);
    font-family: var(--opn-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.opn-site .site-footer a {
    color: rgba(250, 248, 243, 0.7);
    text-decoration: none;
}
.opn-site .site-footer a:hover {
    color: var(--opn-gold);
}

/* ===== Régles plugin shortcodes héritées ===== */
/* (ces classes sont produites par le plugin OPN AI) */

.opn-cv-audit, .opn-coaching-form, .opn-register-form,
.opn-questionnaire, .opn-cv-generator, .opn-letter-generator,
.opn-dashboard, .opn-jobs-list {
    font-family: var(--opn-sans);
}

.opn-input,
.opn-cv-form input:not([type="checkbox"]):not([type="radio"]),
.opn-cv-form select, .opn-cv-form textarea,
.opn-coaching-form input:not([type="checkbox"]):not([type="radio"]),
.opn-coaching-form select, .opn-coaching-form textarea,
.opn-register-form input:not([type="checkbox"]):not([type="radio"]),
.opn-questionnaire input:not([type="checkbox"]):not([type="radio"]),
.opn-questionnaire select, .opn-questionnaire textarea,
.opn-cv-generator input:not([type="checkbox"]):not([type="radio"]),
.opn-cv-generator select, .opn-cv-generator textarea,
.opn-letter-generator input:not([type="checkbox"]):not([type="radio"]),
.opn-letter-generator select, .opn-letter-generator textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--opn-border);
    border-radius: var(--opn-radius-sm);
    font-family: var(--opn-sans);
    font-size: 1rem;
    background: #fff;
    color: var(--opn-text);
    transition: border-color var(--opn-fast), box-shadow var(--opn-fast);
}
.opn-input:focus,
.opn-cv-form input:not([type="checkbox"]):not([type="radio"]):focus,
.opn-cv-form select:focus, .opn-cv-form textarea:focus,
.opn-coaching-form input:not([type="checkbox"]):not([type="radio"]):focus,
.opn-coaching-form textarea:focus,
.opn-register-form input:not([type="checkbox"]):not([type="radio"]):focus,
.opn-questionnaire input:not([type="checkbox"]):not([type="radio"]):focus,
.opn-questionnaire select:focus, .opn-questionnaire textarea:focus,
.opn-cv-generator input:not([type="checkbox"]):not([type="radio"]):focus,
.opn-cv-generator select:focus, .opn-cv-generator textarea:focus,
.opn-letter-generator input:not([type="checkbox"]):not([type="radio"]):focus,
.opn-letter-generator select:focus, .opn-letter-generator textarea:focus {
    outline: none;
    border-color: var(--opn-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

/* Checkboxes et radios — tailles natives, pas de full-width */
.opn-register-form input[type="checkbox"],
.opn-register-form input[type="radio"],
.opn-questionnaire input[type="checkbox"],
.opn-questionnaire input[type="radio"],
.opn-cv-generator input[type="checkbox"],
.opn-cv-generator input[type="radio"],
.opn-letter-generator input[type="checkbox"],
.opn-letter-generator input[type="radio"],
.opn-coaching-form input[type="checkbox"],
.opn-coaching-form input[type="radio"] {
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}

/* Backwards compat avec class du plugin */
.opn-btn-primary { /* géré ci-dessus */ }
.opn-btn-secondary {
    background: transparent;
    color: var(--opn-primary) !important;
    border: 1px solid var(--opn-primary);
}
.opn-btn-secondary:hover {
    background: var(--opn-primary);
    color: var(--opn-cream) !important;
}

/* Cards dashboard membre */
.opn-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.opn-dashboard__card {
    background: #fff;
    border: 1px solid var(--opn-border);
    border-radius: var(--opn-radius);
    padding: 1.8rem;
    transition: all var(--opn-base);
    text-decoration: none !important;
    color: var(--opn-text);
    display: block;
}
.opn-dashboard__card:hover {
    border-color: var(--opn-gold);
    transform: translateY(-3px);
    box-shadow: var(--opn-shadow);
}
.opn-dashboard__card h3 {
    color: var(--opn-heading);
    margin: 0 0 0.5rem;
}
.opn-dashboard__card--premium {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, #fff 60%);
    border-color: var(--opn-gold);
}
.opn-dashboard__card--locked {
    opacity: 0.7;
}

/* Status badges */
.opn-notice {
    padding: 1rem 1.25rem;
    background: var(--opn-cream);
    border-left: 4px solid var(--opn-gold);
    border-radius: var(--opn-radius-sm);
    margin: 1rem 0;
}

/* Gates (accès réservé) */
.opn-gate {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--opn-radius-lg);
    box-shadow: var(--opn-shadow);
    border-left: 4px solid var(--opn-primary);
    margin: 2rem 0;
}
.opn-gate h3 {
    margin-top: 0;
    color: var(--opn-heading);
}
.opn-gate--unconfirmed { border-left-color: var(--opn-gold); }
.opn-gate--submitted { border-left-color: #1a7f37; }

/* Responsive */
@media (max-width: 768px) {
    .opn-section { padding: 4rem 0; }
    .opn-cta-band { padding: 4rem 0; }
    .opn-hero { min-height: 70vh; }
    .opn-trust-inner { gap: 1.5rem; flex-direction: column; }
    .opn-parcours-grid { gap: 2rem; }
    .opn-hero-ctas { flex-direction: column; align-items: stretch; }
    .opn-hero-ctas .opn-btn { justify-content: center; }
}

/* === Forms : wrap correctement sur tous les écrans === */
.opn-checkbox-row,
.opn-checkbox-row * {
    box-sizing: border-box;
}
.opn-checkbox-row label {
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}
.opn-checkbox-row label > * {
    min-width: 0;
}

/* === Mobile : iPhone et écrans étroits === */
@media (max-width: 600px) {
    /* Les formulaires prennent toute la largeur dispo */
    .opn-register-form,
    .opn-coaching-form,
    .opn-questionnaire,
    .opn-cv-generator,
    .opn-letter-generator,
    .opn-cv-audit,
    .opn-dashboard {
        max-width: 100% !important;
        padding: 1.25rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Checkbox-row : padding plus serré */
    .opn-checkbox-row {
        padding: 0.7rem 0.8rem !important;
        margin: 0.6rem 0 !important;
    }
    .opn-checkbox-row label {
        font-size: 0.9rem;
        line-height: 1.5;
        gap: 0.5rem !important;
    }

    /* Questionnaire : labels plus serrés */
    .opn-q-radio {
        padding: 0.3rem 0;
        font-size: 0.95rem;
        word-break: break-word;
    }

    /* Générateurs CV/Lettre : grille en colonne unique */
    .opn-row-2 {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Section padding réduits */
    .opn-section { padding: 3rem 0; }
    .opn-container { padding: 0 1rem; }
    .opn-section-intro { margin-bottom: 2.5rem; font-size: 1rem; }

    /* Hero plus compact */
    .opn-hero { padding: 3rem 0; min-height: auto; }
    .opn-hero-eyebrow { font-size: 0.75rem; padding-left: 2rem; }
    .opn-hero-eyebrow::before { width: 1.5rem; }
    .opn-hero-lead { font-size: 1rem; }

    /* Boutons en pleine largeur */
    .opn-btn { width: 100%; justify-content: center; }
    .opn-hero-ctas .opn-btn { width: 100%; }

    /* Tool cards en colonne */
    .opn-tools-grid { grid-template-columns: 1fr; }
    .opn-parcours-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .opn-companies-grid { grid-template-columns: 1fr 1fr; }

    /* Trust bar */
    .opn-trust-inner { gap: 0.8rem; font-size: 0.85rem; }
}

/* === Footer custom === */
/* === Footer minimaliste === */
.opn-footer-custom {
    background: var(--opn-charcoal);
    color: rgba(250, 248, 243, 0.75);
    padding: 3rem 0 1.5rem;
    font-family: var(--opn-sans);
    font-size: 0.95rem;
    margin-top: 5rem;
    text-align: center;
}

.opn-footer-custom a {
    color: var(--opn-cream);
    text-decoration: none;
    transition: color var(--opn-fast);
}
.opn-footer-custom a:hover { color: var(--opn-gold); }

/* Ligne email · téléphone */
.opn-footer-contact-row {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.opn-footer-email,
.opn-footer-phone {
    font-weight: 600;
    color: var(--opn-cream) !important;
    letter-spacing: 0.01em;
}
.opn-footer-sep {
    margin: 0 0.7rem;
    color: var(--opn-gold);
    font-weight: 600;
}

/* Liens centraux : 4 liens horizontaux */
.opn-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 2rem;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(250, 248, 243, 0.1);
    border-bottom: 1px solid rgba(250, 248, 243, 0.1);
    margin-bottom: 1.5rem;
}
.opn-footer-links a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    color: rgba(250, 248, 243, 0.85) !important;
}

/* Bandeau bas : mention site mère + copyright */
.opn-footer-bottom {
    color: rgba(250, 248, 243, 0.6);
}
.opn-footer-parent {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    line-height: 1.55;
}
.opn-footer-parent a {
    color: var(--opn-gold) !important;
    text-decoration: none;
}
.opn-footer-parent a:hover { color: var(--opn-gold-light) !important; }
.opn-footer-copy {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(250, 248, 243, 0.45);
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    .opn-footer-custom { padding: 2.5rem 0 1.25rem; }
    .opn-footer-contact-row {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        font-size: 1rem;
    }
    .opn-footer-sep { display: none; }
    .opn-footer-links { gap: 0 1.5rem; padding: 0.75rem 0 1.25rem; }
    .opn-footer-links a { font-size: 0.9rem; }
    .opn-footer-parent { font-size: 0.85rem; }
}

/* === Home : sections en pleine largeur, contenu centré dans .opn-container === */
body.opn-home .entry-header,
body.opn-home .ast-archive-description,
body.opn-home .ast-page-header { display: none !important; }

/* La home : on désactive les contraintes Astra pour que les sections puissent s'étendre */
body.opn-home #primary,
body.opn-home .site-content,
body.opn-home .entry-content,
body.opn-home .ast-container,
body.opn-home main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.opn-home .entry-content > * + * { margin-top: 0; }

/* Les sections .opn-* prennent 100% de leur parent (qui occupe toute la viewport sur la home) */
body.opn-home .opn-hero,
body.opn-home .opn-trust,
body.opn-home .opn-section,
body.opn-home .opn-cta-band {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Le contenu intérieur reste centré via .opn-container (max-width 1200px) */

/* === Menu Astra primary : style boutons + dropdown au hover === */

.opn-site .ast-builder-menu .menu-item,
.opn-site .main-header-menu .menu-item {
    margin: 0 0.2rem;
    position: relative;
}

.opn-site .ast-builder-menu .menu-item > a,
.opn-site .main-header-menu .menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--opn-radius-sm);
    font-family: var(--opn-sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--opn-text);
    text-decoration: none;
    transition: all var(--opn-fast);
    border: 1px solid transparent;
}

.opn-site .ast-builder-menu .menu-item > a:hover,
.opn-site .main-header-menu .menu-item > a:hover,
.opn-site .ast-builder-menu .menu-item.current-menu-item > a,
.opn-site .ast-builder-menu .menu-item.current-menu-ancestor > a {
    background: var(--opn-cream);
    color: var(--opn-primary);
    border-color: var(--opn-border);
}

/* Parent items avec sous-menu : flèche */
.opn-site .ast-builder-menu .menu-item-has-children > a::after,
.opn-site .main-header-menu .menu-item-has-children > a::after {
    content: '';
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--opn-muted);
    margin-left: 0.3rem;
    transition: transform var(--opn-fast);
}
.opn-site .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Items "parent vides" (qui ne sont que des libellés) : ne pas suivre le lien */
.opn-site .menu-item.opn-menu-parent > a {
    cursor: default;
}
.opn-site .menu-item.opn-menu-parent > a[href="#"] { pointer-events: none; }

/* Sous-menu : dropdown au hover, vertical, fond crème */
.opn-site .ast-builder-menu .sub-menu,
.opn-site .main-header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--opn-border);
    border-radius: var(--opn-radius);
    box-shadow: var(--opn-shadow);
    padding: 0.5rem;
    min-width: 240px;
    list-style: none;
    margin: 0.5rem 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--opn-base), visibility var(--opn-base), transform var(--opn-base);
    z-index: 1000;
}

.opn-site .menu-item-has-children:hover > .sub-menu,
.opn-site .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.opn-site .sub-menu .menu-item {
    margin: 0;
    width: 100%;
}

.opn-site .sub-menu .menu-item > a {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: var(--opn-text);
    border-radius: var(--opn-radius-sm);
    border: none;
    text-align: left;
    width: 100%;
}

.opn-site .sub-menu .menu-item > a:hover {
    background: var(--opn-cream);
    color: var(--opn-primary);
    border-color: transparent;
}

/* "Mon compte" — CTA en or */
.opn-site .ast-builder-menu .menu-item:last-child > a,
.opn-site .main-header-menu .menu-item:last-child > a {
    background: var(--opn-gold);
    color: var(--opn-primary);
    border-color: var(--opn-gold);
    font-weight: 600;
}
.opn-site .ast-builder-menu .menu-item:last-child > a:hover,
.opn-site .main-header-menu .menu-item:last-child > a:hover {
    background: var(--opn-gold-light);
    color: var(--opn-primary);
    border-color: var(--opn-gold-light);
}

/* Mobile : on laisse Astra gérer le menu burger */
@media (max-width: 921px) {
    .opn-site .ast-builder-menu .menu-item > a,
    .opn-site .main-header-menu .menu-item > a {
        background: transparent !important;
        border: none !important;
    }
}

/* === FIX CONTRASTES : italique-or sur fonds dark doit rester gold (clair) === */
.opn-cta-band .opn-italic-gold,
.opn-bg-navy .opn-italic-gold,
.opn-bg-dark .opn-italic-gold,
.opn-hero .opn-italic-gold {
    color: var(--opn-gold) !important; /* gold clair sur fond dark */
}

/* Sections dark : eyebrow doit être gold clair, pas gold-dark */
.opn-cta-band .opn-eyebrow,
.opn-bg-navy .opn-eyebrow,
.opn-bg-dark .opn-eyebrow {
    color: var(--opn-gold);
}

/* === RESPONSIVE : ajustements complets === */

/* Tablette portrait (768px-991px) */
@media (max-width: 991px) {
    :root {
        --opn-container-pad: 1.75rem;
    }
    body.opn-site h1 { font-size: 2.5rem; }
    body.opn-site h2 { font-size: 2rem; }
    .opn-section { padding: 4.5rem 0; }
    .opn-cta-band { padding: 4.5rem 0; }
    .opn-hero { padding: 4rem 0; min-height: auto; }
    .opn-hero-title { font-size: 2.8rem !important; }
    .opn-hero-lead { font-size: 1.05rem; }
    .opn-section-intro { font-size: 1rem; margin-bottom: 3rem; }
    .opn-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .opn-parcours-grid { grid-template-columns: repeat(2, 1fr); }
    .opn-companies-grid { grid-template-columns: repeat(3, 1fr); }
    .opn-trust-inner { gap: 1.5rem; }
}

/* Tablette portrait étroit / téléphone landscape (≤768px) */
@media (max-width: 768px) {
    :root {
        --opn-container-pad: 1.25rem;
    }
    body.opn-site h1 { font-size: 2.2rem; }
    body.opn-site h2 { font-size: 1.8rem; }
    body.opn-site h3 { font-size: 1.2rem; }
    .opn-section { padding: 3.5rem 0; }
    .opn-cta-band { padding: 3.5rem 0; }
    .opn-hero { padding: 3rem 0; }
    .opn-hero-title { font-size: 2.2rem !important; }
    .opn-hero-lead { font-size: 1rem; }
    .opn-trust-inner { flex-direction: column; gap: 1rem; }
    .opn-parcours-grid { grid-template-columns: 1fr; gap: 2rem; }
    .opn-tools-grid { grid-template-columns: 1fr; }
    .opn-companies-grid { grid-template-columns: repeat(2, 1fr); }
    .opn-hero-ctas { flex-direction: column; align-items: stretch; }
    .opn-hero-ctas .opn-btn { width: 100%; justify-content: center; }
    .opn-section-intro { font-size: 0.95rem; margin-bottom: 2.5rem; }
    .opn-step-num { font-size: 2.5rem; }
}

/* Téléphone (≤480px) */
@media (max-width: 480px) {
    :root {
        --opn-container-pad: 1rem;
    }
    body.opn-site h1 { font-size: 1.9rem; }
    body.opn-site h2 { font-size: 1.55rem; }
    .opn-section { padding: 3rem 0; }
    .opn-cta-band { padding: 3rem 0; }
    .opn-hero { padding: 2.5rem 0; }
    .opn-hero-title { font-size: 1.85rem !important; line-height: 1.15 !important; }
    .opn-hero-eyebrow { font-size: 0.7rem; padding-left: 1.8rem; }
    .opn-hero-eyebrow::before { width: 1.2rem; }
    .opn-hero-lead { font-size: 0.95rem; }
    .opn-companies-grid { grid-template-columns: 1fr; }
    .opn-tool-card { padding: 1.5rem; }
    .opn-step h3 { font-size: 1.1rem; }
    .opn-step-num { font-size: 2.2rem; }
    .opn-section-intro { font-size: 0.92rem; }
    .opn-btn { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
    .opn-section-title { font-size: 1.5rem !important; }
}

/* Anti-overflow : le viewport ne doit JAMAIS scroll horizontalement */
html, body { overflow-x: hidden; }
.opn-hero, .opn-trust, .opn-section, .opn-cta-band, .opn-footer-custom {
    overflow-x: hidden;
}

/* === Boutons générés par le builder (HTML pur, plus de Gutenberg) === */
.opn-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.opn-btn-secondary {
    background: transparent;
    color: var(--opn-primary);
    border: 1px solid var(--opn-primary);
    text-decoration: none !important;
    padding: 1rem 2rem;
    border-radius: var(--opn-radius-sm);
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--opn-base);
}
.opn-btn-secondary:hover {
    background: var(--opn-primary);
    color: var(--opn-cream) !important;
    transform: translateY(-2px);
}
.opn-sep {
    border: none;
    height: 1px;
    background: var(--opn-border);
    margin: 2rem 0;
}

/* === Offres d'emploi === */
.opn-jobs-wrap { margin: 2rem 0; }

.opn-jobs-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    background: var(--opn-cream);
    padding: 1.25rem;
    border-radius: var(--opn-radius);
    border: 1px solid var(--opn-border);
    margin-bottom: 1.75rem;
}
.opn-jobs-filters select {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--opn-border);
    border-radius: var(--opn-radius-sm);
    background: white;
    font-family: var(--opn-sans);
    font-size: 0.9rem;
    min-width: 180px;
}

.opn-jobs-tier-banner {
    background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(201,169,110,0.18));
    border: 1px solid var(--opn-gold);
    border-radius: var(--opn-radius);
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--opn-text);
    font-size: 0.95rem;
}

.opn-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.opn-job-card {
    background: white;
    border: 1px solid var(--opn-border);
    border-radius: var(--opn-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all var(--opn-base);
}
.opn-job-card:hover {
    border-color: var(--opn-gold);
    box-shadow: 0 4px 20px rgba(10,37,64,0.08);
    transform: translateY(-2px);
}
.opn-job-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.opn-job-company {
    font-family: var(--opn-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--opn-primary);
}
.opn-job-tag {
    background: var(--opn-cream);
    color: var(--opn-gold-dark);
    padding: 0.18rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--opn-border);
}
.opn-job-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    line-height: 1.35;
}
.opn-job-card h3 a { color: var(--opn-primary); text-decoration: none; }
.opn-job-card h3 a:hover { color: var(--opn-gold-dark); }
.opn-job-meta {
    color: var(--opn-muted);
    font-size: 0.9rem;
    margin: 0.4rem 0 0.7rem;
}
.opn-job-excerpt {
    color: var(--opn-text);
    font-size: 0.92rem;
    margin: 0.3rem 0 0.8rem;
    line-height: 1.55;
}
.opn-job-deadline {
    color: var(--opn-muted);
    font-size: 0.83rem;
    margin: 0 0 1rem;
}
.opn-job-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    flex-wrap: wrap;
}
.opn-job-actions .opn-btn { font-size: 0.88rem; padding: 0.55rem 1rem; }

@media (max-width: 768px) {
    .opn-jobs-filters { gap: 0.5rem; }
    .opn-jobs-filters select { min-width: 0; flex: 1 1 calc(50% - 0.5rem); font-size: 0.85rem; }
    .opn-jobs-grid { grid-template-columns: 1fr; }
}

/* Single offre : paywall */
.opn-jobs-paywall {
    background: var(--opn-cream);
    border: 2px dashed var(--opn-gold);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

/* === Dashboard candidat (kanban) === */
.opn-dashboard {
    background: var(--opn-cream);
    padding: 2rem;
    border-radius: var(--opn-radius);
    margin: 1.5rem 0;
}
.opn-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.opn-dashboard-head h2 { margin: 0; font-family: var(--opn-serif); color: var(--opn-primary); }
.opn-dashboard-tier {
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--opn-border);
    font-size: 0.85rem;
    color: var(--opn-muted);
    margin: 0;
}
.opn-dashboard-tier strong { color: var(--opn-gold-dark); }

.opn-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.opn-stat {
    background: white;
    padding: 1.25rem;
    border-radius: var(--opn-radius);
    text-align: center;
    border: 1px solid var(--opn-border);
}
.opn-stat-num { display: block; font-family: var(--opn-serif); font-size: 2.5rem; color: var(--opn-primary); line-height: 1; }
.opn-stat-lbl { display: block; color: var(--opn-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem; }

.opn-dashboard-empty {
    background: white;
    padding: 2.5rem;
    border-radius: var(--opn-radius);
    border: 2px dashed var(--opn-border);
    text-align: center;
    color: var(--opn-muted);
}

.opn-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.opn-kanban-col {
    background: white;
    border-radius: var(--opn-radius);
    border: 1px solid var(--opn-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.opn-kanban-col-head {
    padding: 0.85rem 1rem;
    border-bottom: 3px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--opn-primary);
    background: var(--opn-cream);
}
.opn-kanban-icon { font-size: 1.1rem; }
.opn-kanban-label { flex: 1; font-size: 0.95rem; }
.opn-kanban-count {
    background: white;
    border-radius: 100px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    color: var(--opn-muted);
    border: 1px solid var(--opn-border);
}
.opn-kanban-cards {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}
.opn-app-card {
    background: var(--opn-cream);
    border-radius: var(--opn-radius-sm);
    padding: 0.85rem;
    border: 1px solid var(--opn-border);
}
.opn-app-card h4 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--opn-primary); line-height: 1.3; }
.opn-app-card h4 a { color: var(--opn-primary); text-decoration: none; }
.opn-app-card h4 a:hover { color: var(--opn-gold-dark); }
.opn-app-company { font-size: 0.83rem; color: var(--opn-gold-dark); font-weight: 500; margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.opn-app-meta { font-size: 0.78rem; color: var(--opn-muted); margin: 0.5rem 0; }
.opn-app-notes { font-size: 0.85rem; color: var(--opn-text); background: white; padding: 0.6rem; border-radius: var(--opn-radius-sm); margin: 0.6rem 0; border-left: 3px solid var(--opn-gold); font-style: italic; }
.opn-app-actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; margin-top: 0.6rem; }
.opn-app-status-select {
    flex: 1;
    min-width: 140px;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--opn-border);
    border-radius: var(--opn-radius-sm);
    font-size: 0.8rem;
    background: white;
}
.opn-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--opn-border);
    background: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--opn-text);
    text-decoration: none;
    transition: all var(--opn-fast);
}
.opn-btn-icon:hover { background: var(--opn-cream); border-color: var(--opn-gold); transform: translateY(-1px); }

/* === Pricing tiers === */
.opn-pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
.opn-pricing-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--opn-radius);
    border: 2px solid var(--opn-border);
    position: relative;
    display: flex;
    flex-direction: column;
}
.opn-pricing-card header { margin-bottom: 1.25rem; }
.opn-pricing-card h3 {
    margin: 0 0 0.4rem;
    font-family: var(--opn-serif);
    font-size: 1.5rem;
    color: var(--opn-primary);
}
.opn-pricing-price {
    font-size: 2.2rem;
    color: var(--opn-primary);
    font-weight: 600;
    margin: 0;
    font-family: var(--opn-serif);
}
.opn-pricing-price span {
    font-size: 0.95rem;
    color: var(--opn-muted);
    font-weight: 400;
    font-family: var(--opn-sans);
}
.opn-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
.opn-pricing-card li {
    padding: 0.5rem 0;
    color: var(--opn-text);
    font-size: 0.93rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--opn-border-soft);
}
.opn-pricing-card li:last-child { border-bottom: none; }
.opn-pricing-card .opn-btn { width: 100%; justify-content: center; }
.opn-tier-featured {
    border-color: var(--opn-gold);
    background: linear-gradient(180deg, #fff 0%, rgba(201,169,110,0.05) 100%);
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(10,37,64,0.08);
}
.opn-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--opn-gold);
    color: var(--opn-primary);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.opn-tier-current {
    border-color: var(--opn-primary);
    background: var(--opn-cream);
}
.opn-tier-current::before {
    content: '✓ Ton tier actuel';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--opn-primary);
    color: var(--opn-cream);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Track offer buttons */
.opn-offer-cta {
    background: var(--opn-cream);
    padding: 1.5rem;
    border-radius: var(--opn-radius);
    border: 1px solid var(--opn-border);
    margin: 1.5rem 0;
}
.opn-offer-cta p { margin: 0 0 1rem; }
.opn-offer-cta .opn-btn { margin-right: 0.5rem; }

@media (max-width: 768px) {
    .opn-pricing-tiers { grid-template-columns: 1fr; }
    .opn-tier-featured { transform: none; }
    .opn-dashboard-stats { grid-template-columns: 1fr; }
    .opn-kanban { grid-template-columns: 1fr; }
}
