/* =====================================================================
   THÈME SOBRE : chargé EN DERNIER sur toutes les pages.
   Il redéfinit les couleurs, les polices et l'allure des éléments de
   style.css / boutique.css / admin.css sans les modifier.
   Règle de ce thème : des gris neutres + UNE seule couleur (le vert de la marque).
   Rouge et ambre n'apparaissent que pour dire « erreur » ou « en attente ».
   Pour revenir à l'ancien look : retire la ligne <link ... theme.css> des fichiers .html.
   ===================================================================== */

:root {
    color-scheme: light;
    --fond: #EDEFED;
    --surface: #F8F9F8;
    --surface-2: #EEF1EF;
    --encre: #26302D;
    --encre-douce: #46514E;
    --discret: #6C7774;
    --ligne: #DCE1DE;
    --ligne-forte: #C8D0CC;
    --image: #E3E8E5;
    --inverse: #26302D;
    --visuel: #104A3B;
    --rouge-bord: #E8C3BF;
    --marque-texte: #104A3B;

    /* La couleur unique */
    --marque: #17604D;
    --marque-fonce: #104A3B;
    --marque-halo: rgba(23, 96, 77, 0.18);
    --marque-fond: #E7F0EC;

    --vert: #17604D;
    --vert-fond: #E7F0EC;
    --whatsapp: #17604D;
    --whatsapp-fonce: #104A3B;

    /* Couleurs de SENS (jamais décoratives) */
    --ambre: #77590F;
    --ambre-fond: #F6EFDB;
    --rouge: #A3312B;
    --rouge-fond: #F8E9E7;

    --rayon-carte: 14px;
    --rayon-panneau: 16px;
    --rayon-champ: 10px;
    --ombre: 0 1px 2px rgba(28, 35, 33, .05), 0 10px 28px -16px rgba(28, 35, 33, .28);
    --ombre-douce: 0 1px 2px rgba(28, 35, 33, .04);

    --titre: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body { background: var(--fond); color: var(--encre); }

/* ---------- Titres ---------- */
h1, h2, .logo, .fiche-prix, .kpi-valeur, .carte-titre { font-family: var(--titre); }
h1 { font-weight: 700; letter-spacing: -0.03em; }
h2 { font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Boutons : un seul style plein (vert), un style clair ---------- */
.btn {
    background: var(--marque); border-color: var(--marque); color: #fff;
    font-weight: 600; box-shadow: none; border-radius: 10px;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--marque-fonce); border-color: var(--marque-fonce); }
.btn-clair { background: var(--surface); color: var(--encre); border-color: var(--ligne-forte); }
.btn-clair:hover { background: var(--marque-fond); color: var(--marque-texte); border-color: var(--marque); }
.btn-whatsapp { background: var(--marque); border-color: var(--marque); }
.btn-whatsapp:hover { background: var(--marque-fonce); border-color: var(--marque-fonce); }
.btn-danger { background: var(--surface); color: var(--rouge); border-color: var(--rouge-bord); }
.btn-danger:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- En-tête : blanc, une ligne fine ---------- */
.entete { background: var(--surface); border-bottom: 1px solid var(--ligne); -webkit-backdrop-filter: none; backdrop-filter: none; }
.entete-contenu { min-height: 68px; }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; color: var(--encre); display: inline-flex; align-items: center; text-decoration: none; }
.logo span { color: var(--marque); }
.logo::before { content: ""; margin-right: 10px; flex: none; width: 13px; height: 13px; border-radius: 4px; background: var(--marque); }
.entete-actions { display: flex; align-items: center; gap: 10px; }

/* Onglets des espaces vendeur / administrateur */
.onglets { background: transparent; gap: 4px; padding: 0; }
.onglet { color: var(--encre-douce); font-weight: 600; border-radius: 8px; }
.onglet:hover { background: var(--fond); color: var(--encre); }
.onglet.actif { background: var(--marque-fond); color: var(--marque-texte); box-shadow: none; }

/* ---------- Pages internes ---------- */
.page { padding-top: 40px; }
.page h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); }
.titre-page { margin-bottom: 24px; }

.panneau, .tableau, .kpi, .carte-graphique {
    background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ombre-douce);
}

/* ---------- Page d'accueil ---------- */
.hero-accueil { background: var(--surface); border-bottom: 1px solid var(--ligne); }
.hero-accueil .conteneur { padding-top: 64px; padding-bottom: 60px; }
.hero-accueil h1 { max-width: 16ch; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.2rem); line-height: 1; letter-spacing: -0.045em; }
.hero-accueil p { margin-top: 18px; max-width: 48ch; font-size: 1.1rem; color: var(--encre-douce); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-etapes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; list-style: none; counter-reset: etape; padding-top: 22px; border-top: 1px solid var(--ligne); }
.hero-etapes li { counter-increment: etape; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--encre-douce); }
.hero-etapes li::before {
    content: counter(etape); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
    background: var(--marque-fond); color: var(--marque-texte); font-weight: 800; font-size: .85rem;
}

.section-boutiques { padding-top: 48px; padding-bottom: 48px; }
.section-boutiques h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.8rem); margin-bottom: 22px; }
.grille-boutiques { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.carte-boutique {
    display: flex; flex-direction: column; gap: 16px; padding: 20px; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-carte);
    transition: border-color .15s, box-shadow .15s;
}
.carte-boutique:hover { border-color: var(--marque); box-shadow: var(--ombre); }
.avatar {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    background: var(--marque-fond); color: var(--marque-texte);
    font-family: var(--titre); font-size: 1.6rem; font-weight: 800;
}
.carte-boutique h3 { font-family: var(--titre); font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
.carte-boutique .visiter { margin-top: auto; font-weight: 600; color: var(--marque-texte); }
.carte-boutique:hover .visiter { text-decoration: underline; }

.bande-commercant { border-top: 1px solid var(--ligne); background: var(--surface); }
.bande-commercant .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.bande-commercant h2 { font-size: 1.25rem; }
.bande-commercant p { color: var(--discret); margin-top: 4px; }

/* ---------- Connexion et inscription : deux panneaux ---------- */
body[data-page="connexion"] .entete, body[data-page="inscription"] .entete { display: none; }
.connexion { min-height: 100vh; display: grid; }
@media (min-width: 900px) { .connexion { grid-template-columns: 1fr 1.1fr; } }
.connexion-visuel {
    color: #fff; padding: 32px 28px; background: var(--visuel);
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.connexion-visuel .logo { color: #fff; }
.connexion-visuel .logo span { color: #fff; opacity: .72; }
.connexion-visuel .logo::before { background: #fff; }
.connexion-visuel h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.9rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 14ch; }
.connexion-visuel p { margin-top: 14px; max-width: 38ch; color: rgba(255, 255, 255, .8); }
@media (min-width: 900px) { .connexion-visuel { padding: 48px 56px; position: sticky; top: 0; height: 100vh; align-self: start; } }
.connexion-formulaire { display: grid; place-items: center; padding: 36px 20px; }
.connexion-formulaire .panneau { width: 100%; max-width: 440px; padding: 32px; }
.connexion-formulaire h1 { font-size: 1.9rem; margin-bottom: 6px; }
.connexion-formulaire .sous-titre { color: var(--discret); margin-bottom: 22px; }
.liens-formulaire { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.liens-formulaire a, .lien-bouton {
    color: var(--discret); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0;
    font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.liens-formulaire a:hover, .lien-bouton:hover { color: var(--marque-texte); text-decoration: underline; }
.liens-formulaire .fort { color: var(--marque); }
.aide { color: var(--discret); font-size: .88rem; margin-top: 6px; }
.succes { background: var(--marque-fond); color: var(--marque-texte); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.deux-champs { display: grid; gap: 14px; }
@media (min-width: 520px) { .deux-champs { grid-template-columns: 1fr 1fr; } }

/* ---------- Formulaires ---------- */
.champ input, .champ select, .champ textarea, .select-tri select, .recherche input { border-radius: var(--rayon-champ); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
    outline: none; border-color: var(--marque); box-shadow: 0 0 0 3px var(--marque-halo);
}

/* ---------- Boutique ---------- */
.bouton-panier { width: 44px; height: 44px; border: 1px solid var(--ligne-forte); box-shadow: none; }
.bouton-panier:hover { background: var(--marque-fond); color: var(--marque-texte); border-color: var(--marque); }
.compteur { background: var(--marque); box-shadow: 0 0 0 3px var(--surface); }

.barre-filtres { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--ligne); }
.puce { padding: 8px 16px; border-color: var(--ligne-forte); font-weight: 600; background: var(--surface); transition: background-color .15s, color .15s, border-color .15s; }
.puce:hover { border-color: var(--marque); color: var(--marque-texte); }
.puce.active { background: var(--marque); border-color: var(--marque); color: #fff; box-shadow: none; }

.outils .recherche input { height: 46px; border: 1px solid var(--ligne-forte); box-shadow: none; background: var(--surface); }
.select-tri select { height: 46px; border: 1px solid var(--ligne-forte); box-shadow: none; }
.densite { border-color: var(--ligne-forte); box-shadow: none; }
.resume { font-weight: 600; color: var(--discret); }

.cp-image { border-radius: 12px; background: var(--image); box-shadow: none; }
.carte-produit:hover .cp-image { box-shadow: var(--ombre); }
.cp-nom { font-weight: 600; color: var(--encre); }
.cp-prix, .lp-prix { color: var(--encre); font-weight: 700; letter-spacing: -0.01em; }
.fiche-prix { color: var(--encre); letter-spacing: -0.03em; }
.badge-cp { font-weight: 600; }
.badge-cp.rare { background: var(--ambre-fond); color: var(--ambre); }
.ajout-rapide { width: 38px; height: 38px; background: var(--marque); color: #fff; box-shadow: none; transition: background-color .15s; }
.ajout-rapide:hover { background: var(--marque-fonce); transform: none; }

dialog::backdrop { background: rgba(28, 35, 33, .5); }
.feuille, .tiroir { box-shadow: 0 24px 60px -20px rgba(28, 35, 33, .45); }
.etiquette { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.toast { background: var(--inverse); color: #fff; border-radius: 10px; }
.toast-erreur { background: var(--rouge); }

/* ---------- Tableaux ---------- */
.tableau { border-radius: var(--rayon-panneau); }
th { background: var(--surface-2); font-weight: 600; color: var(--discret); }
tbody tr:hover { background: var(--surface-2); }
.pastille { font-weight: 600; }
.pastille.attente { background: var(--ambre-fond); color: var(--ambre); }
.pastille.dispo { background: var(--marque-fond); color: var(--marque-texte); }
.miniature, .sans-miniature { border-radius: 10px; }

/* ---------- Demandes de mot de passe (superadmin) ---------- */
.demandes { margin-bottom: 24px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--ligne); border-left: 4px solid var(--ambre); border-radius: var(--rayon-panneau); }
.demandes h2 { font-size: 1.05rem; }
.demandes > p { color: var(--discret); margin-top: 2px; }
.demandes ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.demandes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.demandes li strong { font-weight: 700; }
.demandes li small { display: block; color: var(--discret); }
.demandes .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Statistiques (administrateur) ---------- */
.barre-stats { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 4px; }
.barre-stats select {
    height: 44px; padding: 0 14px; border-radius: var(--rayon-champ); border: 1px solid var(--ligne-forte);
    background: var(--surface); font: inherit; font-weight: 600; color: var(--encre);
}
.segments { display: inline-flex; background: var(--surface); border: 1px solid var(--ligne-forte); border-radius: 10px; padding: 3px; gap: 2px; }
.segments button { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--encre-douce); cursor: pointer; transition: background-color .15s, color .15s; }
.segments button:hover { color: var(--encre); }
.segments button.active { background: var(--marque); color: #fff; }
.nav-periode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 20px; }
.nav-periode .libelle { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; min-width: 160px; text-align: center; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpis-3 .kpi:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .kpis-3 .kpi:first-child { grid-column: auto; } }
.kpi { border-radius: var(--rayon-carte); padding: 18px 20px; }
.kpi-titre { color: var(--discret); font-size: .85rem; font-weight: 600; }
.kpi-valeur { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 4px; overflow-wrap: anywhere; }
.kpi-evolution { font-size: .8rem; color: var(--discret); margin-top: 4px; font-weight: 600; }
.kpi-evolution.hausse { color: var(--marque-texte); }
.kpi-evolution.baisse { color: var(--rouge); }

.carte-graphique { border-radius: var(--rayon-panneau); padding: 18px 18px 8px; margin-bottom: 24px; position: relative; }
.carte-graphique-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.carte-graphique h2 { font-size: 1.05rem; }
.graphique-zone { position: relative; }
.graphique { width: 100%; height: auto; display: block; overflow: visible; }
.graphique text { font-family: var(--police); fill: var(--discret); font-size: 11px; }
.graphique .grille-ligne { stroke: var(--ligne); stroke-width: 1; stroke-dasharray: 3 4; }
.graphique .axe { stroke: var(--ligne-forte); stroke-width: 1; }
.graphique .barre { fill: var(--marque); opacity: .85; transition: opacity .15s; }
.graphique .colonne { cursor: default; outline: none; }
.graphique .colonne:hover .barre, .graphique .colonne:focus .barre { opacity: 1; fill: var(--marque-fonce); }
.info-bulle { position: absolute; pointer-events: none; background: var(--inverse); color: #fff; padding: 9px 13px; border-radius: 10px; font-size: 13px; line-height: 1.45; z-index: 5; white-space: nowrap; box-shadow: 0 10px 24px rgba(28, 35, 33, .3); }
.info-bulle strong { display: block; font-family: var(--titre); }

.bloc-tableau { margin-bottom: 24px; }
.bloc-tableau h2 { font-size: 1.1rem; margin-bottom: 12px; }
.deux-tableaux { display: grid; gap: 24px; }
.deux-tableaux > * { min-width: 0; }
@media (min-width: 1000px) { .deux-tableaux { grid-template-columns: 1fr 1fr; } }
.deux-tableaux table { min-width: 0; }
.cellule-nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.cellule-nombre { text-align: right; }
.ligne-choisie td { background: var(--marque-fond); }
.part { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.part-barre { flex: 1; height: 8px; border-radius: 99px; background: var(--ligne); overflow: hidden; }
.part-barre span { display: block; height: 100%; border-radius: 99px; background: var(--marque); }
.part-texte { font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }

.recap-vendeur { background: var(--surface-2); border: 1px solid var(--ligne); border-radius: 10px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* Liste des vendeurs (administrateur) */
#corps td:first-child { white-space: nowrap; font-weight: 700; }
#corps a { color: var(--marque-texte); font-weight: 600; text-decoration: none; white-space: nowrap; }
#corps a:hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.pied { background: transparent; }

@media (max-width: 899px) {
    .kpis-3 { grid-template-columns: 1fr; }
    .kpis-3 .kpi:first-child { grid-column: auto; }
}
@media (max-width: 640px) {
    .hero-accueil .conteneur { padding-top: 40px; padding-bottom: 40px; }
    .entete-contenu { min-height: 62px; }
    .nav-periode .libelle { min-width: 0; flex-basis: 100%; order: -1; text-align: left; }
    .segments button { padding: 8px 12px; }
    .connexion-formulaire .panneau { padding: 24px; }
    .hero-etapes { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .carte-boutique, .ajout-rapide, .puce { transition: none; }
}

.densite.active { background: var(--marque); border-color: var(--marque); color: #fff; }

/* Fonds de photos et badges : suivent le thème (les anciennes feuilles avaient des couleurs en dur) */
.carte-image, .fiche-photo, .lp-photo, .photo-apercu, .cp-image { background: var(--image); }
.squelette .ligne { background: var(--image); }
.badge-stock, .badge-stock.dispo, .badge-stock.rupture { background: var(--surface); }
.badge-cp { background: var(--surface); color: var(--encre); }
.badge-cp.rupture { background: var(--rouge-fond); color: var(--rouge); }
.badge-cp.rare { background: var(--ambre-fond); color: var(--ambre); }

/* ---------- Bouton lune / soleil ---------- */
.bouton-theme {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface); color: var(--encre-douce); border: 1px solid var(--ligne-forte); cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.bouton-theme:hover { background: var(--marque-fond); color: var(--marque-texte); border-color: var(--marque); }
.bouton-theme.flottant { position: fixed; top: 14px; right: 14px; z-index: 30; }

/* ---------- THÈME SOMBRE : mêmes jetons, valeurs foncées. Une seule couleur (le vert), en version plus claire ---------- */
:root[data-theme="dark"] {
    color-scheme: dark;
    --fond: #121615;
    --surface: #1A1F1D;
    --surface-2: #212725;
    --encre: #E4E9E7;
    --encre-douce: #BDC6C3;
    --discret: #94A09C;
    --ligne: #2B322F;
    --ligne-forte: #3B4541;
    --image: #262C2A;
    --inverse: #2E3532;
    --visuel: #0E2A23;
    --rouge-bord: #5C3532;

    --marque: #2B8670;
    --marque-fonce: #36A087;
    --marque-halo: rgba(80, 190, 160, .28);
    --marque-fond: #1C302A;
    --marque-texte: #7FD3BA;
    --vert: #7FD3BA;
    --vert-fond: #1C302A;
    --whatsapp: #2B8670;
    --whatsapp-fonce: #36A087;

    --ambre: #E3C070;
    --ambre-fond: #38301A;
    --rouge: #F08F87;
    --rouge-fond: #3A2220;

    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -16px rgba(0, 0, 0, .7);
    --ombre-douce: 0 1px 2px rgba(0, 0, 0, .3);
}
:root[data-theme="dark"] .btn-danger:hover { color: #1A1F1D; }
:root[data-theme="dark"] .connexion-visuel .logo span { opacity: .8; }
:root[data-theme="dark"] .connexion-visuel .logo::before { background: #fff; }
:root[data-theme="dark"] .compteur { color: #fff; }
:root[data-theme="dark"] dialog { color: var(--encre); }
:root[data-theme="dark"] .puce.active, :root[data-theme="dark"] .segments button.active,
:root[data-theme="dark"] .densite.active { color: #fff; }

/* ---------- Œil des champs de mot de passe ---------- */
.champ-mdp { position: relative; display: block; width: 100%; }
.champ-mdp input { width: 100%; padding-right: 48px; }
.oeil {
    position: absolute; top: 50%; right: 5px; transform: translateY(-50%);
    width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px;
    background: none; color: var(--discret); cursor: pointer;
}
.oeil:hover { color: var(--marque-texte); background: var(--marque-fond); }
.oeil:focus-visible { outline: 3px solid var(--marque); outline-offset: 0; }

/* Boutons placés dans les liens du formulaire (« Créer ma boutique », « Se connecter ») : la règle des liens ne doit pas les aplatir */
.liens-formulaire a.btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--marque); background: var(--marque); color: #fff; text-decoration: none; }
.liens-formulaire a.btn:hover { background: var(--marque-fonce); border-color: var(--marque-fonce); color: #fff; text-decoration: none; }
.liens-formulaire a.btn-clair { background: var(--surface); color: var(--encre); border-color: var(--ligne-forte); }
.liens-formulaire a.btn-clair:hover { background: var(--marque-fond); color: var(--marque-texte); border-color: var(--marque); }

/* ---------- Contrat vendeur ---------- */
.contrat { max-width: 72ch; margin: 0 auto; padding: 8px 0 48px; }
.contrat h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 6px; }
.contrat-version { color: var(--discret); margin-bottom: 24px; }
.contrat h2 { font-size: 1.15rem; margin: 30px 0 8px; letter-spacing: -0.01em; }
.contrat p, .contrat li { line-height: 1.65; color: var(--encre-douce); }
.contrat p + p { margin-top: 10px; }
.contrat ul { margin: 8px 0 0 1.2rem; display: grid; gap: 4px; list-style: disc; }
.contrat strong { color: var(--encre); }
body.contrat-integre .entete { display: none; }
body.contrat-integre .page { padding-top: 12px; }
body.contrat-integre .contrat { padding-bottom: 12px; max-width: none; }
body.contrat-integre { background: var(--surface); }

/* Fenêtre d'acceptation du contrat et case à cocher */
.cadre-contrat { width: 100%; height: min(46vh, 420px); border: 1px solid var(--ligne-forte); border-radius: 10px; background: var(--surface); }
.case-ligne { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0; cursor: pointer; line-height: 1.5; color: var(--encre-douce); }
.case-ligne input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--marque); }
.case-ligne a { color: var(--marque-texte); font-weight: 600; }

body.contrat-integre .bouton-theme { display: none; }
#corps td:first-child small { display: block; font-weight: 500; }
