:root {
  --bg-main: #020617;
  --bg-sidebar: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.85);
  --border-color: #1e293b;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #0284c7;
  --accent-light: #38bdf8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  body {
    flex-direction: row;
  }
}

.bg-tech-grid {
  background-size: 30px 30px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* --- Sidebar & Navigation --- */
.sidebar {
  width: 100%;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 30;
}

@media (min-width: 768px) {
  .sidebar {
    width: 300px;
    height: 100vh;
    position: sticky;
    top: 0;
    border-bottom: none;
    flex-shrink: 0;
    padding: 2rem 1.5rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.brand-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.2;
}

.brand-title span {
  color: var(--accent-light);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background-color: rgba(30, 41, 59, 0.8);
}

.nav-links a.active {
  background-color: var(--accent-blue);
  color: #fff;
}

.nav-icon {
  width: 22px;
  height: 22px;
}

/* --- Content & Layout --- */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

header {
  background-color: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
}

.header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.header-slogan {
  font-size: 0.875rem;
  color: var(--accent-light);
  margin-top: 0.125rem;
}

.btn-phone {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #1e293b;
  color: #cbd5e1;
  border: 1px solid #a7b6ca;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-phone img,
.btn-phone svg {
  width: 16px;
  height: 16px;
  filter: invert(65%) sepia(80%) saturate(1000%) hue-rotate(170deg);
}

main {
  flex: 1;
  padding: 1.5rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

/* Grilles */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Page d'Accueil --- */
.hero-card-v2 {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
}

.hero-card-v2 .hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-card-v2 .hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: background-color 0.2s, transform 0.2s;
}

.btn-hero-primary:hover {
  background-color: #0369a1;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  display: inline-block;
  background-color: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn-hero-secondary:hover {
  background-color: #1e293b;
  color: #ffffff;
}

/* Bloc Schéma / Architecture Serveur */
.schema-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.schema-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.schema-header img {
  width: 20px;
  height: 20px;
  filter: invert(65%) sepia(80%) saturate(1000%) hue-rotate(170deg);
}

.schema-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.schema-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.schema-diagram-box {
  background-color: #030712;
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.server-illustration {
  width: 100%;
  max-width: 550px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Cartes fonctionnalités */
.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  background-color: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-box img {
  width: 20px;
  height: 20px;
  filter: invert(65%) sepia(80%) saturate(1000%) hue-rotate(170deg);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Page Services --- */
.service-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-number {
  background-color: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  font-weight: 800;
  font-size: 1.125rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.service-title-group h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.service-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  text-transform: capitalize;
}

.service-card:nth-child(3) .service-number {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.2);
}
.service-card:nth-child(3) .service-subtitle {
  color: #34d399;
}

.service-card:nth-child(4) .service-number {
  background-color: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.2);
}
.service-card:nth-child(4) .service-subtitle {
  color: #a5b4fc;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #38bdf8;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.service-link:hover {
  gap: 0.6rem;
  text-decoration: underline;
}

.cta-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 30, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.cta-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

.btn-cta {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: background-color 0.2s, transform 0.2s;
}

.btn-cta:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
}

/* --- Page Contact --- */
.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.contact-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background-color: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box img {
  width: 20px;
  height: 20px;
  filter: invert(65%) sepia(80%) saturate(1000%) hue-rotate(170deg);
}

.contact-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-info-value a {
  color: #38bdf8;
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

.contact-info-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background-color: #030712;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #ffffff;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #475569;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
}

.btn-contact-submit {
  width: 100%;
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.875rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-contact-submit:hover {
  background-color: #0369a1;
  transform: translateY(-1px);
}

/* ciblage de toutes les icônes du menu de navigation */
.nav-links a img,
.nav-links a svg,
.nav-icon {
  width: 22px;
  height: 22px;
  /* Convertit une icône noire ou sombre en bleu */
  filter: invert(65%) sepia(80%) saturate(1000%) hue-rotate(170deg);
  transition: filter 0.2s ease;
}

/* Optionnel : garde l'icône en blanc lorsque l'onglet est actif */
.nav-links a.active img,
.nav-links a.active svg,
.nav-links a.active .nav-icon {
  filter: brightness(0) invert(1);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-color);
  background-color: rgba(2, 6, 23, 0.9);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

footer a {
  color: var(--accent-light);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}