/* Police Chillax locale */
@font-face {
    font-family: 'Chillax';
    src: url('fonts/Chillax-Extralight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Chillax';
    src: url('fonts/Chillax-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Chillax';
    src: url('fonts/Chillax-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Chillax';
    src: url('fonts/Chillax-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Chillax';
    src: url('fonts/Chillax-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Chillax';
    src: url('fonts/Chillax-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-medium: #2a2a2a;
    --gray-light: #4a4a4a;
    --accent-color: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* Polices système - Garanties de fonctionner */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes underlineAnimation {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Styles de base */
body {
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--primary-white);
    background: var(--primary-black);
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

/* Force Segoe UI pour tous les éléments */
* {
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
}

/* Exception pour le texte manuscrit */
.griffiths-text {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive !important;
    font-style: italic;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-black);
    z-index: 1000;
    transition: var(--transition);
    animation: slideInFromTop 0.6s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-image {
    height: 50px;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Logo dans la section À propos - plus grand */
.about-logo .logo-image {
    height: 120px;
    width: auto;
    max-width: 300px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-white);
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-white);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--primary-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Section Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/fond-accueil.jpg.png') no-repeat center center;
    background-size: cover;
    opacity: 1;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.05) 100%);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    animation: fadeInLeft 1s ease;
    margin-left: -500px;
}

.hero-title {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 39px; /* 29.5pt → 39px */
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary-white);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Texte normal (medium) */
.hero-title .normal-text {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-weight: 500; /* medium */
}

/* Texte light */
.hero-title .light-text {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-weight: 300; /* light */
}


.chillax-text-le {
    font-family: 'Chillax' !important;
    font-size: 39px !important; /* 29.5pt → 39px */
    font-weight: 500 !important; /* Medium */
    color: #fff !important;
}

/* Mot "conseil" avec Chillax */
.chillax-text-conseil {
    font-family: 'Chillax';
    font-size: 39px; /* 29.5pt → 39px */
    font-weight: 300; /* léger */
    color: #000;
}

/* Mot "conseil" dans la section hero */
.chillax-text-conseil-hero {
    font-family: 'Chillax' !important;
    font-size: 39px !important; /* 29.5pt → 39px */
    font-weight: 300 !important; /* léger */
    color: #fff !important;
}

/* Mot "qui" avec Chillax */
.chillax-text-qui {
    font-family: 'Chillax' !important;
    font-size: 39px !important; /* 29.5pt → 39px */
    font-weight: 500 !important; /* Medium */
    color: #fff !important;
}
/* Mot "votre entreprise" avec Chillax */
.chillax-text-votre-entreprise {
    font-family: 'Chillax';
    font-size: 39px; /* 29.5pt → 39px */
    font-weight: 500; /* Medium */
    color: #fff;
}
/* Mot "Du" avec Chillax */
.chillax-text-du {
    font-family: 'Chillax';
    font-size: 39px; /* 29.5pt → 39px */
    font-weight: 500;
    color: #000;
}
/* Mot "à" avec Chillax */
.chillax-text-a {
    font-family: 'Chillax';
    font-size: 39px; /* 29.5pt → 39px */
    font-weight: 500;
    color: #000;
}
/* Mot "l'operationnel" avec Chillax */
.chillax-text-l-operationnel {
    font-family: 'Chillax';
    font-size: 39px; /* 29.5pt → 39px */
    font-weight: 500;
    color: #000;
}

/* Description avec Chillax Medium */
.chillax-description {
    font-family: 'Chillax';
    font-size: 20px; /* 15.3pt → 20px */
    font-weight: 500; /* Medium */
    color: #ffffff;
}

/* Sous-titre Services avec Chillax Medium */
.chillax-services-subtitle {
    font-family: 'Chillax';
    font-size: 20px; /* 15.3pt → 20px */
    font-weight: 500; /* Medium */
    color: #ffffff;
}
/* Mot "impacte" avec effet */
.impact-word {
    position: relative;
    display: inline-block;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 47px; /* 35pt → 47px */
    font-style: italic;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Conteneur pour l'effet flèche/éclair */
.impact-effect {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
}

/* SVG de l'effet flèche */
.lightning-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Chemin principal (éclair) */
.lightning-path {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLightning 0.85s ease-out forwards;
}

/* Halo de l'éclair */
.lightning-halo {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLightning 0.85s ease-out forwards, flicker 0.1s ease-in-out 0.85s 3;
}

/* Animation de dessin de l'éclair */
@keyframes drawLightning {
    to {
        stroke-dashoffset: 0;
    }
}

/* Animation de scintillement */
@keyframes flicker {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(0.5px); }
    50% { transform: translateX(-0.5px); }
    75% { transform: translateX(0.3px); }
}

/* Effet au survol */
.impact-word:hover .lightning-path,
.impact-word:hover .lightning-halo {
    stroke-dashoffset: 200;
    animation: drawLightning 0.85s ease-out forwards, flicker 0.1s ease-in-out 0.85s 3;
}

/* Nouvelles fonctionnalités - Catégories avec indicateurs */
.categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    font-size: clamp(16px, 2.2vw, 20px);
    margin-bottom: 3rem;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.category:hover {
    opacity: 0.8;
}

.category.active {
    opacity: 1;
}

.category-label {
    font-weight: 500;
    color: var(--primary-white);
    transition: color 0.3s ease;
}

.indicators {
    display: flex;
    align-items: center;
    gap: 4px;
}

.seg {
    height: 8px;
    border-radius: 3px;
    background: var(--primary-white);
    transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 4px;
}

.seg.active {
    width: 12px;
}

.bar {
    height: 8px;
    border-radius: 3px;
    background: var(--primary-white);
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 48px;
}

.bar.active {
    width: 96px;
}

/* Bouton flèche */
.arrow-button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    margin-right: 1rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.arrow-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.arrow-button:focus {
    outline: 2px solid var(--primary-white);
    outline-offset: 2px;
}

/* CTA "voir plus" avec explosion */
.cta {
    position: relative;
    border-radius: 16px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Effet de décomposition de gauche à droite */
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.cta.explode::before {
    opacity: 1;
    animation: decomposeLeftToRight 0.8s ease-out forwards;
}

@keyframes decomposeLeftToRight {
    0% {
        background: linear-gradient(90deg, transparent 0%, transparent 100%);
    }
    25% {
        background: linear-gradient(90deg, transparent 0%, transparent 75%);
    }
    50% {
        background: linear-gradient(90deg, transparent 0%, transparent 50%);
    }
    75% {
        background: linear-gradient(90deg, transparent 0%, transparent 25%);
    }
    100% {
        background: linear-gradient(90deg, transparent 0%, transparent 0%);
    }
}

.cta.explode {
    animation: decompose 0.8s ease-out forwards;
}

@keyframes decompose {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotate(90deg) scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scale(0.7);
        opacity: 0.6;
    }
    75% {
        transform: rotate(270deg) scale(0.4);
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg) scale(0);
        opacity: 0;
    }
}

.cta:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta:focus {
    outline: 2px solid var(--primary-white);
    outline-offset: 2px;
}

/* Morceaux d'explosion du CTA */
.shard {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

.shard-1 { clip-path: polygon(0% 0%, 50% 0%, 0% 50%); }
.shard-2 { clip-path: polygon(50% 0%, 100% 0%, 100% 50%); }
.shard-3 { clip-path: polygon(0% 50%, 50% 100%, 0% 100%); }
.shard-4 { clip-path: polygon(50% 100%, 100% 50%, 100% 100%); }

/* Animation d'explosion */
.cta.explode .shard-1 {
    transform: translate(-100px, -100px) rotate(-45deg);
    opacity: 0;
}

.cta.explode .shard-2 {
    transform: translate(100px, -100px) rotate(45deg);
    opacity: 0;
}

.cta.explode .shard-3 {
    transform: translate(-100px, 100px) rotate(45deg);
    opacity: 0;
}

.cta.explode .shard-4 {
    transform: translate(100px, 100px) rotate(-45deg);
    opacity: 0;
}

/* Conteneur des boutons */
.buttons-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

/* Accessibilité */
.category:focus {
    outline: 2px solid var(--primary-white);
    outline-offset: 4px;
}

.highlight-text {
    font-style: italic;
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.griffiths-text {
    font-family: 'Kalam', cursive;
    font-size: 35px; /* 35pt */
    font-style: normal;
    font-weight: 400;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-white);
    border-radius: 2px;
}

.hero-subtitle {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 18px; /* Environ 15-20pt */
    font-weight: 400; /* Regular */
    color: var(--primary-white);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.cta-button-new {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: var(--gray-medium);
    color: var(--primary-white);
    border: none;
    padding: 15px 30px;
    font-size: 15.3px; /* 15.3pt */
    font-weight: 500; /* Medium */
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button-new:hover {
    background: var(--gray-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateX(5px);
}

.cta-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.cta-button:hover .cta-icon {
    background: var(--gray-medium);
}

.cta-text {
    background: var(--gray-light);
    padding: 0 25px;
    height: 50px;
    display: flex;
    align-items: center;
    color: var(--primary-black);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.cta-button:hover .cta-text {
    background: var(--primary-white);
}

/* Sections communes */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-white);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Section À propos */
.about {
    padding: 6rem 0;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 2;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('images/fond-a-propos.jpg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.9;
}

.architectural-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.building-left {
    position: absolute;
    left: 10%;
    top: 20%;
    width: 200px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
}

.building-left::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.1) 30px,
        rgba(255,255,255,0.1) 35px
    );
}

.torus-shape {
    position: absolute;
    right: 15%;
    top: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: 50%;
    box-shadow: 
        0 0 100px rgba(255,255,255,0.1),
        inset 0 0 50px rgba(255,255,255,0.05);
    animation: float 6s ease-in-out infinite;
}

.torus-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.building-right {
    position: absolute;
    right: 5%;
    bottom: 20%;
    width: 150px;
    height: 300px;
    background: linear-gradient(45deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255,255,255,0.08);
}

.building-right::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 25px,
        rgba(255,255,255,0.08) 25px,
        rgba(255,255,255,0.08) 30px
    );
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.about-text {
    animation: fadeInLeft 1s ease;
}

.about-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-description {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--gray-light);
    line-height: 1.6;
    max-width: 500px;
}

.about-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.company-logo {
    text-align: center;
}

.company-logo h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-white);
    margin: 0;
    letter-spacing: -0.02em;
}

.trademark {
    font-size: 1.5rem;
    vertical-align: super;
    color: var(--gray-light);
}

.company-logo .logo-subtitle {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-white);
    letter-spacing: 0.2em;
    margin-top: -10px;
    display: block;
}

.partners-logos {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    overflow: hidden;
    white-space: nowrap;
    animation: scrollLeft 10s linear infinite;
    position: relative;
    z-index: 2;
}

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

.partner-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    transition: var(--transition);
    flex-shrink: 0;
    min-width: 280px;
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-black);
    transform: translateY(-5px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-main {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Services */
.services {
    padding: 6rem 0;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/fond-services.jpg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.8;
    z-index: 1;
}

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

.service-card {
    background: var(--gray-dark);
    padding: 3rem 2rem;
    border-radius: 0;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--gray-medium);
    border-color: var(--primary-white);
}

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

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

/* Section Portfolio */
.portfolio {
    padding: 6rem 0;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/fond-potfolio.jpg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 3;
}

.portfolio-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease;
    background: var(--primary-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-white);
}

.portfolio-image {
    height: 250px;
    background: var(--gray-medium);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    transition: all 0.3s ease;
    text-align: center;
    padding: 2rem;
    z-index: 10;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
}

.portfolio-item:hover .portfolio-overlay h3 {
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1) !important;
    display: block !important;
}

.portfolio-item:hover .portfolio-overlay p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    display: block !important;
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    color: #ffffff;
    letter-spacing: 0.5px;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.portfolio-link {
    color: var(--primary-white);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--primary-white);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.portfolio-link:hover {
    background: var(--primary-white);
    color: var(--primary-black);
}

/* Popup Portfolio */
.portfolio-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.portfolio-popup.active {
    display: flex;
}

.popup-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f0f0f0;
    color: #000;
}

.popup-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.popup-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.popup-header p {
    color: #666;
    font-size: 1.1rem;
}

.popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.popup-image {
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
}

.popup-description h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.popup-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.technologies-list span {
    background: #007bff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.features-list li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

.popup-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.popup-link, .popup-contact {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.popup-link {
    background: #007bff;
    color: white;
}

.popup-link:hover {
    background: #0056b3;
}

.popup-contact {
    background: #6c757d;
    color: white;
}

.popup-contact:hover {
    background: #545b62;
}

@media (max-width: 768px) {
    .popup-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .popup-content {
        margin: 1rem;
        max-height: 95vh;
    }
}

/* Section Notre équipe */
.team {
    padding: 6rem 0;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/fond-equipe.jpg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.team-member {
    background: var(--primary-black);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--primary-white);
    box-shadow: var(--shadow-hover);
}

.member-photo {
    height: 300px;
    background: var(--gradient);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-white);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

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

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.member-description {
    color: var(--gray-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Section Contact */
.contact {
    padding: 6rem 0;
    background: var(--primary-white);
    position: relative;
    z-index: 2;
    color: var(--primary-black);
}

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

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--primary-black);
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-black);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-black);
    width: 20px;
}

.contact-item span {
    color: var(--primary-black);
    font-weight: 500;
}

.contact-form {
    background: var(--gray-light);
    padding: 3rem;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--primary-white);
    color: var(--primary-black);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-black);
    background: var(--gray-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-medium);
}

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

.btn {
    padding: 15px 30px;
    border: 1px solid var(--primary-black);
    border-radius: 0;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    background: transparent;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

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

/* Footer */
.footer {
    background: var(--gray-dark);
    color: var(--primary-white);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-white);
}

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

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

.footer-section ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 1.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--primary-black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-right {
        gap: 1rem;
        margin-left: auto;
    }
    
    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-card {
        padding: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .company-logo h1 {
        font-size: 3rem;
    }
    
    .partners-logos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .partner-logo {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .building-left,
    .building-right {
        display: none;
    }
    
    .torus-shape {
        width: 200px;
        height: 200px;
        right: 10%;
        top: 5%;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .member-photo {
        height: 250px;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .company-logo h1 {
        font-size: 2.5rem;
    }
    
    .partners-logos {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .partner-logo {
        padding: 0.8rem;
    }
    
    .torus-shape {
        width: 150px;
        height: 150px;
    }
    
    .member-photo {
        height: 200px;
    }
    
    .member-info {
        padding: 1rem;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-content {
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
}

/* Breakpoints supplémentaires pour une meilleure responsivité */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .nav-logo {
        margin-left: -150px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .nav-right {
        gap: 0.5rem;
        margin-left: auto;
    }
    
    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .company-logo h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Animations d'apparition au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effets de parallaxe */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Responsive pour l'effet éclair */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .impact-word {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .impact-word {
        font-size: 36px;
    }
    
    .categories {
        flex-direction: column;
        gap: 16px;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 1rem;
    }
}
/* Règles spécifiques pour la section hero - texte blanc - FORCE REFRESH */
.hero-title .chillax-text-du {
    color: #fff !important;
}

.hero-title .chillax-text-conseil {
    color: #fff !important;
}

.hero-title .chillax-text-a {
    color: #fff !important;
}

.hero-title .chillax-text-l-operationnel {
    color: #fff !important;
}

.hero-title .griffiths-text {
    color: #fff !important;
}
