/* =========================================================
   GKID – Geek Innovative Development
   ========================================================= */

:root {
  --teal-900: #0B3B3A;
  --teal-800: #0E4F4D;
  --teal-600: #06908E;   /* couleur principale du logo */
  --teal-500: #00A9A8;   /* couleur secondaire du logo */
  --teal-300: #5FD3D1;
  --teal-50:  #EAF7F7;

  --ink:      #0F1E1E;
  --text:     #3C4B4B;
  --muted:    #6B7C7C;
  --line:     #DCE7E7;
  --bg:       #FFFFFF;
  --bg-tint:  #F4FAFA;

  --radius:   16px;
  --radius-sm: 10px;
  --shadow:   0 10px 30px -12px rgba(11, 59, 58, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 59, 58, .30);
  --container: 1160px;

  --surface:   #FFFFFF;             /* fond des cartes */
  --header-bg: rgba(255, 255, 255, .85);
  --hero-top:  #FFFFFF;
  --on-primary: #FFFFFF;            /* texte sur bouton turquoise */
  --accent:    #06908E;             /* liens et petits titres */
  --footer-bg: #0B3B3A;
  --avatar-bg: linear-gradient(145deg, #EAF7F7, #D4EFEE);
  --error:     #C43B3B;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8em;
}
.accent { color: var(--teal-500); }
.placeholder { color: var(--muted); font-style: italic; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-600); color: var(--on-primary); box-shadow: 0 8px 20px -8px rgba(6, 144, 142, .7); }
.btn-primary:hover { background: var(--teal-500); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn-light { background: #fff; color: var(--teal-800); }
.btn-sm { padding: .55em 1.2em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(11, 59, 58, .2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .98rem; position: relative; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--teal-500); transition: width .25s;
}
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(0, 169, 168, .12), transparent 60%),
    linear-gradient(180deg, var(--hero-top), var(--bg-tint));
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6, 144, 142, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 144, 142, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lead { font-size: 1.18rem; color: var(--text); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-tags li {
  font-size: .85rem; font-weight: 600; color: var(--accent);
  background: var(--teal-50); border: 1px solid var(--line);
  padding: .35em .9em; border-radius: 999px;
}

/* Visuel : halo + écran de code */
.hero-visual { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.hero-glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 168, .28), rgba(0, 169, 168, .08) 45%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.device {
  position: relative;
  width: min(100%, 400px);
  background: var(--teal-900);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}
.device-bar { display: flex; gap: 7px; padding: 14px 16px; background: rgba(255, 255, 255, .05); }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.device-bar i:first-child { background: var(--teal-500); }
.device-body { padding: 22px 22px 24px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .84rem; color: #CFE9E8; }
.code-line { margin-bottom: 10px; white-space: nowrap; overflow: hidden; }
.code-line b { color: var(--teal-300); font-weight: 600; }
.code-line em { color: #FFD479; font-style: normal; }
.code-line s { color: #9BE3B5; text-decoration: none; }
.code-line .ok { color: var(--teal-300); font-weight: 700; }
.device-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; font-family: "Urbanist", sans-serif; }
.mini-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; padding: 12px 10px; font-weight: 600; font-size: .85rem; color: #fff;
  display: flex; align-items: center; gap: 7px;
}
.mini-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }

@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-10px); }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 80px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-500); }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); color: #fff;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card p { font-size: .98rem; }
.checks { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); }
.checks li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 10px; height: 6px; border-left: 2px solid var(--teal-500); border-bottom: 2px solid var(--teal-500);
  transform: rotate(-45deg);
}

/* Méthode */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -16px; width: 12px; height: 12px;
  border-top: 2px solid var(--teal-500); border-right: 2px solid var(--teal-500); transform: rotate(45deg);
}
.step-num { display: block; font-size: 2rem; font-weight: 800; color: var(--teal-500); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 1.08rem; }
.steps p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Technologies */
.tech-list { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-list li {
  padding: .6em 1.3em; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; color: var(--ink); background: var(--surface); transition: border-color .2s, color .2s;
}
.tech-list li:hover { border-color: var(--teal-500); color: var(--teal-600); }

/* Réalisations */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-weight: 600; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-1 { background: linear-gradient(135deg, var(--teal-600), var(--teal-900)); }
.thumb-2 { background: linear-gradient(135deg, var(--teal-500), var(--teal-800)); }
.thumb-3 { background: linear-gradient(135deg, var(--teal-800), var(--teal-500)); }
.project-body { padding: 24px; }
.project-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal-600); background: var(--teal-50); padding: .25em .75em; border-radius: 999px; margin-bottom: 12px; }
.project-body p { font-size: .96rem; }
.project-stack { color: var(--muted); font-size: .88rem !important; margin: 0; }

/* À propos */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.values { list-style: none; padding: 0; margin: 24px 0 0; }
.values li { padding: 12px 0; border-top: 1px solid var(--line); }
.values strong { display: inline-block; min-width: 120px; color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
}
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--teal-600); line-height: 1.1; }
.stat-label { color: var(--muted); font-weight: 500; }

/* Bandeau CTA */
.cta-band {
  background: linear-gradient(120deg, var(--teal-800), var(--teal-600) 60%, var(--teal-500));
  color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: 6%; top: -40px; width: 160px; height: 280px;
  background: rgba(255, 255, 255, .08);
  clip-path: polygon(0 0, 32% 0, 100% 50%, 32% 100%, 0 100%, 68% 50%);
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; opacity: .85; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 600; color: var(--ink); }
.contact-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); flex-shrink: 0; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 18px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block; width: 100%; margin-top: 7px;
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink);
  background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .8em 1em; transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--teal-500); background: var(--surface); box-shadow: 0 0 0 4px rgba(0, 169, 168, .15); }
.contact-form .invalid { border-color: #D64545; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; text-align: center; min-height: 1.5em; }
.form-status.success { color: var(--teal-600); }
.form-status.error { color: var(--error); }

/* Pied de page */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .7); padding: 64px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; filter: brightness(1.35); }
.footer-brand p { font-size: .95rem; margin: 0; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #fff; font-weight: 600; }
.footer-nav a:hover { color: var(--teal-300); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s;
}
.socials a:hover { background: var(--teal-500); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; padding-bottom: 22px; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1081px) {
  /* 4 projets par ligne : cartes plus compactes */
  .projects-grid .project-body { padding: 20px; }
  .projects-grid .project-body p { font-size: .92rem; }
}
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li::after { display: none; }
}

@media (max-width: 900px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 72px; }
  .hero-visual { min-height: 320px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; box-shadow: 0 20px 30px -20px rgba(11, 59, 58, .25);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .services-grid, .projects-grid, .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 18px; }
  .hero-glow { width: 300px; height: 300px; }
  .device-body { font-size: .76rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .cta-inner .btn { width: 100%; }
}

/* ---------- Réalisations cliquables + fenêtre ---------- */
.project-open {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column;
  width: 100%; height: 100%; cursor: pointer; text-align: left;
}
.project-open:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: var(--radius); }
.project-card .project-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.project-more-link { margin-top: auto; font-weight: 700; color: var(--teal-600); font-size: .95rem; }
.project-card:hover .project-more-link { color: var(--teal-500); }
.project-thumb { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.thumb-a { background: radial-gradient(400px 260px at 30% 20%, rgba(255,255,255,.25), transparent 60%), linear-gradient(135deg, var(--teal-500), var(--teal-900)); }
.thumb-b { background: radial-gradient(400px 260px at 70% 20%, rgba(255,255,255,.2), transparent 60%), linear-gradient(135deg, var(--teal-600), #0A2E3F); }
.thumb-c { background: radial-gradient(400px 260px at 50% 10%, rgba(255,255,255,.2), transparent 60%), linear-gradient(135deg, var(--teal-800), var(--teal-500)); }
.thumb-mark { font-size: 2.4rem; line-height: 1; color: #fff; }
.thumb-name { font-size: 1.35rem; font-weight: 700; color: #fff; padding: 0 16px; text-align: center; }

.project-modal {
  width: min(680px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 0; border-radius: 20px; overflow: auto;
  box-shadow: var(--shadow-lg); color: var(--text); background: var(--surface);
}
.project-modal::backdrop { background: rgba(11, 40, 40, .6); backdrop-filter: blur(3px); }
.project-modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-thumb { aspect-ratio: 16 / 7; }
.modal-thumb .project-thumb { aspect-ratio: auto; height: 100%; }
.modal-body { padding: 28px 32px 32px; }
.modal-body h3 { font-size: 1.6rem; }
.modal-content .project-stack { margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.modal-close:hover { background: #fff; color: var(--teal-600); }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) { .modal-body { padding: 22px 20px 24px; } .modal-thumb { aspect-ratio: 16 / 9; } }

/* ---------- Bouton WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Bandeau défilant des technologies ---------- */
.tech-band { padding: 34px 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.tech-band-label {
  text-align: center; margin: 0 0 20px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: .6em 1.3em; border-radius: 999px;
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  background: var(--bg-tint); border: 1px solid var(--line);
  transition: border-color .2s, color .2s, background .2s;
}
.marquee-track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); }
.marquee-track span:hover { border-color: var(--teal-500); color: var(--accent); background: var(--surface); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Mot de l'équipe ---------- */
.about { align-items: stretch; }
.team-quote {
  position: relative; margin: 0; padding: 44px 40px 36px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(145deg, var(--teal-800), var(--teal-600) 70%, var(--teal-500));
  color: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; justify-content: center;
}
.team-quote::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 150px; height: 260px;
  background: rgba(255, 255, 255, .08);
  clip-path: polygon(0 0, 32% 0, 100% 50%, 32% 100%, 0 100%, 68% 50%);
}
.quote-mark { position: absolute; top: -10px; left: 26px; font-size: 7rem; line-height: 1; font-weight: 800; color: rgba(255, 255, 255, .18); }
.quote-label { position: relative; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin-bottom: 14px; }
.team-quote p:not(.quote-label) { position: relative; font-size: 1.15rem; line-height: 1.7; font-weight: 500; margin-bottom: 18px; }
.team-quote footer { position: relative; font-weight: 700; color: #BFF3F1; }

/* ---------- Photos de l'équipe ---------- */
.team { margin-top: 80px; }
.team-title { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 36px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { margin: 0; text-align: center; }
.avatar {
  aspect-ratio: 1; border-radius: 22px; overflow: hidden; position: relative;
  background: var(--avatar-bg);
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: transform .3s, box-shadow .3s;
}
.avatar::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500)); transform: scaleX(0); transition: transform .3s;
}
.member:hover .avatar { transform: translateY(-6px); box-shadow: var(--shadow); }
.member:hover .avatar::after { transform: scaleX(1); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font-size: 2.6rem; font-weight: 800; color: rgba(6, 144, 142, .35); }
.member figcaption { padding-top: 16px; display: flex; flex-direction: column; }
.member strong { color: var(--ink); font-size: 1.1rem; }
.member figcaption span { color: var(--muted); font-size: .95rem; }

/* ---------- Budget (pastilles) ---------- */
.budget { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.budget legend { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form .chip { margin: 0; cursor: pointer; }
.contact-form .chip { position: relative; }
.contact-form .chip input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .5em 1em; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--text);
  background: var(--bg-tint); border: 1.5px solid var(--line); transition: all .2s;
}
.chip:hover span { border-color: var(--teal-500); color: var(--teal-600); }
.chip input:checked + span { background: var(--teal-600); border-color: var(--teal-600); color: var(--on-primary); box-shadow: 0 6px 16px -8px rgba(6, 144, 142, .8); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0, 169, 168, .2); }

@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .team-quote { padding: 36px 24px 28px; }
  .team-grid { gap: 14px; }
  .marquee-track span { font-size: .95rem; }
}


/* =========================================================
   MODE SOMBRE
   ========================================================= */
.logo-for-dark { display: none; }

[data-theme="dark"] { --bg: #071111; --bg-tint: #0B1919; --surface: #0F2020;
    --ink: #EAF5F5; --text: #A8BEBE; --muted: #7C9595; --line: rgba(255, 255, 255, .10);
    --teal-50: rgba(0, 169, 168, .14); --teal-600: #13ADA9; --teal-500: #2CCFCB;
    --accent: #3DD6D1; --on-primary: #032321;
    --header-bg: rgba(7, 17, 17, .85); --hero-top: #071111; --footer-bg: #040B0B;
    --avatar-bg: linear-gradient(145deg, #11292A, #0B1A1A); --error: #FF8A8A;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark; }
[data-theme="dark"] .logo-for-light { display: none; }
[data-theme="dark"] .logo-for-dark { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #071111; --bg-tint: #0B1919; --surface: #0F2020;
    --ink: #EAF5F5; --text: #A8BEBE; --muted: #7C9595; --line: rgba(255, 255, 255, .10);
    --teal-50: rgba(0, 169, 168, .14); --teal-600: #13ADA9; --teal-500: #2CCFCB;
    --accent: #3DD6D1; --on-primary: #032321;
    --header-bg: rgba(7, 17, 17, .85); --hero-top: #071111; --footer-bg: #040B0B;
    --avatar-bg: linear-gradient(145deg, #11292A, #0B1A1A); --error: #FF8A8A;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark; }
  :root:not([data-theme="light"]) .logo-for-light { display: none; }
  :root:not([data-theme="light"]) .logo-for-dark { display: block; }
}

/* Transition douce lors du changement de thème */
body, .site-header, .service-card, .project-card, .steps li, .contact-form, .tech-band, .marquee-track span, .avatar {
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s, transform .25s;
}

/* ---------- Menu des langues ---------- */
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: 22px; }
.lang-menu { position: relative; }
.lang-btn {
  height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--teal-500); color: var(--accent); }
.lang-btn .globe { width: 18px; height: 18px; }
.lang-btn .caret { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--ink);
}
.lang-list a:hover { background: var(--bg-tint); color: var(--accent); }
.lang-list a[aria-current="true"] { color: var(--accent); }
.lang-list svg { width: 16px; height: 16px; }

/* ---------- Interrupteur clair / sombre ---------- */
.theme-switch {
  position: relative; width: 66px; height: 36px; padding: 0 8px; flex-shrink: 0;
  border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: space-between;
  background: var(--bg-tint); border: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.theme-switch:hover { border-color: var(--teal-500); }
.theme-switch:focus-visible { outline: 3px solid rgba(0, 169, 168, .35); outline-offset: 2px; }
.ts-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; color: var(--muted); transition: color .3s; }
.ts-icon svg { width: 16px; height: 16px; }
.ts-knob {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-600); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .3s cubic-bezier(.4, 1.4, .6, 1), background .3s;
}
/* Clair : curseur sur le soleil */
.ts-sun { color: #fff; }
/* Sombre : curseur sur la lune */
[data-theme="dark"] .ts-knob { transform: translateX(30px); }
[data-theme="dark"] .ts-sun { color: var(--muted); }
[data-theme="dark"] .ts-moon { color: var(--on-primary); }

@media (max-width: 900px) {
  .header-tools { margin-left: auto; margin-right: 6px; gap: 8px; }
}
@media (max-width: 420px) {
  .lang-btn { padding: 0 9px; gap: 4px; }
  .lang-btn .globe { display: none; }
  .theme-switch { width: 60px; height: 34px; padding: 0 7px; }
  .ts-knob { width: 26px; height: 26px; }
  [data-theme="dark"] .ts-knob { transform: translateX(26px); }
}

/* ---------- Équipe à 2 personnes ---------- */
.team-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin: 0 auto; gap: 32px; }
@media (max-width: 1080px) { .team-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid-2 { gap: 16px; } }

/* ---------- Agencement de l'en-tête avec les outils ---------- */
.header-inner { justify-content: flex-start; }
.main-nav { margin-left: auto; }
@media (max-width: 1100px) and (min-width: 901px) {
  .main-nav { gap: 18px; }
  .main-nav a:not(.btn) { font-size: .92rem; }
  .header-tools { margin-left: 14px; }
}

/* ---------- Fenêtre projet : liste, liens multiples, mention ---------- */
.project-list { margin: 0 0 16px; padding-left: 20px; }
.project-list li { margin-bottom: 10px; font-size: .97rem; line-height: 1.6; }
.project-list li::marker { color: var(--teal-500); }
.project-list strong { color: var(--ink); }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.project-links .btn { margin-top: 0 !important; }
.modal-content .btn-ghost { padding: .7em 1.2em; font-size: .92rem; }
.project-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0;
  padding: .55em 1.1em; border-radius: 999px; font-size: .9rem; font-weight: 700;
  color: var(--accent); background: var(--teal-50); border: 1px solid var(--line);
}
.project-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
.project-thumb img { display: block; }

/* Fenêtre projet : image calée en haut, croix toujours lisible (clair et sombre) */
.modal-thumb img { object-position: top center; }
.modal-close { color: #0F1E1E; }
[data-theme="dark"] .modal-close { background: rgba(255, 255, 255, .92); color: #0F1E1E; }
