/*
Theme Name:  Radionova
Description: Plateforme médicale premium – Radiologie & Imagerie
Author:      Dr Anes / Radionova Team
Version:     2.0
*/

/* ────────────────────────────────────────────────
   IMPORT FONTS
──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ────────────────────────────────────────────────
   CSS VARIABLES (Design Tokens)
──────────────────────────────────────────────── */
:root {
    --color-primary:       #0A2540;
    --color-secondary:     #00B4D8;
    --color-accent:        #20C997;
    --color-danger:        #E53E3E;
    --color-warning:       #DD6B20;

    --color-bg:            #F7FAFC;
    --color-surface:       #FFFFFF;
    --color-border:        #E2E8F0;

    --color-text-primary:  #1A202C;
    --color-text-secondary:#4A5568;
    --color-text-muted:    #718096;

    --font-heading:        'Inter', sans-serif;
    --font-body:           'Roboto', sans-serif;

    --radius-sm:           6px;
    --radius-md:           12px;
    --radius-lg:           16px;
    --radius-xl:           24px;
    --radius-full:         999px;

    --shadow-sm:           0 1px 3px rgba(0,0,0,0.07);
    --shadow-md:           0 4px 15px rgba(0,0,0,0.07);
    --shadow-lg:           0 10px 35px rgba(0,0,0,0.10);
    --shadow-xl:           0 20px 60px rgba(0,0,0,0.12);

    --transition:          all 0.25s ease;
    --header-height:       72px;
}

/* ────────────────────────────────────────────────
   RESET & BASE
──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s, color 0.4s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-primary);
}

a { color: var(--color-secondary); transition: var(--transition); }
a:hover { opacity: 0.85; }

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

/* ────────────────────────────────────────────────
   HEADER
──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--color-surface);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-branding a span { color: var(--color-secondary); }

/* Navigation Menu */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-secondary);
    background: rgba(0,180,216,0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ────────────────────────────────────────────────
   DARK MODE TOGGLE (Reading Room Mode)
──────────────────────────────────────────────── */
#radionova-dark-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    transition: var(--transition);
    white-space: nowrap;
}

#radionova-dark-toggle:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

/* ────────────────────────────────────────────────
   READING ROOM MODE (Dark Mode)
──────────────────────────────────────────────── */
body.reading-room-mode {
    --color-bg:              #0D1117;
    --color-surface:         #161B22;
    --color-border:          #30363D;
    --color-text-primary:    #E6EDF3;
    --color-text-secondary:  #8B949E;
    --color-text-muted:      #6E7681;
    background-color: #0D1117;
    color: #E6EDF3;
}

body.reading-room-mode .site-header {
    background: #161B22;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    border-bottom: 1px solid #30363D;
}

body.reading-room-mode .site-branding a { color: #E6EDF3; }

body.reading-room-mode .main-navigation a {
    color: #8B949E;
}

body.reading-room-mode .main-navigation a:hover,
body.reading-room-mode .main-navigation .current-menu-item > a {
    color: var(--color-secondary);
    background: rgba(0,180,216,0.1);
}

body.reading-room-mode #radionova-dark-toggle {
    background: #21262D;
    border: 1px solid #30363D;
}

body.reading-room-mode h1,
body.reading-room-mode h2,
body.reading-room-mode h3,
body.reading-room-mode h4 {
    color: #E6EDF3;
}

/* ────────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 60px 40px 30px;
    margin-top: 0;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.footer-brand { }
.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--color-secondary); }
.footer-brand p { color: #a0aec0; font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--color-secondary); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #718096;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}

body.reading-room-mode .site-footer {
    background: #050505;
    border-top: 1px solid #21262D;
}

/* ────────────────────────────────────────────────
   BUTTONS (Global)
──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary { background: var(--color-secondary); color: #fff; }
.btn-primary:hover { background: #0092B8; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ────────────────────────────────────────────────
   BADGES / TAGS
──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.badge-cyan  { background: #E0F7FA; color: #00838F; }
.badge-blue  { background: #EBF4FF; color: #2B6CB0; }
.badge-purple { background: #F0E8FF; color: #6B46C1; }
.badge-orange { background: #FFF3E0; color: #C05621; }

/* ────────────────────────────────────────────────
   REVEAL / DIAGNOSTIC (Interactive)
──────────────────────────────────────────────── */
.radionova-reveal-wrap {
    margin: 30px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--color-secondary);
}

.radionova-reveal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    padding: 16px 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.radionova-reveal-btn:hover {
    background: #0092B8;
}

.radionova-reveal-content {
    display: none;
    padding: 25px 30px;
    background: rgba(0,180,216,0.04);
    border-top: 1px solid var(--color-secondary);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

body.reading-room-mode .radionova-reveal-content {
    background: rgba(0,180,216,0.07);
    color: #E6EDF3;
}

/* ────────────────────────────────────────────────
   ELEMENTOR OVERRIDES
──────────────────────────────────────────────── */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading) !important;
}

/* ────────────────────────────────────────────────
   UTILITY CLASSES
──────────────────────────────────────────────── */
.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section-pad { padding: 80px 0; }

/* ────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .site-header { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header { padding: 0 16px; }
    .main-navigation { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .site-footer { padding: 40px 20px 25px; }
}
