/* =========================================================
   TRINNOVA Solutions – Modern Green IT Consulting Style
   ========================================================= */

/* ---------- Variables & Reset ---------- */
:root {
  --primary: #0f766e;        /* Vert consulting */
  --primary-light: #14b8a6;
  --secondary: #0f172a;      /* Bleu nuit corporate */
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #22c55e;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 18px 45px rgba(0, 0, 0, 0.1);

  --max-width: 1200px;
}
.logo img {
  height: 70px;
  width: auto;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Base Typography ---------- */
body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Layout Utilities ---------- */
.section {
  padding: clamp(4rem, 6vw, 6rem) 1.5rem;
}

.section > * {
  max-width: var(--max-width);
  margin: auto;
}

/* ---------- Header & Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(
      rgba(15, 118, 110, 0.9),
      rgba(15, 118, 110, 0.85)
    ),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d")
      center/cover no-repeat;
  color: #ffffff;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.2rem;
}

.hero-sub {
  max-width: 820px;
  margin: 0 auto 2rem;
  color: #e5f6f3;
  font-size: 1.05rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ---------- Cards & Grids ---------- */
.team-grid,
.values-grid,
.service-grid {
  display: grid;
  gap: 2rem;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.values-grid,
.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ---------- Card Style ---------- */
.team-card,
.value-card,
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover,
.value-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.team-card p,
.service-card p {
  margin-bottom: 1rem;
}

blockquote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 4px solid var(--primary-light);
  padding-left: 1rem;
}

/* ---------- Lists ---------- */
.service-card ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.service-card li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: #020617;
  color: #94a3b8;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}
/* ====== BACKGROUNDS VISUELS PAR SECTION ====== */

.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* Images spécifiques */
.team::before {
  background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c");
}

.about::before {
  background-image: url("https://images.unsplash.com/photo-1581092919531-7c8f7f1f2c7c");
}

.mission::before {
  background-image: url("https://images.unsplash.com/photo-1535378917042-10a22c95931a");
}

.values::before {
  background-image: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d");
}

.services::before {
  background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475");
}

.newsletter::before {
  background-image: url("https://images.unsplash.com/photo-1526628953301-3e589a6a8b74");
  opacity: 0.15;
}
/* ====== VALEURS : IMAGE + TEXTE ====== */

.values-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.value-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 2rem;
  padding: 0;
  overflow: hidden;
}

/* Alternance gauche / droite
.value-card:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.value-card::before {
  content: "";
  height: 100%;
  min-height: 260px;
  background-size: cover;
  background-position: center;
}
 */
/* Images par valeur */
.value-card:nth-child(1)::before {
  background-image: url("https://images.unsplash.com/photo-1581090700227-1e37b190418e");
}

.value-card:nth-child(2)::before {
  background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475");
}

.value-card:nth-child(3)::before {
  background-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786");
}

/* Contenu texte */
.value-card h3,
.value-card p {
  padding: 0 2rem;
}
/* ====== SERVICES : CONSULTING VISUEL ====== */

.service-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.service-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  padding: 0;
  overflow: hidden;
}

.service-card:nth-child(even) {
  grid-template-columns: 1fr 1.3fr;
}

.service-card::after {
  content: "";
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

/* Images par service */
.service-card:nth-child(1)::after {
  background-image: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085");
}

.service-card:nth-child(2)::after {
  background-image: url("https://images.unsplash.com/photo-1581091870627-3e0d0d5c7b3c");
}

.service-card:nth-child(3)::after {
  background-image: url("https://images.unsplash.com/photo-1518186285589-2f7649de83e0");
}

.service-card:nth-child(4)::after {
  background-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786");
}
