/* ============================================
   TGMS POWER SYSTEMS — STYLES GLOBAUX
   Header, footer, boutons, base
   Version 1.0 — 2026
   ============================================ */

/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bleu: #0A2540;
  --bleu-clair: #123a63;
  --orange: #F6821F;
  --orange-hover: #d96f0f;
  --gris: #6B6B6B;
  --gris-clair: #F7F8FA;
  --blanc: #ffffff;
  --texte: #222222;
  --bordure: #e5e7eb;
  --footer-bg: #05192e;
  --footer-texte: #8ea3b8;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(10,37,64,.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--texte);
  line-height: 1.6;
  background: var(--blanc);
}

a {
  text-decoration: none;
  color: inherit;
  transition: .3s;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===== HEADER ===== */
header {
  background: var(--bleu);
  color: #fff;
  padding: 14px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.logo a {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  color: var(--orange);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  margin: 0 10px;
  font-size: 14px;
  opacity: .9;
  font-weight: 500;
}

nav a:hover {
  color: var(--orange);
  opacity: 1;
}

.lang {
  display: inline-flex;
  gap: 4px;
  margin-left: 10px;
}

.lang a {
  background: rgba(255,255,255,.1);
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  margin: 0;
  font-weight: 600;
}

.lang a:hover,
.lang a.active {
  background: var(--orange);
  color: #fff;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  margin: 6px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: .3s;
}

.btn:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246,130,31,.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: #fff;
}

/* ===== SECTIONS ===== */
section {
  padding: 70px 5%;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--bleu);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-sub {
  text-align: center;
  color: var(--gris);
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
}

/* ===== GRILLES & CARTES ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 28px;
  transition: .3s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card .icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.card h3 {
  color: var(--bleu);
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  font-size: 14px;
  color: var(--gris);
}

/* ===== FOOTER ===== */
footer {
  background: var(--footer-bg);
  color: var(--footer-texte);
  padding: 50px 5% 24px;
  font-size: 13px;
  line-height: 1.9;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 30px;
}

.footer-col p {
  margin-top: 8px;
}

footer .footer-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer a {
  color: var(--orange);
}

footer a:hover {
  color: var(--orange-hover);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: #5a6d80;
}

/* ===== UTILITAIRES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 768px) {
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; }
  header { padding: 12px 4%; }
  .logo a { font-size: 16px; }
  nav a { margin: 0 6px; font-size: 13px; }
  section { padding: 50px 5%; }
  .btn { padding: 12px 24px; font-size: 14px; }
}