/* Variables CSS */
:root {
    --green: #215B6F;
    --dark-green: #13485A;
    --orange: #FF7F3E;
    --primary-color: #215B6F;
    --secondary-color: #13485A;
    --accent-color: #FF7F3E;
    --dark-color: #13485A;
    --light-color: #f9fafb;
}

/* Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: white;
}

/* Typographie par défaut */
p, span, div, a, li, td, th {
    font-size: 16px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-light .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 16px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 91, 111, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: white;
    padding: 120px 0 100px;
    position: relative;
}

/* Titres de section */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--orange));
    border-radius: 2px;
}

.text-center .section-title {
    display: inline-block;
}

/* Cartes */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 35px rgba(33, 91, 111, 0.2);
}

.card-img-top {
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 91, 111, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-size: 16px;
}

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

.btn-warning, .btn-orange {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
    font-size: 16px;
}

.btn-warning:hover, .btn-orange:hover {
    background-color: #e66a2e;
    border-color: #e66a2e;
    color: white;
}

/* Utilitaires de couleur */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

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

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

/* Alertes */
.alert-success {
    background-color: rgba(33, 91, 111, 0.1);
    border-color: var(--primary-color);
    color: var(--dark-green);
    font-size: 16px;
}

.alert-primary {
    background-color: rgba(33, 91, 111, 0.1);
    border-color: var(--primary-color);
    color: var(--dark-green);
    font-size: 16px;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 50px 0 20px;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.footer-link:hover {
    color: white;
}

/* Témoignages */
.testimonial-card {
    background: white;
    border-left: 4px solid var(--orange);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(33, 91, 111, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Logos clients */
.client-logo {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logo:hover {
    filter: grayscale(0%);
}

/* Carrousel de logos clients */
.clients-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.clients-carousel {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 60px;
    align-items: center;
}

.clients-carousel:hover {
    animation-play-state: paused;
}

.client-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    height: 120px;
    transition: transform 0.3s;
}

.client-item:hover {
    transform: scale(1.1);
}

.client-logo-carousel {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.client-logo-carousel:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.client-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    min-width: 150px;
}

.client-logo-placeholder i {
    margin-bottom: 10px;
    opacity: 0.6;
}

.client-logo-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    p, span, div, a, li, td, th {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .clients-carousel {
        gap: 40px;
    }
    
    .client-item {
        padding: 15px 30px;
        height: 100px;
    }

    .client-logo-carousel {
        max-height: 60px;
        max-width: 140px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    p, span, div, a, li, td, th {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

