/*
Theme Name: Vlog Crypto
Theme URI: https://crypto.mooc-science.eu
Description: Thème enfant Vlog pour CERFA 2086 - Calculateur de Plus/Moins-Values Cryptos
Author: CAJI International
Author URI: https://caji-international.mooc-science.eu
Author Email: qr.sciences2020@gmail.com
Template: vlog
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vlog-crypto
Domain Path: /languages
Requires PHP: 7.4
Requires at least: 5.5
*/

/* IMPORTANT: Ne pas supprimer cette ligne - elle importe les styles du thème parent */
@import url('../vlog/style.css');

/* ===== STYLES PERSONNALISÉS VLOG CRYPTO ===== */

:root {
    --bg: #f7f5f0;
    --bg2: #fff;
    --bg3: #f0ede6;
    --bg4: #e8e4db;
    --marine: #0d2137;
    --marine2: #1a3a5c;
    --gold: #b8892a;
    --gold2: #d4a843;
    --gold-light: #fdf4e0;
    --border: #ddd9d0;
    --border2: #c8c3b8;
    --text: #1a1a1a;
    --text2: #4a5568;
    --text3: #8a8a8a;
    --green: #1a7a5e;
    --green-bg: #e8f7f2;
    --green-border: #a8ddd0;
    --red: #b91c1c;
    --red-bg: #fef2f2;
    --red-border: #fca5a5;
    --blue: #1d4ed8;
    --blue-bg: #eff6ff;
    --blue-border: #bfdbfe;
    --radius: 8px;
    --radius2: 12px;
    --shadow: 0 1px 4px rgba(13, 33, 55, 0.08), 0 4px 16px rgba(13, 33, 55, 0.06);
}

/* ===== PAGE CALCULATEUR ===== */
.cerfa-calculator-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg);
    min-height: 100vh;
}

.cerfa-calculator-container iframe {
    width: 100%;
    height: 100vh;
    border: none;
    border-radius: 0;
    display: block;
}

/* Masquer l'en-tête et le pied de page WordPress si nécessaire */
.page-calculateur-cerfa-2086 #masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-calculateur-cerfa-2086 .site-content {
    padding: 0;
    max-width: 100%;
}

.page-calculateur-cerfa-2086 .entry-content {
    max-width: 100%;
    padding: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cerfa-calculator-container iframe {
        height: 90vh;
    }
}

@media (max-width: 768px) {
    .cerfa-calculator-container {
        padding: 0;
    }
    
    .cerfa-calculator-container iframe {
        height: 100vh;
        min-height: 100vh;
    }
}

/* ===== ADMIN STYLES ===== */
.vlog-crypto-admin-notice {
    background: var(--blue-bg);
    border-left: 4px solid var(--blue);
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.vlog-crypto-admin-notice strong {
    color: var(--marine);
}

/* ===== ACCESSIBILITÉ ===== */
.cerfa-calculator-container iframe:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ===== IMPRESSION ===== */
@media print {
    .cerfa-calculator-container {
        padding: 0;
        background: white;
    }
    
    .cerfa-calculator-container iframe {
        display: none;
    }
}

/* ===== OPTIMISATION PERFORMANCE ===== */
.cerfa-calculator-container {
    contain: layout style paint;
}

/* ===== THÈME SOMBRE (optionnel) ===== */
@media (prefers-color-scheme: dark) {
    .cerfa-calculator-container {
        background: #1a1a1a;
    }
    
    .cerfa-calculator-container iframe {
        filter: invert(0.95);
    }
}

/* ===== ZOOM ET SCALING ===== */
@media (min-width: 1400px) {
    .cerfa-calculator-container {
        padding: 20px;
        margin: 20px auto;
        border-radius: 12px;
        box-shadow: var(--shadow);
    }
}

/* ===== STATES ===== */
.cerfa-calculator-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cerfa-calculator-loading::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== COMPATIBILITÉ NAVIGATEURS ===== */
.cerfa-calculator-container {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cerfa-calculator-container iframe {
    -webkit-appearance: none;
    appearance: none;
}
