/* Google Fonts chargées via <link> non-bloquant dans le HTML (preload) */

:root {
    --primary: #0f172a;
    /* Deep Space Navy */
    --nav-bg: rgba(15, 23, 42, 0.7);
    --secondary: #F18033;
    /* 4Inte Orange */
    --accent: #00C0F3;
    /* 4Inte Cyan */
    --white: #ffffff;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: clip; /* clip ≠ hidden : ne crée pas de scroll container → évite la double scrollbar */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.5;
    overflow-x: clip;
    position: relative;
}

/* Links - Remove underlines globally */
a {
    text-decoration: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.95);
    /* More opaque */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo img {
    height: 75px;
    /* Slightly reduced for better fit */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 0 15px rgba(0, 192, 243, 0.15)) brightness(1.1);
    /* Brighter for dark backgrounds */
    mix-blend-mode: screen;
    /* Blends logo background */
    opacity: 0.9;
}

.logo img:hover {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(0, 192, 243, 0.3)) brightness(1.2);
}

header.scrolled .logo img {
    height: 50px;
}

nav ul {
    display: flex;
    gap: 25px;
    /* Tighter gap */
    align-items: center;
    list-style: none;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.85rem;
    /* Smaller, premium text */
    color: var(--text);
    opacity: 0.6;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 5px;
}

/* Animated underline effect on hover */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a:hover {
    opacity: 1;
    color: var(--secondary);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Header Contact Info */
.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.nav-phone {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.nav-phone:hover {
    color: var(--accent);
    transform: scale(1.05);
}

/* Assistance Button (Mockup Style) */
.btn-assistance {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    transition: var(--transition);
}

.btn-assistance:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--secondary);
}

/* Buttons */
.btn {
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #f59e0b);
    color: white;
    box-shadow: 0 10px 20px rgba(241, 128, 51, 0.2);
    animation: pulse-subtle 3s ease-in-out infinite;
}

@keyframes pulse-subtle {

    0%,
    100% {
        box-shadow: 0 10px 20px rgba(241, 128, 51, 0.2);
    }

    50% {
        box-shadow: 0 10px 25px rgba(241, 128, 51, 0.35);
    }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(241, 128, 51, 0.3);
    animation: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Hero Section (Total Overhaul) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 180px;
    /* More space for fixed header */
    background: radial-gradient(circle at 70% 30%, rgba(0, 192, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(241, 128, 51, 0.1) 0%, transparent 50%);
    position: relative;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    color: var(--white);
}

.hero-content h1 span.orange {
    color: var(--secondary);
    background: linear-gradient(to right, var(--secondary), #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 50px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 25px;
}

/* Hero Image with Glass Border */
.hero-img-wrapper {
    position: relative;
    padding: 30px;
    display: flex;
    /* Ensure container is active */
    justify-content: center;
    align-items: center;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    backdrop-filter: blur(10px);
    /* Increased blur */
    z-index: 0;
    /* Changed from -1 to 0 to ensure interaction if needed, but image will be z-index 1 */
}

.hero-img-wrapper img {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
    /* Above the glass background */
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: perspective(2000px) rotateY(-10deg) rotateX(1deg);
    transition: var(--transition);
}

/* Sub-page Hero */
.hero-sub {
    padding: 220px 0 120px;
    /* High top padding to avoid logo overlap */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

/* Sub-page Hero Background Overrides */
.hero-sub.telephony {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1543269865-cbf427effbad?auto=format&fit=crop&w=1920&q=80') !important;
}

.hero-sub.it {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80') !important;
}

.hero-sub.internet {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80') !important;
}

.hero-sub.security {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920&q=80') !important;
}

.hero-sub.contact-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') !important;
}

.hero-sub.tools {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1558618666-fcd25c85f82e?auto=format&fit=crop&w=1920&q=80') !important;
}

.hero-sub.audio-mix {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?auto=format&fit=crop&w=1920&q=80') !important;
}

.hero-sub.audio-convert {
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1478737270239-2f02b77fc618?auto=format&fit=crop&w=1920&q=80') !important;
}

/* Tools hub - card grid */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 40px;
    transition: var(--transition);
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 25px 50px rgba(241, 128, 51, 0.1);
}

.tool-card .tool-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.tool-card h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 15px;
}

.tool-card p {
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.7;
}

.tool-card .btn {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.hero-sub h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-sub p {
    font-size: 1.3rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

.hero-img-wrapper:hover img {
    transform: perspective(2000px) rotateY(0deg);
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    opacity: 0.1;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -50px;
    left: -100px;
    opacity: 0.05;
}

/* Services Section */
.services {
    padding: 150px 0;
    background: #0b1120;
}

.section-head {
    text-align: center;
    margin-bottom: 100px;
}

.section-head h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on one line */
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 32px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 192, 243, 0.3), 0 0 40px rgba(241, 128, 51, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Vision & Engagement Section */
.about-vision {
    padding: 150px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.about-vision .container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.portrait-wrapper {
    position: relative;
    padding: 20px;
    max-width: 320px;
}

.portrait-frame {
    position: relative;
    z-index: 1;
    border-radius: 40px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portrait-frame:hover {
    transform: translateY(-10px) rotate(1deg);
    border-color: var(--accent);
}

.portrait-frame img {
    width: 100%;
    display: block;
    mix-blend-mode: luminosity;
    /* Gives a premium B&W/Silver feel */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s, mix-blend-mode 0.4s;
    opacity: 0.8;
}

.portrait-frame:hover img {
    mix-blend-mode: normal;
    opacity: 1;
    transform: scale(1.08);
}

.portrait-wrapper::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 192, 243, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.vision-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--white);
}

.subtitle {
    display: block;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.manifesto {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--secondary);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.vision-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.vision-item p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

.signature {
    margin-top: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.signature::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--secondary);
}

@media (max-width: 992px) {
    .about-vision .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portrait-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .signature {
        justify-content: center;
    }

    .manifesto {
        border-left: none;
        border-top: 2px solid var(--secondary);
        padding: 20px 0 0;
    }

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

/* Footer (Mockup Style) */
footer {
    background: #070b14;
    padding: 120px 0 40px;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary)) 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 30px;
}

.footer-text {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Adjusting content grids on mobile (targeting the inline-styled grids) */
@media (max-width: 768px) {
    section [style*="grid-template-columns"],
    main [style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 30px !important;
    }

    .glow-orb {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .content-section ul li strong {
        white-space: normal !important;
    }

    section,
    .content-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-sub h1 {
        font-size: 2rem;
        word-break: break-word;
    }

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

@media (max-width: 992px) {
    header {
        padding: 15px 0;
        background: rgba(15, 23, 42, 0.9);
        border-bottom: 1px solid var(--glass-border);
    }

    .logo img {
        height: 45px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1050;
        padding: 120px 50px;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }

    nav.active {
        transform: translateX(0);
    }

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

    nav ul li a {
        font-size: 1.2rem;
        opacity: 1;
    }

    .header-contact {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-btns {
        justify-content: center;
    }

    .hero-img-wrapper {
        display: block;
        /* Show images on mobile but stacked */
        margin-top: 40px;
    }

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

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

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

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

/* content-section styles (used in service pages) */
.content-section ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 45px;
    /* Increased bottom margin for the button */
}

.content-section ul li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
    color: var(--text-dim);
    font-size: 1.15rem;
    line-height: 1.6;
}

.content-section ul li i {
    color: var(--secondary);
    /* The requested color on icons */
    font-size: 1.25rem;
    margin-top: 4px;
    flex-shrink: 0;
    background: rgba(241, 128, 51, 0.1);
    /* Subtle background for icons */
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(241, 128, 51, 0.2);
}

.content-section ul li strong {
    color: var(--white);
    font-weight: 700;
    margin-right: 5px;
    white-space: nowrap;
    /* Prevents colons from wrapping to a new line */
}

/* Map Section */
.map-section {
    padding: 0 0 80px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(1) invert(0.9) contrast(0.9) brightness(0.9);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Touch Feedback Effect */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .service-card,
    nav ul li a,
    .footer-col ul li a {
        -webkit-tap-highlight-color: rgba(241, 128, 51, 0.2);
    }

    .btn:active,
    .service-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* Phone Number Hover Effect - Simple version without emoji */
.nav-phone:hover {
    color: var(--accent);
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(0, 192, 243, 0.3);
}