/* /sites/itylos.com/assets/css/style.css */

/* =========================================
   POLICE OUTFIT (souveraine, auto-hébergée)
========================================= */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/outfit-v15-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/outfit-v15-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/outfit-v15-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/outfit-v15-latin-900.woff2') format('woff2'); }

/* =========================================
   DARK MODE (défaut)
========================================= */
:root {
    --bg-color: #000000;
    --bg-elevated: #111111;
    --bg-surface: #0a0a0a;
    --box-bg: #111111;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #06b6d4;
    --secondary: #475569;
    --secondary-hover: #334155;
    --border: #334155;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --header-bg: rgba(0, 0, 0, 0.65);
    --header-border: rgba(255, 255, 255, 0.04);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --glow-accent: rgba(6, 182, 212, 0.3);
    --footer-bg: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
    --surface-overlay: rgba(0, 0, 0, 0.85);
    --surface-card: rgba(0, 0, 0, 0.92);
    --surface-dim: rgba(0, 0, 0, 0.5);
    --surface-deep: rgba(0, 0, 0, 0.4);
    --overlay-hover: rgba(255, 255, 255, 0.02);
    --overlay-active: rgba(255, 255, 255, 0.05);
    --border-card: rgba(6, 182, 212, 0.25);
    --glow-card: 0 0 12px rgba(6, 182, 212, 0.06);
}

/* =========================================
   LIGHT MODE (prefers-color-scheme: light)
   Aucun localStorage, détection système pure
========================================= */
@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f8f9fa;
        --bg-elevated: #ffffff;
        --bg-surface: #f1f3f5;
        --box-bg: #ffffff;
        --text-main: #0f172a;
        --text-muted: #475569;
        --text-subtle: #94a3b8;
        --primary: #2563eb;
        --primary-hover: #1d4ed8;
        --accent: #0891b2;
        --secondary: #e2e8f0;
        --secondary-hover: #cbd5e1;
        --border: #e2e8f0;
        --border-subtle: rgba(0, 0, 0, 0.12);
        --success: #059669;
        --error: #dc2626;
        --warning: #d97706;
        --header-bg: rgba(248, 249, 250, 0.85);
        --header-border: rgba(0, 0, 0, 0.06);
        --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
        --glow-accent: rgba(8, 145, 178, 0.15);
        --footer-bg: linear-gradient(to top, rgba(241, 243, 245, 0.95), rgba(248, 249, 250, 0));
        --surface-overlay: rgba(241, 243, 245, 0.8);
        --surface-card: rgba(255, 255, 255, 0.9);
        --surface-dim: rgba(0, 0, 0, 0.04);
        --surface-deep: rgba(0, 0, 0, 0.03);
        --overlay-hover: rgba(0, 0, 0, 0.02);
        --overlay-active: rgba(0, 0, 0, 0.04);
        --border-card: rgba(6, 182, 212, 0.2);
        --glow-card: 0 0 12px rgba(6, 182, 212, 0.05);
    }

    body.dark-theme {
        background-color: var(--bg-color);
        color: var(--text-main);
    }

    /* Header glassmorphism adapté au light */
    .site-header {
        background: var(--header-bg) !important;
        border-bottom-color: var(--header-border) !important;
    }

    .brand-title { color: var(--text-main) !important; }
    .brand-baseline { color: var(--accent) !important; }
    a.nav-link { color: var(--text-muted) !important; }
    a.nav-link:hover, a.nav-link.active { color: var(--text-main) !important; }

    /* Inputs */
    textarea, input[type="text"], input[type="password"], select {
        background: var(--bg-surface);
        border-color: var(--border);
        color: var(--text-main);
    }

    /* Burger mobile */
    .burger-btn span { background-color: var(--text-muted); }

    /* Footer */
    .site-footer { background: var(--footer-bg) !important; }
    .footer-brand-title { color: var(--text-main) !important; }
    .footer-description { color: var(--text-muted) !important; }
    .footer-col h3 { color: var(--text-main) !important; }
    .footer-nav-link { color: var(--text-muted) !important; }
    .footer-nav-link:hover { color: var(--accent) !important; }
    .footer-copyright { color: var(--text-subtle) !important; }
    .footer-legal-links a { color: var(--text-subtle) !important; }

    /* Cards et boîtes */
    .creation-box, .result-box, .verify-box {
        background: var(--box-bg);
        border-color: var(--border);
        box-shadow: var(--card-shadow);
    }

    /* Boutons */
    .btn-secondary { background: var(--secondary); color: var(--text-main); }
    .btn-primary:disabled { background: var(--secondary); }

    /* Papillon : ombre adaptée au light mode */
    .brand-logo { filter: drop-shadow(0 0 10px var(--glow-accent)); }
    .footer-brand-logo { filter: drop-shadow(0 0 8px var(--glow-accent)); }

    /* Placeholders visibles en light */
    ::placeholder { color: var(--text-subtle) !important; opacity: 0.6 !important; }
    ::-webkit-input-placeholder { color: var(--text-subtle) !important; opacity: 0.6 !important; }

    /* Textes dans les inputs et textareas */
    textarea, input[type="text"], input[type="password"], input[type="url"], select {
        color: var(--text-main) !important;
    }

    /* Sub-textes, descriptions, notes */
    small, .consent-desc, .sub-btn-text, .info-note, .screen-tip, .provider-notice {
        color: var(--text-muted) !important;
    }
}

/* =========================================
   LIGHT OVERRIDE : Quand l'utilisateur clique le toggle (session only)
   Réplique les mêmes variables que @media prefers-color-scheme: light
========================================= */
html.light-override {
    --bg-color: #f8f9fa;
    --bg-elevated: #ffffff;
    --bg-surface: #f1f3f5;
    --box-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-subtle: #94a3b8;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #0891b2;
    --secondary: #e2e8f0;
    --secondary-hover: #cbd5e1;
    --border: #e2e8f0;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --success: #059669;
    --error: #dc2626;
    --warning: #d97706;
    --header-bg: rgba(248, 249, 250, 0.85);
    --header-border: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --glow-accent: rgba(8, 145, 178, 0.15);
    --footer-bg: linear-gradient(to top, rgba(241, 243, 245, 0.95), rgba(248, 249, 250, 0));
    --surface-overlay: rgba(241, 243, 245, 0.8);
    --surface-card: rgba(255, 255, 255, 0.9);
    --surface-dim: rgba(0, 0, 0, 0.04);
    --surface-deep: rgba(0, 0, 0, 0.03);
    --overlay-hover: rgba(0, 0, 0, 0.02);
    --overlay-active: rgba(0, 0, 0, 0.04);
}

html.light-override body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-main);
}
html.light-override .site-header { background: var(--header-bg) !important; border-bottom-color: var(--header-border) !important; }
html.light-override .brand-title { color: var(--text-main) !important; }
html.light-override .brand-baseline { color: var(--accent) !important; }
html.light-override a.nav-link { color: var(--text-muted) !important; }
html.light-override a.nav-link:hover, html.light-override a.nav-link.active { color: var(--text-main) !important; }
html.light-override textarea, html.light-override input[type="text"], html.light-override input[type="password"], html.light-override select { background: var(--bg-surface); border-color: var(--border); color: var(--text-main); }
html.light-override .burger-btn span { background-color: var(--text-muted); }
html.light-override .site-footer { background: var(--footer-bg) !important; }
html.light-override .footer-brand-title { color: var(--text-main) !important; }
html.light-override .footer-description { color: var(--text-muted) !important; }
html.light-override .footer-col h3 { color: var(--text-main) !important; }
html.light-override .footer-nav-link { color: var(--text-muted) !important; }
html.light-override .footer-copyright { color: var(--text-subtle) !important; }
html.light-override .footer-legal-links a { color: var(--text-subtle) !important; }
html.light-override .creation-box, html.light-override .result-box, html.light-override .verify-box { background: var(--box-bg); border-color: var(--border); box-shadow: var(--card-shadow); }
html.light-override .brand-logo { filter: drop-shadow(0 0 10px var(--glow-accent)); }
html.light-override .footer-brand-logo { filter: drop-shadow(0 0 8px var(--glow-accent)); }
html.light-override ::placeholder { color: var(--text-subtle) !important; opacity: 0.6 !important; }
html.light-override ::-webkit-input-placeholder { color: var(--text-subtle) !important; opacity: 0.6 !important; }
html.light-override textarea, html.light-override input[type="text"], html.light-override input[type="password"], html.light-override input[type="url"], html.light-override select { color: var(--text-main) !important; }
html.light-override small, html.light-override .consent-desc, html.light-override .sub-btn-text, html.light-override .info-note, html.light-override .screen-tip, html.light-override .provider-notice { color: var(--text-muted) !important; }

/* =========================================
   DARK OVERRIDE : Quand l'utilisateur clique le toggle sur un système light
   Force les variables dark même si @media prefers-color-scheme: light est actif
========================================= */
html.dark-override {
    --bg-color: #000000;
    --bg-elevated: #111111;
    --bg-surface: #0a0a0a;
    --box-bg: #111111;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #06b6d4;
    --secondary: #475569;
    --secondary-hover: #334155;
    --border: #334155;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --header-bg: rgba(0, 0, 0, 0.65);
    --header-border: rgba(255, 255, 255, 0.04);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --glow-accent: rgba(6, 182, 212, 0.3);
    --footer-bg: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
    --surface-overlay: rgba(0, 0, 0, 0.85);
    --surface-card: rgba(0, 0, 0, 0.92);
    --surface-dim: rgba(0, 0, 0, 0.5);
    --surface-deep: rgba(0, 0, 0, 0.4);
    --overlay-hover: rgba(255, 255, 255, 0.02);
    --overlay-active: rgba(255, 255, 255, 0.05);
}

html.dark-override body.dark-theme { background-color: var(--bg-color); color: var(--text-main); }
html.dark-override .site-header { background: var(--header-bg) !important; border-bottom-color: var(--header-border) !important; }
html.dark-override .brand-title { color: var(--text-main) !important; }
html.dark-override .brand-baseline { color: var(--accent) !important; }
html.dark-override a.nav-link { color: var(--text-muted) !important; }
html.dark-override a.nav-link:hover, html.dark-override a.nav-link.active { color: var(--text-main) !important; }
html.dark-override textarea, html.dark-override input[type="text"], html.dark-override input[type="password"], html.dark-override select { background: var(--bg-color); border-color: var(--border); color: var(--text-main); }
html.dark-override .burger-btn span { background-color: var(--text-main); }
html.dark-override .site-footer { background: #000000 !important; }
html.dark-override .footer-brand-title { color: var(--text-main) !important; }
html.dark-override .footer-description { color: var(--text-muted) !important; }
html.dark-override .footer-col h3 { color: var(--text-subtle) !important; }
html.dark-override .footer-nav-link { color: var(--text-muted) !important; }
html.dark-override .footer-copyright { color: var(--text-subtle) !important; }
html.dark-override .footer-legal-links a { color: var(--text-subtle) !important; }
html.dark-override .creation-box, html.dark-override .result-box, html.dark-override .verify-box { background: var(--box-bg); border-color: var(--border); box-shadow: var(--card-shadow); }
html.dark-override .brand-logo { filter: drop-shadow(0 0 10px var(--glow-accent)); }
html.dark-override .footer-brand-logo { filter: drop-shadow(0 0 8px var(--glow-accent)); }
html.dark-override ::placeholder { color: var(--text-subtle) !important; opacity: 0.8 !important; }
html.dark-override ::-webkit-input-placeholder { color: var(--text-subtle) !important; opacity: 0.8 !important; }
html.dark-override textarea, html.dark-override input[type="text"], html.dark-override input[type="password"], html.dark-override input[type="url"], html.dark-override select { color: var(--text-main) !important; }
html.dark-override small, html.dark-override .consent-desc, html.dark-override .sub-btn-text, html.dark-override .info-note, html.dark-override .screen-tip, html.dark-override .provider-notice { color: var(--text-muted) !important; }
html.dark-override .btn-secondary { background: var(--secondary); color: var(--text-main); }

body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0; /* Padding retiré pour permettre au menu fixe de prendre toute la largeur */
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 15px; /* Padding déplacé dans le container */
}

/* En-tête de contenu (H1) */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header h1 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Boîtes de contenu */
.creation-box, .result-box, .verify-box {
    background: var(--box-bg);
    border: 1.5px solid var(--border-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), var(--glow-card);
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

textarea, input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 0.85rem;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted) !important;
}

/* Boutons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-primary:disabled {
    background-color: var(--secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

/* Layout spécifique */
.password-input-group {
    display: flex;
    gap: 10px;
}

.password-input-group .btn {
    width: auto;
    white-space: nowrap;
}

/* Utilitaires */
[style*="display: none"] {
    display: none !important;
}

/* =========================================
   FOOTER V1
========================================= */
.site-footer { background: #080c17; border-top: 1px solid #1e293b; margin-top: auto; width: 100%; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; }

.footer-col h3 { color: #64748b; font-size: 0.8em; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 25px; font-weight: 800; }
.footer-col p { color: #94a3b8; font-size: 0.85em; line-height: 1.8; margin-bottom: 15px; }

/* Liste Tech avec points Néon */
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { color: #94a3b8; font-size: 0.85em; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-style: italic; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-cyan { background: #06b6d4; box-shadow: 0 0 10px #06b6d4; }
.dot-blue { background: #3b82f6; box-shadow: 0 0 10px #3b82f6; }
.dot-green { background: #10b981; box-shadow: 0 0 10px #10b981; }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }

/* Badges */
.badge { border: 1px solid currentColor; padding: 3px 6px; border-radius: 4px; font-size: 0.7em; font-weight: 800; letter-spacing: 1px; font-style: normal; }
.badge-pgp { color: #94a3b8; border-color: #475569; margin-left: auto; }
.badge-rgpd, .badge-oss { color: #f8fafc; border-color: #f8fafc; margin-right: 15px; display: inline-block; margin-top: 10px; }

/* Sub-Footer */
.footer-bottom { border-top: 1px solid #1e293b; padding: 25px 20px; background: #050810; }
.footer-bottom-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #64748b; text-decoration: none; font-size: 0.75em; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-right: 25px; transition: 0.3s; }
.footer-links a:hover { color: #06b6d4; }
.footer-copyright { color: #64748b; font-size: 0.75em; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; }
.audit-badge { text-align: center; margin-top: 25px; font-weight: 800; color: #334155; letter-spacing: 5px; font-size: 1.1em; }


.footer-logo {
    justify-content: flex-start;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-butterfly {
    font-size: 1.5rem;
}

.footer-tagline {
    color: #64748b;
    font-style: italic;
}

.dot-slate {
    background: #475569;
}

/* =========================================
   LISERÉ CYAN GLOBAL — toutes les box/cards/panels du site
========================================= */
.premium-box, .card-finesse, .verify-card, .info-card, .panel,
.feature-card, .principle-card, .doc-box, .seo-card,
.hero-summary, .consent-box, .punchline-box, .highlight-quote,
.thesis-item, .comp-col, .step-content, .warning-box,
.llm-summary-box, .cta-section, .install-box, .escalation-box,
.contact-premium-block, .canary-card {
    border: 1.5px solid var(--border-card) !important;
    box-shadow: var(--glow-card) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* =========================================
   PWA INSTALL
========================================= */
.pwa-install-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-card);
    color: var(--accent);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    box-shadow: var(--glow-card), 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.pwa-install-btn.visible { display: inline-flex; }
.pwa-install-btn:hover { background: rgba(6, 182, 212, 0.1); transform: translateY(-2px); }

.ios-install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--bg-elevated);
    border-top: 1.5px solid var(--border-card);
    color: var(--text-main);
    padding: 14px 20px;
    font-size: 0.85rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}
.ios-install-banner.visible { display: flex; }
.ios-install-banner strong { color: var(--accent); }
.ios-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
}

/* =========================================
   BACK TO TOP — Papillon flottant
========================================= */
.back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 800;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(6, 182, 212, 0.4);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.1);
    animation: pulse-btt 2.5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.back-to-top-btn.visible { display: flex; }
.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}
.btt-butterfly {
    width: 28px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}
@keyframes pulse-btt {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* =========================================
   BUTTERFLY CONSTELLATION BACKGROUND
========================================= */
.butterfly-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   FONDATIONS GLOBALES
========================================= */

/* Reset strict — rien ne dépasse */
html { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
input, textarea, select, button { max-width: 100%; box-sizing: border-box; }

/* Anti-overflow global : les textes longs wrappent au lieu de déborder */
p, h1, h2, h3, h4, li, span, a, label, td, th {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Les codes/hashes monospace wrappent aussi */
code, pre, .id-hash, .hash-visible, .hash-masked, .root-hash-value {
    overflow-wrap: break-word;
    word-break: break-all;
}

/* Tous les boutons sont box-sized */
.btn, .btn-neon, .btn-glow, .btn-primary, .btn-secondary, .btn-danger, .btn-download, .btn-outline, .btn-submit, .btn-sync, .btn-purge, .ctrl-btn {
    box-sizing: border-box;
}

/* Cards et containers — box-sizing strict sans overflow hidden (les box-shadows doivent rester visibles) */
[class*="card-"], [class*="container"], [class*="-box"], .creation-box, .result-box, .verify-box {
    box-sizing: border-box;
}

/* =========================================
   MAIN-CONTENT : Espacement unifié (toutes les pages)
   Le header fixe fait 65px. Ce padding crée l'espace de respiration.
========================================= */
.main-content {
    padding: 15px 4% 0;
    min-height: calc(100vh - 65px);
}

/* =========================================
   AÉRATION DU TEXTE : Cohérence typographique
========================================= */
p { margin-bottom: 1em; }
h1, h2, h3, h4 { margin-top: 0; }
h1 { margin-bottom: 1.2em; }
h2 { margin-bottom: 1em; }
h3 { margin-bottom: 0.8em; }

/* Liens globaux */
a { color: #06b6d4; transition: color 0.2s ease; }
a:hover { color: #22d3ee; }

/* Signature ITYLOS : le Y est toujours cyan */
.brand-y { color: #06b6d4; }
/* Quand le texte ITYLOS est déjà en cyan, le Y passe en blanc */
[style*="color: #06b6d4"] .brand-y,
[style*="color:var(--accent)"] .brand-y,
.text-accent .brand-y { color: #fff; }

/* =========================================
   BOUTONS : Taille tactile minimum 44px, cohérence visuelle
========================================= */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   RESPONSIVE : 3 breakpoints cohérents
========================================= */

/* --- TABLETTE PAYSAGE (< 1100px) --- */
@media (max-width: 1100px) {
    .main-content {
        padding: 35px 4% 0;
    }
}

/* --- TABLETTE (< 768px) --- */
@media (max-width: 768px) {
    .main-content {
        padding: 25px 3% 0;
    }

    .container {
        padding: 15px 12px;
    }

    .creation-box, .result-box, .verify-box {
        padding: 1.2rem;
        border-radius: 10px;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .btn-primary {
        width: 100%;
    }
}

/* --- MOBILE (< 480px) --- */
@media (max-width: 480px) {
    .main-content {
        padding: 20px 12px 0;
    }

    .container {
        padding: 10px 8px;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }

    textarea {
        min-height: 100px;
    }

    h1 { font-size: 1.5rem; margin-bottom: 0.8em; }
    h2 { font-size: 1.2rem; }
}

/* =========================================
   UTILITAIRES CSP-SAFE (remplace les style="" inline)
========================================= */

/* --- Marges --- */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-60 { margin-top: 60px; }
.mb-0 { margin-bottom: 0; }
.mb-15 { margin-bottom: 15px; }
.mb-25 { margin-bottom: 25px; }

/* --- Texte --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-italic { font-style: italic; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-md { font-size: 0.95rem; }
.text-lg { font-size: 1.1rem; }
.lh-16 { line-height: 1.6; }
.lh-17 { line-height: 1.7; }
.fw-bold { font-weight: bold; }

/* --- Couleurs --- */
.c-main { color: var(--text-main); }
.c-muted { color: var(--text-muted); }
.c-subtle { color: var(--text-subtle); }
.c-accent { color: var(--accent); }
.c-success { color: var(--success); }
.c-error { color: var(--error); }
.c-warning { color: var(--warning); }
.c-pink { color: #ec4899; }
.c-purple { color: #8b5cf6; }
.c-rose-light { color: #fca5a5; }
.c-purple-light { color: #c4b5fd; }
.c-purple-mid { color: #a78bfa; }

/* --- Layout --- */
.w-full { width: 100%; }
.inline-icon { display: inline-flex; align-items: center; gap: 6px; }
.d-inline-block { display: inline-block; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }

/* --- Éléments de page spécifiques --- */
.section-heading-light { color: var(--text-main); text-align: center; font-weight: 300; font-size: 1.5rem; margin-top: 60px; }
.editorial-center { text-align: center; font-size: 1.1rem; margin-top: 20px; }
.editorial-center-sm { text-align: center; margin-bottom: 20px; }

/* --- Forge : variantes de couleur par mode --- */
.btn-regen-phrase { width: 100%; background: linear-gradient(135deg, var(--warning), #ea580c); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.btn-regen-hybrid { width: 100%; background: linear-gradient(135deg, #ec4899, #be185d); box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3); }
.btn-regen-api { width: 100%; background: linear-gradient(135deg, var(--success), #059669); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-regen-memory { width: 100%; background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.stat-entropy { border-color: rgba(6, 182, 212, 0.3); }

/* --- Forge : boîte mémoire --- */
.warning-box-purple { border-color: rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.05); border-left-color: #8b5cf6; margin-bottom: 25px; }

/* --- Forge : modals --- */
.modal-sm { max-width: 400px; }
.modal-md { max-width: 650px; }
.modal-title { color: var(--text-main); margin-top: 0; line-height: 1.4; }
.modal-title-mb { color: var(--text-main); margin-top: 0; margin-bottom: 20px; line-height: 1.4; }
.modal-warning { color: var(--error); font-size: 0.85rem; font-weight: bold; margin: 0; line-height: 1.6; }
.modal-limit-note { color: var(--text-subtle); font-size: 0.75rem; text-align: right; margin-top: -5px; margin-bottom: 15px; font-style: italic; line-height: 1.5; }
.export-warning-text { color: #fca5a5; font-size: 0.85rem; line-height: 1.5; display: inline-block; margin-top: 5px; }

/* --- Contact : card erreur --- */
.info-card-error { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.02); }
.info-title-error { color: #fca5a5; }

/* --- Read : éléments spécifiques --- */
.branding-box-center { text-align: center; }
.password-box-spaced { margin-bottom: 25px; }
.screen-tip-spaced { margin-top: 30px; }
.burn-butterfly-size { height: 50px; }

/* --- Legal / Terms --- */
.legal-note { margin-top: 15px; font-size: 0.85rem; font-style: italic; color: var(--text-main); }
.legal-heading-mt { margin-top: 30px; }
.legal-block-mt { margin-top: 20px; }
.legal-center { text-align: center; margin-top: 30px; }

/* --- Privacy --- */
.privacy-note { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* --- Security Policy --- */
.doc-box-mb20 { margin-bottom: 20px; }
.doc-box-mb30 { margin-bottom: 30px; }
.legal-note-sm { margin-top: 10px; font-size: 0.85rem; }
.editorial-mt30-center { margin-top: 30px; text-align: center; }
.legal-disclaimer { font-size: 0.95rem; color: var(--text-subtle); }

/* --- Transparence --- */
.empty-registry { text-align: center; color: var(--text-subtle); padding: 30px; }

/* --- New Secret --- */
.hero-eyebrow-success { color: var(--success); }
.section-title-full-center { width: 100%; justify-content: center; }

/* --- Standard list overrides --- */
.standard-list-mt20 { margin-top: 20px; }

/* --- Guide --- */
.guide-punchline { text-align: center; margin-top: 25px; font-size: 1.1rem; }
.guide-cycle-intro { text-align: center; margin-bottom: 20px; }

/* --- Security badges flottants (au-dessus de la box) --- */
.security-badges-floating {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.sec-badge-mini {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-subtle);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sec-badge-mini .svg-icon { color: var(--accent); }

/* --- Hero brand name (page accueil) --- */
.hero-brand-name {
    color: var(--text-main);
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 15px 0;
    line-height: 1;
}