/* ===== VARIABLES CSS ===== */

/* ===== LOGO PERSONNALISÉ ===== */
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px; /* Optionnel, selon votre logo */
}

/* Pour un logo qui a un fond transparent */
.logo-icon {
    background: transparent; /* Enlève le gradient bleu */
    padding: 4px; /* Optionnel: espace autour du logo */
}

/* Responsive pour le logo */
@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }
}
:root {
    --color-primary: #1e40af;
    --color-secondary: #3b82f6;
    --color-accent-yellow: #fbbf24;
    --color-accent-red: #ef4444;
    --color-accent-green: #10b981;
    --color-white: #ffffff;
    --color-bg-light: #f8fafc;
    --color-text-dark: #1e293b;
    --color-text-gray: #64748b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-text p {
    font-size: 12px;
    color: var(--color-text-gray);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* ===== MESSAGES ===== */
.messages-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--color-accent-green);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--color-accent-red);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--color-accent-yellow);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    opacity: 0.95;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.highlight-yellow {
    color: var(--color-accent-yellow);
}

.highlight-red {
    color: var(--color-accent-red);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #bfdbfe;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-xl);
}

.btn-primary:hover {
    background: var(--color-accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp {
    background: var(--color-accent-green);
    color: white;
    box-shadow: var(--shadow-xl);
}

.btn-whatsapp:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-yellow));
    margin: 0 auto;
    border-radius: 2px;
}

.bg-light {
    background: var(--color-bg-light);
}

/* ===== À PROPOS ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-gray);
    text-align: center;
    margin-bottom: 48px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.pillar-card {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pillar-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.pillar-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.pillar-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.pillar-icon svg {
    width: 32px;
    height: 32px;
}

.pillar-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.pillar-card p {
    color: var(--color-text-gray);
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 8px 0;
    color: var(--color-text-gray);
}

/* ===== VALEURS ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.value-card {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.value-icon svg {
    width: 36px;
    height: 36px;
}

.value-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--color-text-gray);
}

/* ===== VISION ===== */
.vision-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 100px 0;
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.vision-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--color-accent-yellow);
}

.vision-icon svg {
    width: 40px;
    height: 40px;
}

.vision-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
}

.vision-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #bfdbfe;
}

/* ===== MARQUES ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.brand-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.brand-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    font-weight: 800;
    color: white;
    transition: var(--transition);
}

.brand-card:hover .brand-logo {
    transform: scale(1.1) rotate(5deg);
}

.brand-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.brand-card p {
    color: var(--color-text-gray);
}

/* ===== FORMULAIRE ===== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.devis-form {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--color-text-gray);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.footer-content h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-content p {
    color: #bfdbfe;
    margin-bottom: 24px;
}

.footer-copyright {
    color: #93c5fd;
    font-size: 14px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--color-accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 999;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 16px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding-top: 120px;
    }
    
    .devis-form {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}