* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00c01c;
    --secondary-color: #ebeadd;
    --text-color: #333;
    --header-bg: rgba(245, 245, 232, 0.95);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .header-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.header-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.header-name-link:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Main Content */
main {
    padding-top: 100px;
    min-height: 100vh;
}

.hero {
    text-align: center;
    padding: 4rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: -0.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease;
}

.subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.description {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Cards Section */
.cards-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 192, 28, 0.3);
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.card-link {
    text-decoration: none;
}

.card-link:hover .card-title {
    color: var(--primary-color);
}

/* Project Section */
.project-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: left;
}

.project-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.project-image-wrapper {
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 0.75rem;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 600px;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    max-height: 350px;
}

.project-text-wrapper {
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    background-color: white;
    min-height: 100%;
    display: flex;
    align-items: center;
    max-width: 400px;
}

.project-text {
    color: var(--text-color);
    line-height: 1.8;
    width: 100%;
}

.project-title {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

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

.project-title a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.project-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.project-text p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    text-align: left;
}

.contact-form {
    background-color: white;
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    transition: border-color 0.3s ease;
    background-color: var(--secondary-color);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label span {
    font-size: 1rem;
    color: var(--text-color);
}

.submit-button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    background-color: #00a016;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 192, 28, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    flex: 1;
    min-width: 200px;
}

.footer-left p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-center {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
    min-width: 200px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Journey Page Styles */
.journey-hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.journey-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.journey-intro {
    font-size: 1.5rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

.journey-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 400px;
}

/* Solutions Page */
.solutions-hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solutions-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.solutions-intro {
    font-size: 1.5rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

.solutions-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solutions-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.solutions-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    text-align: left;
}

.solutions-filters {
    display: flex;
    gap: 0.5rem;
}

.solutions-filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: transparent;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.solutions-filter-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.solutions-filter-btn.is-active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.solution-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: stretch;
    justify-items: start;
    margin-bottom: 4rem;
}

.solution-item:last-child {
    margin-bottom: 0;
}

.solution-item--reversed {
    grid-template-columns: 1fr 1.5fr;
}

.solution-item--reversed .solution-item-image-link {
    order: 2;
}

.solution-item--reversed .solution-item-text-wrapper {
    order: 1;
}

.solution-item-image-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    max-width: 400px;
    min-height: 280px;
}

.solution-item-image-link:hover .solution-item-image-wrapper {
    box-shadow: 0 8px 20px rgba(0, 192, 28, 0.25);
}

.solution-item-image-wrapper {
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 0.75rem;
    background-color: white;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 280px;
    transition: box-shadow 0.3s ease;
}

.solution-item-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.solution-item-text-wrapper {
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    background-color: white;
    max-width: 400px;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.solution-item-text {
    color: var(--text-color);
    line-height: 1.8;
}

.solution-item-title {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.solution-item-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.solution-item-title a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.solution-item-text p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.solution-item-placeholder {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-placeholder-text {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.5;
}

/* Solution detail page */
.solution-detail {
    padding: 6rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.solution-detail-back {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.solution-detail-back:hover {
    color: var(--text-color);
}

.solution-detail-header {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: start;
    margin-bottom: 3rem;
}

.solution-detail-image-wrapper {
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 0.75rem;
    background-color: white;
    overflow: hidden;
}

.solution-detail-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.solution-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.solution-detail-category {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.solution-detail-content {
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    background-color: white;
}

.solution-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.solution-detail-content h2:first-child {
    margin-top: 0;
}

.solution-detail-content p,
.solution-detail-content li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.solution-detail-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.solution-detail-content li {
    margin-bottom: 0.5rem;
}

.solution-detail-content img {
    display: block;
    margin-left: 0;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.lightbox-image {
    cursor: pointer;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.lightbox-image-full {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-name {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .fixed-header {
        padding: 0.75rem 1rem;
    }
    
    .header-left .header-name {
        font-size: 1rem;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem 4rem;
    }
    
    .main-name {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .cards-section {
        padding: 1rem;
    }
    
    .card {
        padding: 2rem;
        min-height: 180px;
    }
    
    .project-section {
        padding: 2rem 1rem;
    }
    
    .project-section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .project-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image-wrapper {
        padding: 0.5rem;
        max-width: 100%;
    }
    
    .project-text-wrapper {
        padding: 1.25rem;
        max-width: 100%;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-text p {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
    
    .contact-section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .radio-group {
        gap: 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        min-width: 100%;
    }
    
    .footer-right {
        justify-content: center;
    }
    
    .journey-hero {
        padding: 4rem 1rem 3rem;
    }
    
    .journey-title {
        font-size: 2.5rem;
    }
    
    .journey-intro {
        font-size: 1.25rem;
    }
    
    .journey-content {
        padding: 1.5rem 1rem;
    }
    
    .model-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .model-wrapper {
        max-width: 100%;
    }
    
    .model-info-wrapper {
        max-width: 100%;
    }
    
    .solutions-hero {
        padding: 4rem 1rem 3rem;
    }
    
    .solutions-title {
        font-size: 2.5rem;
    }
    
    .solutions-intro {
        font-size: 1.25rem;
    }
    
    .solutions-content {
        padding: 1.5rem 1rem;
    }
    
    .solutions-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .solutions-section-title {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .solutions-filters {
        width: 100%;
    }

    .solutions-filter-btn {
        flex: 1;
    }
    
    .solution-item,
    .solution-item--reversed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .solution-item--reversed .solution-item-image-link,
    .solution-item--reversed .solution-item-text-wrapper {
        order: unset;
    }
    
    .solution-item-image-wrapper {
        max-width: 100%;
    }
    
    .solution-item-text-wrapper {
        max-width: 100%;
    }
    
    .solution-item-title {
        font-size: 1.5rem;
    }
    
    .solution-detail {
        padding: 4rem 1rem 3rem;
    }
    
    .solution-detail-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-detail-title {
        font-size: 2rem;
    }
    
    .solution-detail-content {
        padding: 1.5rem;
    }
}

/* 3D Model Styles */
.model-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.model-container + .model-container {
    margin-top: 5rem;
}

.model-wrapper {
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 0.75rem;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 600px;
}

.model-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 192, 28, 0.3);
}

.model-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.model-placeholder:hover {
    transform: none;
    box-shadow: none;
}

.model-placeholder-text {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.6;
}

/* Aperçu du modèle (non interactif pour laisser le clic fonctionner) */
#preview-model {
    width: 100%;
    height: 400px;
    pointer-events: none; 
}

.model-info-wrapper {
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    background-color: white;
    min-height: 70%;
    display: flex;
    align-items: center;
    max-width: 400px;
}

.model-info {
    color: var(--text-color);
    line-height: 1.8;
    width: 100%;
}

.model-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.model-project-number {
    font-weight: 600;
    color: var(--primary-color);
}

.model-date {
    color: var(--text-color);
    opacity: 0.85;
}

.model-info h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.model-info p {
    margin-bottom: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Overlay (le fond sombre) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modèle en grand */
#fullscreen-model {
    width: 90vw;
    height: 80vh;
    outline: none;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    font-family: Arial, sans-serif;
}
