:root {
    --blue-dark: #0a2240;
    --blue-light: #3a5ba0;
    --yellow: #ffd500;
    --white: #ffffff;
    --accent: #ffc107;
    --footer-bg: #0a2240;
    --footer-gradient: linear-gradient(135deg, #0a2240 0%, #162a53 100%);
    --footer-accent: #ffc107;
    --footer-text: #ffffff;
    --footer-muted: #c0c0c0;
}

/* Styles généraux */
* {
    box-sizing: border-box;
}

body {
    background: var(--blue-dark);
    color: var(--white);
    font-family: "Open Sans", sans-serif;
}

h2, h3, h5 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

a, .nav-link {
    color: var(--white);
}

/* Navbar */
.navbar {
    background: var(--blue-dark) !important;
    transition: background 0.3s;
}

.nav-link {
    transition: color 0.3s;
}

.nav-link:hover, .nav-link:focus {
    color: var(--yellow);
}

.btn-primary {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--blue-dark);
    font-weight: 600;
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
}

/* Hero section */
.hero {
    height: 75vh;
    background-image: url("../images/silder1.webp");
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: var(--white);
    text-align: center;
    max-width: 90%;
}

/* Services section */
#services {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    position: relative;
    overflow: hidden;
}

.services .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Portfolio section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 150px;
    gap: 1rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 34, 64, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Projects realized */
.projects-realized .card {
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--blue-dark);
}

/* Contact section */
#contact {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
}

.glass-card .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
}

/* Footer */
footer {
    position: relative;
    background: var(--footer-gradient);
    color: var(--footer-text);
    overflow: hidden;
    padding: 4rem 0 0;
}

footer::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--footer-bg);
    clip-path: polygon(0 100%, 20% 50%, 40% 100%, 60% 50%, 80% 100%, 100% 50%, 100% 100%, 0% 100%);
    z-index: 1;
}

.footer-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-block h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--footer-accent);
}

.footer-block h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--footer-accent);
    border-radius: 2px;
}

.footer-block p,
.footer-block li,
.footer-block a {
    font-size: 0.9rem;
    color: var(--footer-muted);
}

.footer-block a:hover {
    color: var(--footer-text);
    text-decoration: none;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li + li {
    margin-top: 0.5rem;
}

.footer-contact i {
    color: var(--footer-accent);
    margin-right: 0.5rem;
}

.footer-news form {
    display: flex;
    gap: 0.5rem;
}

.footer-news input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 2rem;
    outline: none;
}

.footer-news button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 2rem;
    background: var(--footer-accent);
    color: var(--footer-bg);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-news button:hover {
    background: darken(var(--footer-accent), 10%);
}

.footer-social a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--footer-text);
    position: relative;
    transition: color 0.3s;
}

.footer-social a::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    color: var(--footer-accent);
}

.footer-social a:hover::after {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0 2rem;
    font-size: 0.8rem;
    color: var(--footer-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wave animation */
.hero-waves {
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: -7px;
}

.wave1 use {
    animation: move-forever 4s linear infinite;
}

.wave2 use {
    animation: move-forever 6s linear infinite;
}

.wave3 use {
    animation: move-forever 8s linear infinite;
}

@keyframes move-forever {
    from {
        transform: translate3d(-90px, 0, 0);
    }
    to {
        transform: translate3d(85px, 0, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
} 