/* =========================================
   MYSIMPLECSS FRAMEWORK
   Version initiale — Thème sombre par défaut
   ========================================= */

/* =========================================
   1. FONTS (Self-hosted Roboto)
   ========================================= */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* =========================================
   2. DESIGN TOKENS — THÈME SOMBRE (Défaut)
   ========================================= */
:root {
    /* --- Fonds & Surfaces --- */
    --bg-color: #1e1e1e;
    --surface-bg: #272727;
    --card-bg: #3d3d3d;
    --input-bg: #2a2a2a;

    /* --- Textes --- */
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --text-inverse: #000000;

    /* --- Bordures --- */
    --border-color: #444444;

    /* --- Accent 1 : Cyan (Primary) --- */
    --primary: #8bb6c7;
    --primary-light: #a8c9d6;
    --primary-dark: #688895;
    --primary-bg: rgba(139, 182, 199, 0.15);

    /* --- Accent 2 : Orange clair (Secondary) --- */
    --secondary: #fccb8d;
    --secondary-light: #fde2bf;
    --secondary-dark: #f99f2d;
    --secondary-bg: rgba(252, 203, 141, 0.15);

    /* --- Accent 3 : Corail (Tertiary) --- */
    --tertiary: #e98675;
    --tertiary-light: #efa89c;
    --tertiary-dark: #dd4329;
    --tertiary-bg: rgba(233, 134, 117, 0.15);

    /* --- Couleurs sémantiques --- */
    --success: #81c995;
    --success-bg: #155724;
    --success-text: #d4edda;

    --danger: #f2b8b5;
    --danger-bg: #721c24;
    --danger-text: #f8d7da;

    --warning: #f4c768;
    --warning-bg: #7e5200;
    --warning-text: #3f2c00;

    --info: #81d4fa;
    --info-bg: #004d7a;
    --info-text: #001f3d;

    /* --- Ombres --- */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.5);

    /* --- Espacements --- */
    --spacer-xs: 0.25rem;
    --spacer-sm: 0.5rem;
    --spacer-md: 1rem;
    --spacer-lg: 1.5rem;
    --spacer-xl: 2rem;
    --spacer-xxl: 3rem;

    /* --- Formes --- */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-pill: 0px;

    /* --- Typographie --- */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* --- Transitions --- */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.2s ease;

    /* --- Container --- */
    --container-width: 1200px;
}

/* =========================================
   3. THÈME CLAIR (Auto + Manuel)
   ========================================= */

/* Auto-détection OS */
@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f5f5f5;
        --surface-bg: #ffffff;
        --card-bg: #ffffff;
        --input-bg: #eeeeee;

        --text-main: #333333;
        --text-muted: #666666;
        --text-inverse: #ffffff;

        --border-color: #cccccc;

        --primary: #8bb6c7;
        --primary-light: #a8c9d6;
        --primary-dark: #688895;

        --secondary: #fccb8d;
        --secondary-light: #fde2bf;
        --secondary-dark: #f99618;

        --tertiary: #e98675;
        --tertiary-light: #efa89c;
        --tertiary-dark: #d23b21;

        --success: #198754;
        --danger: #dc3545;
        --warning: #d97706;
        --info: #0ea5e9;

        --success-bg: #d4edda;
        --success-text: #155724;
        --danger-bg: #f8d7da;
        --danger-text: #721c24;
        --warning-bg: #fff3cd;
        --warning-text: #856404;
        --info-bg: #d1ecf1;
        --info-text: #0c5460;

        --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
        --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
        --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
        --shadow-xl: 0 8px 32px rgba(0,0,0,0.15);
    }

}

/* Manuel : classe .theme-light sur <html> ou <body> */
.theme-light,
.theme-light :root {
    --bg-color: #f5f5f5;
    --surface-bg: #ffffff;
    --card-bg: #ffffff;
    --input-bg: #eeeeee;
    --text-main: #333333;
    --text-muted: #666666;
    --text-inverse: #ffffff;
    --border-color: #cccccc;
    --primary: #8bb6c7;
    --primary-light: #a8c9d6;
    --primary-dark: #688895;
    --secondary: #fccb8d;
    --secondary-light: #fde2bf;
    --secondary-dark: #f99618;
    --tertiary: #e98675;
    --tertiary-light: #efa89c;
    --tertiary-dark: #d23b21;
    --success: #198754;
    --danger: #dc3545;
    --warning: #d97706;
    --info: #0ea5e9;
    --success-bg: #d4edda;
    --success-text: #155724;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --info-bg: #d1ecf1;
    --info-text: #0c5460;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.15);
}


/* Contraste texte sur accents clairs */
.theme-light .btn-primary,
.theme-light .btn-secondary,
.theme-light .btn-tertiary,
.theme-light .btn-outline-primary:hover,
.theme-light .btn-outline-secondary:hover,
.theme-light .btn-outline-tertiary:hover,
.theme-light .bg-primary,
.theme-light .bg-secondary,
.theme-light .bg-tertiary,
.theme-light .tab-btn.active,
.theme-light .pagination .active,
.theme-light .nav-links a,
.theme-light .nav-links button {
    color: #000000;
}

/* Contraste liens et texte coloré sur fond blanc */
.theme-light a,
.theme-light .text-primary { color: #1a4a5c; }
.theme-light .text-secondary { color: #894d00; }
.theme-light .text-tertiary { color: #7a1200; }

.theme-light .hero-logo .logo-dark { display: none; }
.theme-light .hero-logo .logo-light { display: block; }

/* Forcer le sombre (classe manuelle) */
.theme-dark,
.theme-dark :root {
    --bg-color: #1e1e1e;
    --surface-bg: #272727;
    --card-bg: #3d3d3d;
    --input-bg: #2a2a2a;
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --text-inverse: #000000;
    --border-color: #444444;
    --primary: #8bb6c7;
    --primary-light: #a8c9d6;
    --primary-dark: #688895;
    --secondary: #fccb8d;
    --secondary-light: #fde2bf;
    --secondary-dark: #f99f2d;
    --tertiary: #e98675;
    --tertiary-light: #efa89c;
    --tertiary-dark: #dd4329;
    --success-bg: #155724;
    --success-text: #d4edda;
    --danger-bg: #721c24;
    --danger-text: #f8d7da;
    --warning-bg: #7e5200;
    --warning-text: #ffb72b;
    --info-bg: #004d7a;
    --info-text: #95e9ff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.5);
}

/* =========================================
   4. RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: var(--spacer-md);
    font-weight: 500;
    line-height: 1.3;
}
h1 { font-size: 2.25rem; letter-spacing: -0.5px; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; }

p { margin-top: 0; margin-bottom: var(--spacer-md); }

a { color: var(--primary); text-decoration: none; transition: var(--transition-base); }
a:hover { opacity: 0.85; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--border-color); margin: var(--spacer-lg) 0; }

/* =========================================
   5. LAYOUT
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--spacer-md); width: 100%; }
.container-sm { max-width: 640px; }
.container-md { max-width: 960px; }
.container-lg { max-width: 1200px; }
.container-xl { max-width: 1400px; }

.row { display: flex; flex-wrap: wrap; margin-left: calc(var(--spacer-sm) * -1); margin-right: calc(var(--spacer-sm) * -1); }

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding-left: var(--spacer-sm); padding-right: var(--spacer-sm); flex-basis: 0; flex-grow: 1; max-width: 100%;
}
.col-1  { flex: 0 0 8.33333%;  max-width: 8.33333%; }
.col-2  { flex: 0 0 16.66666%; max-width: 16.66666%; }
.col-3  { flex: 0 0 25%;       max-width: 25%; }
.col-4  { flex: 0 0 33.33333%; max-width: 33.33333%; }
.col-5  { flex: 0 0 41.66666%; max-width: 41.66666%; }
.col-6  { flex: 0 0 50%;       max-width: 50%; }
.col-7  { flex: 0 0 58.33333%; max-width: 58.33333%; }
.col-8  { flex: 0 0 66.66666%; max-width: 66.66666%; }
.col-9  { flex: 0 0 75%;       max-width: 75%; }
.col-10 { flex: 0 0 83.33333%; max-width: 83.33333%; }
.col-11 { flex: 0 0 91.66666%; max-width: 91.66666%; }
.col-12 { flex: 0 0 100%;      max-width: 100%; }

/* =========================================
   6. TYPOGRAPHY UTILITIES
   ========================================= */
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }

.font-light  { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold   { font-weight: 700; }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-justify { text-align: justify; }

.text-muted     { color: var(--text-muted); }
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary  { color: var(--tertiary); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }
.text-warning   { color: var(--warning); }
.text-info      { color: var(--info); }

.text-monospace { font-family: var(--font-mono); }

.leading-tight  { line-height: 1.25; }
.leading-normal { line-height: 1.6; }
.leading-loose  { line-height: 2; }

/* =========================================
   7. BUTTONS
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.2rem; border-radius: var(--radius-pill);
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; border: 1px solid transparent;
    transition: var(--transition-base); white-space: nowrap;
    line-height: 1.2; vertical-align: middle; height: 42px;
    font-family: var(--font-family); color: var(--text-inverse);
    background-color: var(--border-color);
}
.btn:active { transform: scale(0.98); }
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn:disabled, .btn.disabled {
    background-color: var(--border-color); color: var(--text-muted);
    cursor: not-allowed; opacity: 0.6; transform: none;
}

/* Sizes */
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; height: 34px; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; height: 50px; }

/* Variants filled */
.btn-primary   { background: var(--primary);   border-color: var(--primary);   color: var(--text-inverse); }
.btn-primary:hover   { background: var(--primary-dark);   border-color: var(--primary-dark); }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); color: var(--text-inverse); }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }
.btn-tertiary  { background: var(--tertiary);  border-color: var(--tertiary);  color: var(--text-inverse); }
.btn-tertiary:hover  { background: var(--tertiary-dark);  border-color: var(--tertiary-dark); }
.btn-success   { background: var(--success);   border-color: var(--success);   color: var(--text-inverse); }
.btn-success:hover   { filter: brightness(0.9); }
.btn-danger    { background: var(--danger);    border-color: var(--danger);    color: var(--text-inverse); }
.btn-danger:hover    { filter: brightness(0.9); }
.btn-warning   { background: var(--warning);   border-color: var(--warning);   color: var(--text-inverse); }
.btn-warning:hover   { filter: brightness(0.9); }
.btn-info      { background: var(--info);      border-color: var(--info);      color: var(--text-inverse); }
.btn-info:hover      { filter: brightness(0.9); }

/* Ghost */
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-bg); }
.btn-ghost-secondary { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-ghost-secondary:hover { background: var(--secondary-bg); }
.btn-ghost-tertiary  { background: transparent; color: var(--tertiary);  border-color: var(--tertiary); }
.btn-ghost-tertiary:hover  { background: var(--tertiary-bg); }

/* Outline */
.btn-outline-primary   { background: transparent; color: var(--primary);   border-color: var(--primary); }
.btn-outline-primary:hover   { background: var(--primary);   color: var(--text-inverse); }
.btn-outline-secondary { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-outline-secondary:hover { background: var(--secondary); color: var(--text-inverse); }
.btn-outline-tertiary  { background: transparent; color: var(--tertiary);  border-color: var(--tertiary); }
.btn-outline-tertiary:hover  { background: var(--tertiary);  color: var(--text-inverse); }

/* =========================================
   8. FORMS
   ========================================= */
.form-group { margin-bottom: var(--spacer-lg); }
.form-label { display: block; margin-bottom: var(--spacer-sm); font-weight: 600; color: var(--text-main); font-size: 0.9rem; }

.form-control {
    display: block; width: 100%; padding: 0.75rem;
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    font-family: inherit; font-size: 1rem; background: var(--input-bg); color: var(--text-main);
    transition: var(--transition-base);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.form-control::placeholder { color: var(--text-muted); opacity: 0.7; }

select.form-control { appearance: auto; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-check { display: flex; align-items: center; gap: var(--spacer-sm); margin-bottom: var(--spacer-sm); cursor: pointer; }
.form-check-input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); cursor: pointer; }
.form-check-label { color: var(--text-main); font-size: 0.95rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--spacer-xs); }

/* =========================================
   9. TABLES
   ========================================= */
.table-container { width: 100%; overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; background: var(--card-bg); font-size: 0.95rem; }
.table th, .table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.table th { background: var(--surface-bg); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background-color: var(--primary-bg); }
.table-striped tbody tr:nth-child(even) { background-color: rgba(128,128,128,0.04); }
.table-bordered { border: 1px solid var(--border-color); }
.table-bordered th, .table-bordered td { border: 1px solid var(--border-color); }

/* =========================================
   10. CARDS
   ========================================= */
.card { background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition-base); }
.card:hover { box-shadow: var(--shadow-md); }
.card-header { padding: var(--spacer-md) var(--spacer-lg); border-bottom: 1px solid var(--border-color); background: var(--surface-bg); font-weight: 600; }
.card-body { padding: var(--spacer-lg); flex: 1 1 auto; }
.card-footer { padding: var(--spacer-md) var(--spacer-lg); border-top: 1px solid var(--border-color); background: var(--surface-bg); }
.card-title { margin-bottom: var(--spacer-sm); font-size: 1.25rem; font-weight: 600; }
.card-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--spacer-md); }

/* =========================================
   11. ALERTS
   ========================================= */
.alert { padding: var(--spacer-md); border-radius: var(--radius-md); margin-bottom: var(--spacer-lg); border: 1px solid transparent; font-size: 0.95rem; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-text);  border-color: var(--danger); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning); }
.alert-info    { background: var(--info-bg);    color: var(--info-text);    border-color: var(--info); }

/* =========================================
   12. NAVIGATION
   ========================================= */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--spacer-md) var(--spacer-lg); background: var(--surface-bg); border-bottom: 2px solid var(--border-color); gap: var(--spacer-md); }
.nav-brand { justify-self: start; display: flex; align-items: center; height: 50px; }
.nav-brand img { height: 100%; width: auto; display: block; }
.nav-brand:hover { opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: var(--spacer-sm); list-style: none; margin: 0; padding: 0; justify-self: center; }
.nav-links a, .nav-links button { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 1.2rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; transition: var(--transition-base); border: none; cursor: pointer; font-family: var(--font-family); background: var(--primary); color: var(--text-inverse); }
.nav-links a:hover, .nav-links button:hover { background: var(--primary-dark); }

.hero-logo { max-width: 500px; margin: var(--spacer-xl) auto 0; }
.hero-logo img { width: 100%; display: block; }
.hero-logo .logo-light { display: none; }

/* =========================================
   13. TABS
   ========================================= */
.tabs { display: flex; border-bottom: 2px solid var(--primary); margin-bottom: var(--spacer-lg); gap: 4px; }
.tab-btn { padding: 10px 20px; border: none; background: rgba(128,128,128,0.15); color: var(--text-main); cursor: pointer; font-size: 1rem; font-family: var(--font-family); font-weight: 600; border-radius: 6px 6px 0 0; transition: var(--transition-base); }
.tab-btn:hover { background: rgba(128,128,128,0.3); }
.tab-btn.active { background: var(--primary); color: var(--text-inverse); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* =========================================
   14. PAGINATION
   ========================================= */
.pagination { display: flex; justify-content: center; margin-top: var(--spacer-xl); gap: var(--spacer-xs); flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; text-decoration: none; color: var(--text-main); background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition-base); font-size: 0.9rem; }
.pagination a:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: var(--text-inverse); border-color: var(--primary); font-weight: 600; }
.pagination .disabled { color: var(--text-muted); border-color: transparent; cursor: not-allowed; opacity: 0.5; }

/* =========================================
   15. GALLERY / GRID CARDS
   ========================================= */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--spacer-lg); }
.image-card { background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--spacer-md); display: flex; flex-direction: column; border: 1px solid var(--border-color); transition: var(--transition-base); }
.image-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.image-card img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--spacer-sm); }
.image-card-title { font-weight: 600; margin-bottom: var(--spacer-xs); font-size: 1.1rem; }
.image-card-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--spacer-md); flex-grow: 1; }

/* =========================================
   16. UTILITIES
   ========================================= */
/* Spacing */
.m-0 { margin: 0; } .m-1 { margin: var(--spacer-xs); } .m-2 { margin: var(--spacer-sm); } .m-3 { margin: var(--spacer-md); } .m-4 { margin: var(--spacer-lg); } .m-5 { margin: var(--spacer-xl); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--spacer-xs); } .mt-2 { margin-top: var(--spacer-sm); } .mt-3 { margin-top: var(--spacer-md); } .mt-4 { margin-top: var(--spacer-lg); } .mt-5 { margin-top: var(--spacer-xl); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--spacer-xs); } .mb-2 { margin-bottom: var(--spacer-sm); } .mb-3 { margin-bottom: var(--spacer-md); } .mb-4 { margin-bottom: var(--spacer-lg); } .mb-5 { margin-bottom: var(--spacer-xl); }
.ml-auto { margin-left: auto; } .mr-auto { margin-right: auto; } .mx-auto { margin-left: auto; margin-right: auto; }
.p-0 { padding: 0; } .p-1 { padding: var(--spacer-xs); } .p-2 { padding: var(--spacer-sm); } .p-3 { padding: var(--spacer-md); } .p-4 { padding: var(--spacer-lg); } .p-5 { padding: var(--spacer-xl); }
.pt-0 { padding-top: 0; } .pt-3 { padding-top: var(--spacer-md); } .pt-5 { padding-top: var(--spacer-xl); }
.pb-0 { padding-bottom: 0; } .pb-3 { padding-bottom: var(--spacer-md); } .pb-5 { padding-bottom: var(--spacer-xl); }

/* Flexbox */
.d-flex { display: flex; } .d-inline-flex { display: inline-flex; } .d-block { display: block; } .d-inline { display: inline; } .d-none { display: none; } .d-grid { display: grid; }
.flex-row { flex-direction: row; } .flex-column { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .flex-nowrap { flex-wrap: nowrap; }
.justify-start { justify-content: flex-start; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; } .justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; } .align-center { align-items: center; } .align-end { align-items: flex-end; }
.gap-1 { gap: var(--spacer-xs); } .gap-2 { gap: var(--spacer-sm); } .gap-3 { gap: var(--spacer-md); }

/* Visibility */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Backgrounds */
.bg-surface { background: var(--surface-bg); }
.bg-card    { background: var(--card-bg); }
.bg-primary { background: var(--primary); color: var(--text-inverse); }
.bg-secondary { background: var(--secondary); color: var(--text-inverse); }
.bg-tertiary { background: var(--tertiary); color: var(--text-inverse); }

/* Borders */
.border { border: 1px solid var(--border-color); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-pill { border-radius: var(--radius-pill); }

/* Width / Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* =========================================
   17. RESPONSIVE
   ========================================= */
@media (max-width: 1023px) {
    .col-md-1 { flex: 0 0 8.33333%; max-width: 8.33333%; } .col-md-2 { flex: 0 0 16.66666%; max-width: 16.66666%; } .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.33333%; max-width: 33.33333%; } .col-md-5 { flex: 0 0 41.66666%; max-width: 41.66666%; } .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.33333%; max-width: 58.33333%; } .col-md-8 { flex: 0 0 66.66666%; max-width: 66.66666%; } .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.33333%; max-width: 83.33333%; } .col-md-11 { flex: 0 0 91.66666%; max-width: 91.66666%; } .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 767px) {
    .container { padding: 0 var(--spacer-sm); }
    h1 { font-size: 1.75rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
    .nav { display: flex; flex-direction: column; align-items: center; }
    .nav-brand { justify-self: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .col-sm-1 { flex: 0 0 8.33333%; max-width: 8.33333%; } .col-sm-2 { flex: 0 0 16.66666%; max-width: 16.66666%; } .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.33333%; max-width: 33.33333%; } .col-sm-5 { flex: 0 0 41.66666%; max-width: 41.66666%; } .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.33333%; max-width: 58.33333%; } .col-sm-8 { flex: 0 0 66.66666%; max-width: 66.66666%; } .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.33333%; max-width: 83.33333%; } .col-sm-11 { flex: 0 0 91.66666%; max-width: 91.66666%; } .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* =========================================
   18. PODCAST (Gottesdienste)
   ========================================= */

.bd-container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--spacer-md); }

/* --- Header --- */
.bd-site-header { background: var(--surface-bg); border: 1px solid var(--border-color); padding: var(--spacer-xl); margin-bottom: var(--spacer-xl); }
.bd-header-container { display: flex; align-items: center; gap: var(--spacer-xl); flex-wrap: wrap; }
.bd-header-image-wrapper { flex-shrink: 0; }
.bd-podcast-cover-header { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.bd-header-content { flex: 1; min-width: 280px; }
.bd-site-title { font-size: 2rem; margin-bottom: var(--spacer-sm); }
.bd-site-description { color: var(--text-muted); font-size: 1rem; margin-bottom: var(--spacer-md); }
.bd-header-actions { display: flex; flex-wrap: wrap; gap: var(--spacer-sm); }

/* --- Buttons --- */
.bd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 0.5rem 1rem; border-radius: var(--radius-pill);
    text-decoration: none; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; border: 1px solid transparent;
    transition: var(--transition-base); white-space: nowrap;
    line-height: 1.2; height: 38px; font-family: var(--font-family);
    background: var(--primary); color: var(--text-inverse);
}
.bd-btn:hover { opacity: 0.9; text-decoration: none; }
.bd-btn svg { fill: currentColor; width: 18px; height: 18px; }

.bd-btn-rss { background: #eecc99; color: #000000; }
.bd-btn-download { background: #8bb6c7; color: #000000; }
.bd-btn-doc { background: var(--tertiary); color: #000000; }
.bd-btn-video { background: var(--danger); color: #000000; }
.bd-btn-video-prominent { padding: 0.6rem 1.2rem; font-size: 0.95rem; height: 42px; }

.bd-btn-custom.bd-btn-color-yellow { background-color: #eecc99; color: #000000; }
.bd-btn-custom.bd-btn-color-blue   { background-color: #afe4ff; color: #000000; }
.bd-btn-custom.bd-btn-color-green  { background-color: #a3ee99; color: #000000; }
.bd-btn-custom.bd-btn-color-red    { background-color: #ffafb0; color: #000000; }
.bd-btn-custom.bd-btn-color-purple { background-color: #c7afff; color: #000000; }
.bd-btn-custom.bd-btn-color-grey   { background-color: #bebebe; color: #000000; }

/* --- Episodes --- */
.bd-featured-episode { margin-bottom: var(--spacer-xl); }
.bd-featured-episode h2 { font-size: 1.5rem; margin-bottom: var(--spacer-md); display: flex; align-items: center; gap: var(--spacer-sm); }
.bd-featured-episode h2 svg { fill: currentColor; width: 24px; height: 24px; }

.bd-episode-card {
    background: var(--card-bg); border-radius: var(--radius-lg);
    border: 1px solid var(--border-color); overflow: hidden;
    display: flex; flex-wrap: wrap; gap: var(--spacer-lg);
    padding: var(--spacer-lg); margin-bottom: var(--spacer-lg);
    transition: var(--transition-base);
}
.bd-episode-card:hover { box-shadow: var(--shadow-md); }
.bd-episode-card.featured { border: 2px solid var(--primary); }

.bd-episode-image { flex-shrink: 0; position: relative; }
.bd-episode-image img { width: 220px; height: 220px; object-fit: cover; border-radius: var(--radius-md); display: block; }
.bd-episode-image .bd-btn-video { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); }

.bd-episode-content { flex: 1; min-width: 280px; }
.bd-episode-content h3 { font-size: 1.25rem; margin-bottom: var(--spacer-sm); }
.bd-episode-meta { display: flex; align-items: center; gap: var(--spacer-sm); color: var(--text-muted); font-size: 0.875rem; margin-bottom: var(--spacer-md); flex-wrap: wrap; }
.bd-episode-meta svg { fill: currentColor; width: 14px; height: 14px; }
.bd-episode-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: var(--spacer-md); }
.bd-episode-actions { display: flex; flex-wrap: wrap; gap: var(--spacer-sm); margin-top: var(--spacer-md); }

.bd-separator { border: 0; border-top: 1px solid var(--border-color); margin: var(--spacer-xl) 0; }

/* --- Custom Audio Player --- */
.bd-custom-audio-player {
    display: flex; align-items: center; gap: var(--spacer-sm);
    background: var(--surface-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: var(--spacer-sm) var(--spacer-md);
    max-width: 600px;
}
.bd-audio-play-btn {
    background: var(--primary); color: var(--text-inverse); border: none;
    border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition-base); flex-shrink: 0;
}
.bd-audio-play-btn:hover { filter: brightness(1.1); }
.bd-audio-play-btn svg { fill: currentColor; width: 20px; height: 20px; }

.bd-audio-progress-container { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.bd-audio-progress-bar { height: 6px; background: var(--border-color); border-radius: 3px; cursor: pointer; position: relative; overflow: hidden; }
.bd-audio-progress-fill { height: 100%; background: var(--primary); width: 0%; border-radius: 3px; transition: width 0.1s linear; }
.bd-audio-time { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }

.bd-audio-volume-container { display: flex; align-items: center; gap: 6px; }
.bd-audio-volume-container svg { fill: currentColor; width: 18px; height: 18px; color: var(--text-muted); }
.bd-audio-volume-slider { width: 80px; cursor: pointer; }

/* --- Pagination --- */
.bd-pagination { margin-top: var(--spacer-xl); margin-bottom: var(--spacer-xl); text-align: center; }
.bd-pagination-controls { display: inline-flex; align-items: center; gap: var(--spacer-xs); flex-wrap: wrap; justify-content: center; }
.bd-page-link, .bd-page-disabled {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    text-decoration: none; color: var(--text-main);
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: var(--transition-base);
    font-size: 0.9rem; cursor: pointer;
}
.bd-page-link:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.bd-page-active { background: var(--primary); color: var(--text-inverse); border-color: var(--primary); font-weight: 600; }
.bd-page-disabled { color: var(--text-muted); border-color: transparent; cursor: not-allowed; opacity: 0.5; }
.bd-page-ellipsis { color: var(--text-muted); padding: 0 8px; user-select: none; }
.bd-page-link svg { fill: currentColor; width: 20px; height: 20px; }

/* --- Video Modal --- */
.bd-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center;
    padding: var(--spacer-md);
}
.bd-modal-content {
    position: relative; width: 100%; max-width: 900px;
    background: var(--card-bg); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-xl);
}
.bd-modal-close {
    position: absolute; top: 8px; right: 12px; z-index: 10;
    background: none; border: none; color: var(--text-main); font-size: 2rem;
    cursor: pointer; line-height: 1;
}
.bd-modal-video-container { position: relative; padding-bottom: 56.25%; height: 0; }
#bd-modal-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* --- Utilities --- */
.bd-error { color: var(--danger); padding: var(--spacer-md); background: var(--danger-bg); border-radius: var(--radius-md); }
.bd-no-content { text-align: center; padding: var(--spacer-xl) 0; color: var(--text-muted); }

/* Responsive */
@media (max-width: 767px) {
    .bd-header-container { flex-direction: column; align-items: flex-start; }
    .bd-podcast-cover-header { width: 120px; height: 120px; }
    .bd-episode-image {
        width: 100%;
        flex: 1 1 100%;
        margin-bottom: var(--spacer-md);
        text-align: center;
    }
    .bd-episode-image img {
        width: 90%;
        height: auto;
        object-fit: cover;
        display: inline-block;
    }
    .bd-custom-audio-player { flex-wrap: wrap; }
    .bd-audio-volume-container { width: 100%; justify-content: flex-end; }
}

/* =========================================
   19. THEME CLAIR — SURCHARGES (prioritaires)
   ========================================= */

/* Classe manuelle .theme-light */
.theme-light .nav-links a, .theme-light .nav-links button { color: #000000; }
.theme-light .bd-audio-play-btn svg { fill: #000000; }
.theme-light .bd-btn-video { background: #f2b8b5; color: #000000; }
.theme-light .bd-btn-video:hover { background: #dc3545; }

/* Auto-detection OS */
@media (prefers-color-scheme: light) {
    .nav-links a, .nav-links button { color: #000000; }
    .bd-audio-play-btn svg { fill: #000000; }
    .bd-btn-video { background: #f2b8b5; color: #000000; }
    .bd-btn-video:hover { background: #dc3545; }
    a, .text-primary { color: #1a4a5c; }
    .hero-logo .logo-dark { display: none; }
    .hero-logo .logo-light { display: block; }
}
