/* Variables CSS */
:root {
    --primary-color: #8dc6ff;
    --primary-dark: #0c63a5;
    --secondary-color: #0d2844;
    --accent-color: #3498db;
    --dark-bg: #181f35;
    --light-bg: #f4f7fa;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #fff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --section-padding: 80px 0;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    margin: 0;
    font-family: 'Consolas', sans-serif;
    line-height: 1.6;
    background-size: cover;
    background-attachment: fixed;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Animations d'entrée pour les sections */
.section-container,
.competence-card,
.client-logo,
.env-tech-category,
.org-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Header et navigation principale */
.full {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/bg.jpg);
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    height: 460px;
}

.entete {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    transition: height 0.8s ease, background-color 0.4s ease;
}

#logo {
    width: 64px;
    height: 64px;
}

.menu {
    border-bottom: 2px solid var(--primary-color);
    width: 50%;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    color: var(--primary-color);
    font-family: Consolas;
    font-size: 16px;
    margin-left: 28%;
    height: 64px;
}

.menu_b {
    margin-right: 20px;
    cursor: pointer;
    height: 40%;
    flex: 1;
    padding: 1%;
    font-size: 120%;
    transition: var(--transition);
}

.menu_b:hover {
    cursor: pointer;
    transition: .3s;
    color: var(--text-light);
    transform: scale(1.4);
}

.menu_b.active {
    color: var(--text-light);
}

/* Hamburger Menu pour responsive */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 200;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.hamburger-menu.active span {
    background-color: var(--text-light);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

header {
    width: 100%;
    padding-top: 5%;
    padding-bottom: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-family: 'IM Fell English', serif;
    font-size: 3em;
    color: #8dc6ff;
    text-align: center;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    animation: fadeIn 1s ease-in-out;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-bottom: 0;
}

header p {
    margin-top: 5px;
    width: 5%;
    border-bottom: 2px solid #8dc6ff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header p {
    margin-top: 5px;
    width: 5%;
    border-bottom: 2px solid var(--primary-color);
}

.intro-text {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeIn 1.5s ease-in-out;
}

.header-subtitle {
    color: #e0e0e0;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease-out;
}

/* Navigation interne à la page */
.page-nav {
    background-color: var(--text-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.page-nav .container {
    display: flex;
    justify-content: center;
}

.page-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.page-nav li {
    margin: 0;
    padding: 0;
}

.page-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.page-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.page-nav a:hover {
    color: var(--primary-color);
}

.page-nav a:hover::after {
    width: 70%;
}

/* Structure des sections */
.section-container {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Section présentation entreprise */
.entreprise-presentation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.entreprise-logo {
    flex: 0 0 300px;
    text-align: center;
}

.entreprise-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.entreprise-info {
    flex: 1;
    min-width: 300px;
}

.entreprise-description h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.entreprise-description p {
    margin-bottom: 20px;
    color: var(--text-medium);
}

/* Domaines d'expertise */
.expertise-domaines {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.expertise-box {
    flex: 1;
    min-width: 180px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
}

.expertise-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.expertise-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.expertise-content h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.expertise-content p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

.entreprise-localisation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.localisation-info {
    flex: 0 0 300px;
    padding: 20px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.localisation-info h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.localisation-info h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.localisation-info address {
    font-style: normal;
    line-height: 1.6;
}

.localisation-map {
    flex: 1;
    min-width: 300px;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.localisation-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Organigramme */
.organigramme-content {
    max-width: 900px;
    margin: 0 auto;
}

.org-level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.org-level:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: #ccc;
    transform: translateX(-50%);
}

.org-card {
    width: 220px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.manager-card {
    border-top: 5px solid var(--primary-dark);
}

.org-photo {
    position: relative;
    padding-top: 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.org-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
}

.org-info {
    padding: 15px;
    text-align: center;
}

.org-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.org-title {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.org-description {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.org-techs {
    justify-content: center;
}

/* Code initial pour les missions */
.missions {
    margin: 3% auto;
    width: 80%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
}

.missions h2,
.clients h2 {
    font-family: 'Consolas';
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.missions-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.mission {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background-color: var(--text-light);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.mission h3 {
    font-family: 'IM Fell English', serif;
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.mission p {
    font-family: Consolas;
    color: var(--secondary-color);
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

.mission:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#ma-place-si {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    font-family: 'Arial', sans-serif;
    box-shadow: var(--shadow);
}

#ma-place-si h2 {
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
}

#ma-place-si p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-medium);
    text-align: justify;
}

#ma-place-si em {
    font-style: italic;
    color: var(--accent-color);
}

/* Clients */
.clients-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.client-logo {
    flex: 0 0 170px;
    height: 130px;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    padding: 15px;
    transition: var(--transition);
}

.client-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 40, 68, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 10px;
    text-align: center;
}

.client-logo:hover .client-overlay {
    opacity: 1;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.client-overlay h4 {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.client-overlay p {
    color: #e0e0e0;
    font-size: 0.8rem;
    margin: 0;
}

.highlight-client {
    flex: 0 0 360px;
    height: 170px;
    border: 2px solid var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.footer .footer-logo p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-family: 'Consolas', sans-serif;
    margin-bottom: 0;
}

.footer-links,
.footer-social,
.footer-legal {
    margin-bottom: 30px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul,
.footer-legal ul {
    list-style-type: none;
    padding: 0;
}

.footer-links li,
.footer-legal li {
    font-family: 'Consolas', sans-serif;
    margin-bottom: 12px;
}

.footer-links a,
.footer-legal a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer .footer-bottom p {
    font-size: 0.9rem;
    color: #bbb;
    text-align: center;
    font-family: 'Consolas', sans-serif;
}

.footer .rgpd-notice {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Consolas', sans-serif;
}

.footer .rgpd-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer .rgpd-notice a:hover {
    text-decoration: underline;
}

/* Menu responsive */
/* Styles pour le footer en mode mobile */
@media (max-width: 768px) {
    .footer-content {
        justify-content: center;
        text-align: center;
    }

    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-legal {
        margin: 0 20px 30px;
    }

    /* Style pour la mobile nav quand elle est affichée */
    .entete {
        height: 80px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: var(--dark-bg);
    }

    .entete #logo {
        position: absolute;
        left: 25px;
        top: 8px;
    }

    .hamburger-menu {
        display: flex !important;
        z-index: 1001;
    }

    /* Ajustements pour le menu mobile */
    body.has-mobile-menu .full {
        padding-top: 80px;
    }

    header {
        padding-top: 120px;
    }

    /* Ajustements du menu plein écran */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.85);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 150;
        border-bottom: none;
    }

    .menu.active {
        opacity: 1;
        visibility: visible;
    }

    .menu_b {
        width: auto;
        padding: 8px 0;
        margin: 5px 0;
        border-bottom: none;
        text-align: center;
        font-size: 1.2rem;
        letter-spacing: 2px;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .menu.active .menu_b {
        transform: translateY(0);
        opacity: 1;
    }

    .menu.active .menu_b:nth-child(1) {
        transition-delay: 0.1s;
    }

    .menu.active .menu_b:nth-child(2) {
        transition-delay: 0.2s;
    }

    .menu.active .menu_b:nth-child(3) {
        transition-delay: 0.3s;
    }

    .menu.active .menu_b:nth-child(4) {
        transition-delay: 0.4s;
    }

    .menu.active .menu_b:nth-child(5) {
        transition-delay: 0.5s;
    }

    .menu_b:hover {
        transform: translateY(-5px);
        background-color: transparent;
    }

    /* Bloquer le scroll quand le menu est actif */
    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .page-nav {
        position: sticky;
        top: 80px;
        z-index: 100;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 2.2em;
    }

    .full {
        height: 400px;
    }

    .footer {
        padding-top: 40px;
    }
    .intro-text {
        font-size: 0.95rem;
        padding: 0 15px 20px 15px;
    }
}