:root {
    --primary: #004E89;
    --secondary: #004E89;
    --accent: #6C757D;
    --dark: #0A0E27;
    --light: #F8F9FA;
    --gray: #6C757D;
    --gradient: linear-gradient(135deg, #004E89 0%, #0A0E27 100%);
    --gradient-text: linear-gradient(135deg, #6C757D 0%, #6C757D 100%);
    --gradient-dark: linear-gradient(135deg, #004E89 0%, #0A0E27 100%);
}

@font-face {
    font-family: 'MyCustomFont';
    src: local('MyCustomFont'),
    url('../fonts/centurygothic.ttf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CENTURYBOLD';
    src: local('CENTURYBOLD'),
    url('../fonts/centurygothic_bold.ttf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'MyCustomFont', sans-serif !important;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
}

h1, h2, h3, h4 {
    font-family: "CENTURYBOLD", sans-serif;
    font-weight: 800;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    margin: 0 auto;
    display: flex;
    padding: 10px 3rem;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

/* Change la couleur du lien quand il a la classe .active */
.nav-link.active {
    color: var(--dark) !important; /* Le bleu Bootstrap par défaut */
    border-bottom: 3px solid var(--dark); /* Optionnel : ajoute une petite barre en dessous */
    width: 105px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 65px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding-top: 10rem;
    padding-right: 3rem;
    padding-left: 3rem;
    padding-bottom: 0rem;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

/*.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite reverse;
}*/

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 2fr;
    /*gap: 2rem;*/
    /* On laisse de la place pour ne pas que le bandeau cache les boutons ou l'image */
    padding-bottom: 10px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.bg-highlight {
    background: var(--gradient);
}

.hero-content .highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding-top: 1rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--secondary);
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    animation: fadeIn 1s ease-out 0.8s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.service-card-mini {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.service-card-mini:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.service-card-mini .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card-mini h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.service-card-mini p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Services Section */

.container {
    margin: 0 auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding-top: 1.6rem;
    padding-right: 1.6rem;
    padding-left: 1.6rem;
    padding-bottom: .6rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Réalisations Section */
.realisations {
    padding-top: 9rem;
    padding-bottom: 0rem;
    padding-right: 0rem;
    padding-left: 0rem;
    background: var(--light);
}

.filter-btn {
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center; /* Centre le contenu si un seul élément, ou la dernière ligne */
    margin: 0 auto;
}

.projet-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.projet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}


.projet-card-body {
    padding: 1.5rem;
}

.projet-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
    margin-bottom: 1rem;
}

.projet-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.projet-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0rem;
}

.projet-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    background: var(--light);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Partenaires Section */

.partenaires-track-wrapper {
    position: relative;
    overflow: hidden;
}

.partenaires-track-wrapper::before,
.partenaires-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partenaires-track-wrapper::before {
    left: 0;
}

.partenaires-track-wrapper::after {
    right: 0;
}

.partenaires-track {
    display: flex;
    gap: 2rem;
    animation: scrollPartners 120s linear infinite;
    width: max-content;
}

.partenaires-track:hover {
    animation-play-state: paused;
}

@keyframes scrollPartners {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.partenaire-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 16px;
    /*padding: 1.8rem 2.5rem;*/
    /*min-width: 180px;*/
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: default;
    flex-shrink: 0;
}


.partenaire-logo .logo-icon {
    font-size: 2.5rem;
}

.partenaire-logo span.logo-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    text-align: center;
}

.partenaire-logo span.logo-type {
    font-size: 0.78rem;
    color: var(--gray);
}

.partenaires-cta p {
    color: var(--gray);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* About Section */
.about {
    padding-top: 9rem;
    padding-bottom: 7rem;
    padding-right: 2rem;
    padding-left: 2rem;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: 15px;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    color: var(--gray);
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding-top: 10rem;
    padding-bottom: 2rem;
    background: var(--gradient-dark);
    color: white;
}

.contact-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

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

.footer-content {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.back-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.legal-container {
    margin: 0 auto;
    padding: 8rem 3rem 4rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.legal-header .update-date {
    color: var(--gray);
    font-size: 1rem;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

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

.legal-content h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.legal-content strong {
    color: var(--dark);
}

.highlight-box {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
}


/*CUSTOM*/

.text-justify {
    text-align: justify;
}

.partenaire-img {
    color: white;
    filter: brightness(0) invert(1);
}

.partenaires-track-wrapper {
    display: flex;
    justify-content: center; /* Centre les éléments si la largeur totale est inférieure au wrapper */
    width: 100%;
    overflow-x: auto; /* Permet le scroll si ça déborde */
    padding: 0px 0;
}

.partenaires-track {
    display: flex;
    flex-wrap: nowrap; /* Garde tout sur une ligne */
    gap: 50px; /* Espace entre les logos */
    padding: 0 15px;
}

.partenaire-logo {
    flex: 0 0 auto; /* Empêche les logos de rétrécir */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /*background-color: white;
    height: 75px;
    width: 75px; !* Largeur fixe pour chaque bloc partenaire *!*/
}

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


/* ===== Page Détail Réalisation ===== */

.realisation-detail-wrapper {
    margin: 0 auto;
    padding: 6rem 0rem 0rem 0rem;
    min-height: 100vh;
    background: var(--light);
}

/* Hero banner */
.realisation-hero {
    position: relative;
    background: var(--gradient-dark);
    padding: 9rem 3rem 4rem;
    overflow: hidden;
}

.realisation-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(255, 210, 63, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.realisation-hero-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInUp 0.7s ease-out both;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    width: fit-content;
}

.back-btn:hover {
    color: var(--accent);
}

.realisation-hero-content .projet-tag {
    font-size: 0.9rem;
    width: fit-content;
}

.realisation-hero-content h1 {
    font-size: 3rem;
    color: white;
    line-height: 1.15;
}

/* Body layout */
.realisation-body {
    margin: 0 auto;
    padding-top: 3rem;
    padding-right: 0rem;
    padding-left: 0rem;
    padding-bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Image */
.realisation-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.realisation-main-img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}

.realisation-main-img--placeholder {
    object-fit: contain;
    padding: 3rem;
    opacity: 0.6;
}

/* Info card */
.realisation-info {
    border-radius: 20px;
    /*padding: 2.5rem 3rem;*/
}

.realisation-meta {
    margin-bottom: 1rem;
}

.meta-badge {
    display: inline-block;
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.realisation-title {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0;
}

.realisation-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 4px;
    margin: 1.2rem 0 1.8rem;
}

.realisation-description {
    color: var(--gray);
    font-size: 1.08rem;
    line-height: 1.8;
    text-align: justify;
}


.realisation-link {
    text-decoration: none;
    flex: 0 1 330px; /* Ne grandit pas, peut rétrécir, base de 330px */
    display: block;
}

.projet-card-image {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Coupe ce qui dépasse */
    background: linear-gradient(135deg, #004E89, #0A0E27);
}

.projet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit l'espace sans déformer, en zoomant légèrement si besoin */
    object-position: center; /* Centre l'image dans le cadre */
    transition: transform 0.5s ease;
}

/* Petit effet sympa : zoom au survol de la carte */
.projet-card:hover .projet-card-image img {
    transform: scale(1.1);
}

.partenaires-cta {
    text-align: center;
    margin-top: .5rem;
    margin-bottom: 2rem;
}

.partenaires .section-header {
    margin-bottom: .3rem;
}

.partenaires {
    padding: .2rem .1rem;
    background: white;
    overflow: hidden;
}

.services {
    padding-top: 9rem;
    padding-right: 0rem;
    padding-left: 0rem;
    padding-bottom: 0rem;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.realisations-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-voir-plus {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-voir-plus:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 78, 137, 0.3);
}

.text-center {
    text-align: center;
    padding-top: 0px;
    margin-bottom: 20px;
}

.floating-icon {
    position: fixed; /* Fixes the element relative to the browser window */
    bottom: 20px;
    right: 20px;
    /* Below are styling properties for appearance */
    background-color: green;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex; /* Uses flexbox for easy centering of the icon */
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    text-decoration: none;
    z-index: 1000;
}

/* Optional: add a hover effect */
.floating-icon:hover {
    background-color: green;
}

/* Styling for the icon itself if using a library */
.floating-icon i {
    font-size: 24px; /* Adjust icon size as needed */
}

/* CSS PARTENANIRES */
/* Positionnement en bas du Hero */
.hero {
    display: flex;
    position: relative; /* Parent de référence */
    flex-direction: column;
    justify-content: space-between; /* Pousse les partenaires vers le bas */
}

.hero-partners-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    /* Effet de fondu/transparence pour l'impression de superposition */
    background: linear-gradient(to top, rgba(10, 14, 39, 1), transparent);
    padding: 20px 0;
    margin-top: 0px !important;
}

.hero-partners-strip .section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Optimisation du Track */
.partenaires-track-wrapper {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}


.partenaire-img {
    height: 50px; /* Taille plus élégante pour un bandeau hero */
    width: auto;
    /*background-color: white;*/
    transition: all 0.3s;
}

.partenaire-img:hover {
    opacity: 1;
    filter: none; /* Reprend ses couleurs au survol */
}

@keyframes scrollPartners {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* CSS PARTENANIRES FIN */

ul {
    padding-left: 0rem !important;
}


.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* --- MOBILE (640px and down) --- */
@media (max-width: 640px) {
    .service-item-linear {
        padding: 0 !important;
    }

    .hero-content {
        margin-bottom: 1rem;
    }

    .hero-partners-strip {
        backdrop-filter: blur(7px);
    }

    .realisations {
        padding: 3rem .5rem;
    }

    .partenaires {
        padding: 3rem .5rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-content h1 {
        padding-top: 20px;
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .services,
    .about {
        padding-top: 3rem;
        padding-right: 1rem;
        padding-left: 1rem;
        padding-bottom: 3rem;
    }

    .contact {
        padding-top: 3rem;
        padding-right: 0rem;
        padding-left: 0rem;
        padding-bottom: 3rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    footer {
        padding-right: 0rem;
        padding-left: 0rem;
    }

    .hero-visual {
        margin-top: 0rem;
        padding: 0 1rem;
    }
}

/* --- TABLET & MOBILE (968px and down) --- */
@media (max-width: 968px) {

    .service-item-linear {
        padding: 0 !important;
    }

    /* Navigation */
    .nav-container {
        padding: 1rem 2rem;
    }

    .nav-links {
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr; /* Correction de 2fr en 1fr pour empiler */
        padding: 2rem 0 120px 0; /* Regroupement du padding (top, right, bottom, left) */
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        grid-template-columns: 1fr;
    }


    /* Sections & Grid */
    .about-content,
    .contact-container,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* --- SPECIFIC TO SMALL TABLET / MOBILE (768px and down) --- */
    @media (max-width: 768px) {
        .equipe {
            padding-right: 1rem !important;
            padding-left: 1rem !important;
        }

        .hero-content {
            margin-bottom: 2rem;
        }

        .team-grid {
            grid-template-columns: 1fr; /* Un seul membre par ligne sur petit mobile */
        }

        /* Navigation & Legal */
        .nav-container {
            padding: 1rem 1.5rem;
        }

        .legal-container {
            padding: 6rem 1.5rem 2rem;
        }

        .legal-header h1 {
            font-size: 2rem;
        }

        .legal-content {
            padding: 2rem 1.5rem;
        }

        /* Page Détail Réalisation */
        .realisation-hero {
            padding: 7rem 1.5rem 3rem;
        }

        .realisation-hero-content h1 {
            font-size: 2rem;
        }

        .realisation-body {
            padding: 1rem .2rem 2rem .2rem;
        }

        .realisation-main-img {
            height: 320px;
        }

        .realisation-info {
            padding: .1rem;
        }

        .realisation-title {
            font-size: 1.6rem;
        }
    }
}


/* --- GRID ALIGNMENT --- */
@media (min-width: 970px) {
    .realisations-grid::after {
        content: "";
        /* Aide à la gestion de l'espace vide sur les grandes listes */
        flex: auto;
    }

    .hero-content {
        margin-bottom: 9rem;
    }

    .hero-visual {
        /* Aligne l'image à droite vers le bord */
        justify-content: flex-end;
    }

    .hero-visual img {
        /* Ici, on peut se permettre une grande taille */
        /* L'image garde ses proportions naturelles */
        max-height: 800px;
        width: auto;
        max-width: 106%;
    }

    .hero-container {
        padding: 2rem 0 0px 0; /* Regroupement du padding (top, right, bottom, left) */
    }
}

/* --- Section Équipe --- */
.equipe {
    padding-top: 10rem;
    padding-bottom: 7rem;
    background: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.team-image {
    width: 175px; /* Obligatoire pour le cercle */
    height: 175px; /* Identique à la largeur */
    /* Centre le cercle dans la carte */
    margin-top: 1.5rem;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 50%; /* Transforme le carré en cercle */
    background: var(--gradient-dark);
    border: 3px solid white; /* Optionnel : ajoute un contour blanc */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Optionnel : donne du relief */
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Évite de déformer le visage */
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: .2rem;
}

.team-info h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.team-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

/* Le logo du partenaire */


.main-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.partner-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: white; /* Fond blanc pour que le logo soit lisible */
    padding: 5px;
    border-radius: 8px; /* Coins légèrement arrondis */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Garde les proportions du logo */
    filter: none !important; /* On annule d'éventuels filtres gris/blancs */
}

/* fin */

.text-primary-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Pour la compatibilité standard */
    font-weight: 800;
    display: inline-block; /* Recommandé pour le background-clip */
}


.service-item-linear {
    background: white;
    border-radius: 20px;
    border-left: 5px solid transparent;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.service-item-linear:hover {
    transform: translateX(20px); /* Décale vers la droite au survol */
    border-left-color: var(--primary);
    background: var(--light);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.service-number {
    opacity: 0.5;
    font-weight: bold;
    transition: opacity 0.3s;
}

.service-item-linear:hover .service-number {
    opacity: 1;
}

/* Optionnel : Une petite animation de pulse sur le panneau visuel */
.visual-display-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.process-card {
    margin-left: .8rem;
    margin-right: .8rem;
}

.equipment-card {
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.equipment-card img {
    transition: transform 0.5s ease;
}

.equipment-card:hover img {
    transform: scale(1.1);
}

/* --- Pour tous les écrans inférieurs à 1400px --- */
@media (max-width: 1399.98px) {
    .hero-container {
        grid-template-columns: 1fr; /* Le texte occupe 100% de la largeur */
        text-align: center; /* Optionnel : centre le texte pour un look "Landing Page" */
    }

    .cta-buttons {
        justify-content: center; /* Centre les boutons */
    }
}

/* --- Pour les très grands écrans (1400px et +) --- */
@media (min-width: 1400px) {
    /* Partners Strip Overlay */
    .hero-partners-strip {
        backdrop-filter: blur(0px);
    }
}

/* Style du bouton "Voir le projet" */
.btn-projet-link {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Espace entre le texte et l'icône */
    margin-top: 2.5rem;
    padding: 14px 14px;
    background: var(--gradient); /* Utilise ton dégradé bleu/noir */
    color: white !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}