/* Variables CSS */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #ff006e;
    --dark-color: #14213d;
    --light-color: #f8f9fa;
    --success-color: #2ec4b6;
    --warning-color: #ff9f1c;
}

/* Général */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

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

a:hover {
    color: var(--secondary-color);
}

/* Header */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1) 0%, rgba(255, 0, 110, 0.1) 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero p.lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    background-color: #fff;
}

.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    /*background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

/* About Preview */
.about-preview {
    background-color: var(--light-color);
}

/* Portfolio */
.portfolio-item {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonial-carousel .testimonial-item {
    padding: 2rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-role {
    color: #6c757d;
    margin-bottom: 0;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.newsletter h2,
.newsletter p {
    color: white;
}

.newsletter .form-control {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    min-width: 300px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Boutons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sections */
.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}


/* Styles supplémentaires pour les améliorations */

/* Accessibilité - Focus visible */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Navigation améliorée */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-cta-nav {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}

/* Bannière cookies */
#cookie-banner {
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Animations supplémentaires */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Amélioration de l'accessibilité des liens */
a[target="_blank"]::after {
    content: " (ouvre dans un nouvel onglet)";
    font-size: 0.75em;
}

/* Styles pour les écrans très larges */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

/* Impression */
@media print {
    .navbar, .footer, .btn, #cookie-banner {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}