/* ==========================================
   CARE ELITE - Site Web Officiel
   Design: Couleurs Officielles care-elite.ch
   ========================================== */

/* ==========================================
   1. RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs officielles care-elite.ch */
    --bg: #0b1220;           /* Background principal (bleu très foncé) */
    --bg-2: #09101d;         /* Background secondaire (encore plus foncé) */
    --gold: #caaa67;         /* Or/accent signature CARE ELITE */
    --ink: #e8edf5;          /* Texte principal (blanc cassé) */
    --ink-2: #9fb0cf;        /* Texte secondaire (gris bleuté) */
    --accent: #0f1f3a;       /* Accent sombre (bleu nuit) */
    
    /* Couleurs dérivées pour compatibilité */
    --white: #ffffff;
    --shadow: rgba(11, 18, 32, 0.35);
    --shadow-light: rgba(202, 170, 103, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: radial-gradient(1200px 700px at 80% -10%, rgba(202,170,103,.12), transparent 60%),
                radial-gradient(1000px 600px at 10% 110%, rgba(202,170,103,.10), transparent 55%),
                linear-gradient(120deg, var(--bg), var(--bg-2));
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Grille animée en fond (effet subtil) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 60px);
    animation: drift 20s linear infinite;
    z-index: 0;
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 600px 0; }
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================
   2. TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: 0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--ink-2);
    font-size: 1.1rem;
}

/* ==========================================
   3. BUTTONS & CTAs
   ========================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(202,170,103,.35), rgba(202,170,103,.15));
    color: #1a1407;
    border-color: rgba(202,170,103,.55);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-light);
}

.btn-secondary {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    color: var(--ink);
    border-color: rgba(255,255,255,.15);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: rgba(202,170,103,.4);
}

.btn-outline:hover {
    background: rgba(202,170,103,.12);
    border-color: var(--gold);
}

/* ==========================================
   4. HEADER / NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.06em;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--ink-2);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-cta {
    margin-left: 1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--ink);
    transition: var(--transition);
}

/* ==========================================
   5. FOOTER
   ========================================== */
.footer {
    background: linear-gradient(180deg, rgba(11,18,32,0.6), rgba(9,16,29,0.95));
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--ink);
    padding: 4rem 2rem 2rem;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--ink-2);
    margin-bottom: 0.8rem;
    display: block;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(232, 237, 245, 0.5);
}

/* ==========================================
   6. SECTIONS COMMUNES
   ========================================== */
.section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: linear-gradient(180deg, rgba(15,31,58,0.4), rgba(11,18,32,0.6));
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.section-light {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header .subtitle {
    font-size: 1.2rem;
    color: var(--ink-2);
}

/* ==========================================
   7. GRID LAYOUTS
   ========================================== */
.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==========================================
   8. CARDS
   ========================================== */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(202, 170, 103, 0.2);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
}

.card-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--ink);
}

.card p {
    color: var(--ink-2);
}

.card ul li {
    color: var(--ink) !important;
}

.card table td {
    color: #000 !important;
}

/* ==========================================
   9. FORMS
   ========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--ink);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(202, 170, 103, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-2);
    opacity: 0.6;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================
   10. UTILITIES
   ========================================== */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-navy {
    color: var(--ink);
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(202,170,103,.12);
    color: #f3e6c8;
    border: 1px solid rgba(202,170,103,.35);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==========================================
   11. ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ==========================================
   TABLE STYLES (POUR LISIBILITÉ)
   ========================================== */
table {
    color: #000 !important;
}

table td,
table th {
    color: #000 !important;
}

table[style*="background: white"] td,
table[style*="background: white"] th {
    color: #000 !important;
}

/* ==========================================
   12. RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(11, 18, 32, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px var(--shadow);
        transition: var(--transition);
        border-right: 1px solid rgba(255,255,255,.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}
