@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@font-face {
    font-family: 'Vivita Medium';
    src: url('fonts/vivita-medium.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vivita Light';
    src: url('fonts/vivita-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color:#FF00C3;
    --primary-rgb: 255, 0, 195;
    --electric-pink:#FF00C3;
    --electric-pink-rgb:255,0,195;
    --purple-pink:#D200FF;
    --purple-pink-rgb:210,0,255;
    --purple:#8542FF;
    --purple-rgb:133,66,255;
    --blue:#007AFF;
    --blue-rgb:0,122,255;
    --cyan:#00E8FF;
    --cyan-rgb:0,232,255;
    --electric-green:#00F9C3;
    --electric-green-rgb:0,249,195;
    --grey:#6B6E72;
    --light-gey:#9ca3af;
    
}
/* Couleurs spécifiques par page */
body.page-home {
    --primary-color: var(--cyan);
    --primary-rgb: 0, 232, 255;
}

body.page-home .hero {
    background-image: url('images/it-background-pattern.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

body.page-erp {
    --primary-color: var(--purple-pink);
    --primary-rgb: 210, 0, 255;
}

body.page-dev {
    --primary-color: var(--purple);
    --primary-rgb: 133, 66, 255;
}

body.page-bi {
    --primary-color: var(--blue);
    --primary-rgb: 43, 127, 255;
}

body.page-conseil {
    --primary-color: var(--electric-green);
    --primary-rgb: 0, 249, 195;
}

body.page-contact {
    --primary-color: var(--cyan);
    --primary-rgb: 0, 232, 255;
}

body.page-projects {
    --primary-color: var(--cyan);
    --primary-rgb: 0, 232, 255;
}

.work-sans {
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  font-optical-sizing: auto;
  font-style: normal;
}
body {
    background: black;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 80px;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
}

nav::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
a {
    text-decoration: none;
    color: white;
}
.logo {
    width: 80px;
}

.icon-small{
    width: 48px;
    height: 48px;
}
.icon-medium{
    width: 64px;
    height: 64px;
}

.icon-numbers {
    width: 80px;
    height: 70px;

}
nav ul {
    display: flex;
    list-style: none;
    gap: 70px;
    align-items: center;
}

nav a {
    color:var(--light-grey);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #ffffff;
}

.nav-links .dropdown {
    position: relative;
    
   
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: -16px;
    background: rgba(0, 0, 0, 0);
    min-width: 240px;
    padding: 28px 8px 16px 8px;
    margin-top: 12px;
    border-radius: 10px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
}
.centre{
    text-align: center !important;
}
/* pont invisible pour maintenir le hover en descendant vers le dropdown */
.nav-links .dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 16px;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-content a {
    display: block;
    padding: 10px 14px;
    color: var(--light-grey);
    border-radius: 8px;
    font-size: 16px;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.dropdown-content a.dropdown-erp:hover {
    background: rgba(210, 0, 255, 0.08);
    color: #D200FF;
    border-left-color: #D200FF;
}

.dropdown-content a.dropdown-dev:hover {
    background: rgba(133, 66, 255, 0.08);
    color: #8542FF;
    border-left-color: #8542FF;
}

.dropdown-content a.dropdown-bi:hover {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border-left-color: #007AFF;
}

.dropdown-content a.dropdown-conseil:hover {
    background: rgba(0, 249, 195, 0.08);
    color: #00F9C3;
    border-left-color: #00F9C3;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 80px 100px;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.hero-full-width{
    min-width: 100vw !important;
}

.double-button-container,
.projects-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}


#hero {
    position: relative;
    overflow: hidden;
}
  

#light-rays canvas {
    mix-blend-mode: screen;
    opacity: 0.85; /* Ajustable */
  }
  
  #light-rays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

  
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10; /* Le texte passe au-dessus des rayons */
    max-width: 800px;
}

.hero-tag {
    color: var(--primary-color);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-weight: 400;
   
}

.hero h1 {
    font-family: 'Vivita Light', sans-serif;
    font-weight: 100;
    font-size: 120px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
    
  
}

.projects-title {
    font-family: 'Vivita Light', sans-serif;
    font-weight: 100;
    font-size: 120px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
    word-spacing: -1rem;
}



.hero p {
    text-align: left;
    font-size: 24px;
    color:var(--light-grey);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 600px;
}

/* Hero Split Layout for Service pages */
body.page-erp .hero,
body.page-dev .hero,
body.page-bi .hero,
body.page-conseil .hero,
body.page-contact .hero,
body.page-projects .hero {
    justify-content: center;
}

body.page-erp .hero-content,
body.page-dev .hero-content,
body.page-bi .hero-content,
body.page-conseil .hero-content,
body.page-contact .hero-content,
body.page-projects .hero-content {
    align-items: flex-start;
}

body.page-erp .hero p,
body.page-dev .hero p,
body.page-bi .hero p,
body.page-conseil .hero p,
body.page-contact .hero p,
body.page-projects .hero p {
    text-align: left;
}

body.page-erp .hero h1,
body.page-dev .hero h1,
body.page-bi .hero h1,
body.page-conseil .hero h1,
body.page-contact .hero h1,
body.page-projects .hero h1 {
    font-family: "Work Sans", sans-serif;
    font-size: 80px;
    font-weight: 400;
    letter-spacing: 0;
    text-align: left;
    word-spacing: normal;
}

.main-title-index {
    letter-spacing: 1rem;
   
    
  
}



/* Hero 60/40 split with image */
.hero.hero-split {
    flex-direction: row;
    gap: 100px;
    align-items: center;
}

.hero.hero-split .hero-content {
    flex:50%;
}

.hero.hero-split .hero-image {
    flex:50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero.hero-split .hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    opacity: 0.7;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    font-family: inherit;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 400;
    font-size: 18px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
 .btn-contrast{
         text-shadow: 0 1px 3px rgba(3, 18, 41, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.4);
}


.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-weight: 400;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}
section {
    max-width: 1200px;
    padding:50px;
    margin-left: auto;
    margin-right: auto;
}
.section-two-col{
    display: flex;
    align-items:center;
    gap:24px;  
}
.col-left{
    width: 50%;
    padding-right:5%;
}
.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color:var(--light-grey);
    font-size: 22px;
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Grid - Style "Ce que nous faisons" */
.cards-grid-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.cards-grid-3 > * {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
}

.card-simple {
    text-align: center;
    padding: 40px 30px;
}

.card-simple .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
}

.card-simple h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.card-simple p {
    color:var(--light-grey);
    font-size: 15px;
    line-height: 1.6;
}

/* Cards Grid - Style "Nos expertises" */
.cards-grid-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.cards-grid-4 > * {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 0;
}

.card-expertise {
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    border: 1px solid #1d1d1d;
    display: block;
}


.erp:hover {
    background: linear-gradient(
            135deg,
            rgba(var(--purple-pink-rgb), 0.15) 0%,
            rgba(var(--purple-pink-rgb), 0.05) 50%,
            rgba(var(--purple-pink-rgb), 0.03) 100%

    );
}
.dev:hover {
    background: linear-gradient(
            135deg,
            rgba(var(--purple-rgb), 0.15) 0%,
            rgba(var(--purple-rgb), 0.05) 50%,
            rgba(var(--purple-rgb), 0.03) 100%

    );
}
.bi:hover {
    background: linear-gradient(
            135deg,
            rgba(var(--blue-rgb), 0.15) 0%,
            rgba(var(--blue-rgb), 0.05) 50%,
            rgba(var(--blue-rgb), 0.03) 100%

    );
}
.cto:hover {
    background: linear-gradient(
            135deg,
            rgba(var(--electric-green-rgb), 0.15) 0%,
            rgba(var(--electric-green-rgb), 0.05) 50%,
            rgba(var(--electric-green-rgb), 0.03) 100%

    );
    
}
.erp:hover, .dev:hover, .bi:hover, .cto:hover{
    transform: translateY(-4px);
}
.erp:hover .read-more {
    color: var(--purple-pink);
}
.dev:hover .read-more {
    color: var(--purple);
}
.bi:hover .read-more {
    color: var(--blue);
}
.cto:hover .read-more {
    color: var(--electric-green);
}

/* Couleurs spécifiques pour les cartes de service sur la page d'accueil */

.card-expertise .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.card-expertise h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 400;
}

.card-expertise p {
    color:var(--light-grey);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-expertise .read-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey);
}

.col-right-flex {
    display: flex;
    max-width: 50%;
}
.frise-box-container{
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 47px 0;
}

.method-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.15));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.method-content h3 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 400;
}

.method-content p {
    color:var(--light-grey);
    font-size: 14px;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 60px;
    justify-content: center;
}
.projects-grid > * {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(
            135deg,
            rgba(var(--primary-rgb), 0.15) 0%,
            rgba(var(--primary-rgb), 0.05) 50%,
            rgba(var(--primary-rgb), 0.03) 100%
    );
}

.project-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    padding: 0% 50px;
   /*mask-image: linear-gradient(to bottom, black 0, transparent 100%);*/
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 400;
}

.project-content p {
    color:var(--light-grey);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Project Cases (projets.html) */
.case-block {
    padding: 80px 0;
    display: flex;
}

.case-block:first-of-type {
    padding-top: 0px;
}

.case-block:last-of-type {
    border-bottom: none;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.case-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.case-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-grey);
}

.case-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;

}
.case-text{
    margin: 0 auto;
}
.case-grid > .case-text {
    flex: 0 0 calc((100% - 60px) * 2 / 3);
    min-width: 0;
}
.case-grid > .testimonial-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
}

.case-text p {
    font-size: 16px;
    color: var(--light-grey);
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-meta {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.case-meta > * {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 0;
}

.meta-label {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.meta-value {
    font-size: 14px;
}

/* Testimonial Card (projets.html) */
.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    top: 120px; /* nav height (88px) + margin */
}

.testimonial-kicker {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 14px;
    color: var(--light-grey);
}

/* Method Timeline Animation (projets.html) */
body.page-projects #method .method-list {
    position: relative;
    max-width: 600px;
    margin: 80px auto 0;
    padding-left: 40px; /* Space for the timeline */
}


body.page-projects #method .method-item {
    position: relative;
    /* Reset generic styles from other pages */
    display: block;
    padding: 0 0 40px 0;
    gap: 0;
    /* Animation properties */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

body.page-projects #method .method-item:last-child {
    padding-bottom: 0;
}

body.page-projects #method .method-list.in-view .method-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation */
body.page-projects #method .method-list.in-view .method-item:nth-child(1) { transition-delay: 0.1s; }
body.page-projects #method .method-list.in-view .method-item:nth-child(2) { transition-delay: 0.2s; }
body.page-projects #method .method-list.in-view .method-item:nth-child(3) { transition-delay: 0.3s; }
body.page-projects #method .method-list.in-view .method-item:nth-child(4) { transition-delay: 0.4s; }
body.page-projects #method .method-list.in-view .method-item:nth-child(5) { transition-delay: 0.5s; }
body.page-projects #method .method-list.in-view .method-item:nth-child(6) { transition-delay: 0.6s; }

body.page-projects #method .method-icon {
    position: absolute;
    left: -40px; /* Pull icon into the padding */
    top: 0;
    z-index: 2;
}

body.page-projects #method .method-content {
    padding-left: 20px; /* Replicates the old 'gap' */
}

body.page-projects #method .method-content h3 {
    font-size: 20px;
    font-weight: 500;
}

body.page-projects #method .method-content p {
    font-size: 15px;
    
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
 
}

.tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color:var(--light-grey);
    font-weight: 500;
}

/* why Prysmatic - 3x2 grid */
.cards-grid-why {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 auto;
}
.cards-grid-why > * {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.card-why {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.card-why .card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.15));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.card-why h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 400;
}

.card-why p {
    color:var(--light-grey);
    font-size: 14px;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    max-width: 1200px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    text-align: center;
    margin: 100px auto;
    padding: 50px;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.cta-section p {
    color:var(--light-grey);
    font-size: 24px;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 80px 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand p {
    color: #6b7280;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section h4, .footer-section img {
    height: 40px;
}
.footer-section h4 {
    font-size: 15px;
    font-weight: 400;
}

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

.footer-section a, .footer-section p, .footer-section li {
    color: #6b7280;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-section a[href="service-erp.html"]:hover { color: #D200FF; }
.footer-section a[href="service-dev.html"]:hover { color: #8542FF; }
.footer-section a[href="service-bi.html"]:hover { color: #007AFF; }
.footer-section a[href="service-conseil.html"]:hover { color: #00F9C3; }


.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--primary-rgb), 0.5);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color:var(--light-grey);
}

/* Contact Page Specific */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    margin-top: 0px;
    margin-bottom: 100px;
}
.contact-container > .contact-info {
    flex: 0 0 calc((100% - 80px) * 0.4);
    min-width: 0;
}
.contact-container > .contact-form {
    flex: 0 0 calc((100% - 80px) * 0.6);
    min-width: 0;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 400;
}

.contact-info > p {
    color:var(--light-grey);
    line-height: 1.7;
    margin-bottom: 40px;
    font-size: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.15));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.info-content h4 {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content p {
    font-size: 16px;
    font-weight: 500;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.form-row > * {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 13px;
    color:var(--light-grey);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 14px;
    color: white;
    transition: all 0.2s;
}

.form-group select option {
    background: #0a0f1e;
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #4b5563;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(255, 255, 255, 0.05);
}

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

.form-note {
    font-size: 12px;
    color: #6b7280;
}

.form-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
}
.form-message--success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.form-message--error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Service Pages - Cards avec icônes et listes */
.service-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 60px;
}
.service-cards-grid > * {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.service-card .card-icon {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
    font-weight: 400;
}

.service-card p {
    color:var(--light-grey);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    color:var(--light-grey);
    font-size: 14px;
}

.service-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

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

/* Stats Grid */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stat-label {
    color:var(--light-grey);
    font-size: 15px;
}

/* Process Steps */
.process-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
}

.step-number {
    font-size: 56px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 400;
}

.process-step p {
    color:var(--light-grey);
    font-size: 14px;
    line-height: 1.6;
}

/* Logo dans le menu mobile */
.nav-mobile-logo {
    display: none;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Modifier classes to replace inline styles (overridable by media queries) */
.service-cards-grid--2col > * {
    flex: 0 0 calc((100% - 24px) / 2);
}
.process-grid--3col > * {
    flex: 0 0 calc((100% - 80px) / 3);
}
.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 60px auto 0;
}
.expertise-grid > * {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}

/* Child rules for footer, stats, process */
.footer-content > * {
    flex: 0 0 calc((100% - 180px) / 4);
    min-width: 0;
}
.stats-grid > * {
    flex: 0 0 calc((100% - 120px) / 4);
    min-width: 0;
}
.process-grid > * {
    flex: 0 0 calc((100% - 120px) / 4);
    min-width: 0;
}

/* ── 1200px ──────────────────────────────── */
@media (max-width: 1200px) {
    .cta-section{
        max-width: 90%;
    }
    /*.cards-grid-3 > * {
        flex-basis: calc((100% - 30px) / 2);
    }
    .cards-grid-why > *,
    .projects-grid > *,
    .service-cards-grid > * {
        flex-basis: calc((100% - 24px) / 2);
    }*/
}

/* ── 1024px — Tablette ───────────────────── */
@media (max-width: 1024px) {
    nav, section, footer {
        padding-left: 60px;
        padding-right: 60px;
    }
    .hero {
        padding: 120px 40px 80px;
     
    }
    body.page-erp .hero,
    body.page-dev .hero,
    body.page-bi .hero,
    body.page-conseil .hero,
    body.page-contact .hero,
    body.page-projects .hero {
        padding-top: 160px;
        padding-left: 60px;
        padding-right: 60px;
    }
          
    .cta-section {
        margin: 100px 40px;
    }
    .footer-content > * {
     text-align: center;
    }
    .service-cards-grid{
        margin: 0 auto;
    }
    .stats-grid > *,
    .process-grid > * {
        flex-basis: calc((100% - 40px) / 2);
    }
    .case-grid > .case-text,
    .case-grid > .testimonial-card {
        flex-basis: 100%;
    }
    .testimonial-card {
        position: static;
        margin-top: 40px;
    }
    .case-grid{
        gap: 24px;
    }

    /* Hero split → côte à côte tablette */
    .hero.hero-split {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .hero.hero-split .hero-content {
        flex: 0 0 55%;
        align-items: center;
    }
    body.page-dev .hero p{
        text-align: center;
    }
    body.page-dev .hero h1{
        text-align: center;
    }
    .hero.hero-split .hero-image {
        flex: 0 0 calc(45% - 40px);
        display: flex;
        justify-content: center;
    }
    .hero.hero-split .hero-image img {
         width: 80vw;
    }

    /* Section two-col → colonne */
    .section-two-col {
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
    }
    .col-left {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }
    .col-right-flex {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }
    .col-right-flex > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .frise-box-container {
        padding-left: 0;
        align-items: center;
        width: 100%;
    }
    .method-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .method-content {
        text-align: center;
    }
    .section-two-col .section-title,
    .section-two-col .section-subtitle {
        text-align: center !important;
    }

    /* Taille h1 pages services/contact/projets */
    body.page-erp .hero h1,
    body.page-dev .hero h1,
    body.page-bi .hero h1,
    body.page-conseil .hero h1,
    body.page-contact .hero h1,
    body.page-projects .hero h1,
    .projects-title {
        font-size: 60px;
    }
    .hero h1,
    .projects-title,
    .hero p {
        text-align: center !important;
    }
    /* Section Vision & Réalisations → 3 colonnes */
    .cards-grid-3 > * {
        flex-basis: calc((100% - 60px) / 3);
    }
    .card-simple {
        padding: 24px 16px;
    }
    .projects-grid > * {
        flex-basis: calc((100% - 48px) / 3);
    }

    /* Grilles conseil */
    .process-grid--3col > * {
        flex-basis: calc((100% - 40px) / 2);
    }
    .expertise-grid > * {
        flex-basis: calc((100% - 20px) / 2);
    }
}

/* ── 768px — Mobile ──────────────────────── */
@media (max-width: 768px) {
    /* Nav hamburger */
    .hamburger {
        display: flex;
    }
    nav {
        padding: 14px 20px;
    }
    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 4px;
        background: rgba(4, 10, 24, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-mobile-logo {
        display: block;
        margin-bottom: 0;
    }
    .nav-mobile-logo img {
        width: 120px;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links > li > a:not(.contact-btn) {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        border: none;
    }
    .cards-grid-4, .cards-grid-3, .cards-grid-why, .projects-grid, .service-cards-grid, .process-grid{
        flex-direction: column;
    }
    .contact-btn {
        margin-top: 12px;
        font-size: 14px;
    }
    /* Dropdown dans le menu mobile */
    .dropdown-content {
        position: static;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: none;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        border-radius: 0;
        min-width: unset;
        padding: 4px 0 4px 16px;
        margin-top: 0;
    }
    .dropdown-content a {
        padding: 8px 0;
        font-size: 14px;
        font-weight: 300;
        border: none;
        border: none;
    }
    .service-card li::before{
        content: none;
    }

    /* Centrage global mobile */
    body {
        text-align: center;
    }
    footer, footer * {
        text-align: center;
    }
    .service-card, .process-step, .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .service-card .icon-small,
    .card-why .icon-small,
    .card-why > .icon-small {
        display: block;
        margin: 0 auto 16px;
    }
    .card-expertise {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .card-expertise .card-icon,
    .card-why .card-icon {
        margin-left: auto;
        margin-right: auto;
    }
    .method-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
    }
    body.page-projects #method .method-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-left: 0;
        margin-left: 0;
        margin-right: 0;
    }
    body.page-projects #method .method-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-left: 0 !important;
        width: 100%;
    }
    body.page-projects #method .method-icon {
        position: static !important;
        left: auto !important;
    }
    body.page-projects #method .method-content {
        padding-left: 0 !important;
        text-align: center;
        width: 100%;
    }
    .section-title,
    .section-subtitle {
        text-align: center !important;
    }
    body.page-erp .hero-content,
    body.page-dev .hero-content,
    body.page-bi .hero-content,
    body.page-conseil .hero-content,
    body.page-contact .hero-content,
    body.page-projects .hero-content {
        align-items: center;
    }
    .double-button-container,
    .cta-buttons,
    .hero-content > a {
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 80px 20px 8px;
    }
    body.page-home .hero {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    body.page-erp .hero,
    body.page-dev .hero,
    body.page-bi .hero,
    body.page-conseil .hero,
    body.page-contact .hero,
    body.page-projects .hero {
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero h1 {
        font-size: 48px;
    }
    body.page-erp .hero h1,
    body.page-dev .hero h1,
    body.page-bi .hero h1,
    body.page-conseil .hero h1,
    body.page-contact .hero h1,
    body.page-projects .hero h1,
    .projects-title {
        font-size: 40px;
    }
    .hero.hero-split {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .hero.hero-split .hero-content {
        flex: unset;
        width: 100%;
    }
    .hero.hero-split .hero-image {
        flex: unset;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 30px;
        margin-bottom: 0;
    }
    .hero.hero-split .hero-image img {
        max-width: 240px;
    }
    .hero p {
        font-size: 18px;
        max-width: 100%;
    }

    /* Sections */
    section, footer {
        padding: 20px 25px;
    }
    .hero h1,
    .projects-title {
        word-spacing: -0.5rem;
    }
    body.page-home .hero h1,
    body.page-erp .hero h1,
    body.page-dev .hero h1,
    body.page-bi .hero h1,
    body.page-conseil .hero h1,
    body.page-contact .hero h1,
    body.page-projects .hero h1 {
        word-spacing: normal;
    }
    .section-title {
        font-size: 32px;
        margin-top: 20px;
    }
    .icon-medium {
        width: 40px;
        height: 40px;
    }
    .service-card ul {
        list-style-position: inside;
        display: inline-block;
        text-align: center;
    }
    .service-card li{
        font-weight: 300;
    }
    .service-card p{
        font-weight: 400;
    }
    .process-step h3{
        margin-top:12px;
    }
    body.page-conseil .icon-numbers {
        width: 80px;
        height: 57px;
    }
    .tag {
        padding: 4px 8px;
        font-size: 10px;
    }
    .tags {
        gap: 4px;
        justify-content: center;
    }
    .cta-section {
        margin: 60px 20px;
        padding: 60px 24px;
    }
    .cta-section h2 {
        font-size: 28px;
    }
    .cta-section p {
        font-size: 16px;
    }
    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 10px 20px;
    }
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    /* Toutes les grilles → 1 colonne */
    .cards-grid-3 > *,
    .cards-grid-4 > *,
    .cards-grid-why > *,
    .projects-grid > *,
    .service-cards-grid > *,
    .service-cards-grid--2col > *,
    .stats-grid > *,
    .process-grid > *,
    .process-grid--3col > *,
    .expertise-grid > * {
        width: 100%;
        margin: 0 auto;
    }
    .project-image{
        height: 50px;
        margin-top: 20px;
    }
    .project-content{
        padding-top: 20px;
    }
    /* Contact form labels alignés à droite */
    body.page-contact .form-group label {
        text-align: left;
    }

    /* Info items contact */
    .info-item {
        flex-direction: column;
        align-items: center;
    }
    .info-content {
        text-align: center;
    }

    /* Formulaire */
    .form-row {
        flex-direction: column;
    }
    .form-row > * {
        flex: 1 1 100%;
        min-width: 0;
    }
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    .contact-container > .contact-info,
    .contact-container > .contact-form {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* Cas projets */
    .case-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .case-meta {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .case-meta > * {
        flex-basis: 100%;
        text-align: center;
    }

    /* Footer */
    .footer-content > * {
        flex-basis: calc((100% - 40px) / 2);
    }
    .footer-content {
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .case-grid{
        align-items: center;
    }
}

/* ── 480px — Petits phones ───────────────── */
@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
    }
    body.page-home .hero {
        padding-top: 80px;
    }
    body.page-erp .hero,
    body.page-dev .hero,
    body.page-bi .hero,
    body.page-conseil .hero,
    body.page-contact .hero,
    body.page-projects .hero {
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero h1 {
        font-size: 36px;
    }
    body.page-erp .hero h1,
    body.page-dev .hero h1,
    body.page-bi .hero h1,
    body.page-conseil .hero h1,
    body.page-contact .hero h1,
    body.page-projects .hero h1,
    .projects-title {
        font-size: 30px;
    }
    .footer-content{
        flex-direction: column-reverse;
    }
    .hero-tag{
        font-size: 10px;
    }
    .logo{
        width: 40px;
    }
    .hero p {
        font-size: 16px;
    }
    .section-title {
        font-size: 26px;
    }
    .hero.hero-split .hero-image {
        padding-top: 0;
        margin-bottom: 0;
    }
    .hero.hero-split .hero-image img {
        max-width: 200px;
    }
    .double-button-container,
    .projects-actions,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
    .icon-medium {
        width: 40px;
        height: 40px;
    }
    .cta-section h2 {
        font-size: 22px;
    }
    .cta-section p {
        font-size: 14px;
    }
    .section-subtitle {
        font-size: 14px;
    }
    .service-card li{
        text-align: left;

    }
    .service-card li::before{
        content:  '•';
    }
    body.page-conseil .icon-numbers{
        height: 40px;
    }
    .expertise-grid{
        flex-direction: column;
    }
    .hero{
        min-height: 80vh;
        justify-content: flex-start !important;
        padding-top:100px !important;
    }
    .hero-full-width{
         min-height: 100vh !important;
    }
    .hero-image{
        margin-top: 50px;
    }
}
