/* Objectif PN Coaching AI — Frontend styles */

:root {
    --opn-navy: #071f3a;
    --opn-blue: #0a3a73;
    --opn-sky:  #26aee4;
    --opn-gold: #f4b23c;
    --opn-bg:   #f7f9fc;
    --opn-text: #1a2735;
    --opn-muted:#5b6b80;
    --opn-border:#dfe6ef;
    --opn-radius:10px;
    --opn-shadow:0 6px 24px rgba(7,31,58,.08);
}

.opn-input {
    width:100%;
    padding:.85rem .9rem;
    border:1px solid var(--opn-border);
    border-radius:var(--opn-radius);
    background:#fff;
    font-size:1rem;
    line-height:1.4;
    box-sizing:border-box;
    min-height:48px;
}
.opn-input:focus { outline:2px solid var(--opn-sky); border-color:var(--opn-sky); }

/* v0.11.10 — Force une hauteur uniforme et lisible pour TOUS les selects/inputs du plugin
   (la valeur sélectionnée doit être visible avec une marge confortable au-dessus et en-dessous).
   Cible large pour rattraper les selects sans classe .opn-input (style inline ou aucun style). */
.opn-letter-page select,
.opn-letter-generator select,
.opn-letter-audit select,
.opn-photo-audit select,
.opn-cv-generator select,
.opn-cv-audit select,
.opn-cv-wizard select,
.opn-wiz select,
.opn-questionnaire select,
.opn-register-form select,
.opn-coaching-form select,
[data-opn] select,
[data-opn] input[type="text"],
[data-opn] input[type="email"],
[data-opn] input[type="tel"],
[data-opn] input[type="url"],
[data-opn] input[type="number"],
[data-opn] input[type="date"],
[data-opn] textarea,
.opn-cv-wizard input[type="text"],
.opn-cv-wizard input[type="email"],
.opn-cv-wizard input[type="tel"],
.opn-cv-wizard input[type="url"],
.opn-cv-wizard input[type="number"],
.opn-cv-wizard input[type="date"],
.opn-cv-wizard input[type="month"],
.opn-cv-wizard textarea,
select.opn-input,
textarea.opn-input {
    min-height:48px;
    padding:.85rem .9rem;
    line-height:1.4;
    font-size:1rem;
    box-sizing:border-box;
    border:1px solid var(--opn-border);
    border-radius:var(--opn-radius);
    background:#fff;
    color:#0A2540;
}
.opn-cv-wizard textarea,
[data-opn] textarea,
textarea.opn-input { min-height:80px; padding:.7rem .9rem; }
.opn-cv-wizard select:focus,
[data-opn] select:focus,
select.opn-input:focus { outline:2px solid var(--opn-sky); border-color:var(--opn-sky); }

.opn-btn {
    display:inline-block;
    padding:.7rem 1.4rem;
    border-radius:var(--opn-radius);
    border:1px solid transparent;
    font-weight:600;
    font-size:1rem;
    cursor:pointer;
    text-decoration:none;
    transition:transform .15s ease, box-shadow .15s ease;
}
.opn-btn-primary { background:var(--opn-navy); color:#fff; }
.opn-btn-primary:hover { background:var(--opn-blue); color:#fff; transform:translateY(-1px); box-shadow:var(--opn-shadow); }
.opn-btn-secondary { background:#fff; color:var(--opn-navy); border-color:var(--opn-navy); }
.opn-btn-secondary:hover { background:var(--opn-navy); color:#fff; }

.opn-notice { padding:1rem 1.2rem; background:#eaf3fb; border-left:4px solid var(--opn-sky); border-radius:var(--opn-radius); margin:1rem 0; }

/* CV audit */
.opn-cv-audit { background:#fff; padding:2rem; border-radius:var(--opn-radius); box-shadow:var(--opn-shadow); margin:1rem 0; }
.opn-cv-audit h3 { margin-top:0; color:var(--opn-navy); }
.opn-cv-form label { font-weight:600; }
.opn-cv-status { font-style:italic; color:var(--opn-muted); }
.opn-cv-result { margin-top:1.5rem; padding:1.5rem; background:var(--opn-bg); border-radius:var(--opn-radius); }
.opn-cv-score { font-size:1.5rem; margin-bottom:1rem; }
.opn-cv-report h3 { margin-top:1.5rem; color:var(--opn-navy); }
.opn-cv-report ul, .opn-cv-report ol { padding-left:1.5rem; }

/* Chat IA flottant */
.opn-chat-fab {
    position:fixed; right:1.5rem; bottom:1.5rem; z-index:9999;
}
.opn-chat-fab-btn {
    width:60px; height:60px; border-radius:50%; border:none;
    background:var(--opn-navy); color:#fff; font-size:1.7rem; cursor:pointer;
    box-shadow:var(--opn-shadow);
    display:flex; align-items:center; justify-content:center;
    transition: transform 0.2s ease, background 0.2s ease;
}
.opn-chat-fab-btn:hover { background:var(--opn-blue); transform: scale(1.05); }

.opn-chat {
    background:#fff; border:1px solid var(--opn-border); border-radius:var(--opn-radius);
    box-shadow:var(--opn-shadow); display:flex; flex-direction:column;
}
/* CRITICAL : force le masquage quand l'attribut hidden est posé.
   Sans cette règle, .opn-chat avec display:flex surcharge [hidden]
   et la fenêtre reste visible quoi qu'on fasse en JS. */
.opn-chat[hidden] {
    display: none !important;
}
.opn-chat-floating {
    position:absolute; right:0; bottom:80px;
    width:360px; height:480px;
}
.opn-chat-inline { width:100%; max-width:680px; height:520px; margin:1rem 0; }
.opn-chat-header {
    background:var(--opn-navy); color:#fff;
    padding:.8rem 1rem; border-radius:var(--opn-radius) var(--opn-radius) 0 0;
    display:flex; justify-content:space-between; align-items:center;
    font-weight:600;
}
.opn-chat-close { background:none; border:none; color:#fff; font-size:1.4rem; cursor:pointer; line-height:1; }
.opn-chat-messages { flex:1; overflow-y:auto; padding:1rem; display:flex; flex-direction:column; gap:.6rem; }
.opn-chat-msg { padding:.6rem .9rem; border-radius:14px; max-width:85%; line-height:1.4; word-wrap:break-word; }
.opn-chat-msg.user { background:var(--opn-sky); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.opn-chat-msg.assistant { background:#eef3f9; color:var(--opn-text); align-self:flex-start; border-bottom-left-radius:4px; }
.opn-chat-msg.error { background:#fde8e8; color:#cf222e; align-self:center; }
.opn-chat-msg.assistant a { color:var(--opn-sky); text-decoration:underline; word-break:break-word; }
.opn-chat-msg.assistant a:hover { color:var(--opn-gold,#C9A96E); }
.opn-chat-msg.assistant strong { font-weight:600; }
.opn-chat-msg.assistant em { font-style:italic; }
.opn-chat-form { display:flex; gap:.5rem; padding:.6rem; border-top:1px solid var(--opn-border); }
.opn-chat-form .opn-input { flex:1; }

/* Chat membres */
.opn-member-chat { display:grid; grid-template-columns:240px 1fr; gap:1rem; min-height:500px; background:#fff; border-radius:var(--opn-radius); box-shadow:var(--opn-shadow); padding:1rem; }
.opn-member-chat__sidebar { border-right:1px solid var(--opn-border); padding-right:1rem; }
.opn-member-chat__sidebar h4 { margin-top:0; color:var(--opn-navy); }
.opn-member-chat__users { list-style:none; padding:0; margin:0; }
.opn-member-chat__users li { padding:.6rem .8rem; border-radius:8px; cursor:pointer; }
.opn-member-chat__users li:hover { background:var(--opn-bg); }
.opn-member-chat__users li.active { background:var(--opn-navy); color:#fff; }
.opn-member-chat__main { display:flex; flex-direction:column; }
.opn-member-chat__header { font-weight:600; color:var(--opn-navy); padding-bottom:.6rem; border-bottom:1px solid var(--opn-border); }
.opn-member-chat__messages { flex:1; overflow-y:auto; padding:.6rem 0; display:flex; flex-direction:column; gap:.5rem; }
.opn-member-chat__form { display:flex; gap:.5rem; padding-top:.6rem; border-top:1px solid var(--opn-border); }
.opn-member-chat__form .opn-input { flex:1; }
@media (max-width:640px) {
    .opn-member-chat { grid-template-columns:1fr; }
    .opn-member-chat__sidebar { border-right:none; border-bottom:1px solid var(--opn-border); padding-bottom:1rem; }
}

/* Jobs */
.opn-jobs-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:1.2rem; margin:1rem 0; }
.opn-job-card { background:#fff; padding:1.4rem; border-radius:var(--opn-radius); box-shadow:var(--opn-shadow); }
.opn-job-card h3 { margin-top:0; color:var(--opn-navy); font-size:1.15rem; }
.opn-job-card h3 a { color:inherit; text-decoration:none; }
.opn-job-meta { color:var(--opn-muted); font-size:.9rem; margin:.4rem 0; }
.opn-job-deadline { color:var(--opn-gold); font-weight:600; }

/* Forms */
.opn-coaching-form, .opn-register-form { background:#fff; padding:2rem; border-radius:var(--opn-radius); box-shadow:var(--opn-shadow); max-width:600px; }
.opn-coaching-form h3, .opn-register-form h3 { margin-top:0; color:var(--opn-navy); }
.opn-coaching-status, .opn-register-status { font-style:italic; color:var(--opn-muted); }

/* Dashboard */
.opn-dashboard { background:#fff; padding:2rem; border-radius:var(--opn-radius); box-shadow:var(--opn-shadow); }
.opn-dashboard h2 { color:var(--opn-navy); margin-top:0; }
.opn-dashboard__status { background:var(--opn-bg); padding:1rem 1.4rem; border-radius:var(--opn-radius); margin:1rem 0; }
.opn-dashboard__grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:1rem; margin:1.4rem 0; }
.opn-dashboard__card { display:block; padding:1.2rem; background:var(--opn-bg); border-radius:var(--opn-radius); text-decoration:none; color:var(--opn-text); transition:transform .15s ease; }
.opn-dashboard__card:hover { transform:translateY(-2px); box-shadow:var(--opn-shadow); }
.opn-dashboard__card h3 { margin-top:0; color:var(--opn-navy); font-size:1.1rem; }

/* Premium CTA */
.opn-premium-cta { background:linear-gradient(135deg, var(--opn-navy), var(--opn-blue)); color:#fff; padding:2rem; border-radius:var(--opn-radius); text-align:center; }
.opn-premium-cta h3 { color:#fff; margin-top:0; }
.opn-premium-cta__price { font-size:1.4rem; margin:1rem 0; }
.opn-premium-cta .opn-btn-primary { background:var(--opn-gold); color:var(--opn-navy); border-color:var(--opn-gold); }
.opn-premium-cta .opn-btn-primary:hover { background:#fff; color:var(--opn-navy); border-color:#fff; }

/* Restricted */
.opn-restricted { background:var(--opn-bg); padding:2rem; border-radius:var(--opn-radius); border:1px dashed var(--opn-border); }
.opn-restricted__notice { background:#fff; padding:1.5rem; border-radius:var(--opn-radius); margin-top:1rem; text-align:center; }
.opn-restricted__notice h3 { color:var(--opn-navy); margin-top:0; }

.opn-trial-status { font-style:italic; margin-left:1rem; }

/* === Gates (accès réservé) === */
.opn-gate {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(7,31,58,.08);
    border-left: 4px solid var(--opn-primary, #337AB7);
    margin: 1rem 0;
}
.opn-gate h3 { margin-top: 0; color: var(--opn-heading, #222); }
.opn-gate--unconfirmed { border-left-color: #f4b23c; }
.opn-gate--submitted { border-left-color: #1a7f37; }

/* === Chat gate === */
.opn-chat-gate {
    padding: 1.4rem;
    text-align: center;
    background: #f7f9fc;
}
.opn-chat-gate p { margin: .5rem 0; }
.opn-chat-gate .opn-btn { margin-top: .5rem; }

/* === Notices === */
.opn-notice--success { border-left: 4px solid #1a7f37; background: #f0f9f4; }
.opn-notice--error   { border-left: 4px solid #cf222e; background: #fef0f0; }

/* === Opt-in checkboxes === */
.opn-checkbox-row {
    background: #f7f9fc;
    padding: .9rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin: .8rem 0;
    /* Force pleine largeur même si le thème/Elementor parent applique du multi-colonnes */
    display: block !important;
    width: 100% !important;
    column-count: 1 !important;
    column-span: all !important;
    -webkit-column-count: 1 !important;
    -webkit-column-span: all !important;
    -moz-column-count: 1 !important;
    break-inside: avoid;
    box-sizing: border-box;
}
.opn-checkbox-row label {
    display: flex !important;
    align-items: flex-start;
    gap: .6rem;
    cursor: pointer;
    line-height: 1.5;
    width: 100%;
    column-count: 1 !important;
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
}
.opn-checkbox-row input[type="checkbox"] {
    margin-top: .25rem;
    flex-shrink: 0;
    width: auto !important;
    min-width: 0;
}
.opn-checkbox-row strong { font-weight: 600; }

/* === [opn_login_form] : page de connexion in-theme === */
.opn-login-page {
    max-width: 480px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.opn-login-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(7,31,58,.12), 0 0 0 1px rgba(7,31,58,.04);
    padding: 2.2rem 2rem 1.8rem;
}
.opn-login-title {
    font-size: 1.6rem;
    color: var(--opn-navy);
    margin: 0 0 .4rem;
    font-weight: 600;
    text-align: center;
}
.opn-login-subtitle {
    color: var(--opn-muted);
    text-align: center;
    margin: 0 0 1.6rem;
    font-size: .95rem;
    line-height: 1.5;
}
.opn-login-page #opn-loginform {
    margin: 0;
}
.opn-login-page #opn-loginform p {
    margin: 0 0 .8rem;
}
.opn-login-page #opn-loginform label {
    display: block;
    color: var(--opn-navy);
    font-weight: 500;
    font-size: .9rem;
    margin-bottom: .3rem;
}
.opn-login-page #opn-loginform input[type="text"],
.opn-login-page #opn-loginform input[type="password"],
.opn-login-page #opn-loginform input[type="email"] {
    width: 100%;
    background: var(--opn-cream);
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: .85rem 1rem;
    font-size: 15px;
    color: var(--opn-navy);
    line-height: 1.4;
    min-height: 48px;
    box-sizing: border-box;
    transition: all .2s ease;
}
.opn-login-page #opn-loginform input[type="text"]:focus,
.opn-login-page #opn-loginform input[type="password"]:focus,
.opn-login-page #opn-loginform input[type="email"]:focus {
    border-color: var(--opn-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201,169,110,.15);
    outline: none;
}
.opn-login-page #opn-loginform .login-remember {
    font-size: .9rem;
    color: var(--opn-muted);
    margin: .4rem 0 1.1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.opn-login-page #opn-loginform .login-remember input[type="checkbox"] {
    margin: 0;
    width: auto;
    min-height: 0;
}
.opn-login-page #opn-loginform .login-submit {
    margin: 0;
}
.opn-login-page #opn-loginform .button-primary,
.opn-login-page #opn-loginform input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, var(--opn-navy) 0%, #173b66 100%);
    color: #fff;
    border: none;
    padding: .85rem 1.5rem;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 6px 18px rgba(10,37,64,.25);
    line-height: 1.4;
    letter-spacing: .3px;
    text-shadow: none;
}
.opn-login-page #opn-loginform .button-primary:hover,
.opn-login-page #opn-loginform input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--opn-gold) 0%, #b59455 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(201,169,110,.35);
}
.opn-login-links {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e8eaed;
    text-align: center;
}
.opn-login-links p {
    margin: .4rem 0;
    font-size: .9rem;
    color: var(--opn-muted);
}
.opn-login-links a {
    color: var(--opn-navy);
    text-decoration: none;
    font-weight: 500;
}
.opn-login-links a:hover {
    color: var(--opn-gold);
}
.opn-login-register-link {
    display: inline-block;
    color: var(--opn-gold) !important;
}
@media (max-width: 480px) {
    .opn-login-card { padding: 1.6rem 1.2rem 1.2rem; }
    .opn-login-title { font-size: 1.3rem; }
}

/* === Questionnaire === */
.opn-questionnaire {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(7,31,58,.08);
    max-width: 720px;
    margin: 1rem 0;
}
.opn-questionnaire h3 { margin-top: 0; }
.opn-q {
    margin: 1.4rem 0;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}
.opn-q-label {
    display: block;
    font-weight: 600;
    color: var(--opn-heading, #222);
    margin-bottom: .6rem;
}
.opn-q-radio {
    display: block;
    padding: .4rem 0;
    cursor: pointer;
}
.opn-q-radio input[type="radio"] {
    margin-right: .6rem;
}
.opn-questionnaire-status {
    font-style: italic;
    color: var(--opn-muted, #777);
    padding: .6rem 0;
    min-height: 1.5em;
}
.opn-resend-status {
    font-style: italic;
    font-size: .9em;
    color: var(--opn-muted, #777);
}

/* === CV / Letter generators === */
.opn-cv-generator, .opn-letter-generator {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(7,31,58,.08);
    max-width: 820px;
    margin: 1rem 0;
}
.opn-cv-generator h3, .opn-letter-generator h3 { margin-top: 0; }
.opn-cv-generator h4, .opn-letter-generator h4 {
    margin-top: 1.6rem;
    color: var(--opn-primary, #337AB7);
    border-bottom: 1px solid var(--opn-border, #e5e5e5);
    padding-bottom: .3rem;
}
.opn-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 580px) {
    .opn-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* === Generated documents preview === */
.opn-doc-actions {
    margin: 1.2rem 0;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.opn-doc-preview {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--opn-border, #e5e5e5);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.opn-doc {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--opn-text, #222);
    line-height: 1.55;
}
.opn-doc h1 {
    color: var(--opn-heading, #222);
    border-bottom: 2px solid var(--opn-primary, #337AB7);
    padding-bottom: .25em;
    margin: 0 0 .3em;
}
.opn-doc h2 {
    color: var(--opn-primary, #337AB7);
    margin-top: 1.5em;
    font-size: 1.2em;
}
.opn-doc h3 { margin-bottom: .2em; font-size: 1.05em; }
.opn-doc-title {
    color: var(--opn-muted, #555);
    font-style: italic;
    margin: 0 0 .5em;
}
.opn-doc-contact { color: var(--opn-muted, #555); margin-bottom: 1.2em; }
.opn-doc-headline { margin: 1em 0 1.5em; }
.opn-doc-meta { color: var(--opn-muted, #555); font-style: italic; margin: 0 0 .5em; }
.opn-doc-xp { margin-bottom: 1.2em; }

.opn-letter-doc { max-width: 720px; }
.opn-letter-header { margin-bottom: 1.5em; }
.opn-letter-header p { margin: .2em 0; }
.opn-letter-subject { margin: 1.5em 0; font-size: 1.05em; }
.opn-letter-signature { font-style: italic; margin-top: 2em; }

@media print {
    .opn-doc-actions, .opn-cv-generator > h3, .opn-cv-generator > p,
    .opn-letter-generator > h3, .opn-letter-generator > p,
    form { display: none !important; }
    .opn-doc-preview {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

/* === Dashboard Premium cards === */
.opn-dashboard__card--premium {
    background: linear-gradient(135deg, #fffae0 0%, #fff 100%);
    border-color: #f4b23c !important;
}
.opn-dashboard__card--locked {
    opacity: .75;
    background: #f7f7f7;
}
.opn-dashboard__card--locked h3 { color: #777; }

/* v0.10.8 — Sablier animé pour les attentes IA */
.opn-loader { display:inline-flex; align-items:center; gap:0.6rem; padding:1rem 1.4rem; background:#f0f6fc; color:#0A2540; border-radius:8px; border:1px solid #d4e3f0; font-weight:500; }
.opn-loader__hourglass { display:inline-block; font-size:1.4em; animation: opnHourglass 1.6s ease-in-out infinite; transform-origin:center; }
@keyframes opnHourglass {
    0%   { transform: rotate(0deg); }
    40%  { transform: rotate(0deg); }
    50%  { transform: rotate(180deg); }
    90%  { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}
.opn-loader__dots::after { content: ''; animation: opnDots 1.4s steps(4, end) infinite; }
@keyframes opnDots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* ============================================================
   v0.12.0 — WORKFLOW CANDIDATURE PNC
============================================================ */
.opn-workflow {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: var(--opn-navy);
}
.opn-wf-header { text-align: center; margin-bottom: 2rem; }
.opn-wf-title {
    font-size: 2rem;
    color: var(--opn-navy);
    margin: 0 0 .4rem;
    font-weight: 700;
}
.opn-wf-subtitle { color: var(--opn-muted); font-size: 1.05rem; margin: 0; }

.opn-wf-section {
    background: #fff;
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 6px 24px rgba(7,31,58,.06);
}
.opn-wf-section h2 {
    color: var(--opn-navy);
    margin: 0 0 .6rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.opn-wf-counter {
    background: var(--opn-gold);
    color: #fff;
    font-size: .8rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-weight: 500;
}

/* --- 1) Sélecteur compagnies --- */
.opn-wf-company-picker { margin-top: 1rem; }
.opn-wf-search { margin-bottom: 1rem; }
.opn-wf-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .6rem;
    max-height: 480px;
    overflow-y: auto;
    padding: .8rem;
    background: #FAF8F3;
    border: 1px solid #e8eaed;
    border-radius: 10px;
}
.opn-wf-company-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    background: #fff;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s ease;
}
.opn-wf-company-card:hover { border-color: var(--opn-gold); transform: translateY(-1px); }
.opn-wf-company-card.is-followed {
    border-color: var(--opn-gold);
    background: linear-gradient(135deg, #fff 0%, #fcf7eb 100%);
}
.opn-wf-company-card input { margin: 0; flex-shrink: 0; }
.opn-wf-company-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}
.opn-wf-company-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #999;
}
.opn-wf-company-info { flex: 1; min-width: 0; line-height: 1.3; }
.opn-wf-company-info strong { display: block; color: var(--opn-navy); font-size: .95em; }
.opn-wf-company-info small { color: var(--opn-muted); font-size: .8em; }

/* --- 2) Blocs compagnies suivies --- */
.opn-wf-followed-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1rem; }
.opn-wf-company-block {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
}
.opn-wf-company-block__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(135deg, #FAF8F3 0%, #fff 100%);
    border-bottom: 1px solid #e8eaed;
}
.opn-wf-company-block__head .opn-wf-company-logo { width: 64px; height: 64px; }
.opn-wf-company-block__title { flex: 1; min-width: 0; }
.opn-wf-company-block__title h3 { margin: 0; color: var(--opn-navy); font-size: 1.3rem; }
.opn-wf-company-block__title small { color: var(--opn-muted); }

.opn-wf-progress-circle {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--opn-gold) calc(var(--p, 0) * 1%), #e8eaed 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--opn-navy);
    text-align: center;
    flex-shrink: 0;
    position: relative;
}
.opn-wf-progress-circle::before {
    content: "";
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 50%;
}
.opn-wf-progress-circle strong, .opn-wf-progress-circle small { position: relative; line-height: 1; }
.opn-wf-progress-circle strong { font-size: .95rem; font-weight: 700; }
.opn-wf-progress-circle small { font-size: .7rem; color: var(--opn-muted); margin-top: 2px; }

.opn-btn-danger {
    background: transparent;
    color: #cf222e;
    border: 1.5px solid transparent;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.opn-btn-danger:hover { background: #fef0f0; border-color: #cf222e; }

.opn-wf-tabs {
    display: flex;
    border-bottom: 1px solid #e8eaed;
    overflow-x: auto;
}
.opn-wf-tab {
    padding: .9rem 1.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    color: var(--opn-muted);
    border-bottom: 3px solid transparent;
    transition: all .15s ease;
    white-space: nowrap;
}
.opn-wf-tab:hover { color: var(--opn-navy); }
.opn-wf-tab.is-active {
    color: var(--opn-navy);
    border-bottom-color: var(--opn-gold);
    font-weight: 600;
}
.opn-wf-tab-pane { display: none; padding: 1.4rem; }
.opn-wf-tab-pane.is-active { display: block; }

/* Matching */
.opn-wf-matching-load { font-size: 1.05em; padding: .9rem 1.5rem; }
.opn-wf-matching-hint { margin-top: .8rem; font-size: .9rem; }
.opn-wf-matching-result { display: grid; gap: 1rem; }
.opn-wf-score {
    background: linear-gradient(135deg, var(--opn-navy) 0%, #173b66 100%);
    color: #fff;
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.opn-wf-score--high { background: linear-gradient(135deg, #1a7f37 0%, #2da44e 100%); }
.opn-wf-score--mid  { background: linear-gradient(135deg, var(--opn-gold) 0%, #b59455 100%); }
.opn-wf-score--low  { background: linear-gradient(135deg, #cf222e 0%, #a40e26 100%); }
.opn-wf-score-value { font-size: 3rem; font-weight: 700; line-height: 1; }
.opn-wf-score-value small { font-size: 1rem; opacity: .7; }
.opn-wf-score-label { font-size: .9rem; opacity: .9; margin-top: .3rem; }

.opn-wf-section-card {
    background: #FAF8F3;
    border-left: 4px solid var(--opn-gold);
    padding: 1rem 1.2rem;
    border-radius: 8px;
}
.opn-wf-section-card h4 { margin: 0 0 .6rem; color: var(--opn-navy); font-size: 1rem; }
.opn-wf-section-card p { margin: 0; line-height: 1.55; }
.opn-wf-list { margin: 0; padding: 0; list-style: none; }
.opn-wf-list li {
    padding: .5rem 0 .5rem 1.6rem;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px dashed #e8eaed;
}
.opn-wf-list li:last-child { border-bottom: none; }
.opn-wf-list--strengths li::before { content: "✓"; position: absolute; left: 0; color: #1a7f37; font-weight: 700; }
.opn-wf-list--weaknesses li::before { content: "→"; position: absolute; left: 0; color: var(--opn-gold); font-weight: 700; }
.opn-wf-list--advice li::before { content: "💡"; position: absolute; left: 0; }
.opn-wf-cache-info { font-size: .85em; }
.opn-wf-cache-info a { color: var(--opn-gold); }

/* Roadmap */
.opn-wf-roadmap-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #FAF8F3;
    border-radius: 8px;
}
.opn-wf-cat-progress { display: flex; flex-direction: column; gap: .3rem; }
.opn-wf-cat-progress span { font-size: .85rem; color: var(--opn-navy); font-weight: 500; }
.opn-wf-cat-progress small { color: var(--opn-muted); font-size: .8em; }
.opn-wf-bar { height: 8px; background: #e8eaed; border-radius: 4px; overflow: hidden; }
.opn-wf-bar-fill { height: 100%; background: var(--opn-gold); transition: width .4s ease; }

.opn-wf-cat {
    margin-bottom: .8rem;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    overflow: hidden;
}
.opn-wf-cat summary {
    padding: .9rem 1.2rem;
    background: #FAF8F3;
    cursor: pointer;
    font-weight: 600;
    color: var(--opn-navy);
}
.opn-wf-task-list { margin: 0; padding: 0; list-style: none; }
.opn-wf-task {
    border-bottom: 1px solid #e8eaed;
    padding: .8rem 1.2rem;
    transition: background .15s ease;
}
.opn-wf-task:last-child { border-bottom: none; }
.opn-wf-task.is-done { opacity: .6; background: #f6f8fa; }
.opn-wf-task.is-done .opn-wf-task-title { text-decoration: line-through; }
.opn-wf-task-check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.opn-wf-task-check input { margin-top: .3rem; flex-shrink: 0; }
.opn-wf-task-title { font-weight: 500; color: var(--opn-navy); }
.opn-wf-task-body { margin-left: 1.6rem; margin-top: .3rem; }
.opn-wf-task-desc { color: var(--opn-muted); font-size: .9em; margin: .3rem 0; line-height: 1.5; }
.opn-wf-task-link a { color: var(--opn-gold); font-size: .9em; }
.opn-wf-task-notes { width: 100%; min-height: 60px; margin-top: .4rem; resize: vertical; }

/* Info compagnie panel */
.opn-wf-company-info-panel p { margin: .5rem 0; line-height: 1.6; }

/* Préférences alertes */
.opn-wf-prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.opn-wf-pref-group { display: flex; flex-direction: column; gap: .3rem; }
.opn-wf-pref-label { font-weight: 500; color: var(--opn-navy); font-size: .95em; }
.opn-wf-pref-group small { color: var(--opn-muted); font-size: .8em; line-height: 1.4; }
.opn-wf-pref-toggle {
    flex-direction: row;
    align-items: center;
    background: #FAF8F3;
    padding: .9rem 1rem;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}
.opn-wf-prefs-status { margin-left: 1rem; color: var(--opn-muted); font-size: .9em; }

/* Feed offres */
.opn-wf-offers-list { display: grid; gap: 1rem; }
.opn-wf-offer-card {
    background: #FAF8F3;
    border-left: 4px solid var(--opn-gold);
    padding: 1rem 1.2rem;
    border-radius: 8px;
}
.opn-wf-offer-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.opn-wf-offer-date { color: var(--opn-muted); font-size: .85em; }
.opn-wf-offer-card h4 { margin: .4rem 0 .3rem; color: var(--opn-navy); font-size: 1.1em; }
.opn-wf-offer-loc { color: var(--opn-muted); font-size: .9em; margin: .2rem 0; }
.opn-wf-offer-desc { font-size: .9em; line-height: 1.5; margin: .4rem 0 .6rem; }
.opn-btn-sm { padding: .4rem .9rem; font-size: .85em; }

@media (max-width: 768px) {
    .opn-wf-company-block__head { flex-wrap: wrap; }
    .opn-wf-progress-circle { order: 3; }
    .opn-wf-task-body { margin-left: 0; }
}

/* ============================================================
   v0.13.0 — SIMULATEUR D'ENTRETIEN
============================================================ */
.opn-interview { max-width: 900px; margin: 2rem auto; padding: 0 1rem; color: var(--opn-navy); }
.opn-iv-header { text-align: center; margin-bottom: 1.6rem; }
.opn-iv-title { font-size: 2rem; color: var(--opn-navy); margin: 0 0 .3rem; font-weight: 700; }
.opn-iv-subtitle { color: var(--opn-muted); margin: 0; }

.opn-iv-stats-summary {
    display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.opn-iv-stat {
    background: linear-gradient(135deg, var(--opn-navy) 0%, #173b66 100%);
    color: #fff; padding: .8rem 1.5rem; border-radius: 10px; text-align: center;
    box-shadow: 0 4px 16px rgba(7,31,58,.15);
}
.opn-iv-stat strong { display: block; font-size: 1.5rem; font-weight: 700; }
.opn-iv-stat small { font-size: .8em; opacity: .85; }

/* Setup */
.opn-iv-setup, .opn-iv-question, .opn-iv-result {
    background: #fff; padding: 2rem; border-radius: 14px;
    box-shadow: 0 6px 24px rgba(7,31,58,.06); margin-bottom: 1.5rem;
}
.opn-iv-setup h2, .opn-iv-result h2 { color: var(--opn-navy); margin: 0 0 1.2rem; }

.opn-iv-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
    margin-bottom: 1.4rem;
}
.opn-iv-mode { cursor: pointer; }
.opn-iv-mode input { position: absolute; opacity: 0; }
.opn-iv-mode-card {
    display: block;
    background: var(--opn-cream);
    border: 2px solid #e8eaed;
    border-radius: 10px;
    padding: 1rem;
    transition: all .2s ease;
}
.opn-iv-mode-card strong { display: block; color: var(--opn-navy); margin-bottom: .3rem; }
.opn-iv-mode-card em { color: var(--opn-muted); font-style: normal; font-size: .85em; line-height: 1.4; }
.opn-iv-mode input:checked + .opn-iv-mode-card {
    border-color: var(--opn-gold);
    background: linear-gradient(135deg, #fff 0%, #fcf7eb 100%);
    box-shadow: 0 4px 16px rgba(201,169,110,.2);
}
.opn-iv-category-row, .opn-iv-count-row, .opn-iv-company-row { margin: 1rem 0; }
.opn-iv-category-row label, .opn-iv-count-row label, .opn-iv-company-row label {
    display: block;
}
.opn-iv-category-row strong, .opn-iv-count-row strong, .opn-iv-company-row strong {
    display: block; color: var(--opn-navy); margin-bottom: .3rem;
}
.opn-iv-company-row small { display: block; color: var(--opn-muted); font-size: .85em; margin-top: .3rem; }
.opn-iv-start-btn { font-size: 1.1em; padding: 1rem 2rem; margin-top: 1rem; width: 100%; }

/* Question screen */
.opn-iv-progress-bar {
    position: relative; height: 8px; background: #e8eaed; border-radius: 4px; overflow: hidden;
    margin-bottom: 1.5rem;
}
.opn-iv-progress-fill { height: 100%; background: var(--opn-gold); transition: width .4s ease; }
.opn-iv-progress-label {
    display: block; text-align: center; color: var(--opn-muted); font-size: .85em; margin-top: .4rem;
}

.opn-iv-question-card { }
.opn-iv-category-badge {
    display: inline-block; background: var(--opn-gold); color: #fff;
    padding: .25rem .8rem; border-radius: 999px; font-size: .85em; font-weight: 500;
    margin-bottom: .8rem;
}
.opn-iv-question-text {
    color: var(--opn-navy); font-size: 1.35rem; line-height: 1.4; margin: 0 0 1rem;
}
.opn-iv-tips {
    background: #FAF8F3; border-left: 4px solid var(--opn-gold);
    border-radius: 6px; padding: .8rem 1.1rem; margin-bottom: 1.3rem;
}
.opn-iv-tips summary { cursor: pointer; color: var(--opn-navy); font-weight: 500; }
.opn-iv-tips-content {
    margin-top: .6rem; line-height: 1.6; white-space: pre-line; color: var(--opn-navy);
    font-size: .95rem;
}

.opn-iv-answer-zone label { display: block; }
.opn-iv-answer-zone strong { display: block; color: var(--opn-navy); margin-bottom: .4rem; }
.opn-iv-answer-textarea {
    width: 100%; min-height: 180px; resize: vertical; line-height: 1.6;
    font-size: 1rem; box-sizing: border-box;
}
.opn-iv-answer-toolbar {
    display: flex; align-items: center; gap: .8rem; margin-top: .5rem; flex-wrap: wrap;
}
.opn-iv-mic-btn.is-recording {
    background: #cf222e; color: #fff; border-color: #cf222e;
    animation: opn-iv-pulse 1.4s infinite;
}
@keyframes opn-iv-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(207,34,46,.5); }
    50% { box-shadow: 0 0 0 10px rgba(207,34,46,0); }
}
.opn-iv-mic-status { color: var(--opn-muted); font-size: .9em; }
.opn-iv-wordcount {
    margin-left: auto; color: var(--opn-muted); font-size: .85em;
    background: #f6f8fa; padding: .2rem .6rem; border-radius: 999px;
}
.opn-iv-wordcount.is-ok { background: #ddf4dd; color: #1a7f37; font-weight: 500; }

.opn-iv-question-actions { margin-top: 1.5rem; text-align: center; }
.opn-iv-submit-btn { font-size: 1.05em; padding: .9rem 2.5rem; }

/* Feedback */
.opn-iv-feedback {
    margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid #e8eaed;
}
.opn-iv-feedback-score {
    background: linear-gradient(135deg, var(--opn-navy) 0%, #173b66 100%);
    color: #fff; padding: 1.2rem; border-radius: 10px; text-align: center;
    margin-bottom: 1rem;
}
.opn-iv-score--high { background: linear-gradient(135deg, #1a7f37 0%, #2da44e 100%) !important; }
.opn-iv-score--mid  { background: linear-gradient(135deg, var(--opn-gold) 0%, #b59455 100%) !important; }
.opn-iv-score--low  { background: linear-gradient(135deg, #cf222e 0%, #a40e26 100%) !important; }
.opn-iv-score-big { font-size: 2.5rem; font-weight: 700; line-height: 1; margin-bottom: .3rem; }
.opn-iv-score-big small { font-size: .9rem; opacity: .7; }

.opn-iv-subscores, .opn-iv-subscores-final {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem;
    margin-bottom: 1rem;
}
.opn-iv-subscore {
    background: #FAF8F3; border-radius: 8px; padding: .8rem; text-align: center;
    border: 1px solid #e8eaed;
}
.opn-iv-subscore span { display: block; color: var(--opn-muted); font-size: .8em; margin-bottom: .3rem; }
.opn-iv-subscore strong { display: block; font-size: 1.3rem; color: var(--opn-navy); }

.opn-iv-fb-block {
    background: #FAF8F3; border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: .8rem;
    border-left: 4px solid var(--opn-gold);
}
.opn-iv-fb-block h3, .opn-iv-fb-block h4 { color: var(--opn-navy); margin: 0 0 .6rem; }
.opn-iv-fb-block summary { cursor: pointer; color: var(--opn-navy); font-weight: 500; }
.opn-iv-fb-block ul { margin: 0; padding-left: 1.3rem; }
.opn-iv-fb-block li { padding: .3rem 0; line-height: 1.5; }
.opn-iv-priority { border-left-color: #cf222e; }
.opn-iv-model-answer {
    background: #fff; padding: 1rem 1.2rem; border-radius: 6px; margin-top: .8rem;
    font-style: italic; line-height: 1.6; color: var(--opn-navy);
}
.opn-iv-feedback-actions { text-align: center; margin-top: 1.5rem; }

/* Final result */
.opn-iv-result-summary {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.opn-iv-score-final {
    background: linear-gradient(135deg, var(--opn-navy) 0%, #173b66 100%);
    color: #fff; padding: 1.5rem; border-radius: 12px; text-align: center;
    display: flex; flex-direction: column; justify-content: center;
}
.opn-iv-score-final .opn-iv-score-big { font-size: 3rem; }

.opn-iv-cat-breakdown { background: #FAF8F3; padding: 1.2rem; border-radius: 10px; margin: 1rem 0; }
.opn-iv-cat-breakdown h3 { margin: 0 0 .8rem; color: var(--opn-navy); }
.opn-iv-cat-row {
    display: grid; grid-template-columns: 140px 1fr 60px; gap: .8rem;
    align-items: center; margin-bottom: .5rem;
}
.opn-iv-cat-row > span { font-size: .9em; color: var(--opn-navy); font-weight: 500; }
.opn-iv-cat-bar { height: 10px; background: #e8eaed; border-radius: 5px; overflow: hidden; }
.opn-iv-cat-bar-fill { height: 100%; transition: width .6s ease; }
.opn-iv-cat-row strong { text-align: right; font-size: .9em; color: var(--opn-navy); }

/* Historique */
.opn-iv-history {
    background: #fff; padding: 1.5rem; border-radius: 14px;
    box-shadow: 0 6px 24px rgba(7,31,58,.06);
}
.opn-iv-history h2 { color: var(--opn-navy); margin: 0 0 1rem; }
.opn-iv-history-table { width: 100%; border-collapse: collapse; }
.opn-iv-history-table th, .opn-iv-history-table td {
    padding: .7rem; text-align: left; border-bottom: 1px solid #e8eaed;
}
.opn-iv-history-table th { background: #FAF8F3; color: var(--opn-navy); font-weight: 600; }
.opn-iv-score {
    padding: .25rem .6rem; border-radius: 999px; color: #fff; font-weight: 600; font-size: .85em;
}
.opn-iv-score.opn-iv-score--high { background: #1a7f37; }
.opn-iv-score.opn-iv-score--mid  { background: var(--opn-gold); }
.opn-iv-score.opn-iv-score--low  { background: #cf222e; }

@media (max-width: 640px) {
    .opn-iv-result-summary { grid-template-columns: 1fr; }
    .opn-iv-cat-row { grid-template-columns: 1fr; gap: .3rem; }
    .opn-iv-question-text { font-size: 1.1rem; }
}

/* ============================================================
   v0.13.0 — REFONTE ESPACE MEMBRES (member_dashboard)
============================================================ */
.opn-md-dashboard {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: var(--opn-navy);
}

/* HERO */
.opn-md-hero {
    background: linear-gradient(135deg, var(--opn-navy) 0%, #173b66 100%);
    color: #fff;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 6px 24px rgba(7,31,58,.12);
}
.opn-md-hero-left h1 {
    margin: 0 0 .3rem;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}
.opn-md-hero-sub {
    color: rgba(255,255,255,.85);
    margin: 0 0 .8rem;
    font-size: 1rem;
}
.opn-md-tier {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .85em;
    font-weight: 600;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.3);
}
.opn-md-tier--premium { background: var(--opn-gold); color: var(--opn-navy); border-color: var(--opn-gold); }
.opn-md-tier--plus { background: #fff; color: var(--opn-navy); border-color: var(--opn-gold); box-shadow: 0 0 0 3px rgba(201,169,110,.3); }
.opn-md-hero-cta { text-align: right; }
.opn-md-hero-cta p { margin: 0 0 .6rem; color: rgba(255,255,255,.95); font-size: .95em; }
.opn-md-hero-cta .opn-btn { margin-left: .4rem; }

/* STATS PERSONNELLES */
.opn-md-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .8rem;
    margin-bottom: 2rem;
}
.opn-md-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(7,31,58,.06);
    border: 1px solid #e8eaed;
    transition: transform .15s ease, box-shadow .15s ease;
}
.opn-md-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(7,31,58,.1);
}
.opn-md-stat-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: .3rem;
}
.opn-md-stat-card strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--opn-navy);
    line-height: 1;
    margin-bottom: .2rem;
}
.opn-md-stat-card small {
    display: block;
    color: var(--opn-muted);
    font-size: .85em;
    line-height: 1.3;
}
.opn-md-stat-card em {
    display: block;
    margin-top: .4rem;
    font-style: normal;
    font-size: .8em;
    color: var(--opn-gold);
    font-weight: 500;
}

/* SECTIONS */
.opn-md-section {
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 24px rgba(7,31,58,.06);
}
.opn-md-section-title {
    color: var(--opn-navy);
    margin: 0 0 .3rem;
    font-size: 1.4rem;
    font-weight: 700;
}
.opn-md-section-sub {
    color: var(--opn-muted);
    margin: 0 0 1.2rem;
    font-size: .95rem;
}

/* GRILLE DES OUTILS */
.opn-md-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.opn-md-tool {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.3rem;
    background: var(--opn-cream);
    border: 2px solid #e8eaed;
    border-radius: 10px;
    text-decoration: none;
    color: var(--opn-navy);
    transition: all .2s ease;
    overflow: hidden;
}
.opn-md-tool:hover {
    border-color: var(--opn-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(7,31,58,.1);
    background: #fff;
}
.opn-md-tool-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: .6rem;
}
.opn-md-tool h3 {
    color: var(--opn-navy);
    font-size: 1.1rem;
    margin: 0 0 .4rem;
    font-weight: 600;
}
.opn-md-tool p {
    color: var(--opn-muted);
    font-size: .9rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* Featured (workflow) */
.opn-md-tool--featured {
    background: linear-gradient(135deg, #fff 0%, #fcf7eb 100%);
    border-color: var(--opn-gold);
}
.opn-md-tool--featured h3 { color: var(--opn-navy); }

/* New (simulateur entretien) */
.opn-md-tool--new {
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
    border-color: var(--opn-sky);
}
.opn-md-tool--new h3 { color: var(--opn-navy); }

/* Premium+ tile (info, pas un lien) */
.opn-md-tool--premium-plus {
    background: linear-gradient(135deg, var(--opn-navy) 0%, #173b66 100%);
    color: #fff;
    border-color: var(--opn-gold);
    cursor: default;
}
.opn-md-tool--premium-plus:hover { transform: none; }
/* Blindage anti-surcharge thème : forcer le texte en blanc */
.opn-md-dashboard .opn-md-tool--premium-plus,
.opn-md-dashboard .opn-md-tool--premium-plus h3,
.opn-md-dashboard .opn-md-tool--premium-plus p,
.opn-md-dashboard .opn-md-tool--premium-plus span,
.opn-md-dashboard .opn-md-tool--premium-plus a {
    color: #fff !important;
}
.opn-md-dashboard .opn-md-tool--premium-plus h3 {
    color: #fff !important;
    font-weight: 700;
}
.opn-md-dashboard .opn-md-tool--premium-plus p {
    color: rgba(255,255,255,.9) !important;
}
.opn-md-dashboard .opn-md-tool--premium-plus .opn-md-tool-icon {
    color: var(--opn-gold) !important;
}

/* Badges sur les outils */
.opn-md-badge {
    position: absolute;
    top: .7rem;
    right: .7rem;
    padding: .2rem .65rem;
    background: var(--opn-gold);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.opn-md-badge--premium {
    background: var(--opn-navy);
    color: var(--opn-gold);
}
.opn-md-badge--new {
    background: var(--opn-sky);
    color: #fff;
}

/* FOOTER */
.opn-md-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    color: var(--opn-muted);
    font-size: .9rem;
}
.opn-md-footer a { color: var(--opn-navy); }
.opn-md-footer-small {
    margin-top: .4rem;
    font-size: .8em;
    color: #adb5bd;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .opn-md-hero {
        flex-direction: column;
        text-align: center;
    }
    .opn-md-hero-cta { text-align: center; width: 100%; }
    .opn-md-hero-cta .opn-btn { margin: .3rem; }
    .opn-md-section { padding: 1.3rem 1.2rem; }
    .opn-md-tools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v0.14.0 — FEEDBACKS (bouton flottant + modal + page suivi)
============================================================ */

/* Bouton flottant en bas à droite */
.opn-fb-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}
.opn-fb-launcher-btn {
    background: var(--opn-navy);
    color: #fff;
    border: 2px solid var(--opn-gold);
    border-radius: 999px;
    padding: .7rem 1.2rem;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(7,31,58,.25);
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s ease;
}
.opn-fb-launcher-btn:hover {
    background: var(--opn-gold);
    color: var(--opn-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(201,169,110,.35);
}

/* Modal */
.opn-fb-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.opn-fb-modal[hidden] { display: none; }
.opn-fb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7,31,58,.65);
    backdrop-filter: blur(4px);
}
.opn-fb-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: opn-fb-modal-in .25s ease;
}
@keyframes opn-fb-modal-in {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.opn-fb-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e8eaed;
}
.opn-fb-modal-head h3 {
    margin: 0;
    color: var(--opn-navy);
    font-size: 1.2rem;
    font-weight: 700;
}
.opn-fb-modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--opn-muted);
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all .15s ease;
}
.opn-fb-modal-close:hover {
    background: #f6f8fa;
    color: var(--opn-navy);
}

/* Formulaire */
.opn-fb-form, .opn-fb-success {
    padding: 1.5rem;
}
.opn-fb-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .5rem;
    margin-bottom: 1.2rem;
}
.opn-fb-type { cursor: pointer; }
.opn-fb-type input { position: absolute; opacity: 0; }
.opn-fb-type-card {
    display: block;
    text-align: center;
    padding: .7rem .5rem;
    background: var(--opn-cream);
    border: 2px solid #e8eaed;
    border-radius: 8px;
    transition: all .15s ease;
    font-size: .9em;
}
.opn-fb-type input:checked + .opn-fb-type-card {
    border-color: var(--opn-gold);
    background: #fff;
    box-shadow: 0 4px 16px rgba(201,169,110,.2);
}
.opn-fb-type input:focus-visible + .opn-fb-type-card {
    outline: 2px solid var(--opn-sky);
    outline-offset: 2px;
}

.opn-fb-field {
    display: block;
    margin-bottom: 1rem;
}
.opn-fb-field strong {
    display: block;
    color: var(--opn-navy);
    margin-bottom: .3rem;
    font-size: .95em;
}
.opn-fb-field strong small {
    color: var(--opn-muted);
    font-weight: normal;
    font-size: .85em;
}
.opn-fb-field input,
.opn-fb-field textarea {
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
}

.opn-fb-context {
    background: #FAF8F3;
    border-radius: 8px;
    padding: .7rem 1rem;
    margin-bottom: 1.2rem;
    font-size: .85em;
}
.opn-fb-context summary {
    cursor: pointer;
    color: var(--opn-muted);
    font-weight: 500;
}
.opn-fb-context-content {
    margin-top: .5rem;
    color: var(--opn-muted);
    line-height: 1.5;
    word-break: break-all;
}
.opn-fb-context-content strong { color: var(--opn-navy); }

.opn-fb-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: 1.2rem;
    border-top: 1px solid #e8eaed;
    padding-top: 1.2rem;
}

/* Écran succès */
.opn-fb-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.opn-fb-success-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}
.opn-fb-success h4 {
    color: var(--opn-navy);
    margin: 0 0 .8rem;
    font-size: 1.3rem;
}
.opn-fb-success p {
    color: var(--opn-muted);
    line-height: 1.5;
    margin: .5rem 0;
}
.opn-fb-success a { color: var(--opn-gold); }
.opn-fb-success .opn-btn {
    margin-top: 1rem;
}

/* Page /mes-feedbacks/ */
.opn-fb-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: var(--opn-navy);
}
.opn-fb-page-header {
    text-align: center;
    margin-bottom: 2rem;
}
.opn-fb-page-header h1 {
    color: var(--opn-navy);
    margin: 0 0 .5rem;
    font-size: 1.8rem;
}
.opn-fb-page-header p {
    color: var(--opn-muted);
    margin: 0;
}
.opn-fb-empty {
    background: #fff;
    border-radius: 14px;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(7,31,58,.06);
}
.opn-fb-empty h3 {
    color: var(--opn-navy);
    margin: 1rem 0 .5rem;
}
.opn-fb-empty p {
    color: var(--opn-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

.opn-fb-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.opn-fb-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 6px 24px rgba(7,31,58,.06);
    border-left: 4px solid var(--opn-gold);
}
.opn-fb-item-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
    font-size: .85em;
}
.opn-fb-item-type, .opn-fb-item-status {
    color: #fff;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: .9em;
}
.opn-fb-item-date {
    color: var(--opn-muted);
    margin-left: auto;
}
.opn-fb-item-title {
    color: var(--opn-navy);
    margin: 0 0 .5rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.opn-fb-item-desc {
    color: var(--opn-navy);
    line-height: 1.6;
}
.opn-fb-item-desc p { margin: .3rem 0; }
.opn-fb-item-url {
    color: var(--opn-muted);
    margin: .8rem 0 0;
    word-break: break-all;
}
.opn-fb-item-url a { color: var(--opn-gold); }

.opn-fb-response {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-left: 4px solid #1a7f37;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}
.opn-fb-response header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .4rem;
}
.opn-fb-response header strong {
    color: var(--opn-navy);
    font-size: .95em;
}
.opn-fb-response header small {
    color: var(--opn-muted);
    font-size: .85em;
}
.opn-fb-response-body {
    color: var(--opn-navy);
    line-height: 1.6;
}
.opn-fb-response-body p { margin: .3rem 0; }

/* Responsive */
@media (max-width: 640px) {
    .opn-fb-launcher {
        bottom: 12px;
        right: 12px;
    }
    .opn-fb-launcher-btn {
        padding: .6rem .9rem;
        font-size: .85rem;
    }
    .opn-fb-launcher-label {
        display: none; /* En mobile : juste l'emoji */
    }
    .opn-fb-modal { padding: 0; }
    .opn-fb-modal-panel {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    .opn-fb-types { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   v0.15.6 — [opn_job_offers] listing user
============================================================ */
.opn-offers { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.opn-offers-header { text-align: center; margin-bottom: 2rem; }
.opn-offers-title {
    font-size: 2.2rem; color: #0A2540; margin: 0 0 .4rem;
    font-weight: 700;
}
.opn-offers-subtitle { color: #5B6473; font-size: 1rem; margin: 0; }

/* Stats user */
.opn-offers-user-stats {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0A2540 0%, #173b66 100%);
    color: #fff; padding: 1.2rem 1.5rem; border-radius: 12px;
}
.opn-offers-stat {
    flex: 1; min-width: 130px; text-align: center;
}
.opn-offers-stat strong {
    display: block; font-size: 1.8rem; color: #C9A96E; line-height: 1;
}
.opn-offers-stat small {
    color: rgba(255,255,255,.8); font-size: .85rem;
    display: block; margin-top: .3rem;
}

/* Filtres */
.opn-offers-filters {
    display: flex; gap: .8rem; flex-wrap: wrap; align-items: center;
    margin-bottom: 1.5rem; background: #FAF8F3; padding: .9rem 1.1rem;
    border-radius: 10px; border: 1px solid #e8eaed;
}
.opn-offers-search { flex: 1; min-width: 240px; }
.opn-offers-filter-company { min-width: 200px; }
.opn-offers-filter-favs {
    display: inline-flex; align-items: center; gap: .4rem;
    cursor: pointer; font-size: .95rem; color: #0A2540;
    user-select: none;
}
.opn-offers-filter-favs input { cursor: pointer; }

/* Empty state */
.opn-offers-empty {
    text-align: center; padding: 3rem 1.5rem; background: #FAF8F3;
    border-radius: 12px; border: 2px dashed #e8eaed;
}
.opn-offers-empty h3 { color: #0A2540; margin: 1rem 0 .5rem; }
.opn-offers-empty p { color: #5B6473; margin: 0 0 1.5rem; }

/* Liste cards */
.opn-offers-list { display: grid; gap: 1rem; }
.opn-offers-card {
    background: #fff; border-radius: 12px; padding: 1.2rem;
    border: 1px solid #e8eaed; transition: all .2s ease;
}
.opn-offers-card:hover {
    border-color: #C9A96E; box-shadow: 0 4px 16px rgba(10,37,64,.08);
    transform: translateY(-1px);
}
.opn-offers-card.is-fav {
    border-color: #C9A96E; border-width: 2px;
    background: linear-gradient(180deg, #fff 0%, #FAF8F3 100%);
}

.opn-offers-card-head {
    display: flex; gap: 1rem; align-items: flex-start;
    margin-bottom: .8rem;
}
.opn-offers-logo {
    width: 56px; height: 56px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0; background: #FAF8F3;
    border: 1px solid #e8eaed;
}
.opn-offers-logo--placeholder {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #C9A96E;
}
.opn-offers-card-title { flex: 1; }
.opn-offers-card-title strong {
    display: block; color: #5B6473; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .04em;
    font-weight: 600;
}
.opn-offers-card-title h3 {
    margin: .2rem 0 .3rem; color: #0A2540;
    font-size: 1.15rem; font-weight: 700; line-height: 1.3;
}
.opn-offers-card-title small {
    color: #5B6473; font-size: .9rem;
}
.opn-offers-fav-btn {
    background: transparent; border: none; cursor: pointer;
    font-size: 1.8rem; padding: .3rem; line-height: 1;
    transition: transform .2s; flex-shrink: 0;
}
.opn-offers-fav-btn:hover { transform: scale(1.2); }
.opn-offers-fav-btn:disabled { opacity: .5; cursor: wait; }

/* Meta */
.opn-offers-card-meta {
    display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem;
    align-items: center; font-size: .85rem;
}
.opn-offers-meta { color: #5B6473; }
.opn-offers-expires {
    padding: .2rem .6rem; border-radius: 999px;
    font-weight: 600; font-size: .82rem;
}
.opn-offers-expires--urgent {
    background: #fdebec; color: #cf222e;
}
.opn-offers-expires--soon {
    background: #fef0c7; color: #bf8700;
}
.opn-offers-expires--ok {
    background: #ddf4dd; color: #1a7f37;
}
.opn-offers-status-badge {
    color: #fff; padding: .2rem .7rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600;
}

/* Détails dépliables */
.opn-offers-details {
    margin-top: .5rem; border-top: 1px solid #e8eaed; padding-top: .8rem;
}
.opn-offers-details > summary {
    cursor: pointer; color: #0A2540; font-weight: 600;
    list-style: none; padding: .3rem 0;
}
.opn-offers-details > summary::-webkit-details-marker { display: none; }
.opn-offers-details > summary::before {
    content: '▸ '; color: #C9A96E; transition: transform .2s;
    display: inline-block;
}
.opn-offers-details[open] > summary::before {
    content: '▾ ';
}
.opn-offers-details-body {
    padding: 1rem 0 .3rem;
}
.opn-offers-description {
    background: #FAF8F3; padding: .9rem 1.1rem; border-radius: 8px;
    color: #2c3e50; line-height: 1.6; margin-bottom: 1rem;
    border-left: 3px solid #C9A96E;
}
.opn-offers-link {
    margin: 0 0 1rem;
}
.opn-offers-link a {
    display: inline-block; background: #0A2540; color: #fff !important;
    padding: .6rem 1.2rem; border-radius: 6px; text-decoration: none;
    font-weight: 600; transition: background .2s;
}
.opn-offers-link a:hover { background: #173b66; }

/* Bloc suivi de candidature */
.opn-offers-tracking {
    background: #fff; border: 1px dashed #C9A96E; padding: 1rem;
    border-radius: 8px;
}
.opn-offers-tracking strong {
    display: block; color: #0A2540; margin-bottom: .6rem;
}
.opn-offers-status-select { width: 100%; margin-bottom: .6rem; }
.opn-offers-notes {
    width: 100%; min-height: 60px; resize: vertical;
    font-family: inherit; font-size: .9rem;
}
.opn-offers-tracking-status {
    display: inline-block; font-size: .82rem; color: #1a7f37;
    margin-top: .3rem; font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .opn-offers-card-head { flex-wrap: wrap; }
    .opn-offers-logo { width: 44px; height: 44px; }
    .opn-offers-card-title h3 { font-size: 1rem; }
    .opn-offers-filters { flex-direction: column; align-items: stretch; }
    .opn-offers-search,
    .opn-offers-filter-company { width: 100%; min-width: 0; }
    .opn-offers-user-stats { padding: 1rem; }
    .opn-offers-stat strong { font-size: 1.4rem; }
}

/* ============================================================
   v0.15.7 — Espace membres : bannière d'alertes + cards améliorées
============================================================ */
.opn-md-alerts {
    display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 2rem;
}
.opn-md-alert {
    flex: 1; min-width: 280px;
    display: flex; gap: .9rem; align-items: center;
    padding: 1rem 1.3rem; border-radius: 12px;
    text-decoration: none; transition: all .2s ease;
    border: 2px solid transparent;
}
.opn-md-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10,37,64,.12);
}
.opn-md-alert--new {
    background: linear-gradient(135deg, #FAF8F3 0%, #fff4e0 100%);
    border-color: #C9A96E;
    color: #0A2540;
}
.opn-md-alert--reply {
    background: linear-gradient(135deg, #e6f4ff 0%, #d4ebff 100%);
    border-color: #5DA9E9;
    color: #0A2540;
}
.opn-md-alert-icon {
    font-size: 2rem; line-height: 1; flex-shrink: 0;
}
.opn-md-alert-text strong {
    display: block; font-size: 1.05rem; color: #0A2540;
    margin-bottom: .15rem;
}
.opn-md-alert-text small {
    display: block; color: #5B6473; font-size: .87rem;
}

/* Tool card avec activité (badge pulsant à droite) */
.opn-md-tool--has-activity {
    border-left: 4px solid #C9A96E !important;
    background: linear-gradient(135deg, #fff 0%, #FAF8F3 100%) !important;
}

/* Tool en mode "info" (pas un lien, juste de l'info) */
.opn-md-tool--info {
    background: #FAF8F3 !important;
    border: 1px dashed #C9A96E !important;
    cursor: default;
}
.opn-md-tool--info:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Badges */
.opn-md-badge--pending {
    background: #fef0c7;
    color: #92400e;
}

/* Responsive bannière */
@media (max-width: 640px) {
    .opn-md-alert { min-width: 100%; padding: .8rem 1rem; }
    .opn-md-alert-icon { font-size: 1.6rem; }
}

/* ============================================================
   v0.15.8 — [opn_companies_listing] : design pro charter aviation
============================================================ */
.opn-comp { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }

/* Header hero */
.opn-comp-header {
    text-align: center; margin-bottom: 2rem;
    padding: 2.2rem 1.5rem;
    background: linear-gradient(135deg, #0A2540 0%, #173b66 100%);
    color: #fff; border-radius: 14px;
    position: relative; overflow: hidden;
}
.opn-comp-header::before {
    content: '✈'; position: absolute;
    top: -20px; right: -10px;
    font-size: 8rem; color: rgba(201,169,110,.12);
    transform: rotate(-15deg);
    pointer-events: none;
}
.opn-comp-title {
    font-size: 2.2rem; margin: 0 0 .5rem;
    color: #fff; font-weight: 700; letter-spacing: -.01em;
}
.opn-comp-subtitle {
    color: rgba(255,255,255,.85); font-size: 1rem;
    margin: 0; max-width: 750px; margin-inline: auto;
    line-height: 1.55;
}
.opn-comp-subtitle strong { color: #C9A96E; font-weight: 700; }

/* Barre de filtres */
.opn-comp-filters {
    display: flex; gap: .7rem; flex-wrap: wrap;
    align-items: center;
    background: #fff; border: 1px solid #e8eaed;
    border-radius: 12px; padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(10,37,64,.04);
}
.opn-comp-filters .opn-input {
    background: #FAF8F3;
    border-color: #e8eaed;
}
.opn-comp-search { flex: 1; min-width: 220px; }
.opn-comp-filter-country,
.opn-comp-filter-cca,
.opn-comp-filter-eng { min-width: 170px; }
.opn-comp-filter-active {
    display: inline-flex; align-items: center; gap: .4rem;
    cursor: pointer; user-select: none;
    font-size: .9rem; color: #0A2540;
    padding: .4rem .7rem;
    background: #FAF8F3; border-radius: 6px;
    border: 1px solid #e8eaed;
    transition: border-color .15s;
}
.opn-comp-filter-active:has(input:checked) {
    border-color: #C9A96E;
    background: #fff4e0;
}

/* Meta */
.opn-comp-meta {
    text-align: right;
    margin-bottom: 1.2rem;
    font-size: .9rem; color: #5B6473;
}
.opn-comp-visible-count {
    color: #0A2540; font-weight: 700;
}

/* Liste */
.opn-comp-list {
    display: grid; gap: 1rem;
}

/* Card compagnie */
.opn-comp-card {
    background: #fff; border-radius: 12px;
    border: 1px solid #e8eaed;
    overflow: hidden;
    transition: all .2s ease;
}
.opn-comp-card:hover {
    border-color: #C9A96E;
    box-shadow: 0 6px 22px rgba(10,37,64,.09);
    transform: translateY(-1px);
}
.opn-comp-card.is-followed {
    border-left: 4px solid #C9A96E;
    background: linear-gradient(180deg, #fff 0%, #FAF8F3 100%);
}
.opn-comp-card.is-inactive {
    opacity: .65;
}

/* Card header */
.opn-comp-card-head {
    display: flex; gap: 1rem; align-items: center;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid #f0f0f0;
}
.opn-comp-logo {
    width: 64px; height: 64px; object-fit: contain;
    background: #fff; border: 1px solid #e8eaed;
    border-radius: 10px; padding: .3rem;
    flex-shrink: 0;
}
.opn-comp-logo--placeholder {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #C9A96E; padding: 0;
}
.opn-comp-card-title { flex: 1; min-width: 0; }
.opn-comp-card-title h3 {
    margin: 0 0 .3rem; color: #0A2540;
    font-size: 1.2rem; font-weight: 700;
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.opn-comp-iata {
    display: inline-block;
    background: #0A2540; color: #fff;
    padding: .15rem .55rem;
    border-radius: 4px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .1em;
    font-family: 'SF Mono', Consolas, monospace;
}
.opn-comp-card-sub {
    margin: 0; color: #5B6473; font-size: .92rem;
}

/* Card actions (badges + offers btn) */
.opn-comp-card-actions {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: .5rem; flex-shrink: 0;
}
.opn-comp-offers-btn {
    display: inline-block;
    background: #C9A96E; color: #fff !important;
    padding: .4rem .8rem; border-radius: 6px;
    font-size: .85rem; font-weight: 600;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.opn-comp-offers-btn:hover {
    background: #b89559; transform: translateY(-1px);
}
.opn-comp-badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    white-space: nowrap;
}
.opn-comp-badge--active { background: #ddf4dd; color: #1a7f37; }
.opn-comp-badge--inactive { background: #f0f0f0; color: #5B6473; }

/* Quick tags (toujours visibles) */
.opn-comp-quick {
    display: flex; flex-wrap: wrap; gap: .4rem;
    padding: .8rem 1.3rem;
    background: #FAF8F3;
    border-bottom: 1px solid #f0f0f0;
}
.opn-comp-quick-tag {
    display: inline-flex; align-items: center;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .82rem; font-weight: 500;
    background: #fff; color: #0A2540;
    border: 1px solid #e8eaed;
}
.opn-comp-quick-tag--required {
    background: #fdebec; color: #cf222e; border-color: #f7c3c8;
}
.opn-comp-quick-tag--ok {
    background: #ddf4dd; color: #1a7f37; border-color: #b6e3b6;
}
.opn-comp-quick-tag--info {
    background: #e6f0ff; color: #0969da; border-color: #bccff0;
}
.opn-comp-quick-tag--star {
    background: linear-gradient(135deg, #fff4e0 0%, #ffe6c2 100%);
    color: #92400e; border-color: #C9A96E;
    font-weight: 600;
}

/* Details (déplié) */
.opn-comp-details {
    border-top: 1px solid transparent;
}
.opn-comp-details > summary {
    cursor: pointer; user-select: none;
    padding: .9rem 1.3rem;
    color: #0A2540; font-weight: 600; font-size: .95rem;
    list-style: none;
    transition: background .15s;
}
.opn-comp-details > summary::-webkit-details-marker { display: none; }
.opn-comp-details > summary::before {
    content: '▸ ';
    color: #C9A96E;
    margin-right: .3rem;
    display: inline-block;
    transition: transform .2s;
}
.opn-comp-details[open] > summary {
    background: #FAF8F3;
    border-bottom: 1px solid #f0f0f0;
}
.opn-comp-details[open] > summary::before {
    content: '▾ ';
}
.opn-comp-details > summary:hover {
    background: #FAF8F3;
}

.opn-comp-details-body {
    padding: 1.3rem;
    display: grid; gap: 1.2rem;
}

/* Sections dans le détail */
.opn-comp-section h4 {
    margin: 0 0 .55rem;
    color: #0A2540;
    font-size: 1rem; font-weight: 700;
    padding-bottom: .35rem;
    border-bottom: 2px solid #C9A96E;
    display: inline-block;
}
.opn-comp-criteria {
    margin: 0; padding: 0; list-style: none;
}
.opn-comp-criteria li {
    padding: .35rem 0 .35rem 1.2rem;
    position: relative;
    color: #2c3e50;
    line-height: 1.5;
    font-size: .93rem;
    border-bottom: 1px dashed #f0f0f0;
}
.opn-comp-criteria li:last-child { border-bottom: none; }
.opn-comp-criteria li::before {
    content: '•'; color: #C9A96E;
    position: absolute; left: 0; top: .35rem;
    font-weight: 700;
}
.opn-comp-criteria li strong { color: #0A2540; }
.opn-comp-section p {
    margin: 0; color: #2c3e50; line-height: 1.55; font-size: .93rem;
}

/* Sections spécifiques */
.opn-comp-section--particularities {
    background: #fef0c7;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 3px solid #d4a72c;
}
.opn-comp-section--particularities h4 {
    color: #92400e;
    border-bottom-color: #d4a72c;
}
.opn-comp-section--tips {
    background: linear-gradient(135deg, #f6f8fa 0%, #FAF8F3 100%);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 3px solid #C9A96E;
}

/* Liens */
.opn-comp-links {
    display: flex; flex-wrap: wrap; gap: .6rem;
}
.opn-comp-links a {
    display: inline-flex; align-items: center;
    background: #fff;
    border: 1px solid #C9A96E;
    color: #0A2540 !important;
    padding: .45rem .9rem;
    border-radius: 6px;
    font-size: .88rem; font-weight: 500;
    text-decoration: none;
    transition: all .15s;
}
.opn-comp-links a:hover {
    background: #C9A96E;
    color: #fff !important;
    transform: translateY(-1px);
}

/* CTAs en bas */
.opn-comp-cta {
    display: flex; flex-wrap: wrap; gap: .6rem;
    padding-top: .5rem;
    border-top: 1px solid #f0f0f0;
    margin-top: .3rem;
}

/* Empty state */
.opn-comp-empty {
    text-align: center; padding: 3rem 1.5rem;
    background: #FAF8F3;
    border-radius: 12px;
    border: 2px dashed #e8eaed;
}
.opn-comp-empty h3 { color: #0A2540; margin: 1rem 0 .5rem; }
.opn-comp-empty p { color: #5B6473; margin: 0; }

/* Responsive */
@media (max-width: 720px) {
    .opn-comp-header { padding: 1.5rem 1rem; }
    .opn-comp-title { font-size: 1.55rem; }
    .opn-comp-subtitle { font-size: .92rem; }
    .opn-comp-filters {
        flex-direction: column; align-items: stretch;
    }
    .opn-comp-search,
    .opn-comp-filter-country,
    .opn-comp-filter-cca,
    .opn-comp-filter-eng { width: 100%; min-width: 0; }
    .opn-comp-card-head {
        flex-wrap: wrap;
    }
    .opn-comp-logo { width: 52px; height: 52px; }
    .opn-comp-card-title h3 { font-size: 1.05rem; }
    .opn-comp-card-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }
    .opn-comp-details-body { padding: 1rem; }
}

/* ============================================================
   v0.15.13 — Indicateur de réflexion : 3 points animés
============================================================ */
.opn-chat-typing {
    display: inline-flex !important;
    align-items: center;
    padding: .7rem 1rem !important;
    background: #f0f2f5 !important;
    color: #5B6473 !important;
    max-width: fit-content !important;
}
.opn-chat-typing-dots {
    display: inline-flex; align-items: center; gap: 4px;
    height: 1em;
}
.opn-chat-typing-dots span {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #C9A96E;
    animation: opn-typing-bounce 1.3s infinite ease-in-out both;
}
.opn-chat-typing-dots span:nth-child(1) { animation-delay: 0s; }
.opn-chat-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.opn-chat-typing-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes opn-typing-bounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(0.85);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-4px) scale(1.1);
        opacity: 1;
    }
}

/* ============================================================
   v0.15.15 — Section préférences alertes email (Premium / Premium+)
============================================================ */
.opn-alert-prefs-section { /* hérite de opn-md-section, juste un namespace */ }

.opn-alert-prefs-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 2px 6px rgba(10,37,64,.05);
}
.opn-alert-prefs-row {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 1.1rem;
}

/* Toggle iOS-style */
.opn-alert-toggle {
    display: flex; align-items: flex-start; gap: 1rem;
    cursor: pointer; user-select: none;
}
.opn-alert-toggle input { display: none; }
.opn-alert-toggle-slider {
    position: relative;
    width: 46px; height: 26px;
    background: #d0d4db;
    border-radius: 26px;
    transition: background .25s ease;
    flex-shrink: 0;
    margin-top: 2px;
}
.opn-alert-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.opn-alert-toggle input:checked + .opn-alert-toggle-slider {
    background: #1a7f37;
}
.opn-alert-toggle input:checked + .opn-alert-toggle-slider::after {
    transform: translateX(20px);
}
.opn-alert-toggle-label {
    display: flex; flex-direction: column; gap: .2rem; flex: 1;
}
.opn-alert-toggle-label strong { color: #0A2540; font-size: 1rem; }
.opn-alert-toggle-label small { color: #5B6473; font-size: .85rem; line-height: 1.4; }

/* Radio scope */
.opn-alert-scope-row { transition: opacity .25s ease; }
.opn-alert-scope-title {
    font-weight: 600; color: #0A2540;
    margin: 0 0 .8rem; font-size: .95rem;
}
.opn-alert-radio {
    display: flex; align-items: flex-start; gap: .9rem;
    padding: .7rem .9rem;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    margin-bottom: .6rem;
    cursor: pointer;
    transition: all .15s ease;
}
.opn-alert-radio:hover { background: #FAF8F3; border-color: #C9A96E; }
.opn-alert-radio input[type="radio"] { margin-top: 4px; flex-shrink: 0; accent-color: #C9A96E; }
.opn-alert-radio input[type="radio"]:checked + span strong { color: #C9A96E; }
.opn-alert-radio span {
    display: flex; flex-direction: column; gap: .15rem; flex: 1;
}
.opn-alert-radio strong { color: #0A2540; font-size: .95rem; }
.opn-alert-radio small { color: #5B6473; font-size: .82rem; line-height: 1.4; }

.opn-alert-prefs-status {
    margin-top: 1rem;
    min-height: 1.5rem;
    font-size: .88rem;
    color: #1a7f37;
    font-weight: 500;
}
.opn-alert-prefs-status.error { color: #cf222e; }

/* ============================================================
   v0.15.17 — Espace Coach (page front-end)
============================================================ */
.opn-coach-page { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.opn-coach-header { background: linear-gradient(135deg, #0A2540, #1a3a5c); color: #fff; padding: 2rem; border-radius: 12px; margin-bottom: 1.5rem; }
.opn-coach-header h1 { color: #fff !important; margin: 0 0 .4rem; font-size: 1.6rem; }
.opn-coach-header .opn-coach-sub { color: #d8e0e9; margin: 0; font-size: .95rem; }
.opn-coach-header strong { color: #fff; }

.opn-coach-tabs { display: flex; gap: .4rem; border-bottom: 2px solid #e8eaed; margin-bottom: 1rem; flex-wrap: wrap; }
.opn-coach-tab { background: none; border: none; padding: .8rem 1.2rem; font-size: 1rem; cursor: pointer; color: #5B6473; border-radius: 8px 8px 0 0; position: relative; font-weight: 500; transition: all .15s ease; }
.opn-coach-tab:hover { background: #FAF8F3; color: #0A2540; }
.opn-coach-tab.is-active { background: #FAF8F3; color: #0A2540; border-bottom: 3px solid #C9A96E; margin-bottom: -2px; }
.opn-coach-badge { display: inline-block; background: #cf222e; color: #fff; font-size: .72rem; padding: .12rem .5rem; border-radius: 999px; margin-left: .4rem; font-weight: 700; }

.opn-coach-filter-bar { display: flex; gap: .5rem; padding: .8rem 0; flex-wrap: wrap; }
.opn-coach-filter { background: #fff; border: 1px solid #e8eaed; padding: .5rem 1rem; border-radius: 6px; font-size: .88rem; cursor: pointer; color: #5B6473; transition: all .15s ease; }
.opn-coach-filter:hover { border-color: #C9A96E; }
.opn-coach-filter.is-active { background: #C9A96E; color: #0A2540; border-color: #C9A96E; font-weight: 600; }

.opn-coach-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.opn-coach-table thead { background: #FAF8F3; }
.opn-coach-table th { text-align: left; padding: .8rem 1rem; color: #0A2540; font-size: .85rem; border-bottom: 2px solid #e8eaed; }
.opn-coach-table td { padding: .8rem 1rem; border-bottom: 1px solid #f0f2f5; font-size: .9rem; vertical-align: top; }
.opn-coach-table tr:hover { background: #fafbfc; }

.opn-coach-status-badge { display: inline-block; padding: .15rem .55rem; border-radius: 4px; font-size: .78rem; font-weight: 600; }
.opn-coach-status-badge.is-pending { background: #fff8e1; color: #bf8700; }
.opn-coach-status-badge.is-claimed { background: #ddf4ff; color: #0969da; }
.opn-coach-status-badge.is-done    { background: #dafbe1; color: #1a7f37; }

.opn-coach-empty { text-align: center; padding: 3rem 1rem; color: #5B6473; font-size: 1.05rem; background: #fff; border-radius: 8px; border: 1px dashed #e8eaed; }
.opn-coach-loading { text-align: center; padding: 2rem; color: #5B6473; }
.opn-coach-error { padding: 1rem; background: #fdebec; color: #cf222e; border-radius: 6px; }

/* Modale audit */
.opn-coach-modal-overlay { position: fixed; inset: 0; background: rgba(10,37,64,.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.opn-coach-modal { background: #fff; max-width: 920px; width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.opn-coach-modal-header { padding: 1rem 1.4rem; border-bottom: 1px solid #e8eaed; display: flex; align-items: center; justify-content: space-between; background: #FAF8F3; }
.opn-coach-modal-header h2 { margin: 0; color: #0A2540; font-size: 1.1rem; }
.opn-coach-modal-close { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: #5B6473; padding: .2rem .6rem; line-height: 1; }
.opn-coach-modal-body { padding: 1.4rem; overflow: auto; flex: 1; }
.opn-coach-modal-meta { background: #FAF8F3; padding: 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
.opn-coach-modal-meta p { margin: .3rem 0; }
.opn-coach-collapsible { margin-bottom: 1rem; border: 1px solid #e8eaed; border-radius: 6px; padding: .6rem 1rem; }
.opn-coach-collapsible summary { cursor: pointer; font-weight: 600; color: #0A2540; }
.opn-coach-collapsible[open] { padding-bottom: 1rem; }
.opn-coach-letter-text { margin-top: .8rem; padding: .8rem; background: #FAF8F3; border-radius: 4px; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; }
.opn-coach-report { margin-top: .8rem; padding: .8rem; background: #FAF8F3; border-radius: 4px; font-size: .88rem; line-height: 1.6; }
.opn-coach-response-section { margin-top: 1.2rem; }
.opn-coach-response-section h3 { color: #C9A96E; margin: 0 0 .8rem; font-size: 1.05rem; }
.opn-coach-response-readonly { background: #dafbe1; border-left: 4px solid #1a7f37; padding: 1rem 1.2rem; border-radius: 4px; font-size: .95rem; line-height: 1.6; }
.opn-coach-modal-footer { padding: 1rem 1.4rem; border-top: 1px solid #e8eaed; display: flex; gap: .6rem; justify-content: space-between; align-items: center; background: #fafbfc; }
.opn-coach-send-btn { background: #1a7f37; color: #fff; border: 0; padding: .7rem 1.4rem; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: .95rem; }
.opn-coach-send-btn:hover { background: #15692e; }
.opn-coach-send-btn:disabled { opacity: .6; cursor: wait; }
.opn-coach-modal-close-btn { background: #fff; border: 1px solid #e8eaed; padding: .7rem 1.2rem; border-radius: 6px; cursor: pointer; }

/* Onglet Offres */
.opn-coach-offers-help { background: #ddf4ff; border-left: 4px solid #0969da; padding: .8rem 1.2rem; border-radius: 6px; margin: 1rem 0 1.5rem; font-size: .92rem; color: #0a4380; }
.opn-coach-offer-card { background: #fff; border: 1px solid #e8eaed; border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.opn-coach-offer-head h3 { margin: 0 0 .3rem; color: #0A2540; font-size: 1.1rem; }
.opn-coach-offer-meta { color: #5B6473; font-size: .88rem; }
.opn-coach-offer-desc { margin: 1rem 0; font-size: .92rem; line-height: 1.6; color: #2c3e50; max-height: 220px; overflow-y: auto; padding: .6rem; background: #FAF8F3; border-radius: 4px; }
.opn-coach-offer-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================================
   v0.15.17 — Bandeau staff fixe en bas (Coach + Admin)
============================================================ */
.opn-staff-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990; background: linear-gradient(90deg, #0A2540, #1a3a5c); color: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.18); border-top: 2px solid #C9A96E; }
.opn-staff-bar-inner { max-width: 1400px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.opn-staff-bar-label { display: flex; align-items: center; gap: .5rem; padding-right: 1rem; border-right: 1px solid rgba(255,255,255,.15); }
.opn-staff-bar-icon { font-size: 1.2rem; }
.opn-staff-bar-role { font-size: .86rem; color: #C9A96E; font-weight: 600; }
.opn-staff-bar-nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; flex: 1; }
.opn-staff-bar-link { color: #fff !important; text-decoration: none !important; padding: .4rem .9rem; border-radius: 6px; font-size: .88rem; font-weight: 600; transition: background .15s ease; border: 1px solid rgba(201,169,110,.4); position: relative; }
.opn-staff-bar-link:hover { background: rgba(201,169,110,.18); color: #C9A96E !important; }
.opn-staff-bar-link--admin { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.opn-staff-bar-sublink { color: #d8e0e9 !important; text-decoration: none !important; padding: .35rem .7rem; border-radius: 4px; font-size: .82rem; transition: color .15s ease; }
.opn-staff-bar-sublink:hover { color: #C9A96E !important; }
.opn-staff-bar-badge { display: inline-block; background: #cf222e; color: #fff; font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; margin-left: .35rem; font-weight: 700; }
.opn-staff-bar-close { background: none; border: 0; color: rgba(255,255,255,.5); font-size: 1.1rem; cursor: pointer; padding: .3rem .6rem; transition: color .15s ease; }
.opn-staff-bar-close:hover { color: #fff; }

@media (max-width: 720px) {
    .opn-staff-bar-inner { padding: .5rem .6rem; }
    .opn-staff-bar-label { padding-right: .5rem; }
    .opn-staff-bar-role { font-size: .78rem; }
    .opn-staff-bar-sublink { display: none; } /* trop encombré sur mobile, on garde juste les liens principaux */
    .opn-coach-modal { max-height: 95vh; }
}

/* ============================================================
   v0.15.20 — Item "Espace Coach" dans le menu principal (staff only)
============================================================ */
.opn-staff-menu-item > a {
    background: linear-gradient(135deg, #0A2540, #1a3a5c) !important;
    color: #C9A96E !important;
    border-radius: 6px !important;
    padding: .4rem .9rem !important;
    margin: 0 .3rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem;
}
.opn-staff-menu-item > a:hover {
    background: linear-gradient(135deg, #1a3a5c, #2a5285) !important;
    color: #fff !important;
}
.opn-staff-menu-badge {
    display: inline-block;
    background: #cf222e;
    color: #fff !important;
    font-size: .68rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    margin-left: .25rem;
    font-weight: 700;
    line-height: 1.4;
}

/* ============================================================
   v0.15.21 — Espace Coach responsive iPhone
   - Table → cards verticales sur mobile (<768px)
   - Boutons taille tactile + au-dessus du bandeau staff
   - Bandeau staff plus compact sur mobile
============================================================ */

/* Boutons coach : taille tactile garantie + au-dessus du bandeau */
.opn-coach-table button,
.opn-coach-offer-actions button,
.opn-coach-offer-actions a.button {
    position: relative;
    z-index: 1;
    touch-action: manipulation;  /* élimine le délai de 300ms iOS Safari */
    min-height: 40px;
    cursor: pointer;
}

/* Wrapper scrollable pour le cas table sur tablette */
.opn-coach-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile : table → cards */
@media (max-width: 767px) {
    .opn-coach-page { padding: .8rem; }
    .opn-coach-header { padding: 1.2rem; }
    .opn-coach-header h1 { font-size: 1.25rem; }
    .opn-coach-tabs { gap: .2rem; }
    .opn-coach-tab { padding: .6rem .7rem; font-size: .9rem; }
    .opn-coach-filter-bar { gap: .3rem; }
    .opn-coach-filter { font-size: .8rem; padding: .4rem .7rem; }

    /* Transformation table → cards */
    .opn-coach-table { display: block; box-shadow: none; background: transparent; }
    .opn-coach-table thead { display: none; } /* on cache les en-têtes */
    .opn-coach-table tbody { display: block; }
    .opn-coach-table tr {
        display: block;
        background: #fff;
        border-radius: 10px;
        padding: 1rem;
        margin-bottom: .8rem;
        box-shadow: 0 1px 3px rgba(0,0,0,.06);
        border: 1px solid #e8eaed;
    }
    .opn-coach-table td {
        display: block;
        padding: .25rem 0;
        border-bottom: none;
        font-size: .9rem;
    }
    /* Préfixer chaque td avec le nom de la colonne */
    .opn-coach-table td:nth-of-type(1)::before { content: ''; }
    .opn-coach-table td:nth-of-type(1) { font-size: 1.05rem; font-weight: 700; color: #C9A96E; padding-bottom: .4rem; }
    .opn-coach-table td:nth-of-type(2)::before { content: '👤 '; }
    .opn-coach-table td:nth-of-type(3)::before { content: '🎯 '; }
    .opn-coach-table td:nth-of-type(4)::before { content: '🤖 Score IA : '; font-weight: 600; }
    .opn-coach-table td:nth-of-type(5)::before { content: ''; }
    .opn-coach-table td:nth-of-type(6)::before { content: '📅 '; }
    .opn-coach-table td:nth-of-type(7) {
        padding-top: .8rem;
        margin-top: .5rem;
        border-top: 1px solid #f0f2f5;
    }
    .opn-coach-table td:nth-of-type(7) button {
        width: 100%;
        padding: .8rem 1rem !important;
        font-size: .95rem;
        font-weight: 600;
    }

    /* Modale plein écran sur mobile */
    .opn-coach-modal-overlay { padding: 0; }
    .opn-coach-modal { max-height: 100vh; height: 100vh; border-radius: 0; width: 100%; max-width: 100%; }
    .opn-coach-modal-header h2 { font-size: 1rem; }
    .opn-coach-modal-body { padding: 1rem; }
    .opn-coach-modal-footer {
        flex-direction: column-reverse;
        gap: .5rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom)); /* iPhone home bar */
    }
    .opn-coach-modal-footer button { width: 100%; }

    /* Cards offres : actions empilées */
    .opn-coach-offer-actions { flex-direction: column; }
    .opn-coach-offer-actions .button,
    .opn-coach-offer-actions button { width: 100%; text-align: center; padding: .8rem !important; }
}

/* Bandeau staff sur mobile : plus compact + ne masque pas les actions */
@media (max-width: 720px) {
    .opn-staff-bar-inner { padding: .35rem .5rem; gap: .4rem; }
    .opn-staff-bar-label { padding-right: .3rem; }
    .opn-staff-bar-icon { font-size: 1rem; }
    .opn-staff-bar-role { display: none; } /* économie d'espace */
    .opn-staff-bar-link { font-size: .78rem; padding: .3rem .6rem; }
    body.opn-has-staff-bar { padding-bottom: 50px !important; } /* moins haut */
}

/* v0.15.24 — Lien fichier dans la modale coach */
.opn-coach-file-link {
    color: #C9A96E !important;
    text-decoration: underline !important;
    font-weight: 600;
}
.opn-coach-file-link:hover {
    color: #0A2540 !important;
}

/* v0.15.25 — Bandeau d'info de prise en charge dans la modale */
.opn-coach-claim-banner {
    padding: .8rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .92rem;
    line-height: 1.5;
}
.opn-coach-claim-banner.is-mine    { background: #dafbe1; border-left: 4px solid #1a7f37; color: #0a4220; }
.opn-coach-claim-banner.is-other   { background: #fff8e1; border-left: 4px solid #bf8700; color: #6e4f00; }
.opn-coach-claim-banner.is-done    { background: #ddf4ff; border-left: 4px solid #0969da; color: #0a4380; }

/* Bouton Save Draft */
.opn-coach-save-draft-btn {
    background: #0969da !important;
    color: #fff !important;
    border: 0 !important;
    padding: .7rem 1.2rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
}
.opn-coach-save-draft-btn:hover { background: #0552b8 !important; }

/* Bouton Release */
.opn-coach-release-btn {
    background: #fff !important;
    color: #bf8700 !important;
    border: 1px solid #bf8700 !important;
    padding: .7rem 1rem !important;
    border-radius: 6px !important;
    cursor: pointer;
}
.opn-coach-release-btn:hover { background: #fff8e1 !important; }
