/* ===========================================
   🌐 AEGIX Pro - Style global moderne
   =========================================== */

/* --- RESET & VARIABLES --- */
:root {
    --color-bg: #f8fafc;
    --color-text: #1b1f23;
    --color-primary: #0059d6;
    --color-primary-dark: #0043a3;
    --color-secondary: #0a0a0a;
    --color-light: #ffffff;
    --color-muted: #e5e9f0;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

/* --- UTILITAIRES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }

/* ===========================================
   🧭 HEADER
   =========================================== */
.header {
    background: var(--color-secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo a:hover .logo-text {
    color: #1e90ff;
    transition: color 0.2s ease;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

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

.btn-client {
    background: var(--color-primary);
    padding: 8px 14px;
    border-radius: var(--radius);
    color: white !important;
    transition: background 0.2s;
}
.btn-client:hover {
    background: var(--color-primary-dark);
}

/* ===========================================
   🚀 HERO
   =========================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(255,255,255,0.1), transparent 70%);
}
.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}
.btn-primary {
    display: inline-block;
    background: white;
    color: var(--color-primary-dark);
    padding: 12px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

a.btn-primary, a.btn-secondary {
    cursor: pointer;
    position: relative;
    z-index: 2;
}
/* ===========================================
   💼 SOLUTIONS GRID
   =========================================== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}
.solution-card {
    background: var(--color-light);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.solution-card .icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.solution-card h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.solution-card p {
    color: #444;
    margin-bottom: 1rem;
}
.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-secondary:hover {
    background: var(--color-primary-dark);
}

/* ===========================================
   🧱 CONTENT SECTION
   =========================================== */
.content-section {
    padding: 3rem 0;
}
.content-section h2 {
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 1.5rem;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
}
.feature-list li {
    background: #f4f7fb;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 4px;
}

/* ===========================================
   👥 CLIENTS / SUPPORT / ACCOUNT
   =========================================== */
section.container {
    padding: 3rem 0;
}
section.container h1 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

/* ===========================================
   📞 CTA & FOOTER
   =========================================== */
.cta {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.footer {
    background: var(--color-secondary);
    color: #bbb;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
}
.footer a {
    color: var(--color-primary);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}


/* --- LOGO --- */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    color: white;
    font-weight: 700;
    margin-left: 8px;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}


/* --- PAGE TMX --- */

.alt-bg {
  background: #f8fafc;
}

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

.clients-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 700px;
  line-height: 1.8;
}

.clients-list li {
  background: #f4f7fb;
  border-left: 4px solid #27ae60;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

/* --- ARCHITECTURE TMX --- */
.tmx-arch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin: 3rem 0 1rem;
  position: relative;
}

.arch-block {
  flex: 1 1 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: center;
  border-top: 5px solid #0059d6; /* bleu AEGIX */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arch-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.arch-block h3 {
  margin-bottom: 1rem;
  color: #0059d6; /* bleu AEGIX */
}

.arch-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.arch-block li {
  background: #f4f7fb;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 5px;
  border-left: 3px solid #0059d6; /* accent bleu */
}

.arch-connectors {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.conn {
  font-size: 1.5rem;
  color: #27ae60;
  margin: 0 3rem;
  opacity: 0.8;
}
.arch-note {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-top: 1rem;
}

/* --- LOGOS DES SOLUTIONS --- */
.solution-logo {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto 1rem auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@media (min-width: 992px) {
  .solution-logo {
    height: 110px;
  }
}

/* Option : effet de survol */
.solution-logo:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease;
}

/* --- LOGOS DES SOLUTIONS --- */
.solution-logo-small {
    height: 80px;
    width: auto;
    margin: 0 auto 1rem auto;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.solution-logo-small:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

@media (min-width: 992px) {
    .solution-logo-small {
        height: 100px;
    }
}

/* --- LOGO DES SOLUTIONS (hero) --- */
.solution-logo {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto 1rem auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@media (min-width: 992px) {
  .solution-logo {
    height: 110px;
  }
}

.solution-logo:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease;
}


/* --- MATERIAL ICONS --- */
.material-icons-outlined {
    font-size: 48px;
    display: block;
    margin: 0 auto 1rem auto;
    color: #0059d6;
    transition: transform 0.2s ease, color 0.2s ease;
}

.material-icons-outlined:hover {
    transform: scale(1.1);
    color: #003b8b;
}

/* Option : variantes colorées */
.icon-blue { color: #0059d6; }
.icon-green { color: #27ae60; }
.icon-orange { color: #f39c12; }
.icon-gray { color: #777; }

/* --- MATERIAL SYMBOLS --- */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,       /* 0 = contour, 1 = plein */
        'wght' 400,     /* épaisseur (100–700) */
        'GRAD' 0,       /* contraste (-50 à +200) */
        'opsz' 48;      /* taille optique */
    font-size: 48px;
    display: block;
    margin: 0 auto 1rem auto;
    color: #0059d6;
    transition: transform 0.2s ease, color 0.2s ease;
}

.material-symbols-outlined:hover {
    transform: scale(1.1);
    color: #003b8b;
}

/* Variantes de couleur */
.icon-blue { color: #0059d6; }
.icon-green { color: #27ae60; }
.icon-orange { color: #f39c12; }
.icon-gray { color: #777; }

/* --- NAVBAR ICONS --- */
.navbar ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-icon {
    font-size: 20px;
    vertical-align: middle;
    color: #1e90ff;
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar a:hover .nav-icon {
    color: #fff;
    transform: scale(1.1);
}

.btn-client .nav-icon {
    color: white;
}




/* --- LOGIN PAGE --- */
.login-section {
  background: #f9fafc;
  padding: 4rem 0;
}

.login-container {
  max-width: 500px;
  background: white;
  padding: 2rem 2.5rem;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.btn-primary {
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

.error-message {
  background: #ffe6e6;
  color: #a10000;
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* --- FOOTER STICKY --- */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1; /* occupe tout l’espace libre avant le footer */
  display: flex;
  flex-direction: column;
}

/* --- FOOTER --- */
.footer {
  background: #0a0a0a;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  margin-top: auto; /* pousse le footer vers le bas */
}

.footer a {
  color: #1e90ff;
  text-decoration: none;
}

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