.rokit-outil {
    max-width: 480px;
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f7f9fa;
    font-family: inherit;
}

/* Quand un outil est placé dans [rokit_center], le bloc lui-même
   se centre (pas juste le texte à l'intérieur, qui reste aligné
   à gauche pour rester lisible). */
.rokit-center .rokit-outil {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    display: block;
}

.rokit-form {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
}

.rokit-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.rokit-form input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #d7dde1;
    border-radius: 8px;
    font-size: 1rem;
}

.rokit-form button {
    margin-top: 0.5rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background: #14b8a6;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.rokit-form button:hover {
    background: #0f9c8c;
}

.rokit-form select {
    padding: 0.6rem 0.8rem;
    border: 1px solid #d7dde1;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

.rokit-lien-telecharger {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.rokit-lien-telecharger:hover {
    background: #1e293b;
    color: #fff;
}

#rokit-qrcode-canvas-wrap {
    margin-top: 1rem;
}

#rokit-qrcode-canvas-wrap canvas {
    max-width: 100%;
    border: 1px solid #d7dde1;
    border-radius: 8px;
}

.rokit-checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.rokit-checkbox input[type="checkbox"] {
    width: auto;
}

.rokit-form input[type="range"] {
    width: 100%;
}

.rokit-mdp-resultat-wrap {
    margin-top: 1rem;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rokit-mdp-resultat-wrap code {
    background: #f0f6f6;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    color: #0f766e;
    font-size: 1rem;
    word-break: break-all;
    flex: 1;
}

.rokit-btn-copier-mdp {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: #14b8a6;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.rokit-btn-copier-mdp:hover {
    background: #0f9c8c;
}

.rokit-resultat {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.rokit-imc-profils {
    display: flex !important;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rokit-imc-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.rokit-imc-resultat-carte {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.rokit-imc-resultat-titre {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rokit-imc-resultat-chiffre {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.rokit-imc-resultat-categorie {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.rokit-imc-barre-wrap {
    text-align: left;
}

.rokit-imc-barre {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(to right, #3b82f6 0%, #3b82f6 14%, #22c55e 14%, #22c55e 40%, #f59e0b 40%, #f59e0b 60%, #ef4444 60%, #ef4444 100%);
    margin-bottom: 0.5rem;
}

.rokit-imc-curseur {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid #0f172a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: left 0.3s ease;
}

.rokit-imc-graduation {
    display: flex !important;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}

.rokit-imc-graduation span {
    flex: 1;
}

.rokit-pourcentage {
    text-align: left;
}

.rokit-pourcentage-onglets {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.rokit-pourcentage-question {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
    margin: 0 0 1rem;
    text-align: center;
}

.rokit-pourcentage-mode {
    display: flex !important;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.rokit-pourcentage-mode label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.rokit-pourcentage-mode input,
.rokit-pourcentage-mode select {
    padding: 0.7rem 0.9rem;
    border: 1px solid #d7dde1;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #fff;
}

.rokit-pourcentage #rokit-pourcentage-calculer {
    width: 100%;
    text-align: center;
}

.rokit-devises--v2 {
    padding: 0;
}

.rokit-mesure-categories {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.rokit-couleur-apercu {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

.rokit-couleur-codes {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
}

.rokit-couleur-code {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    color: #0f172a;
}

.rokit-couleur-code:hover {
    background: #f1f5f9;
}

.rokit-couleur-palette-titre {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rokit-couleur-palette {
    display: flex !important;
    gap: 0.5rem;
}

.rokit-couleur-pastille {
    flex: 1;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.rokit-couleur-pastille:hover {
    transform: scale(1.05);
}

.rokit-ipdf-zone-depot {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    color: #64748b;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rokit-ipdf-zone-depot:hover,
.rokit-ipdf-zone-depot--survol {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.rokit-ipdf-zone-icone {
    font-size: 2rem;
}

.rokit-ipdf-liste {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.rokit-ipdf-liste li {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: #0f172a;
}

.rokit-ipdf-supprimer {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.3rem;
}

.rokit-devises-montant-wrap {
    margin-bottom: 1.25rem;
}

.rokit-devises-montant-input {
    width: 100% !important;
    box-sizing: border-box;
    padding: 1rem;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px;
    font-size: 2rem !important;
    font-weight: 700;
    text-align: center;
    color: #0f172a !important;
    background: #fff !important;
}

.rokit-devises-montant-input:focus {
    outline: none;
    border-color: #14b8a6 !important;
}

.rokit-devises-selecteurs {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.rokit-devises-carte {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.rokit-devises-carte-label {
    display: block !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8 !important;
    margin-bottom: 0.35rem;
}

.rokit-devises-drapeau {
    display: block !important;
    font-size: 1.8rem;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.rokit-devises-select {
    width: 100% !important;
    box-sizing: border-box;
    border: none !important;
    background: transparent !important;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a !important;
    text-align: center;
    cursor: pointer;
}

.rokit-devises-inverser-v2 {
    flex-shrink: 0;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #14b8a6 !important;
    color: #fff !important;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(20,184,166,0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

.rokit-devises-inverser-v2:hover {
    background: #0f9c8c !important;
    transform: rotate(180deg);
}

.rokit-devises-resultat-carte {
    background: #0f172a !important;
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
}

.rokit-devises-resultat-principal {
    font-size: 1.7rem !important;
    font-weight: 700;
    color: #fff !important;
    line-height: 1.3;
}

.rokit-devises-resultat-taux {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8 !important;
}

.rokit-calories-resultats {
    display: flex !important;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.rokit-calories-bloc {
    flex: 1;
    background: #fff !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center !important;
    box-sizing: border-box;
    min-width: 0;
}

.rokit-calories-bloc--principal {
    background: #0f172a !important;
    border-color: #0f172a;
}

.rokit-calories-bloc--principal .rokit-calories-valeur,
.rokit-calories-bloc--principal .rokit-calories-label {
    color: #fff !important;
}

.rokit-calories-valeur {
    display: block !important;
    font-size: 1.6rem;
    font-weight: 700;
    color: #14b8a6 !important;
}

.rokit-calories-label {
    display: block !important;
    font-size: 0.75rem;
    color: #64748b !important;
    margin-top: 4px;
}

.rokit-chrono {
    text-align: center;
}

.rokit-chrono-affichage {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.rokit-chrono-boutons {
    display: flex !important;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rokit-btn-principal,
.rokit-btn-secondaire {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.rokit-btn-principal {
    background: #14b8a6;
    color: #fff;
}

.rokit-btn-principal:hover {
    background: #0f9c8c;
}

.rokit-btn-secondaire {
    background: #e2e8f0;
    color: #0f172a;
}

.rokit-btn-secondaire:hover {
    background: #cbd5e1;
}

.rokit-btn-principal:disabled,
.rokit-btn-secondaire:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rokit-chrono-tours {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.rokit-chrono-tours li {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.rokit-boussole {
    text-align: center;
}

.rokit-boussole-cadran-wrap {
    margin-top: 1rem;
}

.rokit-boussole-cadran {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #0f172a;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.1);
}

.rokit-boussole-nord {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    color: #ef4444;
    font-size: 0.85rem;
}

.rokit-boussole-aiguille {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 90px;
    margin-left: -2px;
    margin-top: -90px;
    background: linear-gradient(to bottom, #ef4444 0%, #ef4444 50%, #0f172a 50%, #0f172a 100%);
    transform-origin: bottom center;
    transition: transform 0.15s ease-out;
}

.rokit-boussole-degres {
    margin-top: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.rokit-boussole-direction {
    font-size: 1rem;
    color: #14b8a6;
    font-weight: 600;
}

.rokit-lorem-resultat-wrap {
    margin-top: 1rem;
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
}

.rokit-lorem-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d7dde1;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    background: #fff;
    color: #334155;
    font-family: inherit;
}

.rokit-lorem-resultat-wrap .rokit-btn-copier-mdp {
    align-self: flex-start;
}

.rokit-compteur-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.rokit-compteur-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.rokit-compteur-valeur {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #14b8a6;
}

.rokit-compteur-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.rokit-horloge {
    text-align: center;
}

.rokit-horloge-contenu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rokit-horloge-analogique {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.rokit-horloge-cadran {
    fill: #fff;
    stroke: #0f172a;
    stroke-width: 4;
}

.rokit-horloge-index {
    stroke: #0f172a;
    stroke-width: 3;
    stroke-linecap: round;
}

.rokit-horloge-chiffre {
    font-size: 14px;
    font-weight: 700;
    fill: #0f172a;
    text-anchor: middle;
    dominant-baseline: central;
    font-family: inherit;
}

.rokit-horloge-aiguille {
    stroke-linecap: round;
}

.rokit-horloge-aiguille--heures {
    stroke: #0f172a;
    stroke-width: 7;
}

.rokit-horloge-aiguille--minutes {
    stroke: #0f172a;
    stroke-width: 5;
}

.rokit-horloge-aiguille--secondes {
    stroke: #14b8a6;
    stroke-width: 2;
}

.rokit-horloge-centre {
    fill: #14b8a6;
}

.rokit-horloge-numerique {
    text-align: left;
}

.rokit-horloge-heure {
    font-size: 2.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.02em;
}

.rokit-horloge-date {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #14b8a6;
    font-weight: 600;
    text-transform: capitalize;
}

.rokit-calc-affichage {
    background: #0f172a !important;
    color: #fff !important;
    font-size: 2.4rem;
    font-weight: 600;
    text-align: right;
    padding: 1.2rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}

.rokit-calc-grille {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.6rem;
    width: 100%;
}

.rokit-calc-btn {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem 0;
    border-radius: 10px;
    background: #f1f5f9 !important;
    border: none !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a !important;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.15s ease;
    box-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

.rokit-calc-btn:hover {
    background: #e2e8f0 !important;
}

.rokit-calc-btn:active {
    transform: scale(0.94);
}

.rokit-calc-op {
    background: #14b8a6 !important;
    color: #fff !important;
}

.rokit-calc-op:hover {
    background: #0f9c8c !important;
}

.rokit-calc-fonction {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

.rokit-calc-fonction:hover {
    background: #b7c3d1 !important;
}

.rokit-calc-egal {
    background: #0f172a !important;
    color: #fff !important;
}

.rokit-calc-egal:hover {
    background: #14b8a6 !important;
}

.rokit-calc-zero {
    grid-column: span 2;
}

.rokit-metronome {
    text-align: center;
}

.rokit-metronome-bpm-affichage {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.rokit-metronome input[type="range"] {
    width: 100%;
    margin-bottom: 1rem;
}

.rokit-metronome-boutons {
    display: flex !important;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.rokit-metronome-pulse {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #e2e8f0;
    transition: none;
}

.rokit-metronome-pulse--actif {
    animation: rokit-pulse-anim 0.15s ease-out;
}

@keyframes rokit-pulse-anim {
    0% { background: #14b8a6; transform: scale(1.15); }
    100% { background: #e2e8f0; transform: scale(1); }
}

.rokit-metronome select {
    padding: 0.5rem 0.8rem;
    border: 1px solid #d7dde1;
    border-radius: 8px;
    background: #fff;
}

.rokit-minuteur {
    text-align: center;
}

.rokit-minuteur-saisie {
    display: flex !important;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rokit-minuteur-champ {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.rokit-minuteur-champ input {
    width: 70px;
    padding: 0.5rem;
    text-align: center;
    font-size: 1.3rem;
    border: 1px solid #d7dde1;
    border-radius: 8px;
}

.rokit-minuteur-champ label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.rokit-minuteur-affichage {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #0f172a;
    margin-bottom: 1rem;
}

.rokit-minuteur-boutons {
    display: flex !important;
    gap: 0.5rem;
    justify-content: center;
}

.rokit-tirage {
    text-align: center;
}

.rokit-tirage-onglets {
    display: flex !important;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.rokit-tirage-onglet {
    padding: 0.5rem 1.2rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
}

.rokit-tirage-onglet--actif {
    background: #14b8a6;
    color: #fff;
    border-color: #14b8a6;
}

.rokit-tirage-mode {
    margin-bottom: 1rem;
}

.rokit-tirage-resultat {
    margin-top: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    min-height: 3rem;
}

.rokit-tirage-resultat--anime {
    animation: rokit-tirage-apparition 0.3s ease-out;
}

@keyframes rokit-tirage-apparition {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.rokit-echecs {
    text-align: center;
}

.rokit-echecs-onglets {
    margin-bottom: 0.75rem;
}

.rokit-echecs-statut {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.rokit-echecs-plateau {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border: 3px solid #0f172a;
    border-radius: 6px;
    overflow: hidden;
}

.rokit-echecs-case {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 4vw, 2rem);
    cursor: pointer;
    user-select: none;
}

.rokit-echecs-case--claire {
    background: #f0d9b5;
}

.rokit-echecs-case--sombre {
    background: #b58863;
}

.rokit-echecs-case--selection {
    background: #14b8a6 !important;
}

.rokit-echecs-case--legal {
    box-shadow: inset 0 0 0 4px rgba(20, 184, 166, 0.7);
}

.rokit-echecs-case--echec {
    background: #ef4444 !important;
}

.rokit-echecs-boutons {
    display: flex !important;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.rokit-echecs-historique {
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #64748b;
    text-align: left;
    max-height: 100px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
