/* === BASE === */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

body.home {
    background: url('image_de_fond_accueil.jpg') no-repeat center center fixed;
    background-size: cover;
}

body:not(.home) {
    background-color: white;
    color: #002e5d;
}

/* === HEADER === */
header {
    background-color: #cc9c32;
    padding: 10px 0;
    color: white;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo-slogan {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.gnegne-text {
    font-weight: bold;
    margin-left: 10px;
    color: white;
}

.slogan {
    margin-left: 10px;
    color: #003366;
    font-size: 0.9em;
    margin-top: 5px;
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.language-selector a {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* === HERO === */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.8);
    max-width: 70%;
    margin: 40px auto 20px auto;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5em;
    color: #002e5d;
}

.hero p {
    font-size: 1.2em;
    color: #002e5d;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn,
.contact-form .btn {
    background-color: #002e5d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.btn:hover,
.contact-form .btn:hover {
    background-color: #001b3f;
}

/* === FOOTER === */
footer {
    background-color: #132c4c;
    color: white;
    text-align: center;
    padding: 20px 10px;
    margin-top: auto;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === CONTACT FORM === */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f5f7fa;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #002e5d;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    background-color: white;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #002e5d;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 46, 93, 0.3);
}

/* === BLOG === */
.blog-post {
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.blog-post h2 {
    margin-top: 0;
    color: #002e5d;
}

.blog-post .date {
    font-size: 0.9em;
    color: gray;
    margin-bottom: 10px;
}

.blog-post a {
    display: inline-block;
    margin-top: 10px;
    color: #002e5d;
    text-decoration: underline;
}

/* === SERVICES === */
.services-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.service-card {
    border: 1px solid #002e5d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #002e5d;
}

.service-card h3 {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #002e5d;
}

.service-card p {
    font-size: 1em;
    color: #002e5d;
    margin: 0;
}

/* === PORTFOLIO === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.portfolio-item {
    background-color: #fff;
    padding: 20px;
    border-left: 4px solid #0a0a23;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item h2 {
    margin-bottom: 10px;
    color: #0a0a23;
}

/* === CV === */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 15px;
}

.main-content h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #0a0a23;
}

.main-content section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #0a0a23;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.main-content section:hover {
    transform: scale(1.01);
}

.main-content section h2 {
    margin-bottom: 10px;
    color: #0a0a23;
}

.main-content section ul {
    padding-left: 20px;
    list-style: disc;
}

.main-content section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-slogan {
        flex-direction: column;
        align-items: flex-start;
    }

    .slogan {
        margin-left: 0;
        margin-top: 5px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero {
        padding: 30px 10px;
        max-width: 95%;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
