/* ============================================
   STYLE.CSS - KABTI CONNECT LLC
   Mini-site de référencement transport France-Algérie
   Version : 2.0 - Optimisé SEO & Consulting
   ============================================ */

/* ============================================
   1. RESET & VARIABLES CSS
   ============================================ */
:root {
    /* Couleurs principales */
    --primary: #1e40af;       /* Bleu principal */
    --primary-dark: #1e3a8a;  /* Bleu foncé */
    --primary-light: #3b82f6; /* Bleu clair */
    --primary-bg: #eff6ff;    /* Fond bleu clair */
    
    /* Couleurs secondaires */
    --secondary: #dc2626;     /* Rouge/Orange */
    --accent: #059669;        /* Vert succès */
    --accent-light: #10b981;  /* Vert clair */
    
    /* Couleurs neutres */
    --light: #f8fafc;         /* Gris très clair */
    --light-gray: #f1f5f9;    /* Gris clair */
    --medium-gray: #94a3b8;   /* Gris moyen */
    --dark: #1e293b;          /* Gris foncé */
    --dark-gray: #475569;     /* Gris foncé secondaire */
    
    /* Couleurs spéciales */
    --consulting: #4f46e5;    /* Violet consulting */
    --business: #7c3aed;      /* Violet apporteur affaires */
    --warning: #d97706;       /* Orange avertissement */
    --warning-bg: #fffbeb;    /* Fond avertissement */
    
    /* Effets */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;            /* Rayon des bordures */
    --radius-lg: 12px;        /* Rayon grand */
    --radius-xl: 16px;        /* Rayon très grand */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

strong {
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   3. LAYOUT & CONTAINERS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .content-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.logo .tagline {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* Badges entreprise */
.company-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.company-badges span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* Navigation principale */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.main-nav a.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.cta-nav {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600 !important;
}

.cta-nav:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* Sélecteur de langue */
.language-switcher {
    margin-top: 0.5rem;
}

.language-switcher a {
    color: var(--medium-gray);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.language-switcher a:hover {
    color: var(--primary);
}

/* ============================================
   5. SECTIONS COMMUNES
   ============================================ */
/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    color: #dbeafe;
}

/* Statistiques hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #dbeafe;
    margin-top: 0.5rem;
}

/* CTA Hero */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Services */
.services-overview {
    padding: 4rem 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card.highlight {
    border-top: 4px solid var(--accent);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* Section SEO Content */
.seo-content {
    padding: 4rem 0;
    background: white;
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

/* Section CTA */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    color: #d1fae5;
}

/* Méthodes de contact */
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-method.highlight {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.method-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-info {
    text-align: left;
}

.method-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: white;
}

.method-info span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   6. SECTIONS SPÉCIALES
   ============================================ */
/* Section Consulting & Apporteur d'Affaires */
.consulting-section {
    background: var(--light);
    padding: 4rem 0;
    margin: 4rem 0;
}

.consulting-model {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .consulting-model {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.model-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.model-card.business {
    border-left: 4px solid var(--business);
}

.model-card.consulting {
    border-left: 4px solid var(--consulting);
}

.model-card.partnership {
    border-left: 4px solid var(--accent);
}

/* Section transparence bancaire */
.compliance-notice {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.compliance-notice h4 {
    color: var(--warning);
    margin-bottom: 0.5rem;
}

.compliance-notice p {
    color: #92400e;
    margin: 0;
}

/* Processus étape par étape */
.process-steps {
    position: relative;
    margin: 3rem 0;
}

.process-step {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    border-left: 4px solid var(--primary);
}

.step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

/* FAQ */
.faq-container {
    margin: 3rem 0;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-bg);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

/* Tableaux */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

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

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid var(--light-gray);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 1rem;
    color: var(--dark-gray);
}

tbody tr:hover {
    background: var(--primary-bg);
}

/* ============================================
   7. FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   8. BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Boutons spéciaux */
.phone-button {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.whatsapp-button {
    background: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ============================================
   10. COMPOSANTS SPÉCIAUX
   ============================================ */
/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--medium-gray);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb a:last-child {
    color: var(--primary);
    font-weight: 500;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-bg);
    color: var(--primary);
}

.badge-accent {
    background: #d1fae5;
    color: var(--accent);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Cartes */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-highlight {
    border-top: 4px solid var(--accent);
}

/* ============================================
   11. UTILITAIRES
   ============================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-light {
    background: var(--light) !important;
}

.bg-primary-light {
    background: var(--primary-bg) !important;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================================
   12. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 767px) {
    /* Typographie mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Navigation mobile */
    .main-nav {
        justify-content: center;
    }
    
    /* Contact methods mobile */
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        width: 100%;
        max-width: 300px;
    }
    
    /* Process steps mobile */
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Tablettes */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 30px;
    }
}

/* ============================================
   13. ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-in {
    animation: slideInLeft 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   14. IMPRESSION
   ============================================ */
@media print {
    .header,
    .hero-cta,
    .cta-section,
    .whatsapp-float,
    .footer,
    .main-nav {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .card,
    .service-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ============================================
   15. DÉBUG & FALLBACKS
   ============================================ */
/* Support pour les navigateurs plus anciens */
@supports not (display: grid) {
    .content-columns,
    .services-grid,
    .footer-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .content-columns > *,
    .services-grid > *,
    .footer-grid > * {
        flex: 1 1 300px;
    }
}

/* Correction pour Safari */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .whatsapp-float {
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
    }
}

/* ============================================
   FIN DU FICHIER STYLE.CSS
   ============================================ */