/* ========================================
   OSAT ELECTRIC - SYSTÈME DE GESTION DES COMPTEURS ÉLECTRIQUES
   Styles centralisés avec thèmes sombre/clair
   Inspiré du logo OSAT avec couleurs rouge et design moderne
   ======================================== */

/* Variables CSS pour les thèmes */
:root {
    /* Thème sombre par défaut (inspiré du logo OSAT) */
    --main-bg: #181c24;
    --accent-light: #fd7e14;     /* Orange complémentaire */
    --text: #fff;
    --text-secondary: #b0bec5;
    --shadow: 0 4px 24px rgba(0,0,0,0.12);
    --card-bg: #232b3a;
    --input-bg: rgba(255,255,255,0.10);
    --gradient-primary: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
    --gradient-success: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    --gradient-danger: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
    --gradient-info: linear-gradient(90deg, #17a2b8 0%, #6f42c1 100%);
    --modal-bg: linear-gradient(135deg, #232b3a 60%, #dc3545 100%);
    --glass-bg: rgba(255,255,255,0.1);
    --glass-border: rgba(255,255,255,0.2);
            --main-bg: #181c24;
            --accent: #00bcd4;
            --accent-hover: #0097a7;
            --text: #fff;
            --shadow: 0 4px 24px rgba(0,0,0,0.12);
            --card-bg: #232b3a;
            --input-bg: rgba(255,255,255,0.10);
            --border-color: #00bcd4;
            --gradient-primary: linear-gradient(90deg,#00bcd4 0%,#2196f3 100%);
            --gradient-success: linear-gradient(90deg,#43e97b 0%,#38f9d7 100%);
            --gradient-danger: linear-gradient(90deg,#ff5858 0%,#f09819 100%);
            --navbar-bg: rgba(35, 43, 58, 0.85);
}

/* Thème clair */
[data-theme="light"] {
    --main-bg: #f8f9fa;
    --accent: #dc3545;           /* Garde le rouge OSAT */
    --accent-hover: #c82333;
    --accent-light: #fd7e14;
    --text: #212529;
    --text-secondary: #6c757d;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --card-bg: #ffffff;
    --input-bg: rgba(0,0,0,0.05);
    --border-color: #dc3545;
    --gradient-primary: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
    --gradient-success: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    --gradient-danger: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
    --gradient-info: linear-gradient(90deg, #17a2b8 0%, #6f42c1 100%);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --modal-bg: linear-gradient(135deg, #ffffff 60%, #dc3545 100%);
    --glass-bg: rgba(220,53,69,0.1);
    --glass-border: rgba(220,53,69,0.2);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
    background: var(--main-bg);
    color: var(--text);
    min-height: 100vh;
    transition: all 0.3s ease;
    line-height: 1.6;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    background: var(--navbar-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 24px;
    margin: 0 auto 32px auto;
    max-width: 900px;
    padding: 18px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    animation: fadeInDown 0.8s ease-out;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0 5%;
    display: flex;
    width: 110%;
    align-items: center;
}

.navbar li {
    margin: 0 8px;
    padding-bottom: 10px;
    width: 100%;
    margin-block-start: 15px;
}

.navbar a {
    display: block;
    color: var(--text);
    padding: 12px 24px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
    background: var(--card-bg);
    margin: 0 6px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    width: 100%;
}

.navbar a:hover, 
.navbar a.active {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.navbar a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Menu toggle mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 4px;
    background: var(--accent);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* ========================================
   BOUTON DE CHANGEMENT DE THÈME
   ======================================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.5em;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

/* ========================================
   CONTENU PRINCIPAL
   ======================================== */
.content {
    min-height: 80vh;
    padding: 16px 16px 80px 16px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================================
   CARTES ET FORMULAIRES
   ======================================== */
.card, .compteur-form, .modal-content {
    background: var(--card-bg);
    color: var(--text);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1em;
}

/* ========================================
   FORMULAIRES
   ======================================== */
.form-control, .form-select {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 1em;
    margin-bottom: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0.7rem 1rem;
}

.form-control:focus, .form-select:focus {
    background: var(--input-bg);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 12px var(--accent);
    transform: scale(1.02);
}

.form-label {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
    font-size: 1em;
}

/* ========================================
   BOUTONS
   ======================================== */
.btn, .dashboard-btn {
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 16px;
    font-size: 1.08em;
    padding: 12px 32px;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before, .dashboard-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before, .dashboard-btn:hover::before {
    left: 100%;
}

.btn-primary, .dashboard-btn.sts {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover, .dashboard-btn.sts:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-success, .dashboard-btn.params {
    background: var(--gradient-success);
    color: #fff;
}

.btn-success:hover, .dashboard-btn.params:hover {
    background: var(--gradient-success);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-danger {
    background: var(--gradient-danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--gradient-danger);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-info {
    background: var(--gradient-info);
    color: #fff;
}

.btn-info:hover {
    background: var(--gradient-info);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ========================================
   MODALS
   ======================================== */
.modal-content {
    background: var(--modal-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    animation: fadeInDown 0.4s ease-out;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
}

.modal-title {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-body {
    color: var(--text);
}

/* ========================================
   LOGO ET BRANDING
   ======================================== */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

/* ========================================
   DASHBOARD CARDS
   ======================================== */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin: 40px 0 32px 0;
}

.dashboard-cards .card {
    background: var(--gradient-primary);
    box-shadow: 0 4px 24px rgba(220,53,69,0.10), 0 2px 12px rgba(35,43,58,0.33);
    border-radius: 22px;
    min-width: 200px;
    max-width: 240px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 18px 22px 18px;
    transition: all 0.3s ease;
    color: #fff;
}

.dashboard-cards .card:hover {
    box-shadow: 0 8px 32px rgba(220,53,69,0.18), 0 4px 18px rgba(35,43,58,0.55);
    transform: translateY(-5px) scale(1.05);
}

.dashboard-cards .card-title {
    font-size: 1.15em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.dashboard-cards .card-value {
    font-size: 1.35em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Candara Light', Candara, Arial, sans-serif;
}

.dashboard-cards .card-icon {
    font-size: 2.2em;
    margin-bottom: 6px;
    color: #fff;
}

/* ========================================
   SECTIONS SPÉCIALES
   ======================================== */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(220,53,69,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px auto;
    animation: fadeInUp 1s ease-out 0.3s both;
    margin-top: 50px;
}

.search-container {
    position: relative;
    background: var(--glass-bg);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px var(--glass-border);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--accent);
    font-size: 1.5rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

.search-input {
    width: 100%;
    padding: 20px 20px 20px 60px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.2rem;
    outline: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.search-input:focus {
    background: var(--glass-bg);
    box-shadow: 0 0 30px var(--accent);
}

.search-button {
    position: absolute;
    right: 8px;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3);
}

.search-button:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220,53,69,0.4);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
    padding: 24px 0 16px 0;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    letter-spacing: 1px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1001;
    transition: all 0.3s ease;
}

/* ========================================
   ICÔNES SVG
   ======================================== */
.svg-icon {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.svg-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.svg-icon.large {
    width: 64px;
    height: 64px;
}

.svg-icon.small {
    width: 32px;
    height: 32px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

/* Classes d'animation */
.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Animation de chargement */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    margin: 0 auto;
    animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* ========================================
   PARTICULES FLOTTANTES
   ======================================== */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* ========================================
   GRAPHIQUES
   ======================================== */
.chart-container {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 900px) {
    .navbar a {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 18px 18px 18px 55px;
    }
    
    .search-button {
        padding: 13px 25px;
        font-size: 1rem;
    }
    
    .dashboard-cards {
        gap: 18px;
    }
    
    .dashboard-cards .card {
        min-width: 160px;
        max-width: 200px;
        padding: 18px 8px 14px 8px;
    }
}

@media (max-width: 700px) {
    .navbar ul {
        flex-direction: column;
        background: var(--main-bg);
        position: absolute;
        top: 50px;
        left: 0;
        width: 100vw;
        min-width: 220px;
        display: none;
        z-index: 9999;
        border-radius: 10px;
        border: 1px solid var(--border-color);
    }
    
    .navbar ul.open {
        display: flex;
    }
    
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 8px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dashboard-cards {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    
    .dashboard-cards .card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 14px 4vw 10px 4vw;
    }
    
    .compteur-form {
        padding: 18px 6vw 14px 6vw;
        max-width: 98vw;
    }
}

@media (max-width: 600px) {
    .content {
        padding: 12px;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* ========================================
   ALERTES
   ======================================== */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 600;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

/* ========================================
   THÈME SPÉCIFIQUE POUR LIGHT/DARK
   ======================================== */
[data-theme="light"] .alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

[data-theme="light"] .alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

[data-theme="light"] .alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

[data-theme="light"] .alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

/* ========================================
   ANIMATIONS D'INTERSECTION
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Délais d'animation pour les cartes */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

/* ========================================
   EFFETS SPÉCIAUX
   ======================================== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ========================================
   TRANSITIONS GLOBALES
   ======================================== */
.theme-transition {
    transition: all 0.3s ease;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   STYLES SPÉCIFIQUES POUR LE LOGO OSAT
   ======================================== */
.osat-brand {
    font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(220,53,69,0.3);
}

.osat-accent {
    color: var(--accent);
}

.osat-gradient {
    background: var(--gradient-primary);
}

/* ========================================
   Section Présentation
   ======================================== */

.presentation-section {
    width: 100%;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(21, 210, 235, 0.452);
}

.presentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
}

.presentation-card {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.presentation-card::before {
    content: '*';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,188,212,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    
}

.presentation-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-color);
    box-shadow: 0 20px 40px var(--border-color);;
}

.presentation-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.9;
}

.services-list,
.vision-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li,
.vision-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.vision-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.search-suggestions.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.suggestion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.suggestion-item:hover {
    background: rgba(0,188,212,0.1);
    border-color: var(--border-color);
    transform: translateX(10px);
}

.suggestion-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 5px;
}

.suggestion-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-card {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,188,212,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-color);
    box-shadow: 0 20px 40px rgba(0,188,212,0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.9;
}



/* ========================================
   FIN DU FICHIER STYLES.CSS
   ======================================== */
