/* style.css */

/* Variables */
:root {
    --bg-main: #F5F3EF;
    --bg-dark: #112F5A;
    --accent-main: #1D5DA6;
    --accent-sec: #49A0E3;
    --accent-gold: #7ED994;
    --text-sec: #5A5450;
    --text-light: #ffffff;
    --text-dark: #141210;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none; /* Custom cursor everywhere */
}

button {
    cursor: none;
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

em, i {
    font-style: italic;
}

.caps-label {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
}

/* Custom Cursor (Outline Only for Zero Lag) */
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    width: 32px;
    height: 32px;
    border: 1px solid var(--bg-dark);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.3s;
}

body.hovering .cursor-outline {
    width: 56px;
    height: 56px;
    background-color: rgba(17, 47, 90, 0.2);
}

body.cursor-on-dark .cursor-outline {
    border-color: var(--text-light);
}

body.cursor-on-dark.hovering .cursor-outline {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s, backdrop-filter 0.3s;
    color: var(--text-light);
    
    transform: translateY(-20px);
    opacity: 0;
    animation: navAppear 0.8s ease forwards 0.2s;
}

.navbar.scrolled {
    backdrop-filter: blur(12px);
    background-color: rgba(17, 47, 90, 0.9);
    padding: 20px 60px;
}

.nav-logo {
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    font-size: 22px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 24px; /* x2 size */
}

.nav-links a {
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links .dot {
    opacity: 0.5;
}

.nav-cta {
    padding: 10px 20px;
    background-color: var(--accent-main);
    color: var(--text-light) !important;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.nav-cta:hover {
    background-color: var(--accent-sec);
    transform: translateY(-2px);
    color: var(--text-light) !important;
}

@keyframes navAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 1. Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: kenBurns 14s ease-out forwards;
}

@keyframes kenBurns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #091833, #112F5A, #1D5DA6);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(126, 217, 148, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(126, 217, 148, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,18,40,0.7), transparent 55%);
}

.hero-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-gold);
    top: 20%;
    left: 10%;
    animation: float 10s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-sec);
    bottom: 10%;
    right: 10%;
    animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    to { transform: translateY(40px) translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(40px, 6vw, 80px);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), transform 1.2s cubic-bezier(0.16,1,0.3,1);
    transition-delay: 0.3s;
}

.hero.is-visible .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: flex-end;
}

.hero-text-left, .hero-text-right {
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s, box-shadow 0.4s ease;
    line-height: 1.5;
    max-width: 400px;
}

.hero-text-left {
    transition-delay: 0.6s, 0.6s, 0s;
}
.hero-text-right {
    text-align: right;
    justify-self: end;
    transition-delay: 0.6s, 0.6s, 0s;
}

.hero.is-visible .hero-text-left, 
.hero.is-visible .hero-text-right {
    opacity: 1;
    transform: translateY(0);
}

.hero.is-visible .hero-text-left:hover, 
.hero.is-visible .hero-text-right:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hero-cta-wrapper {
    opacity: 0;
    transition: opacity 0.8s;
    transition-delay: 0.9s;
}

.hero.is-visible .hero-cta-wrapper {
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    padding: 20px 40px;
    background-color: var(--accent-main);
    color: var(--text-light) !important;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(29, 93, 166, 0.3);
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.btn-primary:hover {
    background-color: var(--accent-sec);
    transform: translateY(-2px);
    color: var(--text-light) !important;
}

/* 2. Piliers et Intégrations */
.piliers {
    background-color: var(--bg-main);
    padding: 120px 0;
}

.piliers-container {
    display: flex;
    justify-content: space-around;
    padding: 0 60px;
    margin-bottom: 120px;
}

.pilier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s, color 0.3s;
    cursor: default;
}

.piliers.is-visible .pilier {
    opacity: 1;
    transform: translateY(0);
}

.piliers-container:hover .pilier:not(:hover) {
    opacity: 0.4;
    transform: scale(0.95);
}

.pilier:hover {
    color: var(--bg-dark);
    transform: scale(1.05);
}

.piliers.is-visible .pilier:nth-child(1) { transition-delay: 0.1s; }
.piliers.is-visible .pilier:nth-child(2) { transition-delay: 0.2s; }
.piliers.is-visible .pilier:nth-child(3) { transition-delay: 0.3s; }

.pilier-num {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 60px;
    color: rgba(17, 47, 90, 0.3);
    transition: color 0.3s, transform 0.3s;
}

.pilier:hover .pilier-num {
    color: var(--bg-dark);
    transform: scale(1.1);
}

.pilier-label {
    font-family: var(--font-body);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.separator {
    height: 1px;
    background-color: rgba(90, 84, 80, 0.2);
    width: 100%;
}

.marquee-container {
    overflow: hidden;
    padding: 40px 0;
    white-space: nowrap;
    display: flex;
}

.marquee-content {
    flex-shrink: 0;
    padding-right: 50px; /* spacing before loop repeats */
    font-size: 14px;
    letter-spacing: 0.2em;
    opacity: 0.3;
    animation: scrollLeft 30s linear infinite;
    cursor: default;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
    opacity: 0.6;
    transition: opacity 0.3s;
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* 3. Déclaration Centrale */
.declaration {
    position: relative;
    padding: 120px 0 0 0;
    text-align: center;
    background-color: var(--bg-main);
}

.declaration-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.declaration-title {
    font-size: clamp(48px, 6vw, 90px);
    margin-bottom: 60px;
}

.declaration-line {
    width: 0;
    height: 1px;
    background-color: rgba(17, 47, 90, 0.3);
    margin: 0 auto 30px auto;
    transition: width 1.2s ease;
}

.declaration.is-visible .declaration-line {
    width: 60px;
}

.declaration-subtitle {
    font-size: 12px;
    letter-spacing: 0.15em;
    opacity: 0.5;
    text-transform: uppercase;
}

.stat-banner {
    position: relative;
    height: 60vh;
    background: linear-gradient(to bottom, #1D5DA6, #112F5A);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    overflow: hidden;
    color: var(--text-light);
    transform: scale(1.04);
    transition: transform 1.5s ease;
}

.declaration.is-visible .stat-banner {
    transform: scale(1);
}

.stat-giant {
    font-family: var(--font-heading);
    font-size: clamp(80px, 12vw, 150px);
    color: var(--text-light);
    font-weight: bold;
    margin-bottom: 20px;
}

.stat-label {
    position: relative;
    z-index: 1;
    font-size: 14px;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* 4. La Science de l'Automatisation */
.science {
    padding: 120px 60px;
    background-color: var(--bg-main);
}

.science-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.science-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s, transform 1s;
}

.science.is-visible .science-left {
    opacity: 1;
    transform: translateX(0);
}

.science-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.science-tag {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.4;
    margin-bottom: 40px;
}

.science-body {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-sec);
}

.btn-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    color: var(--accent-main);
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
}

.btn-text:hover {
    border-bottom: 1px solid var(--accent-main);
}

.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(90, 84, 80, 0.2);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.science.is-visible .module-item {
    opacity: 1;
    transform: translateY(0);
}

.science.is-visible .module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 20px;
    border-bottom: 1px solid transparent;
}

.science.is-visible .module-item:nth-child(1) { transition-delay: 0.15s; }
.science.is-visible .module-item:nth-child(2) { transition-delay: 0.30s; }
.science.is-visible .module-item:nth-child(3) { transition-delay: 0.45s; }
.science.is-visible .module-item:nth-child(4) { transition-delay: 0.60s; }
.science.is-visible .module-item:nth-child(5) { transition-delay: 0.75s; }

.module-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 1px;
    width: 0;
    background-color: var(--accent-main);
    transition: width 0.4s ease;
}

.module-item:hover::after {
    width: 100%;
}

.module-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
}

.module-num {
    font-family: var(--font-heading);
    font-style: italic;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    font-size: 24px;
}

.module-name {
    font-family: var(--font-body);
}

.module-time {
    font-size: 11px;
    color: var(--text-sec);
    text-transform: uppercase;
}

/* 5. Galerie Stats */
.galerie-stats {
    display: flex;
    height: 75vh;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.stats-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    position: relative;
    overflow: hidden;
}

.stats-left {
    background: linear-gradient(to bottom right, #112F5A, #1D5DA6);
}

.stats-separator {
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: rgba(245, 243, 239, 0.06);
}

.stats-right {
    background-color: var(--bg-dark);
}

.stats-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
    position: relative;
    z-index: 2;
}

.galerie-stats.is-visible .stats-content {
    opacity: 1;
    transform: translateY(0);
}

.galerie-stats.is-visible .stats-left .stats-content {
    transition-delay: 0.15s;
}

.galerie-stats.is-visible .stats-right .stats-content {
    transition-delay: 0.3s;
}

.stats-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 20px;
    display: block;
}

.stats-value {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 72px);
}

.stats-value span, .stats-value i {
    color: var(--accent-gold);
    font-style: italic;
}

.stat-bg-number {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 200px;
    opacity: 0.04;
    pointer-events: none;
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from { transform: translateY(-50%) scale(1); }
    to { transform: translateY(-50%) scale(1.02); }
}

/* 6. Ingénierie de Précision */
.ingenierie {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 120px 60px;
}

.ingenierie-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.ingenierie.is-visible .ingenierie-header {
    opacity: 1;
    transform: translateY(0);
}

.ingenierie-title {
    font-size: 48px;
    margin-bottom: 15px;
}

.ingenierie-ref {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    opacity: 0.8;
}

.ingenierie-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.ingenierie-list li, .stack-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(245, 243, 239, 0.1);
    font-size: 18px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s, transform 0.5s;
}

.ingenierie.is-visible .ingenierie-list li,
.ingenierie.is-visible .stack-list li {
    opacity: 1;
    transform: translateY(0);
}

.ingenierie.is-visible .ingenierie-list li:nth-child(1) { transition-delay: 0.1s; }
.ingenierie.is-visible .ingenierie-list li:nth-child(2) { transition-delay: 0.2s; }
.ingenierie.is-visible .ingenierie-list li:nth-child(3) { transition-delay: 0.3s; }
.ingenierie.is-visible .ingenierie-list li:nth-child(4) { transition-delay: 0.4s; }
.ingenierie.is-visible .ingenierie-list li:nth-child(5) { transition-delay: 0.5s; }

.ingenierie.is-visible .stack-list li:nth-child(1) { transition-delay: 0.3s; }
.ingenierie.is-visible .stack-list li:nth-child(2) { transition-delay: 0.4s; }
.ingenierie.is-visible .stack-list li:nth-child(3) { transition-delay: 0.5s; }
.ingenierie.is-visible .stack-list li:nth-child(4) { transition-delay: 0.6s; }
.ingenierie.is-visible .stack-list li:nth-child(5) { transition-delay: 0.7s; }

.ing-num {
    font-family: var(--font-heading);
    font-style: italic;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 10px;
}

.stack-list strong {
    color: var(--text-light);
    font-weight: 500;
}

/* Solutions Details */
.solutions-details {
    padding: 120px 60px;
    width: 100%;
}

.solutions-subtitle {
    font-size: 36px;
    margin-bottom: 15px;
}

.solutions-desc {
    color: var(--text-sec);
    margin-bottom: 40px;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.case-card {
    background-color: rgba(17, 47, 90, 0.03);
    padding: 40px 60px;
    border-left: 2px solid rgba(17, 47, 90, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 0 12px 12px 0;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

/* Tarifs Section */
.tarifs {
    padding: 120px 60px;
    background-color: var(--bg-main);
}

.tarifs-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tarifs-title {
    font-size: 48px;
    margin-bottom: 40px;
}

.tarifs-content {
    font-size: 18px;
    line-height: 1.8;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tarifs .btn-primary {
    color: var(--accent-main);
    border-color: var(--accent-main);
}
.tarifs .btn-primary::before {
    background-color: var(--accent-main);
}
.tarifs .btn-primary:hover {
    color: var(--text-light);
}

.tarifs-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tarifs-content strong {
    color: var(--accent-main);
    font-weight: 400;
}

/* Contact Section */
.contact {
    padding: 120px 60px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.contact-title {
    font-size: 60px;
    margin-bottom: 20px;
}

.contact-container p {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* Footer Section */
.footer {
    background-color: #091833;
    color: var(--text-light);
    padding: 80px 60px 20px 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.6;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--text-light);
}

.legal-links a:hover {
    text-decoration: underline;
}

.back-to-top {
    background: transparent;
    color: var(--accent-sec);
    border: 1px solid var(--accent-sec);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.3s, color 0.3s;
}

.back-to-top:hover {
    background: var(--accent-sec);
    color: var(--bg-dark);
}

/* Animations Reveal Text Words */
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.word-inner {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.declaration:not(.is-visible) .word-inner {
    transition-delay: 0s !important;
}

.declaration.is-visible .word-inner {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), opacity 0.8s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-columns {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text-left, .hero-text-right {
        max-width: 100%;
        text-align: center;
    }
    
    .science-container, .ingenierie-container {
        grid-template-columns: 1fr;
    }
    
    .galerie-stats {
        flex-direction: column;
        height: auto;
    }
    
    .stats-col {
        padding: 60px;
    }
    
    .stats-separator {
        width: 100%;
        height: 1px;
        bottom: 0;
        top: auto;
    }
}

@media (max-width: 768px) {
    /* Hide custom cursor on mobile */
    .cursor-outline {
        display: none !important;
    }
    body, a, button {
        cursor: auto !important;
    }

    /* Padding adjustments for mobile */
    .piliers, .declaration, .science, .ingenierie, .tarifs, .contact, .solutions-details {
        padding: 60px 20px !important;
    }

    /* Hero Section fixes */
    .hero {
        padding: 120px 20px 40px 20px !important;
        height: auto !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-columns {
        display: flex;
        flex-direction: column;
        gap: 20px !important;
        margin-top: 40px !important;
    }
    .hero-text-left, .hero-text-right {
        padding: 20px !important;
    }
    .btn-primary {
        width: 100% !important;
        text-align: center;
        padding: 15px 20px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    /* Navbar fixes */
    .navbar {
        padding: 15px 20px;
        background-color: var(--bg-dark); /* Solid background to avoid overlap */
        align-items: center;
    }
    .nav-links {
        display: none;
    }
    .nav-logo img {
        transform: scale(2) !important;
        transform-origin: left center;
        margin-left: 10px !important;
        height: 55px !important; /* Huge logo on mobile */
    }
    .nav-cta {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap; /* Prevent wrapping */
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: clamp(36px, 10vw, 48px) !important;
    }
    .science-title, .ingenierie-title, .contact-title, .tarifs-title, .solutions-subtitle {
        font-size: clamp(28px, 8vw, 36px) !important;
    }
    .declaration-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 40px;
    }

    /* Piliers fixes */
    .piliers-container {
        flex-direction: column;
        gap: 40px;
        padding: 0;
        margin-bottom: 60px;
    }
    .pilier {
        text-align: center;
    }
    .pilier-label {
        text-align: center;
        display: block;
        font-size: 16px !important;
    }
    .pilier-num {
        font-size: 60px !important;
    }

    /* Grid layouts */
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .case-card {
        padding: 30px 20px !important;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px 15px;
        text-align: left;
    }
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-brand p {
        margin: 0 auto;
    }
    .footer-brand img {
        margin: 0 auto 20px auto;
        height: 50px !important;
        transform: scale(1.2) !important;
    }
    .footer-contact {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 10px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .legal-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Contact Links fixes */
    .contact-links {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }

    /* Stats */
    .stat-giant {
        font-size: clamp(50px, 15vw, 80px);
    }
    
    .stats-col {
        padding: 40px 20px;
        text-align: center;
    }

    /* Modules */
    .module-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .module-time {
        align-self: flex-start;
    }

    .stat-banner {
        height: auto;
        padding: 60px 20px;
    }
}
