/* RESET & GLOBAL FIXES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden; /* Empêche le défilement horizontal */
}

/* ROOT + BASE (THÈME CLAIR B2B) */
:root {
  --bg-main: #ffffff; /* Fond blanc pur */
  --bg-panel: #fcfafb; /* Gris très clair pour les encarts/cartes */
  --accent-1: #9b0021; /* Votre couleur de marque */
  --accent-2: #c2445e;
  --accent-3: #4a1c26;
  --accent-vivid: #e60049;
  --text-main: #18181b; /* Gris très foncé pour une lisibilité optimale */
  --text-muted: #555555; /* Gris moyen pour le texte secondaire */
  --text-light-grey: #121212;
  --text-white: rgb(253, 251, 247);
  --border-soft: rgba(0, 0, 0, 0.08); /* Bordures sombres mais discrètes */
  --nav-height: 80px; /* Légèrement plus grand pour un logo B2B classique */
}

html {
  scroll-padding-top: var(--nav-height); 
  scroll-behavior: smooth; 
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* TOP NAV */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(253, 251, 247, 0.95); /* Fond blanc translucide */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  display: block;
  width: auto;
  height: 40px; /* Hauteur fixe pour le B2B */
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
}

.text-pourpre {
  color: var(--accent-1);
}

.text-noir {
  color: var(--text-white);
}

.main-menu {
  display: flex;
  gap: 1.5rem;
}

.main-menu a {
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.25s ease;
}

.main-menu a:hover {
  color: var(--text-main);
}

.main-menu a:hover::after {
  width: 100%;
}

/* --- SÉLECTEUR DE LANGUE --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-left: 1px solid var(--text-muted); 
  padding-left: 1.5rem; 
  margin-left: 0.5rem; 
  transition: color 0.3s ease;
}

.lang-switch:hover {
  color: var(--accent-1); 
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.lang-switch::after {
  display: none !important;
}

.lang-switch .flag-icon {
  width: 20px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

/* LAYOUT */
main {
  padding-top: var(--nav-height);
}

/* HERO (Version B2B Épurée) */
/* --- HERO SECTION (Grille forcée) --- */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;

  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-3) 3%, var(--accent-2) 100%);
  border-bottom: none; /* Plus besoin de ligne de séparation avec un fond foncé */
}




/* Le texte par-dessus */
.hero-inner {
  max-width: 800px;
  position: relative;
  z-index: 2; /* S'assure que le texte est bien au-dessus du dégradé */
}

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-grey);
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-text {
  color: var(--text-white);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
}

/* SECTIONS CONTENU */
.content-section {
  padding: 4rem 2rem;
  max-width: 1092px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: var(--text-main);
  text-align: center;
}

.content-section p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Ajoute une délimitation horizontale claire entre les sections */
#home, #services, #missions, .trust-section {
  border-bottom: 1px solid var(--border-soft);
}

/* Ajustement des paddings pour que la bordure soit bien placée */
.content-section {
  padding: 5rem 2rem; /* Légèrement plus d'espace pour un look plus aéré */
}

.hero {
  border-bottom: 1px solid var(--border-soft);
}

/* --- CONTENEUR BORD À BORD (Pour les fonds de couleur) --- */
.bg-panel-wrapper {
  width: 100%;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* On s'assure que la section à l'intérieur n'a plus ses propres bordures/fonds */
#missions {
  background-color: transparent;
  border: none;
}
/* On donne un très léger reflet pourpre à l'ombre des cartes au survol */
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
  box-shadow: 0 12px 24px rgba(155, 0, 33, 0.12); /* Ombre teintée ! */
}

/* SERVICES / TRIPTYCH B2B */
.triptych-band {
  display: flex;
  align-items: stretch;
  gap: 2rem; /* Espacement classique pour cartes B2B */
  padding: 2rem 0;
}

/* --- LA CARTE GLOBALE (Style B2B avec relief) --- */
.band-item {
  flex: 1;
  padding: 2.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-soft);
  
  /* L'accent coloré en haut (par défaut votre pourpre) */
  border-top: 4px solid var(--accent-1); 
  border-radius: 8px;
  
  /* L'ombre permanente pour détacher la carte du fond blanc */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); 
  
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* L'effet au survol : la carte remonte et l'ombre s'intensifie */
.band-item:hover {
  transform: translateY(-5px);
  /* On teinte légèrement l'ombre avec votre pourpre pour le dynamisme */
  box-shadow: 0 15px 30px rgba(155, 0, 33, 0.08); 
}


/* --- LE TITRE DE LA CARTE --- */
.band-header {
  align-self: center; /* Centre le bloc du titre par rapport à la carte */
  text-align: center; /* S'assure que le texte lui-même est centré */
  margin-bottom: 1rem;
}

.band-header h2 {
  font-size: 1.25rem;
  color: var(--text-main);
}
.band-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* --- LA CARTE GLOBALE (Style B2B épuré) --- */
.band-item {
  padding: 2.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alignement à gauche très corporate */
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.band-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05); /* Ombre très douce */
}

/* --- LE CONTENEUR DE L'ICÔNE (Base commune) --- */
.service-icon-wrapper {
  align-self: center; 
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  /* Le background est retiré ici pour être défini carte par carte en dessous */
}

/* --- L'ICÔNE SVG (Base commune) --- */
.service-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Le stroke est retiré ici pour être défini carte par carte en dessous */
}

/* =========================================
   COULEURS INDIVIDUELLES DES CARTES
   ========================================= */

/* --- CARTE 2 : Consulting (Votre Pourpre) --- */
.band-item:nth-child(2) .service-icon-wrapper {
  background: rgba(155, 0, 33, 0.1); 
}
.band-item:nth-child(2) .service-icon {
  stroke: var(--accent-1); 
}

/* --- CARTE 1 : Portage Salarial (Bleu Corporate/Confiance) --- */
.band-item:nth-child(1) .service-icon-wrapper {
  background: rgba(0, 92, 200, 0.1); 
}
.band-item:nth-child(1) .service-icon {
  stroke: #005cc8; 
}

/* --- CARTE 3 : Expertise (Vert d'eau/Tech) --- */
.band-item:nth-child(3) .service-icon-wrapper {
  background: rgba(13, 148, 136, 0.1); 
}
.band-item:nth-child(3) .service-icon {
  stroke: #0d9488; 
}

.band-item:nth-child(3):hover {
  border-color: #0d9488;
}
/* L'encadré devient bleu au survol */
.band-item:nth-child(1):hover {
  border-color: #005cc8;
}

/* --- AJUSTEMENT DES TEXTES --- */
.band-header {
  margin-bottom: 1rem;
}

.band-header h2 {
  font-size: 1.25rem;
  color: var(--text-main);
}

.band-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CARROUSEL MISSIONS (Études de cas statiques) */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 15px 0; 
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .project-card {
  min-width: 320px; 
  width: 320px;
  height: auto; 
  min-height: 380px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.carousel-btn {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding-bottom: 4px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.carousel-btn:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

.prev-btn { left: -22px; }
.next-btn { right: -22px; }

.project-card {
  background: var(--bg-main);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--bg-panel);
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

/* 1. On transforme la zone d'info en colonne flexible */
.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* 2. La zone de description prend tout l'espace restant */
.project-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Essentiel pour étirer cette zone jusqu'en bas */
}

/* 3. L'astuce magique : margin-top: auto pousse la stack tout en bas */
.project-stack {
  margin-top: auto; 
  font-size: 0.8rem;
  color: var(--text-main); 
  border-top: 1px solid var(--border-soft); 
  padding-top: 0.5rem;
}
.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* 1. Force la taille des paragraphes dans la description (écrase la règle globale) */
.project-desc p {
  font-size: 0.85rem; /* C'est ICI que vous changez la taille du texte normal */
  line-height: 1.4;
  margin-bottom: 0.5rem; /* Ajustez l'espace sous les paragraphes ici */
}

/* 2. Force la taille de la liste à puces pour qu'elle soit identique */
.project-bullets {
  margin: 0.5rem 0 0.75rem 1.2rem; /* Marges de la liste (Haut, Droite, Bas, Gauche) */
  padding: 0;
  color: var(--text-muted);
}

.project-bullets li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
  font-size: 0.75rem; /* C'est ICI que vous changez la taille des bullet points */
}


.project-client {
  font-size: 0.8rem;
  color: var(--accent-1); /* Met la mention du client en pourpre */
  margin-bottom: 0.5rem;
}

/* --- FORMATAGE DES BULLET POINTS DANS LES CARTES --- */
.project-bullets {
  margin: 0.5rem 0 0.5rem 1.2rem; /* Aligne les puces avec le texte */
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-bullets li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* --- LE PLACEHOLDER SANS IMAGE --- */
.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-panel); /* Fond gris très clair de base */
}

.project-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

/* --- VARIANTE 1 : DEV / LOGICIEL (Reflet Pourpre) --- */
.ph-dev {
  background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(155, 0, 33, 0.08) 100%);
}
.ph-dev svg { stroke: var(--accent-1); }

/* --- VARIANTE 2 : INFRA / SYSTÈME (Reflet Bleu Acier) --- */
.ph-infra {
  background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(71, 85, 105, 0.15) 100%);
}
.ph-infra svg { stroke: #475569; }

/* --- VARIANTE 3 : CONSEIL / GESTION (Reflet Émeraude/Tech) --- */
.ph-consulting {
  background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(13, 148, 136, 0.12) 100%);
}
.ph-consulting svg { stroke: #0d9488; }

/* CLIENT LOGOS */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.client-logos img {
  height: 45px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5); /* Adapté pour un fond clair */
  transition: all 0.3s ease;
}

.client-logos img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* --- CLASSE SPÉCIALE POUR LOGOS BLANCS --- */
/* Transforme le blanc en noir, tout en gardant l'effet de transparence B2B */
.client-logos img.logo-white {
  filter: invert(1) opacity(0.5);
}

/* Au survol, le logo reste noir mais devient 100% opaque */
.client-logos img.logo-white:hover {
  filter: invert(1) opacity(1);
  transform: scale(1.05);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-panel);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent-1);
}

/* --- SECTION CONTACT AVEC FOND FIXE --- */
#contact {
  position: relative;
  /* Remplacez par le chemin de votre photo d'équipe (haute résolution nécessaire) */
  background-image: url('media/meeting1.jpg'); 
  background-attachment: fixed; /* L'effet Parallax : l'image ne défile pas */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 6rem 2rem; /* Plus d'espace pour profiter de l'image */
  color: #ffffff; /* Texte en blanc pour le contraste */
}

/* Overlay sombre pour garantir la lisibilité du texte par-dessus l'image */
#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Voile noir à 50% d'opacité */
  z-index: 1;
}

/* Assure que le contenu reste au-dessus de l'overlay */
#contact .section-title,
#contact p,
#contact .contact-email-wrapper {
  position: relative;
  z-index: 2;
  color: #ffffff; /* Force le texte en blanc */
}

#contact p {
  color: rgba(255, 255, 255, 0.8); /* Texte secondaire légèrement transparent */
}

/* Ajustement des couleurs de l'email pour le fond sombre */
#contact .contact-email-link {
  color: #ffffff;
}

#contact .contact-icon {
  fill: rgba(255, 255, 255, 0.7);
}

#contact .contact-email-link:hover {
  color: var(--accent-2); /* Un rouge plus vif pour le survol sur fond sombre */
}

#contact .contact-email-link:hover .contact-icon {
  fill: var(--accent-2);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Crée un bel espace régulier entre le Studio, le Légal et le Copyright */
}

/* Bloc Écosystème (Studio) */
.footer-ecosystem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ecosystem-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.studio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent-1); /* Votre pourpre */
  text-decoration: none;
  transition: color 0.3s ease;
}

.studio-link:hover {
  color: var(--accent-2);
}

.studio-link svg {
  transition: transform 0.3s ease;
}

.studio-link:hover svg {
  transform: translate(2px, -2px); /* La flèche "décolle" au survol */
}

/* Bloc Liens Légaux */
.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent-1);
}

/* Copyright */
.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* =========================================
   VERSION MOBILE & MENU BURGER
   ========================================= */
.burger-btn {
  display: none;
}

@media (max-width: 768px) {
  /* Header & Logo */
  .top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 1000; 
    background-color: rgba(255, 255, 255, 0.95);
  }

  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .logo-img {
    display: none !important;
  }

  .logo-text {
    display: block !important;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
  }
  
  /* Bouton Burger */
  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  /* Panneau du menu */
  .main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-main);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .main-menu.active {
    right: 0;
  }

  /* Switch de langue mobile */
  .lang-switch {
    border-left: none; 
    padding-left: 0;
    margin-left: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
    width: 50%; 
    margin-top: 1rem;
    display: flex; 
    justify-content: center;
  }

  /* Animation Burger -> Croix */
  .burger-btn.active .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .burger-btn.active .burger-bar:nth-child(2) {
    opacity: 0;
  }
  .burger-btn.active .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Ajustements layout mobile */
  .triptych-band {
    flex-direction: column;
    gap: 1rem;
  }
}