﻿:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #e2e8f0;
  --color-text: #0f172a;
  --color-text-soft: #475569;
  --color-border: #cbd5e1;
  --color-primary: #0f766e;
  --color-primary-dark: #115e59;
  --color-accent: #2563eb;
  --color-accent-soft: rgba(37, 99, 235, 0.12);
  --color-dark: #020617;
  --color-light: #f8fafc;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 55px rgba(15, 23, 42, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 252, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.site-header.is-scrolled { box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 54px; height: 54px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.brand-name { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.03em; }
.brand-tagline { display: block; font-size: 0.85rem; color: var(--color-text-soft); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--color-text); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle span { margin: 7px auto; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-9px) rotate(-45deg); }
.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: var(--color-text-soft); font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.nav-menu a:hover, .nav-menu a:focus-visible, .nav-menu a.active { background: var(--color-accent-soft); color: var(--color-accent); transform: translateY(-1px); }
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(2, 6, 23, 0.78), rgba(15, 118, 110, 0.48)), url("../img/hero-accueil.webp") center/cover no-repeat; color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(148, 197, 255, 0.18), transparent 35%), radial-gradient(circle at 80% 30%, rgba(94, 234, 212, 0.18), transparent 28%); }
.hero-inner { position: relative; z-index: 1; min-height: clamp(520px, 88vh, 760px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; padding: 72px 0; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 4vw, 4.6rem); line-height: 1.05; }
.hero p.lead { margin: 0 0 28px; max-width: 670px; font-size: 1.08rem; color: rgba(255, 255, 255, 0.88); }
.hero-eyebrow, .section-eyebrow { display: inline-flex; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-card { position: relative; padding: 28px; border-radius: var(--radius-lg); background: rgba(15, 23, 42, 0.45); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow-md); }
.hero-card h2, .hero-card p { color: #ffffff; }
.hero-card .list-clean li { color: rgba(255, 255, 255, 0.92); }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.hero-stat { padding: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.08); }
.hero-stat strong { display: block; font-size: 1.6rem; margin-bottom: 6px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; box-shadow: 0 16px 32px rgba(15, 118, 110, 0.2); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-dark { background: var(--color-dark); color: #fff; }
main section { padding: 88px 0; }
.section-header { max-width: 760px; margin-bottom: 36px; }
.section-eyebrow { background: rgba(15, 118, 110, 0.08); border: 1px solid rgba(15, 118, 110, 0.18); color: var(--color-primary-dark); }
.section-header h2 { margin: 0 0 14px; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; }
.section-header p { margin: 0; color: var(--color-text-soft); font-size: 1.02rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--color-surface); border: 1px solid rgba(148, 163, 184, 0.18); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.service-card, .info-card, .project-card, .team-card, .feature-card { height: 100%; padding: 28px; }
.service-icon, .feature-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: rgba(37, 99, 235, 0.1); color: var(--color-accent); font-size: 1.4rem; font-weight: 800; }
.service-card h3, .project-card h3, .team-card h3, .feature-card h3 { margin: 18px 0 12px; font-size: 1.3rem; }
.service-card p, .info-card p, .project-card p, .team-card p, .feature-card p { margin: 0 0 16px; color: var(--color-text-soft); }
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { position: relative; padding-left: 18px; margin-bottom: 10px; color: var(--color-text-soft); }
.list-clean li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 999px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); }
.split-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.media-frame { overflow: hidden; border-radius: var(--radius-lg); min-height: 100%; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.info-stack { display: grid; gap: 18px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.stat-box { padding: 18px; border-radius: 18px; background: #f1f5f9; text-align: center; }
.stat-box strong { display: block; font-size: 1.4rem; color: var(--color-accent); }
.project-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; margin-bottom: 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 0.86rem; font-weight: 700; }
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.contact-form { padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--color-border); background: #fff; color: var(--color-text); font: inherit; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37, 99, 235, 0.18); border-color: var(--color-accent); }
.form-note, .contact-note { margin-top: 14px; color: var(--color-text-soft); font-size: 0.95rem; }
.map-frame { overflow: hidden; border-radius: var(--radius-md); min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.site-footer { padding: 34px 0; background: var(--color-dark); color: rgba(248, 250, 252, 0.86); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 22px; }
.site-footer h3, .site-footer h4 { margin-top: 0; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: rgba(248, 250, 252, 0.76); }
.footer-bottom { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(148, 163, 184, 0.2); color: rgba(248, 250, 252, 0.6); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 960px) {
  .hero-inner, .split-layout, .contact-layout, .footer-grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-menu { position: absolute; top: calc(100% + 8px); right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; padding: 14px; background: rgba(248, 250, 252, 0.98); border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 22px; box-shadow: var(--shadow-md); }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { justify-content: flex-start; border-radius: 14px; }
  .hero { min-height: auto; }
  .hero-card { order: -1; }
  .stats-row, .hero-stats, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main section { padding: 72px 0; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .contact-form, .service-card, .project-card, .team-card, .feature-card, .info-card { padding: 22px; }
}
