/* LCN Espace client — style autonome, hérite de la police du thème */
.lcn-ec {
    --lcn-green: #3daa38;
    --lcn-green-dark: #2f8a2b;
    --lcn-green-soft: #edf7ec;
    --lcn-ink: #1d1d1b;
    --lcn-muted: #6b6b68;
    --lcn-line: #e4e6e3;
    --lcn-bg: #f6f7f5;
    --lcn-radius: 14px;
    --lcn-shadow: 0 1px 2px rgba(29, 29, 27, .05), 0 6px 24px rgba(29, 29, 27, .06);
    color: var(--lcn-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    max-width: 1180px;
    margin: 0 auto 3rem;
    box-sizing: border-box;
}
.lcn-ec *, .lcn-ec *::before, .lcn-ec *::after { box-sizing: border-box; }
.lcn-ec h2, .lcn-ec h3 { font-family: inherit; color: var(--lcn-ink); letter-spacing: -.01em; margin: 0 0 .35em; line-height: 1.25; }
.lcn-ec h2 { font-size: 1.6rem; font-weight: 700; }
.lcn-ec h3 { font-size: 1.15rem; font-weight: 700; }
.lcn-ec p { margin: 0 0 1rem; }
.lcn-ec a { color: var(--lcn-green-dark); text-decoration: none; }
.lcn-ec a:hover { text-decoration: underline; }
.lcn-muted { color: var(--lcn-muted); }
.lcn-small, .lcn-ec small { font-size: .875rem; }

/* Icônes */
.lcn-ico { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.lcn-ico--sm { width: 18px; height: 18px; }
.lcn-ico--xs { width: 15px; height: 15px; }
.lcn-ico--round { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--lcn-green-soft); color: var(--lcn-green); margin-bottom: 1rem; }

/* En-tête */
.lcn-ec .lcn-hero { text-align: center; margin: 0 auto 2rem !important; max-width: 640px; }
.lcn-hero h2 { font-size: 2rem; }
.lcn-hero p { color: var(--lcn-muted); font-size: 1.05rem; }

/* Cartes */
.lcn-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.lcn-card { background: #fff; border: 1px solid var(--lcn-line); border-radius: var(--lcn-radius); box-shadow: var(--lcn-shadow); padding: 1.75rem; margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.lcn-grid3 .lcn-card { margin-bottom: 0; }
.lcn-grid3 .lcn-card:nth-child(2) { border-top: 4px solid var(--lcn-green); }
.lcn-card > .lcn-muted { font-size: .95rem; }
.lcn-card--wide { max-width: 760px; margin-left: auto; margin-right: auto; }
.lcn-card--danger { border-color: #f1d6d6; }
.lcn-card .lcn-btn--outline:last-child { margin-top: auto; align-self: flex-start; }

/* Formulaires */
.lcn-form { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.lcn-form--narrow { max-width: 420px; }
.lcn-field { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.lcn-field label { font-weight: 600; font-size: .9rem; color: var(--lcn-ink); margin: 0; }
.lcn-ec .lcn-input {
    width: 100%; max-width: 100%; font: inherit; font-size: 1rem; color: var(--lcn-ink);
    background: #fff; border: 1.5px solid #d3d6d1; border-radius: 10px; padding: .7rem .85rem; margin: 0;
    box-shadow: none; transition: border-color .15s, box-shadow .15s; min-height: 46px; line-height: 1.3;
}
.lcn-ec textarea.lcn-input { min-height: 72px; resize: vertical; }
.lcn-ec .lcn-input:focus { outline: none; border-color: var(--lcn-green); box-shadow: 0 0 0 3px rgba(61, 170, 56, .18); }
.lcn-ec .lcn-code, .lcn-ec input.lcn-input[name="lcn_code"] { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.lcn-help { color: var(--lcn-muted); font-size: .82rem; }
.lcn-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lcn-row2--zip { grid-template-columns: 140px 1fr; }
.lcn-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--lcn-muted); cursor: pointer; margin: 0; }
.lcn-check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--lcn-green); flex: none; }
.lcn-ec-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Boutons */
.lcn-ec .lcn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-transform: none; letter-spacing: 0;
    padding: .8rem 1.4rem; min-height: 48px; border-radius: 10px; border: 2px solid var(--lcn-green);
    background: var(--lcn-green) !important; color: #fff !important; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
    width: auto; box-shadow: none;
}
.lcn-form > .lcn-btn { align-self: stretch; }
.lcn-form--narrow > .lcn-btn { align-self: flex-start; }
.lcn-ec .lcn-btn:hover, .lcn-ec .lcn-btn:focus-visible { background: var(--lcn-green-dark) !important; border-color: var(--lcn-green-dark) !important; color: #fff !important; text-decoration: none; outline: none; }
.lcn-ec .lcn-btn--outline { background: #fff !important; color: var(--lcn-green-dark) !important; }
.lcn-ec .lcn-btn--outline:hover, .lcn-ec .lcn-btn--outline:focus-visible { background: var(--lcn-green-soft) !important; color: var(--lcn-green-dark) !important; border-color: var(--lcn-green) !important; }
.lcn-ec .lcn-btn--danger { background: #fff !important; color: #b42318 !important; border-color: #e7b4b0 !important; }
.lcn-ec .lcn-btn--danger:hover, .lcn-ec .lcn-btn--danger:focus-visible { background: #fdf0ef !important; color: #b42318 !important; border-color: #b42318 !important; }
.lcn-ec .lcn-btn--sm { min-height: 34px; padding: .35rem .8rem; font-size: .875rem; border-width: 1.5px; border-radius: 8px; }
.lcn-ec .lcn-link { background: none !important; border: 0 !important; color: var(--lcn-green-dark) !important; padding: 0; margin: 0; font: inherit; color: var(--lcn-green-dark); cursor: pointer; text-decoration: underline; min-height: 0; }

/* Alertes */
.lcn-alert { border-radius: 10px; padding: .85rem 1rem; margin: 0 0 1.25rem; font-size: .95rem; border: 1px solid; border-left-width: 4px; }
.lcn-alert--success { background: #edf7ec; border-color: #cfe8cd; border-left-color: var(--lcn-green); color: #24561f; }
.lcn-alert--error { background: #fdf0ef; border-color: #f5d0cc; border-left-color: #d92d20; color: #8a1c13; }
.lcn-alert--info { background: #f0f5fb; border-color: #d4e2f2; border-left-color: #2e6fb7; color: #1d456f; }

/* Listes */
.lcn-checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.lcn-checks li { position: relative; padding: .3rem 0 .3rem 1.75rem; }
.lcn-checks li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--lcn-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233daa38' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 65% no-repeat; }

/* Bandeau confiance */
.lcn-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; margin: 2rem 0 .75rem; color: var(--lcn-muted); font-size: .9rem; }
.lcn-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.lcn-trust .lcn-ico { color: var(--lcn-green); }
.lcn-ec .lcn-rgpd { text-align: center; color: var(--lcn-muted); font-size: .78rem; max-width: 760px; margin: 0 auto !important; }
.lcn-back { margin: 0 0 1rem; font-size: .95rem; }
.lcn-back a { font-weight: 600; }

/* Espace connecté */
.lcn-account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.lcn-side { background: #fff; border: 1px solid var(--lcn-line); border-radius: var(--lcn-radius); box-shadow: var(--lcn-shadow); padding: 1.25rem; position: sticky; top: 1.5rem; }
.lcn-me { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; margin-bottom: .75rem; border-bottom: 1px solid var(--lcn-line); }
.lcn-me strong { display: block; line-height: 1.25; }
.lcn-me small { color: var(--lcn-muted); }
.lcn-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lcn-green); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.lcn-nav { display: flex; flex-direction: column; gap: 2px; }
.lcn-ec .lcn-nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: 9px; color: var(--lcn-ink); font-weight: 500; font-size: .95rem; text-decoration: none; }
.lcn-ec .lcn-nav a .lcn-ico { color: var(--lcn-muted); }
.lcn-ec .lcn-nav a:hover { background: var(--lcn-bg); }
.lcn-ec .lcn-nav a.is-active { background: var(--lcn-green-soft); color: var(--lcn-green-dark); font-weight: 600; }
.lcn-ec .lcn-nav a.is-active .lcn-ico { color: var(--lcn-green); }
.lcn-ec .lcn-nav a.lcn-nav-out { margin-top: .5rem; border-top: 1px solid var(--lcn-line); border-radius: 0 0 9px 9px; padding-top: .85rem; color: var(--lcn-muted); }
.lcn-main { min-width: 0; }
.lcn-head { margin-bottom: 1.25rem; }
.lcn-head p { margin: 0; }
.lcn-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.lcn-ec .lcn-tile { background: #fff; border: 1px solid var(--lcn-line); border-radius: var(--lcn-radius); box-shadow: var(--lcn-shadow); padding: 1.25rem; color: var(--lcn-muted); display: flex; flex-direction: column; gap: .2rem; text-decoration: none; transition: border-color .15s, transform .15s; }
.lcn-ec .lcn-tile:hover { border-color: var(--lcn-green); transform: translateY(-1px); text-decoration: none; }
.lcn-tile-n { font-size: 2rem; font-weight: 700; color: var(--lcn-ink); line-height: 1.1; }
.lcn-tile--warn .lcn-tile-n { color: #c4590f; }
.lcn-list { list-style: none; margin: 0; padding: 0; }
.lcn-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--lcn-line); }
.lcn-list li:first-child { border-top: 0; padding-top: .25rem; }
.lcn-ec .lcn-list a { color: var(--lcn-ink); display: flex; flex-direction: column; }
.lcn-list small { color: var(--lcn-muted); }
.lcn-empty { color: var(--lcn-muted); text-align: center; padding: 1.5rem 0; margin: 0; }

/* Tableaux */
.lcn-table-wrap { overflow-x: auto; margin: 0 -.25rem; }
.lcn-ec .lcn-table { width: 100%; border-collapse: collapse; border: 0; margin: 0; font-size: .95rem; }
.lcn-ec .lcn-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--lcn-muted); font-weight: 600; padding: .6rem .75rem; border: 0; border-bottom: 1px solid var(--lcn-line); background: none; }
.lcn-ec .lcn-table td { padding: .85rem .75rem; border: 0; border-bottom: 1px solid var(--lcn-line); vertical-align: middle; background: none; }
.lcn-ec .lcn-table tr:last-child td { border-bottom: 0; }
.lcn-ec .lcn-table td:last-child { text-align: right; white-space: nowrap; }
.lcn-badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eceeea; color: #444; white-space: nowrap; }
.lcn-badge--ok { background: #e3f4e1; color: #1f6b1b; }
.lcn-badge--warn { background: #fff1e0; color: #a14a07; }
.lcn-badge--bad { background: #fde7e5; color: #a3190f; }
.lcn-ec h3 .lcn-count { display: inline-block; min-width: 1.6em; padding: .05rem .45rem; margin-left: .35rem; border-radius: 999px; background: #eceeea; color: #555; font-size: .8rem; font-weight: 600; text-align: center; vertical-align: .15em; }
@media (min-width: 601px) { .lcn-repairs .lcn-table { table-layout: fixed; } .lcn-repairs .lcn-table th:nth-child(1) { width: 15%; } .lcn-repairs .lcn-table th:nth-child(3) { width: 16%; } .lcn-repairs .lcn-table th:nth-child(4) { width: 30%; } .lcn-repairs .lcn-table th:nth-child(5) { width: 7.5rem; } .lcn-repairs .lcn-table td:nth-child(4) .lcn-badge { white-space: normal; } }
.lcn-diag { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem 1.5rem; }
.lcn-diag > div { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px dashed var(--lcn-line); }
.lcn-dl { display: flex; gap: 2rem; margin: 0 0 1rem; }
.lcn-dl dt { font-size: .8rem; color: var(--lcn-muted); text-transform: uppercase; letter-spacing: .04em; }
.lcn-dl dd { margin: 0; font-weight: 600; }

/* Thème : neutralise les marges/largeurs imposées au contenu de la page */
body.lcn-espace-client .entry-content > .lcn-ec.alignwide, body.lcn-espace-client .lcn-ec.alignwide { max-width: min(1180px, calc(100vw - 2rem)); width: auto; }

/* Responsive */
@media (max-width: 980px) {
    .lcn-grid3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .lcn-grid3 .lcn-card:nth-child(2) { order: -1; }
    .lcn-account { grid-template-columns: 1fr; }
    .lcn-side { position: static; }
    .lcn-nav { display: grid; grid-template-columns: 1fr 1fr; }
    .lcn-ec .lcn-nav a { padding: .5rem .7rem; font-size: .9rem; }
    .lcn-ec .lcn-nav a.lcn-nav-out { margin-top: 0; border-top: 0; padding-top: .5rem; }
}
@media (max-width: 600px) {
    .lcn-card { padding: 1.25rem; }
    .lcn-hero h2 { font-size: 1.6rem; }
    .lcn-row2, .lcn-row2--zip { grid-template-columns: 1fr; }
    .lcn-tiles { grid-template-columns: 1fr; }
    .lcn-ec .lcn-table thead { display: none; }
    .lcn-ec .lcn-table tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--lcn-line); }
    .lcn-ec .lcn-table td { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border: 0; text-align: right; }
    .lcn-ec .lcn-table td::before { content: attr(data-label); color: var(--lcn-muted); font-size: .85rem; text-align: left; }
    .lcn-ec .lcn-table td:last-child { justify-content: flex-end; }
    .lcn-ec .lcn-table td br { display: none; }
    .lcn-ec .lcn-table td small { display: block; }
    .lcn-ec .lcn-table td > strong, .lcn-ec .lcn-table td > small { margin-left: auto; }
    .lcn-ec .lcn-table td:has(> small) { flex-wrap: wrap; }
    .lcn-ec .lcn-table td:has(> small)::before { flex: 1 0 auto; }
    .lcn-ec .lcn-table td:has(> small) > small { flex-basis: 100%; text-align: right; }
    .lcn-ec .lcn-table td:last-child::before { content: none; }
}
.lcn-back--wide { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }

/* Cartes de connexion : mêmes lignes d'une carte à l'autre (icône, titre, texte, champs, bouton) */
.lcn-grid3 { grid-template-rows: auto auto auto 1fr auto; row-gap: 0; }
.lcn-grid3 > .lcn-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.lcn-grid3 .lcn-form--card { display: contents; }
.lcn-grid3 .lcn-card > .lcn-ico--round { margin-bottom: 1rem; }
.lcn-grid3 .lcn-card h3 { align-self: start; margin-bottom: .5rem; }
.lcn-grid3 .lcn-desc { align-self: start; }
.lcn-grid3 .lcn-desc .lcn-muted { margin-bottom: 1rem; }
.lcn-grid3 .lcn-body { display: flex; flex-direction: column; gap: 1rem; align-self: start; }
.lcn-grid3 .lcn-body .lcn-checks { margin: 0; }
.lcn-grid3 .lcn-actions { align-self: end; padding-top: 1.25rem; display: flex; }
.lcn-grid3 .lcn-actions > .lcn-btn { flex: 1; }
.lcn-ec .lcn-forgot { margin: -.5rem 0 0 !important; text-align: right; }
.lcn-ec .lcn-body > .lcn-small { margin: 0; }

/* Anti-robot : un seul widget pour les deux formulaires, centré sous les cartes */
.lcn-grid3 > .lcn-ts-row { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 1.5rem; }
.lcn-grid3 > .lcn-ts-row .lcn-ts-box { margin: 0; }
.lcn-ts-box { display: flex; flex-direction: column; align-items: center; margin: 0 auto 1.5rem; min-height: 65px; }
.lcn-card .lcn-ts-box { align-items: flex-start; margin: 0; }
.lcn-ts-msg { display: none; margin: .5rem 0 0 !important; font-size: .875rem; color: #a14a07; }
.lcn-ts-wait .lcn-ts-msg { display: block; }

@media (max-width: 980px) {
    .lcn-grid3 { grid-template-rows: none; row-gap: 1.5rem; }
    .lcn-grid3 > .lcn-card { display: flex; grid-row: auto; }
    .lcn-grid3 .lcn-form--card { display: flex; flex-direction: column; }
    .lcn-grid3 .lcn-card > *, .lcn-grid3 .lcn-form--card > * { align-self: stretch; }
    .lcn-grid3 .lcn-card > .lcn-ico--round { align-self: flex-start; }
    /* Mobile : code SMS, connexion, anti-robot, puis « nouveau client » (sans formulaire ici) */
    .lcn-grid3 > .lcn-ts-row { padding-top: 0; }
    .lcn-grid3 .lcn-card:nth-child(3) { order: 1; }
}

/* Appareil prêt à récupérer */
.lcn-ready { border: 2px solid var(--lcn-green); background: linear-gradient(180deg, #f3faf2 0%, #fff 60%); }
.lcn-ready-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.lcn-ready-head h3 { margin: 0 0 .15rem; font-size: 1.3rem; }
.lcn-ready-head p { margin: 0; }
.lcn-ready-head .lcn-ico--round { margin: 0; flex: none; }
.lcn-ico--solid { background: var(--lcn-green); color: #fff; }
.lcn-ready-info { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--lcn-line); }
.lcn-ready-info p { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .95rem; }
.lcn-ready-info .lcn-ico { color: var(--lcn-green); }
.lcn-ready-pay { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap; margin-top: 1rem; padding: .85rem 1rem; background: #fff7ec; border: 1px solid #f6dfbd; border-radius: 10px; }
.lcn-ready-pay p { margin: 0; font-size: .95rem; color: #6b3b06; }
.lcn-ready-ok { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; color: #1f6b1b; font-weight: 600; }

/* Devis en attente */
.lcn-quote { border: 1px solid var(--lcn-line); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: .85rem; }
.lcn-quote-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lcn-quote-top small { display: block; color: var(--lcn-muted); }
.lcn-quote-amount { font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.lcn-quote-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.lcn-refuse { margin-top: .75rem; }
.lcn-refuse summary { cursor: pointer; color: #b42318; font-size: .875rem; font-weight: 600; display: inline-block; }
.lcn-refuse[open] summary { margin-bottom: .75rem; }
.lcn-refuse .lcn-form { max-width: 520px; }
.lcn-cell-actions { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
    .lcn-quote-actions .lcn-btn { flex: 1; }
    .lcn-ready-pay .lcn-btn { width: 100%; }
}
@media (max-width: 600px) {
    .lcn-list li { flex-wrap: wrap; gap: .4rem; }
    .lcn-list li > a { flex: 1 1 100%; }
}

/* === lcn-ui-2026-11 : connexion et inscription plus larges, sections séparées === */
/* La mise en page suit la largeur réellement disponible dans la page (et non celle de l'écran) */
.lcn-auth { container: lcn-auth / inline-size; }

/* Connexion : cartes plus espacées, champs séparés de l'en-tête de carte */
.lcn-auth .lcn-grid3 { column-gap: 2rem; }
.lcn-auth .lcn-grid3 > .lcn-card { padding: 2rem; }
.lcn-auth .lcn-grid3 .lcn-body { border-top: 1px solid var(--lcn-line); padding-top: 1.25rem; }
.lcn-ec .lcn-auth .lcn-forgot { margin: -.35rem 0 0 !important; text-align: left; }
.lcn-auth .lcn-forgot a { white-space: nowrap; }
@container lcn-auth (max-width: 899px) {
    .lcn-auth .lcn-grid3 { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1.5rem; max-width: 560px; margin: 0 auto; }
    .lcn-auth .lcn-grid3 > .lcn-card { display: flex; grid-row: auto; }
    .lcn-auth .lcn-grid3 .lcn-form--card { display: flex; flex-direction: column; }
    .lcn-auth .lcn-grid3 .lcn-card > *, .lcn-auth .lcn-grid3 .lcn-form--card > * { align-self: stretch; }
    .lcn-auth .lcn-grid3 .lcn-card > .lcn-ico--round { align-self: flex-start; }
    .lcn-auth .lcn-grid3 .lcn-card:nth-child(2) { order: -1; }
    .lcn-auth .lcn-grid3 .lcn-card:nth-child(3) { order: 1; }
    .lcn-auth .lcn-grid3 > .lcn-ts-row { padding-top: 0; }
}

/* Inscription : carte pleine largeur */
.lcn-ec .lcn-back--reg, .lcn-card--reg { max-width: none; }
.lcn-card--reg { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; padding: 2rem 2.5rem 2.25rem; }
.lcn-card--reg > * { grid-column: 1 / -1; }
.lcn-card--reg > .lcn-ico--round { grid-column: 1; grid-row: 1 / span 2; margin: 0; align-self: start; }
.lcn-card--reg > h3, .lcn-card--reg > h3 + .lcn-muted { grid-column: 2; }
.lcn-card--reg > h3 + .lcn-muted { margin-bottom: 1.25rem; }

/* Sections numérotées : titre et explication à gauche, champs à droite */
.lcn-form.lcn-reg { gap: 0; }
.lcn-sec { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1rem 3rem; padding: 2rem 0; border-top: 1px solid var(--lcn-line); }
.lcn-sec__head { display: flex; gap: .8rem; align-items: flex-start; }
.lcn-sec__n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lcn-green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; line-height: 1; }
.lcn-ec .lcn-sec h4 { font-family: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--lcn-ink); margin: .3rem 0 .35rem; }
.lcn-ec .lcn-sec__head p { margin: 0; color: var(--lcn-muted); font-size: .875rem; line-height: 1.5; }
.lcn-sec__body { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.lcn-reg .lcn-row2 { gap: 1.25rem 1.5rem; }

/* Validation : anti-robot, consentement et bouton */
.lcn-reg__end { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2.5rem; padding: 1.75rem 0 0 calc(250px + 3rem); border-top: 1px solid var(--lcn-line); }
.lcn-reg__end > * { grid-column: 1; }
.lcn-reg__end > .lcn-btn { grid-column: 2; grid-row: 1 / span 2; min-width: 300px; }
.lcn-reg__end .lcn-ts-box { margin: 0; align-items: flex-start; }

@container lcn-auth (max-width: 860px) {
    .lcn-sec { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.75rem 0; }
    .lcn-reg__end { padding-left: 0; }
}
@container lcn-auth (max-width: 600px) {
    .lcn-card--reg { padding: 1.25rem; }
    .lcn-reg .lcn-row2 { grid-template-columns: 1fr; }
    .lcn-reg__end { grid-template-columns: 1fr; }
    .lcn-reg__end > .lcn-btn { grid-column: 1; grid-row: auto; min-width: 0; width: 100%; }
}

/* === lcn-multi-2026-11 : choix du compte (un mobile, plusieurs fiches) === */
.lcn-pick { max-width: 640px; margin: 0 auto; }
.lcn-pick .lcn-form { margin-top: 1rem; }
.lcn-pick__list { display: flex; flex-direction: column; gap: .75rem; margin: 1.25rem 0 1rem; }
.lcn-ec button.lcn-pick__item { display: flex; align-items: center; gap: .9rem; width: 100%; height: auto; min-height: 0; margin: 0; padding: 1rem 1.1rem; text-align: left;
    border: 1px solid var(--lcn-line); border-radius: 12px; background: #fff; color: var(--lcn-ink); font: inherit; font-weight: 400; line-height: 1.35;
    letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lcn-ec button.lcn-pick__item:hover, .lcn-ec button.lcn-pick__item:focus-visible { border-color: var(--lcn-green); box-shadow: 0 0 0 3px rgba(61, 170, 56, .15); background: #fff; color: var(--lcn-ink); }
.lcn-ec button.lcn-pick__item.is-current { border-color: var(--lcn-green); background: var(--lcn-bg); }
.lcn-pick__txt { flex: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.lcn-pick__txt strong { font-weight: 700; }
.lcn-pick__txt small { color: var(--lcn-muted); font-size: .85rem; }
.lcn-ec button.lcn-pick__item::after { content: "\203A"; font-size: 1.6rem; line-height: 1; color: var(--lcn-muted); }
.lcn-ec .lcn-card.lcn-shared { display: flex; flex-direction: row; gap: 1rem; align-items: flex-start; border-left: 3px solid var(--lcn-green); }
.lcn-shared > .lcn-ico--round { flex: none; margin: 0; }
.lcn-shared p { margin: 0 0 .5rem; }
.lcn-shared .lcn-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }


/* 3.3.11 – Ordre identique partout : connexion, activation, création (l'ancien ordre mobile mettait l'activation en premier) */
@container lcn-auth (max-width: 899px) {
    .lcn-auth .lcn-grid3 .lcn-card:nth-child(2) { order: 0; }
}
@media (max-width: 980px) { .lcn-grid3 .lcn-card:nth-child(3) { order: 0; } }

/* 3.3.11 – Tiroirs sur téléphone (assets/espace-auth.js) */
.lcn-dw-q, .lcn-dw-t { display: none; }
@media (max-width: 767px) {
    .lcn-dw-on .lcn-ec .lcn-hero { margin-bottom: .5rem; }
    .lcn-dw-on .lcn-ec .lcn-hero p { font-size: .95rem; }
    .lcn-dw-on .lcn-dw-q { display: block; font-size: 1.15rem; font-weight: 700; color: #1d1d1b; margin: .5rem 0 .75rem; }
    .lcn-auth .lcn-grid3.lcn-dw { display: flex; flex-direction: column; gap: .75rem; row-gap: .75rem; max-width: none; }
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card { padding: 0 !important; margin: 0; border-top-width: 1px; overflow: hidden; scroll-margin-top: 80px; }
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card:nth-child(2) { border-top: 1px solid var(--lcn-line); }
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card.is-open { border-color: var(--lcn-green); box-shadow: 0 4px 18px rgba(61, 170, 56, .15); }
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card > :not(.lcn-dw-t) { display: none !important; }
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card.is-open > :not(.lcn-dw-t):not(.lcn-ico):not(h3) { display: block !important; }
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card.is-open > form { display: flex !important; flex-direction: column; }
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card.is-open > :not(.lcn-dw-t) { margin-left: 1rem; margin-right: 1rem; }
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card.is-open > :last-child { margin-bottom: 1.1rem; }
    .lcn-ec .lcn-dw-t { display: flex !important; align-items: center; gap: .75rem; width: 100%; min-height: 64px; padding: .9rem 1rem !important; margin: 0 !important;
        background: #fff !important; border: 0 !important; border-radius: 0 !important; color: #1d1d1b !important; text-align: left; cursor: pointer; font: inherit; line-height: 1.3; box-shadow: none !important; }
    .lcn-dw-t:focus-visible { outline: 3px solid rgba(61, 170, 56, .35); outline-offset: -3px; }
    .lcn-dw-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
        background: var(--lcn-green-soft); color: var(--lcn-green-dark); font-weight: 700; font-size: .95rem; }
    .is-open .lcn-dw-n { background: var(--lcn-green); color: #fff; }
    .lcn-dw-txt { flex: 1; min-width: 0; }
    .lcn-dw-txt strong { display: block; font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
    .lcn-dw-txt small { display: block; margin-top: .2rem; font-size: .82rem; color: var(--lcn-muted); font-weight: 400; }
    .lcn-dw-chev { flex: none; width: 10px; height: 10px; border-right: 2px solid #777; border-bottom: 2px solid #777; transform: rotate(45deg); margin: 0 .3rem .3rem 0; transition: transform .2s; }
    .is-open .lcn-dw-chev { transform: rotate(-135deg); margin: .3rem .3rem 0 0; border-color: var(--lcn-green); }
    .is-open .lcn-dw-t { border-bottom: 1px solid var(--lcn-line) !important; margin-bottom: 1rem !important; }
    .lcn-auth .lcn-grid3.lcn-dw .lcn-body { border-top: 0; padding-top: 0; }
    /* Anti-robot : sous les tiroirs, seulement quand un formulaire est ouvert */
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-ts-row { padding: .25rem 0 .25rem; }
    .lcn-auth .lcn-grid3.lcn-dw:not(.lcn-dw-form-open) > .lcn-ts-row { position: absolute; left: -9999px; }
    .lcn-dw-on .lcn-ec .lcn-trust { font-size: .8rem; gap: .5rem 1rem; margin-top: 1.25rem; }
    .lcn-dw-on .lcn-ec .lcn-rgpd { font-size: .75rem; }
}

/* 3.3.12 – Pages espace client / connexion : pas de grand vide au-dessus (marge « page-space-content » du thème) */
#content.page-space-content:has(.lcn-ec){padding-top:18px!important;margin-top:0!important}
.lcn-ec .lcn-hero{margin-top:0;padding-top:0}
@media (max-width: 767px) {
    #content.page-space-content:has(.lcn-ec){padding-top:12px!important}
}

/* 3.3.13 – Tiroirs : titre noir, repère vert à gauche (pastille pleine + liseré), sous-titre en minuscules */
@media (max-width: 767px) {
    .lcn-auth .lcn-grid3.lcn-dw > .lcn-card { border-left: 4px solid var(--lcn-green, #3daa38) !important; }
    .lcn-ec .lcn-dw-txt strong { color: #1d1d1b !important; font-size: 1rem; line-height: 1.3; }
    .lcn-ec .lcn-dw-txt small { text-transform: none !important; letter-spacing: 0 !important; font-size: .85rem; color: #6b6b6b; }
    .lcn-ec .lcn-dw-n { background: var(--lcn-green, #3daa38); color: #fff; }
    .lcn-ec .is-open .lcn-dw-t { background: #f3faf2 !important; }
}

/* 3.3.14 – Tiroirs aérés selon la hauteur de l'écran (compacts sur petit écran, plus d'air sur grand téléphone) */
@media (max-width: 767px) {
    .lcn-auth .lcn-grid3.lcn-dw { gap: clamp(.75rem, 2.6vh, 1.5rem) !important; row-gap: clamp(.75rem, 2.6vh, 1.5rem) !important; }
    .lcn-ec .lcn-dw-t { min-height: clamp(64px, 11vh, 96px); padding: clamp(.9rem, 2.2vh, 1.5rem) 1rem !important; }
    .lcn-dw-on .lcn-dw-q { margin: clamp(.5rem, 2vh, 1.25rem) 0 clamp(.75rem, 2.4vh, 1.5rem) !important; }
    .lcn-dw-on .lcn-ec .lcn-trust { margin-top: clamp(1.25rem, 4vh, 2.5rem); }
}

/* 3.4.0 – Connexion en un seul formulaire, par étapes */
.lcn-auth .lcn-step { max-width: 480px; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.25rem); display: block; border-left: 4px solid var(--lcn-green, #3daa38); }
.lcn-auth .lcn-step > .lcn-ico--round { margin-bottom: .5rem; }
.lcn-auth .lcn-step h3 { margin: 0 0 .75rem; font-size: 1.35rem; line-height: 1.25; }
.lcn-auth .lcn-step .lcn-form { display: flex; flex-direction: column; gap: .25rem; margin-top: .75rem; }
.lcn-auth .lcn-step .lcn-form > .lcn-btn { width: 100%; justify-content: center; margin-top: .5rem; min-height: 48px; font-size: 1rem; }
.lcn-auth .lcn-step .lcn-input { font-size: 16px; min-height: 48px; } /* 16 px : pas de zoom automatique sur iPhone */
.lcn-auth .lcn-step .lcn-small { margin: .75rem 0 0; }
.lcn-auth .lcn-step .lcn-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.lcn-auth .lcn-step .lcn-actions .lcn-btn { flex: 1 1 180px; justify-content: center; }
.lcn-who { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1rem; padding: .6rem .85rem; background: #f3faf2; border: 1px solid #d6eed4; border-radius: 999px; font-size: .95rem; }
.lcn-who span { font-weight: 600; color: #1d1d1b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lcn-who a { flex: none; font-size: .85rem; }
.lcn-step-hint { color: var(--lcn-muted); text-align: center; }
.lcn-auth .lcn-step > .lcn-ts-row { display: flex; justify-content: center; padding-top: 1rem; }
.lcn-auth .lcn-step > .lcn-ts-row .lcn-ts-box { margin: 0; }
.lcn-auth > .lcn-trust { justify-content: center; margin-top: clamp(1rem, 3vh, 2rem); }
.lcn-auth > .lcn-rgpd { max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 767px) {
    .lcn-auth .lcn-step { border-radius: 12px; }
    .lcn-auth > .lcn-trust { font-size: .8rem; gap: .5rem 1rem; }
    .lcn-auth > .lcn-rgpd { font-size: .75rem; }
}
