:root {
  --bg: #0f1b2d;
  --bg-surface: #152238;
  --bg-elevated: #1b2a42;
  --text: #c4cdd9;
  --text-bright: #e4eaf0;
  --text-dim: #6a7b8f;
  --accent: #4a90d9;
  --accent-glow: #6aadf0;
  --green: #3ddc84;
  --red: #f55;
  --border: #1f3350;
  --border-bright: #2a4060;
  --radius: 3px;
  --max-w: 820px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Consolas", "Fira Code", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Header ── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 27, 45, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/img/cloud-infra.jpg') center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text span {
  color: var(--accent-glow);
}

nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

nav a:hover {
  color: var(--text-bright);
  background: var(--bg-elevated);
}

nav a[aria-current="page"] {
  color: var(--accent-glow);
  background: rgba(74, 144, 217, 0.12);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ── Main ── */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Typography ── */

h1 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--text-bright);
}

a {
  color: var(--accent-glow);
}

/* ── Hero ── */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2rem -2rem -2rem -2rem;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 80% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 30%, black 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

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

.hero-content {
  flex: 1;
}

.hero-visual {
  width: 320px;
  flex-shrink: 0;
  opacity: 1;
}

.hero h1 {
  font-size: 2rem;
  max-width: 640px;
}

/* ── Side ambient ── */

.side-ambient {
  position: fixed;
  left: 0;
  top: 64px;
  width: calc((100vw - var(--max-w)) / 2 - 2rem);
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1rem 2rem 1.5rem;
  overflow: hidden;
}

.amb-panel {
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  opacity: 0.65;
  transition: opacity 0.3s;
}

/* terminal */
.amb-terminal {
  padding: 0;
  animation: amb-float-1 8s ease-in-out infinite;
}

.amb-terminal .at-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.amb-terminal .at-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.amb-terminal .at-body {
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  min-height: 120px;
}

.amb-terminal .at-body .t-line {
  opacity: 0;
  animation: typeIn 0.4s forwards;
  white-space: nowrap;
  overflow: hidden;
}

.amb-terminal .at-body .t-cmd { color: var(--accent-glow); }
.amb-terminal .at-body .t-ok { color: var(--green); }
.amb-terminal .at-body .t-warn { color: #ffa33a; }
.amb-terminal .at-body .t-err { color: var(--red); }
.amb-terminal .at-body .t-dim { color: var(--text-dim); }

.at-cursor {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: var(--accent-glow);
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typeIn {
  from { max-width: 0; opacity: 0; }
  to { max-width: 400px; opacity: 1; }
}

/* live feed */
.amb-feed {
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.8;
  color: var(--text-dim);
  animation: amb-float-2 10s ease-in-out infinite;
}

.amb-feed .af-label {
  color: var(--accent-glow);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.amb-feed .af-time { font-weight: 600; }

/* status */
.amb-status {
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 2;
  color: var(--text-dim);
  animation: amb-float-3 12s ease-in-out infinite;
}

.s-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 4px;
}

.s-dot.live { background: var(--green); animation: pulse-dot 2s ease-in-out infinite; }
.s-dot.warn { background: #ffa33a; animation: pulse-dot 2s ease-in-out infinite 0.5s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes amb-float-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes amb-float-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes amb-float-3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 769px) {
  .hero {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    display: none;
  }
}

@media (max-width: 1200px) {
  .side-ambient {
    display: none;
  }
}

.hero .subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 0;
  font-family: var(--mono);
  line-height: 1.6;
}

/* ── Card icons ── */

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  color: var(--accent-glow);
  opacity: 0.7;
}

/* ── Section with visual ── */

.section-illustrated {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.section-illustrated > .section-text {
  flex: 1;
  min-width: 0;
}

.section-visual {
  width: 200px;
  flex-shrink: 0;
  opacity: 0.85;
}

.section-illustrated.visual-left {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .section-illustrated {
    flex-direction: column;
    gap: 1rem;
  }
  .section-visual {
    width: 120px;
    align-self: center;
  }
}

/* ── Section decorative line ── */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 40%, transparent 100%);
  margin: 3.5rem 0;
  border: none;
}

/* ── Sections ── */

.section {
  margin-top: 3.5rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-glow);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-label::before {
  content: "// ";
  color: var(--text-dim);
}

/* ── Cards grid ── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: var(--bg-surface);
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-glow);
}

.card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Highlight block (ce que je ne fais pas) ── */

.highlight-block {
  background: var(--bg-surface);
  border: 1px solid var(--red);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3.5rem;
}

.highlight-block h2 {
  color: var(--red);
  margin-top: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.highlight-block p {
  color: var(--text);
}

.highlight-block strong {
  color: var(--text-bright);
}

/* ── Audience grid ── */

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.audience-item {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.audience-item h3 {
  margin-top: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audience-item p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── CTA ── */

.cta {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.cta p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.15s, box-shadow 0.15s;
  border: 1px solid var(--accent-glow);
}

.btn:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(74, 144, 217, 0.3);
}

/* ── Lists ── */

.check-list {
  list-style: none;
  margin-top: 1rem;
}

.check-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text);
  font-size: 0.92rem;
}

.check-list li::before {
  content: "›";
  position: absolute;
  left: 0.25rem;
  color: var(--green);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── Themes list ── */

.themes {
  list-style: none;
  margin-top: 1rem;
}

.themes li {
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-left: 2px solid var(--border);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: border-color 0.15s;
}

.themes li:hover {
  border-color: var(--accent-glow);
}

/* ── Contact ── */

.contact-info {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  color: var(--accent-glow);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  width: fit-content;
}

.contact-info a:hover {
  border-color: var(--accent-glow);
}

.legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--mono);
}

/* ── About ── */

.about-intro {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2rem;
  font-family: var(--mono);
}

.photo {
  width: 140px;
  max-width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid var(--border-bright);
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(74, 144, 217, 0.15);
}

@media (max-width: 768px) {
  .photo {
    width: 100px;
    max-width: 100px;
    height: 100px;
    align-self: center;
  }
}

.cloud-banner {
  margin: 3.5rem -2rem;
  position: relative;
  height: 140px;
  overflow: hidden;
}

.cloud-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.3) saturate(0.6);
}

.cloud-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
  pointer-events: none;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-glow);
}

/* ── Accompagnement steps ── */

.steps {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.step:last-child {
  border-bottom: none;
}

.step:hover {
  background: var(--bg-elevated);
}

.step h3 {
  margin-top: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-glow);
}

.step p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .header-inner {
    padding: 0 1.25rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  nav a {
    font-size: 0.85rem;
    display: block;
    padding: 0.6rem 0.75rem;
  }

  main {
    padding: 2.5rem 1.25rem 4rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
    margin-top: 2.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .audience {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 1.75rem 1.25rem;
  }

  .highlight-block {
    padding: 1.5rem;
  }

  .contact-info a {
    width: 100%;
  }
}
