/* Variables globales */
:root {
    --primary-color: #0D2B4F;      /* Bleu nuit */
    --secondary-color: #F58025;    /* Orange vif */
    --accent-color: #A0A8B7;       /* Gris moyen */
    --bg-color: #F7F8FA;           /* Blanc cassé */
    --text-color: #2C2F33;         /* Gris anthracite */
    --link-color: #1E90FF;         /* Bleu azur */
}

/* Typographie */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@300;400;500&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 500; }

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -80px; /* Pour compenser le header fixe */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 43, 79, 0.7); /* Utilise la couleur primaire avec opacité */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    width: 100%;
    padding-top: 80px; /* Pour compenser le header fixe */
}

.hero-content h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
}

.hero-content h3 {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    opacity: 0.9;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Contact Form Styles */
.contact-form .g-recaptcha {
    margin-bottom: 1rem;
}

.contact-form .btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#captchaError {
    display: none;
    margin-top: 0.5rem;
}

/* Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Solution Cards with Circle Icons */
.solution-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.card-icon-wrapper {
    background-color: #0D2B4F;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card-icon i {
    font-size: 2rem;
    color: #0D2B4F;
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    margin-bottom: 1rem;
    color: #0D2B4F;
}

.card-body p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-body .btn {
    align-self: flex-start;
}

/* Value Items */
.value-item {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.value-item i {
    font-size: 2rem;
}

/* Experience Badge */
.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.experience-badge .h2 {
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.experience-badge .text-sm {
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    visibility: hidden;
}

/* Footer */
.site-footer {
    background-color: var(--text-color);
}

.social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        min-height: 500px;
    }
}

/* Animations spécifiques */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
