/* ===================================================================
   UMGC — Maquette navigable v1
   Système de design partagé pour les 7 pages
   ================================================================= */

:root {
  --c-brand-deep: #0A2647;
  --c-brand: #144272;
  --c-brand-light: #205295;
  --c-accent: #E07A1F;
  --c-accent-light: #F4A14C;
  --c-white: #FFFFFF;
  --c-paper: #FAF8F4;
  --c-stone-100: #EDE8DF;
  --c-stone-300: #D6CFC2;
  --c-warm-gray: #4A4A47;
  --c-ink: #1A1A1A;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --t-fast: 180ms ease-out;
  --t-medium: 300ms ease-out;
  --shadow-subtle: 0 1px 2px rgba(10, 38, 71, 0.06);
  --shadow-elevated: 0 8px 24px rgba(10, 38, 71, 0.08);
  --shadow-deep: 0 20px 50px rgba(10, 38, 71, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============= TYPOGRAPHIE ============= */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--c-brand-deep);
  letter-spacing: -0.01em;
}
h1 { font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
h2 { font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
h3 { font-weight: 500; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.25; }
h4 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--c-brand-deep); }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 16px;
  display: inline-block;
}

p { margin-bottom: 16px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--c-warm-gray); }
.small { font-size: 14px; line-height: 1.5; }

/* ============= LAYOUT ============= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }
.section-pad-lg { padding: 128px 0; }

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
  .section-pad-lg { padding: 80px 0; }
}

/* ============= BOUTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: var(--t-fast);
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--c-accent); color: var(--c-white); }
.btn-primary:hover { background: var(--c-accent-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--c-brand-deep); border: 1.5px solid var(--c-brand-deep); }
.btn-secondary:hover { background: var(--c-brand-deep); color: var(--c-white); }
.btn-secondary-light { background: transparent; color: var(--c-white); border: 1.5px solid var(--c-white); }
.btn-secondary-light:hover { background: var(--c-white); color: var(--c-brand-deep); }
.btn-tertiary { background: none; color: var(--c-brand-deep); padding: 10px 0; border-radius: 0; border-bottom: 1.5px solid transparent; }
.btn-tertiary:hover { border-bottom-color: var(--c-brand-deep); }

/* ============= HEADER ============= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-stone-100);
  height: 80px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo { display: inline-block; line-height: 0; }
.logo svg { height: 44px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 32px; }
nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--c-ink);
  transition: color var(--t-fast);
  position: relative;
  padding: 8px 0;
}
nav a:hover { color: var(--c-brand); }
nav a.active { color: var(--c-brand-deep); }
nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--c-accent);
}
.lang-switch {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--c-warm-gray);
  letter-spacing: 0.05em;
}
.lang-switch .active { color: var(--c-brand-deep); font-weight: 600; }
.lang-switch span { margin: 0 4px; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-cta { padding: 10px 20px; font-size: 14px; }

/* Mobile hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-brand-deep);
  margin: 5px 0;
  transition: var(--t-fast);
}

@media (max-width: 1024px) {
  nav, .lang-switch, .header-cta { display: none; }
  .hamburger { display: block; }
}

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: 600px;
  background: linear-gradient(135deg, var(--c-brand-deep) 0%, var(--c-brand) 100%);
  color: var(--c-white);
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 60px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 50%;
  height: 100%;
  background-image:
    radial-gradient(ellipse at right, rgba(224, 122, 31, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { color: var(--c-white); margin-bottom: 32px; }
.hero .lead { color: rgba(255, 255, 255, 0.88); font-size: 21px; max-width: 700px; margin-bottom: 48px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--c-accent-light); margin-bottom: 24px; }

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 38, 71, 0.85) 0%, rgba(20, 66, 114, 0.6) 100%);
}

/* ============= HERO SECONDAIRE (pages internes) ============= */
.hero-secondary {
  background: linear-gradient(135deg, var(--c-brand-deep) 0%, var(--c-brand) 100%);
  color: var(--c-white);
  padding: 100px 0 80px;
  position: relative;
}
.hero-secondary h1 { color: var(--c-white); }
.hero-secondary .eyebrow { color: var(--c-accent-light); }
.hero-secondary .lead { color: rgba(255,255,255,0.85); font-size: 19px; max-width: 720px; margin-top: 24px; }

/* ============= COMPTEURS ============= */
.stats {
  background: var(--c-white);
  padding: 80px 0;
  border-bottom: 1px solid var(--c-stone-100);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { border-top: 2px solid var(--c-accent); padding-top: 16px; }
.stat .number {
  font-family: 'DM Serif Display', serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--c-brand-deep);
  font-variant-numeric: tabular-nums;
}
.stat .number sup { font-size: 28px; color: var(--c-accent); top: -0.5em; position: relative; margin-left: 2px; }
.stat .label {
  font-size: 14px;
  color: var(--c-warm-gray);
  margin-top: 8px;
  max-width: 220px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat .number { font-size: 40px; }
}

/* ============= PROJET CARDS ============= */
.projects { padding: 96px 0; }
.projects-bg-paper { background: var(--c-paper); }
.section-head { margin-bottom: 56px; max-width: 740px; }
.section-head h2 { margin-bottom: 16px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--c-white);
  border: 1px solid var(--c-stone-100);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--t-fast);
  cursor: pointer;
  position: relative;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--c-stone-300);
}
.project-card .image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.project-card .image-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-deep) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: rgba(255,255,255,0.6);
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 13px;
}
.project-card .image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.project-card .body { padding: 24px; }
.project-card .body .eyebrow { font-size: 11px; margin-bottom: 8px; }
.project-card .body h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--c-brand-deep);
  margin-bottom: 8px;
}
.project-card .meta {
  font-size: 13px;
  color: var(--c-warm-gray);
  margin-top: 12px;
}

/* ============= MANIFESTE ============= */
.manifesto { padding: 96px 0; background: var(--c-paper); }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; gap: 32px; } }
.manifesto p { font-size: 19px; line-height: 1.7; color: var(--c-ink); margin-bottom: 16px; }

/* ============= MÉTIERS (cards photo) ============= */
.trades { padding: 96px 0; }
.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .trades-grid { grid-template-columns: 1fr; } }
.trade-card {
  position: relative;
  height: 460px;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-fast);
  display: block;
}
.trade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.trade-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 600ms ease-out;
}
.trade-card:hover .bg { transform: scale(1.04); }
.trade-card .bg.industriel { background: linear-gradient(180deg, #2A4A6F 0%, #0A2647 100%); }
.trade-card .bg.batiment { background: linear-gradient(180deg, #5A4A3A 0%, #2A1F18 100%); }
.trade-card .bg.genie { background: linear-gradient(180deg, #4A5A6A 0%, #1A2A3A 100%); }
.trade-card .bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 22px);
}
.trade-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 38, 71, 0.90) 0%, rgba(10, 38, 71, 0.15) 60%);
}
.trade-card .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px;
  color: var(--c-white);
  z-index: 1;
}
.trade-card h3 { color: var(--c-white); font-size: 32px; margin-bottom: 12px; }
.trade-card p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 24px; max-width: 320px; }
.trade-card .arrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-accent-light);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============= CLIENTS ============= */
.clients-band {
  padding: 96px 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-stone-100);
  border-bottom: 1px solid var(--c-stone-100);
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
.client-pill {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-paper);
  border-radius: var(--r-md);
  font-family: 'DM Serif Display', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--c-brand-deep);
  letter-spacing: 0.02em;
  border: 1px solid var(--c-stone-100);
  transition: var(--t-fast);
  text-align: center;
  padding: 12px;
}
.client-pill:hover { border-color: var(--c-stone-300); transform: translateY(-1px); }

/* ============= DARK SECTION (criticité) ============= */
.dark-section {
  padding: 96px 0;
  background: var(--c-brand-deep);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 60px),
                    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 60px);
  pointer-events: none;
}
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--c-white); }
.dark-section p { color: rgba(255,255,255,0.85); }
.dark-section .eyebrow { color: var(--c-accent-light); }
.dark-section .container { position: relative; z-index: 1; }
.criticality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 56px;
}
@media (max-width: 900px) { .criticality-grid { grid-template-columns: 1fr; } }
.crit-item { border-left: 3px solid var(--c-accent); padding: 8px 0 8px 32px; }
.crit-item h3 { color: var(--c-white); font-size: 22px; margin-bottom: 12px; }
.crit-item p { color: rgba(255,255,255,0.85); font-size: 16px; line-height: 1.7; }

/* ============= UMGC SUD ============= */
.sud { padding: 96px 0; background: var(--c-white); }
.sud-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .sud-grid { grid-template-columns: 1fr; gap: 32px; } }
.sud-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.sud-brand svg { height: 56px; width: auto; display: block; }
.sud-brand .sud-mark {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 600;
  font-size: 42px;
  color: var(--c-accent);
  letter-spacing: 0.04em;
  line-height: 1;
}
.sud-map {
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(224,122,31,0.12), transparent 60%),
    linear-gradient(180deg, var(--c-stone-100) 0%, var(--c-stone-300) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-warm-gray);
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding: 32px;
  border: 1px solid var(--c-stone-300);
  position: relative;
  overflow: hidden;
}

/* ============= PROCESS ============= */
.process { padding: 96px 0; background: var(--c-paper); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  padding: 32px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-stone-100);
  border-radius: var(--r-md);
  transition: var(--t-fast);
}
.process-step:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.process-step .num {
  font-family: 'DM Serif Display', serif;
  font-weight: 600;
  font-size: 48px;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.process-step h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--c-brand-deep);
  margin-bottom: 8px;
}
.process-step p { font-size: 14px; color: var(--c-warm-gray); line-height: 1.6; margin: 0; }

/* ============= CTA FINAL ============= */
.cta-final { padding: 120px 0; background: var(--c-white); text-align: center; border-top: 1px solid var(--c-stone-100); }
.cta-final h2 { max-width: 720px; margin: 0 auto 32px; }
.cta-final .lead { max-width: 620px; margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============= FOOTER ============= */
footer {
  background: var(--c-brand-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
footer h5 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 20px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color var(--t-fast);
}
footer a:hover { color: var(--c-white); }
.footer-brand .logo svg { filter: brightness(0) invert(1); height: 56px; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal a { color: rgba(255, 255, 255, 0.5); margin: 0 12px; font-size: 12px; }

/* ============= FORMULAIRES ============= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-brand-deep);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--c-white);
  border: 1px solid var(--c-stone-300);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--c-ink);
  transition: var(--t-fast);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(20, 66, 114, 0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-checkbox { display: flex; gap: 12px; align-items: flex-start; }
.form-checkbox input { width: 18px; height: 18px; margin-top: 4px; }
.form-checkbox label { font-size: 14px; color: var(--c-warm-gray); }

/* ============= BREADCRUMB ============= */
.breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--c-white); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ============= ANIMATIONS ============= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 600ms ease-out backwards; }
.fade-up-delay-1 { animation-delay: 80ms; }
.fade-up-delay-2 { animation-delay: 160ms; }
.fade-up-delay-3 { animation-delay: 240ms; }

/* ============= UTILITAIRES ============= */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.color-accent { color: var(--c-accent); }
.color-brand { color: var(--c-brand-deep); }
