/* Thème Orange Léger & Blanc - DIABY GROUP LLC */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ff8f00; /* Orange signature */
    --primary-hover: #ff7f00;
    --primary-light: #fff3e0; /* Orange très léger */
    --primary-bg: #fffbf5; /* Fond teinté chaud */
    --accent: #e65100; /* Orange foncé pour contrastes */
    
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-800: #333333;
    --text-dark: #2d2319; /* Noir avec nuances chaudes */
    --text-muted: #8d7b6e;
    
    --success: #2e7d32;
    --danger: #d32f2f;
    --warning: #fbc02d;
    --info: #0288d1;
    
    --shadow-sm: 0 2px 8px rgba(255, 143, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(255, 143, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(255, 143, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Boutons modernes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 143, 0, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--gray-200);
}

.btn-light:hover {
    background-color: var(--gray-100);
}

/* Cartes Premium */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 143, 0, 0.08);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(255, 143, 0, 0.2);
}

/* Langue & Sélecteurs */
.lang-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--accent);
}

/* Entêtes communes */
.header-bar {
    background: var(--white);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Animations et micro-interactions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.4s ease forwards;
}

/* Optimisations & Helper Mobile Responsive */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.table-responsive table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important; /* Empêche le zoom auto gênant sur iOS Safari */
    }

    .header-bar {
        padding: 0 16px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }

    .card {
        padding: 16px;
        border-radius: var(--radius-sm);
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.92rem;
        min-height: 42px; /* Taille minimale tactile recommandée */
    }
}

