/* Accueil centre — charte Smartech Academy */
:root {
  --stm-blue: #1566A4;
  --stm-blue-dark: #0d4d7c;
  --stm-gold: #ffd700;
  --stm-gold-btn: #f5c32d;
  --stm-ink: #2c3e50;
  --stm-muted: #555;
  --stm-line: #e6e8ea;
  --stm-footer: #0b2a4a;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#acces, #apropos { scroll-margin-top: 92px; }
.stm-header { scroll-margin-top: 0; }

body.stm-home {
  margin: 0;
  color: var(--stm-ink);
  background: #fff;
  font-family: "Open Sans", "Segoe UI", sans-serif;
}
.stm-home a { color: var(--stm-blue); text-decoration: none; }
.stm-home img { max-width: 100%; height: auto; }
.stm-wrap { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }

.stm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 18px rgba(21, 102, 164, 0.08);
}
.stm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.stm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.stm-brand img { width: 48px; height: 48px; object-fit: contain; }
.stm-brand__name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; }
.stm-brand__name .s { color: var(--stm-blue); }
.stm-brand__name .a { color: #e6c200; margin-left: 4px; }

.stm-nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.stm-nav a {
  color: #333;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}
.stm-nav a:hover, .stm-nav a.is-active { color: var(--stm-blue); font-weight: 700; }
.stm-nav .stm-nav__cta {
  background: var(--stm-blue);
  color: #fff !important;
  border-radius: 50px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
}
.stm-nav .stm-nav__cta:hover { background: var(--stm-blue-dark); }
.stm-burger {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: #333;
  cursor: pointer;
  line-height: 1;
}

.stm-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1a1a1a url("../images/stm-hero-bg.png") top center / cover no-repeat;
  color: #fff;
}
.stm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}
.stm-hero__inner { position: relative; z-index: 1; padding: 5.5rem 1rem 4rem; width: min(900px, 100%); }
.stm-hero h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.2;
  color: #fff;
}
.stm-hero p {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: 1.12rem;
  color: #f3f3f3;
  line-height: 1.55;
}
.stm-hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.stm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.72rem 1.6rem;
  border-radius: 50px;
  border: 2px solid #fff;
  color: #fff !important;
  transition: 0.25s ease;
}
.stm-btn:hover { background: var(--stm-blue); border-color: var(--stm-blue); }
.stm-btn--gold {
  background: var(--stm-gold-btn);
  border-color: var(--stm-gold-btn);
  color: #1a1a1a !important;
}
.stm-btn--gold:hover { background: #e0b11a; border-color: #e0b11a; color: #1a1a1a !important; }

.stm-section { padding: 4.2rem 0; }
.stm-section--muted { background: #f7f9fb; }
.stm-h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  color: var(--stm-blue);
  margin: 0 0 0.85rem;
  text-align: center;
}
.stm-h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 0.7rem auto 0;
  background: var(--stm-gold-btn);
}
.stm-lead { text-align: center; color: var(--stm-muted); max-width: 46rem; margin: 0 auto 2rem; line-height: 1.7; }

.stm-about { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.stm-about h2 { text-align: left; }
.stm-about h2::after { margin-left: 0; }
.stm-about h3 {
  font-family: "Times New Roman", Times, serif;
  color: var(--stm-blue);
  font-size: 1.25rem;
  margin: 1.4rem 0 0.6rem;
}
.stm-about p, .stm-about li { color: #555; line-height: 1.75; }
.stm-about ul { padding-left: 1.1rem; margin: 0; }
.stm-about li { margin-bottom: 0.55rem; }
.stm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stm-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stm-counts { display: grid; grid-template-columns: repeat(3, 1fr); }
.stm-count { text-align: center; color: #fff; padding: 1.8rem 0.8rem; }
.stm-count:nth-child(1) { background: #f3e076; }
.stm-count:nth-child(2) { background: #f5d34a; }
.stm-count:nth-child(3) { background: #ffcc00; }
.stm-count strong {
  display: block;
  font-size: 2.4rem;
  font-family: "Poppins", sans-serif;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stm-count span { font-family: "Times New Roman", Times, serif; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.04em; }

.stm-portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stm-card {
  background: #fff;
  border: 1px solid var(--stm-line);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: 0 10px 28px rgba(21, 102, 164, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.stm-card h3 {
  margin: 0 0 0.35rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  color: var(--stm-blue);
}
.stm-card p { color: #5a6570; line-height: 1.55; flex: 1; margin: 0 0 1.1rem; }
.stm-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(21, 102, 164, 0.1);
  color: var(--stm-blue);
  display: grid; place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.stm-card .stm-btn {
  border-color: var(--stm-blue);
  background: var(--stm-blue);
  color: #fff !important;
  width: 100%;
}
.stm-card .stm-btn:hover { background: var(--stm-blue-dark); }

.stm-footer { background: var(--stm-footer); color: #d7e4f0; padding: 3rem 0 1.2rem; }
.stm-footer h3 {
  font-family: "Times New Roman", Times, serif;
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.stm-footer p { margin: 0 0 0.55rem; line-height: 1.55; color: #c5d5e4; }
.stm-footer a { color: #fff; }
.stm-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stm-social { display: flex; gap: 0.55rem; margin-top: 1rem; }
.stm-social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: #3498db; color: #fff !important;
  display: grid; place-items: center;
  font-weight: 700;
}
.stm-copy { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1rem; text-align: center; color: #9cb3c7; font-size: 0.9rem; }

@media (max-width: 900px) {
  .stm-about, .stm-portals, .stm-sites { grid-template-columns: 1fr; }
  .stm-gallery { grid-template-columns: repeat(2, 1fr); }
  .stm-burger { display: block; }
  .stm-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 76px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .stm-nav.is-open { display: flex; }
  .stm-header { position: sticky; }
  .stm-header__inner { position: relative; }
}
@media (max-width: 560px) {
  .stm-counts { grid-template-columns: 1fr; }
  .stm-hero { min-height: 88vh; }
}
