/* ============================================================
   CSMEDIA — Feuille de styles principale
   ============================================================ */


/* ── 1. VARIABLES (tokens de design) ────────────────────────── */

:root {
  /* Fonds */
  --ink:     #08070d;
  --deep:    #0f0c1a;
  --surface: #16122a;
  --card:    #1c1730;

  /* Bordures */
  --border:  rgba(255, 255, 255, .07);
  --border2: rgba(99, 86, 196, .3);

  /* Couleurs d'accent */
  --brand:  #5b4cf5;
  --accent: #7c6ef8;
  --bright: #a394ff;
  --pop:    #ff6b6b;

  /* Texte */
  --text:  #f0ecff;
  --muted: #8b82ad;
  --faint: #4a4468;

  /* Rayons */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Typographie */
  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Bricolage Grotesque', sans-serif;
}


/* ── 2. RESET & BASE ─────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Texture de bruit subtile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* Grille de fond */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 76, 245, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 76, 245, .04) 1px, transparent 1px);
  background-size: 64px 64px;
}


/* ── 3. EFFETS D'AMBIANCE (orbes lumineux) ───────────────────── */

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
  background: rgba(91, 76, 245, .18);
}

.orb-2 {
  width: 500px;
  height: 500px;
  top: 40%;
  right: -200px;
  background: rgba(124, 110, 248, .12);
}

.orb-3 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 30%;
  background: rgba(255, 107, 107, .08);
}


/* ── 4. COUCHES Z-INDEX ──────────────────────────────────────── */

nav,
section,
footer,
.hero-content {
  position: relative;
  z-index: 2;
}


/* ── 5. MISE EN PAGE ─────────────────────────────────────────── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 112px 0;
}


/* ── 6. NAVIGATION ───────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(8, 7, 13, .7);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

nav.scrolled {
  background: rgba(8, 7, 13, .92);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 20px rgba(91, 76, 245, .4);
}

/* Liens */
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

/* Bouton CTA */
.btn-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow .3s, transform .2s, background .2s;
}

.btn-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(91, 76, 245, .5);
}

/* Hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}


/* ── 7. HERO ─────────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 48px 80px;
}

.hero-content {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--bright);
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .95;
  letter-spacing: -.04em;
  animation: fadeUp .7s .1s ease both;
}

.hero-h1 .line-2 {
  display: block;
  background: linear-gradient(90deg, var(--accent) 0%, var(--pop) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-top: 56px;
  animation: fadeUp .7s .25s ease both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 400px;
  font-weight: 300;
  line-height: 1.7;
  border-left: 2px solid var(--brand);
  padding-left: 20px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hstat {
  text-align: right;
}

.hstat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.hstat-lbl {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  gap: 12px;
}

/* Indicateur de scroll */
.scroll-ind {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  color: var(--faint);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 64px;
  animation: fadeUp .7s .4s ease both;
}

.scroll-track {
  width: 40px;
  height: 2px;
  background: var(--faint);
  position: relative;
  overflow: hidden;
}

.scroll-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand);
  animation: scanLine 2s ease-in-out infinite;
}


/* ── 8. BOUTONS COMMUNS ──────────────────────────────────────── */

.btn-primary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: var(--r-sm);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 32px rgba(91, 76, 245, .35);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(91, 76, 245, .55);
  background: var(--accent);
}

.btn-ghost {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(99, 86, 196, .6);
}

.btn-submit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: var(--r-sm);
  padding: 15px 32px;
  cursor: pointer;
  align-self: flex-start;
  box-shadow: 0 4px 24px rgba(91, 76, 245, .35);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(91, 76, 245, .55);
  background: var(--accent);
}


/* ── 9. UTILITAIRES DE SECTION ───────────────────────────────── */

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--brand);
}

.section-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 12px;
  max-width: 480px;
  font-weight: 300;
}


/* ── 10. ANIMATIONS AU SCROLL (reveal) ───────────────────────── */

.r {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}

.r.in {
  opacity: 1;
  transform: none;
}

/* Délais échelonnés */
.r-d1 { transition-delay: .1s; }
.r-d2 { transition-delay: .2s; }
.r-d3 { transition-delay: .3s; }
.r-d4 { transition-delay: .4s; }


/* ── 11. TICKER ──────────────────────────────────────────────── */

.ticker {
  background: var(--brand);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerMove 30s linear infinite;
}

.ticker-item {
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 32px;
}

.ticker-item::after {
  content: '◆';
  opacity: .4;
}


/* ── 12. SECTION SERVICES ────────────────────────────────────── */

#services {
  background: var(--deep);
}

.services-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Carte de service */
.srv {
  background: var(--surface);
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.srv:hover {
  background: var(--card);
}

/* Overlay lumineux au hover */
.srv::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(91, 76, 245, .08), transparent);
  transition: opacity .3s;
}

.srv:hover::before {
  opacity: 1;
}

.srv-num {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.srv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: border-color .3s, box-shadow .3s;
}

.srv:hover .srv-icon {
  border-color: var(--brand);
  box-shadow: 0 0 20px rgba(91, 76, 245, .2);
}

.srv-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.srv-desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Flèche visible au hover */
.srv-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: .8rem;
  opacity: 0;
  transform: translate(4px, 4px);
  transition: transform .3s, opacity .3s, border-color .3s, color .3s;
}

.srv:hover .srv-arrow {
  transform: translate(0, 0);
  opacity: 1;
  border-color: var(--brand);
  color: var(--bright);
}


/* ── 13. SECTION L'AGENCE ────────────────────────────────────── */

#about {
  background: var(--ink);
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.about-visual {
  position: relative;
}

/* Cartes empilées */
.about-card-stack {
  position: relative;
  height: 360px;
}

.acard {
  position: absolute;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  transition: transform .4s ease;
}

.acard-1 { width: 280px; left: 0;    top: 0;    z-index: 3; }
.acard-2 { width: 260px; left: 60px; top: 80px; z-index: 2; background: var(--card); }
.acard-3 { width: 240px; left: 120px; top: 160px; z-index: 1; opacity: .6; }

.about-card-stack:hover .acard-1 { transform: translateX(-12px) rotate(-2deg); }
.about-card-stack:hover .acard-2 { transform: translateX(4px); }
.about-card-stack:hover .acard-3 { transform: translateX(20px) rotate(2deg); }

.acard-tag {
  font-size: .7rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.acard-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.acard-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 14px;
  overflow: hidden;
}

.acard-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* Badge "2009" */
.year-badge {
  position: absolute;
  bottom: 20px;
  right: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: var(--r-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(91, 76, 245, .35);
}

.year-badge .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.year-badge .lbl {
  font-size: .72rem;
  opacity: .8;
  margin-top: 2px;
}

/* Texte */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

.about-p strong {
  color: var(--text);
  font-weight: 500;
}

/* Tags de compétences */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 6px 14px;
  color: var(--bright);
  transition: background .2s, border-color .2s;
}

.tag:hover {
  background: rgba(99, 86, 196, .1);
  border-color: var(--brand);
}


/* ── 14. SECTION PLATEFORME RH ───────────────────────────────── */

#plateforme {
  background: var(--deep);
}

.plat-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Maquette navigateur */
.plat-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .4);
}

.plat-mock-header {
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.plat-mock-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.plat-search-bar {
  flex: 1;
  background: rgba(255, 255, 255, .05);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: .78rem;
  color: var(--faint);
  border: 1px solid var(--border);
}

.plat-chip {
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(91, 76, 245, .15);
  border: 1px solid var(--border2);
  color: var(--bright);
}

/* Liste des offres */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  transition: border-color .2s;
}

.job-item:hover {
  border-color: var(--brand);
}

.job-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(91, 76, 245, .3), rgba(124, 110, 248, .2));
  display: grid;
  place-items: center;
  font-size: .95rem;
}

.job-title-s {
  font-size: .88rem;
  font-weight: 500;
}

.job-co {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Badges type de contrat */
.job-badge {
  font-size: .7rem;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 600;
}

.badge-cdi { background: rgba(16, 185, 129, .15); color: #34d399; border: 1px solid rgba(16, 185, 129, .2); }
.badge-cdd { background: rgba(245, 158, 11, .12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .15); }
.badge-alt { background: rgba(99, 86, 196, .15);  color: var(--bright); border: 1px solid var(--border2); }

/* Bandeau carte */
.map-row {
  margin-top: 14px;
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-pin {
  font-size: 1.1rem;
}

.map-text {
  font-size: .82rem;
  color: var(--muted);
}

.map-text strong {
  color: var(--text);
  font-weight: 500;
}


/* ── 15. SECTION CONTACT ─────────────────────────────────────── */

#contact {
  background: var(--ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* Infos */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cinfo-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .2s;
}

.cinfo-item:hover {
  border-color: var(--brand);
}

.cinfo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(91, 76, 245, .15);
  border: 1px solid var(--border2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.cinfo-lbl {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cinfo-val {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-top: 2px;
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .05em;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  width: 100%;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 76, 245, .12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--faint);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


/* ── 16. FOOTER ──────────────────────────────────────────────── */

footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  position: relative;
  z-index: 2;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand p {
  font-size: .88rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.6;
  font-weight: 300;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--faint);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--faint);
  text-decoration: none;
  transition: color .2s;
}

.footer-bottom a:hover {
  color: var(--muted);
}


/* ── 17. KEYFRAMES ───────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes scanLine {
  0%, 100% { transform: translateX(-100%); }
  50%       { transform: translateX(100%); }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* Screenshot dans la section Plateforme RH */
.plat-screenshot-wrap {
  position: relative;
  overflow: hidden;
  background: var(--card);
}

.plat-screenshot {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s var(--ease);
}

.plat-visual:hover .plat-screenshot {
  transform: scale(1.03);
}

.plat-screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(8, 7, 13, .5) 100%
  );
  pointer-events: none;
}


/* ── 19. SECTION ÉDITION DE SITES (PORTFOLIO) ───────────────── */

#portfolio {
  background: var(--ink);
  border-top: 1px solid var(--border);
}

.port-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
}

/* Grille des 3 cartes */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Carte cliquable */
.port-card {
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.port-card:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .4);
}

/* Fenêtre navigateur simulée */
.port-screen {
  flex-shrink: 0;
}

.port-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.port-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.port-url {
  flex: 1;
  font-size: .68rem;
  color: var(--faint);
  margin-left: 6px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* Corps du site simulé — remplacé par screenshot */
.port-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--card);
}

.port-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease);
}

.port-card:hover .port-img {
  transform: scale(1.04);
}

/* Dégradé en bas pour fondu vers les infos */
.port-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(8, 7, 13, .7) 100%
  );
  pointer-events: none;
}

/* Infos sous la maquette */
.port-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.port-domain {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brand);
  text-transform: uppercase;
}

.port-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: 2px;
}

.port-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
  margin-top: 4px;
  flex: 1;
}

.port-cta {
  font-size: .78rem;
  font-weight: 600;
  color: var(--bright);
  margin-top: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s, transform .25s;
}

.port-card:hover .port-cta {
  opacity: 1;
  transform: none;
}


/* ── 20. FEEDBACK FORMULAIRE ─────────────────────────────────── */

.form-feedback {
  font-size: .88rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  display: none; /* affiché via JS */
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  color: #34d399;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .2);
  color: #f87171;
}

/* Bouton en état de chargement */
.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Mise en évidence des champs invalides */
.form-field input.invalid,
.form-field textarea.invalid {
  border-color: rgba(239, 68, 68, .5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}


/* ── 21. RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1000px) {
  nav              { padding: 0 24px; }
  .nav-links       { display: none; }
  .hamburger       { display: flex; }
  #hero            { padding: 90px 24px 60px; }
  .hero-split      { grid-template-columns: 1fr; gap: 40px; }
  .hero-right      { align-items: flex-start; }
  .container       { padding: 0 24px; }
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-inner,
  .plat-inner,
  .contact-inner   { grid-template-columns: 1fr; gap: 48px; }
  .about-visual    { display: none; }
  .services-intro,
  .port-header     { flex-direction: column; }
  .port-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-h1         { font-size: 3rem; }
  .services-grid   { grid-template-columns: 1fr; }
  .form-row-2      { grid-template-columns: 1fr; }
  .hero-stats      { flex-direction: column; gap: 16px; }
  .hstat           { text-align: left; }
  .footer-main     { flex-direction: column; }
  .port-grid       { grid-template-columns: 1fr; }
}
