/* ===================================
   WIREFRAMES MARBIO - CSS GLOBAL
   Low-fidelity strict: N&B uniquement
   =================================== */

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #000;
  background: #fff;
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation V4 */
header {
  border-bottom: 2px solid #000;
  padding: 20px 0;
  background: #fff;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

.logo {
  font-weight: bold;
  font-size: 24px;
  border: 2px solid #000;
  padding: 10px 20px;
  white-space: nowrap;
}

/* Main Navigation */
nav.main-nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

nav.main-nav a {
  color: #000;
  text-decoration: none;
  padding: 10px 15px;
  border: 1px solid #000;
  transition: background 0.3s;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: #f0f0f0;
  margin-left: 5px;
}

/* Language Selector */
.lang-selector {
  border: 1px solid #000;
  padding: 8px 15px;
  white-space: nowrap;
  cursor: pointer;
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
  display: none;
  border: 2px solid #000;
  background: #fff;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 20px;
}

/* Hamburger Menu (Mobile) - Legacy */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border: 2px solid #000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #000;
}

.menu-mobile {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-top: 2px solid #000;
}

.menu-mobile a {
  color: #000;
  text-decoration: none;
  padding: 10px;
  border: 1px solid #000;
  display: block;
}

/* Breadcrumb */
.breadcrumb {
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
}

/* Sub Navigation */
.sub-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.sub-nav a {
  color: #000;
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid #000;
  transition: background 0.3s;
}

.sub-nav a:hover {
  background: #f0f0f0;
}

/* Sections */
.section {
  padding: 60px 20px;
  border-bottom: 1px solid #ccc;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #666;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  border-bottom: 2px solid #000;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  color: #666;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  padding: 15px 30px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
}

.btn:hover {
  background: #f0f0f0;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: #fff;
  color: #000;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Cards */
.card {
  border: 2px solid #000;
  padding: 30px;
  text-align: center;
  background: #fff;
}

.card-icon {
  width: 60px;
  height: 60px;
  border: 2px solid #000;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Placeholders */
.placeholder {
  border: 2px dashed #000;
  background: #f9f9f9;
  padding: 40px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.placeholder-text {
  color: #666;
  font-style: italic;
}

.placeholder-img {
  border: 2px dashed #000;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #666;
  font-style: italic;
}

/* Split Layout (50/50) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 40px;
}

.timeline-list {
  list-style: none;
  border-left: 2px solid #000;
  padding-left: 20px;
}

.timeline-list li {
  margin-bottom: 20px;
  position: relative;
}

.timeline-list li:before {
  content: '•';
  position: absolute;
  left: -27px;
  font-size: 24px;
}

/* KPIs / Stats */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.kpi-item {
  border: 2px solid #000;
  padding: 30px 20px;
}

.kpi-value {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.kpi-label {
  font-size: 14px;
  color: #666;
}

/* Process Flow */
.process-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 40px 0;
}

.process-step {
  flex: 1;
  text-align: center;
  border: 2px solid #000;
  padding: 20px 10px;
  position: relative;
}

.process-step:not(:last-child):after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.process-number {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.process-label {
  font-size: 14px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #000;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Filters Sidebar */
.filters-layout {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 30px;
}

.filters-sidebar {
  border: 2px solid #000;
  padding: 20px;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-title {
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 14px;
}

.filter-option {
  margin-bottom: 8px;
}

.filter-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Job Listings */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  border: 2px solid #000;
  padding: 20px;
}

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

.job-badges {
  display: flex;
  gap: 10px;
}

.badge {
  border: 1px solid #000;
  padding: 5px 10px;
  font-size: 12px;
  background: #f0f0f0;
}

.job-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.job-description {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.job-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
}

.pagination .active {
  background: #000;
  color: #fff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  border: 3px solid #000;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 20px;
  border-bottom: 2px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  padding: 20px;
  border-top: 2px solid #000;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-close {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #000;
  padding: 5px 12px;
  background: #fff;
}

/* Footer V4 */
footer {
  border-top: 2px solid #000;
  padding: 60px 20px 20px;
  background: #fff;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1fr;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Footer Brand Section */
.footer-brand .logo {
  margin-bottom: 30px;
}

.footer-brand .copyright {
  font-size: 14px;
  margin: 5px 0;
}

.footer-brand .rights {
  font-size: 12px;
  color: #666;
}

/* Footer Address Section */
.footer-address h4 {
  font-size: 12px;
  font-weight: bold;
  margin: 20px 0 10px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-address h4:first-child {
  margin-top: 0;
}

.footer-address p {
  font-size: 14px;
  line-height: 1.6;
  margin: 3px 0;
}

/* Footer Menu Section */
.footer-menu h4 {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-menu ul {
  list-style: none;
  margin-bottom: 20px;
}

.footer-menu ul li {
  margin-bottom: 10px;
}

.footer-menu ul li a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

.footer-menu ul li a:hover {
  text-decoration: underline;
}

/* Footer Social Section */
.footer-social h4 {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  font-size: 11px;
}

.social-icon:hover {
  background: #f0f0f0;
}

/* Dark Section */
.section-dark {
  background: #000;
  color: #fff;
}

.section-dark .section-title {
  color: #fff;
}

/* Annotations */
.annotation {
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-top: 10px;
  padding: 10px;
  border-left: 3px solid #ccc;
}

/* Search Bar */
.search-bar {
  width: 100%;
  padding: 15px;
  border: 2px solid #000;
  font-size: 16px;
  margin-bottom: 30px;
}

/* Contact Info Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.contact-info-card {
  border: 2px solid #000;
  padding: 30px;
  text-align: center;
}

.contact-info-card h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

/* Map Placeholder */
.map-placeholder {
  border: 2px dashed #000;
  background: #f9f9f9;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
  margin-bottom: 40px;
}

/* Partner Logo Grid */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.partner-logo {
  border: 2px solid #000;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  background: #fff;
}

/* Featured Partner */
.featured-partner {
  border: 3px solid #000;
  padding: 60px;
  text-align: center;
  background: #f9f9f9;
  margin-bottom: 40px;
}

.featured-partner-logo {
  border: 2px dashed #000;
  padding: 40px;
  margin: 20px auto;
  max-width: 400px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #000;
}

.tab {
  padding: 10px 20px;
  border: 2px solid #000;
  border-bottom: none;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.tab.active {
  background: #000;
  color: #fff;
}

/* ===================================
   RESPONSIVE MEDIA QUERIES
   =================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
  /* Top Bar Mobile */
  .top-bar-content {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .top-bar a {
    text-align: center;
  }
  
  /* Navigation */
  nav.menu-desktop {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .menu-mobile.active {
    display: flex;
  }
  
  /* Hero */
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    grid-template-columns: 1fr;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-menu ul {
    margin-bottom: 15px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  /* Process Flow */
  .process-flow {
    flex-direction: column;
  }
  
  .process-step:not(:last-child):after {
    content: '↓';
    right: auto;
    bottom: -25px;
    top: auto;
    transform: none;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 24px;
  }
  
  /* Wireframe Nav */
  .wireframe-nav {
    top: 10px;
    right: 10px;
    font-size: 14px;
  }
  
  /* Modal */
  .modal-content {
    max-width: 95%;
    margin: 10px;
  }
}

/* Small Mobile (<480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .section {
    padding: 40px 10px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   NOUVEAUX STYLES V4
   =================================== */

/* News Items */
.news-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ccc;
}

.news-image {
  border: 2px solid #000;
  padding: 20px;
  text-align: center;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 14px;
}

.news-date,
.news-category {
  padding: 5px 10px;
  border: 1px solid #000;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
}

.read-more:hover {
  background: #f0f0f0;
}

/* Press Releases */
.press-release-list {
  max-width: 900px;
  margin: 0 auto;
}

.press-release-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid #000;
  margin-bottom: 20px;
}

.press-icon {
  font-size: 24px;
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid #000;
}

.press-date {
  font-size: 14px;
  margin-bottom: 10px;
}

.download-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
}

.download-btn:hover {
  background: #f0f0f0;
}

/* Content Grid (for À propos, Expertises) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.image-placeholder {
  border: 2px solid #000;
  padding: 60px 20px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-content {
  padding: 20px;
}

.expertise-list {
  list-style: none;
  margin: 20px 0;
}

.expertise-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  border: 2px solid #000;
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
}

/* Two Columns Layout */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.column {
  padding: 20px;
  border: 1px solid #000;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.value-item {
  text-align: center;
  padding: 30px 20px;
  border: 2px solid #000;
}

.value-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

/* Partner Highlight */
.partner-highlight {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding: 30px;
  border: 2px solid #000;
}

.partner-logo {
  border: 1px solid #000;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* Job Cards */
.jobs-list {
  max-width: 1000px;
  margin: 30px auto;
}

.job-card {
  border: 2px solid #000;
  padding: 30px;
  margin-bottom: 20px;
}

.job-header {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.job-tag {
  padding: 5px 10px;
  border: 1px solid #000;
  font-size: 12px;
}

.job-location {
  padding: 5px 10px;
  border: 1px solid #000;
  font-size: 12px;
  margin-left: auto;
}

.job-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

/* Filters */
.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  padding: 10px 15px;
  border: 2px solid #000;
  background: #fff;
  font-size: 14px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
  border: 2px solid #000;
}

.benefit-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

/* Spontaneous Application */
.spontaneous-application {
  text-align: center;
  padding: 60px 20px;
  border: 2px solid #000;
  max-width: 800px;
  margin: 0 auto;
}

.spontaneous-application p {
  margin: 15px 0;
}

/* Section Alternée */
.section-alt {
  background: #f9f9f9;
}

/* Hero Section V4 */
.hero-section {
  text-align: center;
  padding: 80px 20px;
  border-bottom: 2px solid #000;
}

.hero-section h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

/* Load More / View All */
.load-more,
.view-all {
  text-align: center;
  margin-top: 40px;
}

/* Responsive V4 */
@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .news-item,
  .content-grid,
  .two-columns,
  .partner-highlight {
    grid-template-columns: 1fr;
  }
  
  .values-grid,
  .partners-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .values-grid,
  .partners-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}
