/* ============================================================
   GILLES INFORMATIQUE — home.css
   Styles spécifiques page d'accueil
   ============================================================ */

/* ── HERO ── */
.hero {
  background: var(--c-bg-hero);
  border-bottom: 1px solid var(--c-border-dark);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}
.hero__bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--c-orange) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-orange) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .05;
}

.hero__inner { position: relative; z-index: 1; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--space-lg);
  align-items: stretch;
}
.hero__terminal-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.hero__terminal-wrap .terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero__terminal-wrap .terminal__body {
  flex: 1;
}
.hero__cta-wrap { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Sidebar hero — même hauteur que le terminal */
.hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0;
  background: #0e0e0e;
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero__sidebar-header {
  background: #181818;
  border-bottom: 1px solid var(--c-border-dark);
  padding: .5rem .875rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: #888884;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero__sidebar-header::before {
  content: '>_';
  color: var(--c-orange);
  font-weight: 700;
}
.hero__sidebar-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}
.hero__cta-top .btn { width: 100%; justify-content: center; }

.hero__contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.hero__sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .55rem .75rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.hero__sidebar-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.hero__sidebar-btn--outline {
  background: transparent;
  color: #c8c8c4;
  border: 1px solid #383838;
}
.hero__sidebar-btn--outline svg { color: var(--c-orange); }
.hero__sidebar-btn--outline:hover { border-color: var(--c-orange); color: var(--c-orange); }
.hero__sidebar-btn--whatsapp {
  background: transparent;
  color: #25d366;
  border: 1px solid #25d366;
}
.hero__sidebar-btn--whatsapp svg { color: #25d366; }
.hero__sidebar-btn--whatsapp:hover { background: #25d366; color: #0a0a0a; }

.hero__sidebar-btn--linkedin {
  background: transparent;
  color: #0088cc;
  border: 1px solid #0088cc;
}
.hero__sidebar-btn--linkedin svg { color: #0088cc; }
.hero__sidebar-btn--linkedin:hover { background: #0088cc; color: #fff; }

.hero__sidebar-btn--facebook {
  background: transparent;
  color: #1877f2;
  border: 1px solid #1877f2;
}
.hero__sidebar-btn--facebook svg { color: #1877f2; }
.hero__sidebar-btn--facebook:hover { background: #1877f2; color: #fff; }

/* Terminal body */
.terminal__body {
  min-height: 260px;
  /* La hauteur s'adapte au contenu — gérée en JS via setTerminalHeight() */
}
.terminal__line {
  display: flex; align-items: baseline; flex-wrap: wrap;
  margin-bottom: 2px; gap: 0;
}
.terminal__output {
  display: block; padding-left: 1rem;
  color: var(--c-text-dim); font-size: .75rem;
  line-height: 1.7; margin-bottom: 3px;
}
.terminal__slide-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--c-orange);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  opacity: .8;
}

/* Dots navigation terminal */
.terminal-nav {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
  padding: .5rem .875rem;
  background: #0e0e0e;
  border-top: 1px solid var(--c-border-dark);
}
.term-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2a2a2a; border: none; cursor: pointer;
  transition: background var(--transition);
}
.term-dot--active { background: var(--c-orange); }
.term-dot:hover   { background: var(--c-orange-dim); }

/* ── H2/H3 sur fonds clairs ── */
.bg-white h2, .bg-offwhite h2 {
  color: #111111;
}
.bg-white h3, .bg-offwhite h3 {
  color: #1a1a1a;
}
.bg-white p, .bg-offwhite p {
  color: #333333;
}

/* ── H2/H3 sur fonds sombres ── */
.bg-dark h2, .bg-hero h2, .bg-stats h2 {
  color: #e4e4e0;
}
.bg-dark h3 {
  color: #d0d0cc;
}

/* Intro texte sections sombres */
.section-intro-dark {
  color: #8a8a86;
  font-size: .9rem;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* Actions en bas de section */
.section-actions {
  margin-top: var(--space-lg);
  display: flex; gap: var(--space-md); flex-wrap: wrap;
}

/* ── CARDS LIGHT ── */
.card-light__icon { width: 32px; height: 32px; color: var(--c-orange); margin-bottom: var(--space-sm); }
.card-light__icon svg { width: 100%; height: 100%; }
.card-light__title {
  font-family: var(--font-mono); font-size: .9rem; font-weight: 700;
  color: #111111; margin-bottom: var(--space-sm);
}
.card-light__desc { font-size: .85rem; color: #333333; line-height: 1.65; margin-bottom: var(--space-md); }
.card-light__link {
  font-family: var(--font-mono); font-size: .725rem;
  color: var(--c-orange-dim); text-decoration: none;
  transition: color var(--transition);
}
.card-light__link:hover { color: var(--c-orange); }

/* ── CARDS DARK ── */
.card__icon { width: 30px; height: 30px; color: var(--c-orange); margin-bottom: var(--space-sm); }
.card__icon svg { width: 100%; height: 100%; }
.card__title { font-family: var(--font-mono); font-size: .85rem; font-weight: 700; color: #e0e0dc; margin-bottom: var(--space-sm); }
.card__desc  { font-size: .8rem; color: #888; line-height: 1.6; margin-bottom: var(--space-md); }
.card__link  { font-family: var(--font-mono); font-size: .7rem; color: var(--c-orange); text-decoration: none; }
.card__link:hover { color: var(--c-orange-hover); }

/* ── SPLIT création de site ── */
.home-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: center;
}
.home-split__text h2 { color: #1a1a1a; margin-bottom: var(--space-md); }
.home-split__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-lg); }

.home-checklist { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.home-checklist li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .875rem; color: #555; line-height: 1.6;
}
.home-checklist li::before {
  content: '✓'; color: var(--c-orange-dim);
  font-family: var(--font-mono); font-weight: 700;
  flex-shrink: 0; margin-top: .05rem;
}

/* Bloc code décoratif */
.home-split__code-block {
  background: #0c0c0c; border: 1px solid #2a2a2a;
  border-radius: var(--radius-md); overflow: hidden;
  font-family: var(--font-mono);
}
.home-split__code-bar {
  background: #181818; border-bottom: 1px solid #222;
  padding: .5rem .875rem; display: flex; align-items: center; gap: .4rem;
}
.home-split__code-dot {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: #3a3a3a;
  user-select: none;
}
.home-split__code-filename { font-size: .65rem; color: #888884; margin-left: .5rem; }
.home-split__code pre { margin: 0; padding: 1.125rem 1.25rem; font-size: .75rem; line-height: 1.8; overflow-x: auto; }
.code-tag  { color: #569cd6; }
.code-attr { color: #9cdcfe; }
.code-str  { color: #ce9178; }
.code-cmt  { color: #6a9955; }
.home-split__code code { color: #d4d4d0; } /* texte générique entre balises */

/* ── ÉTAPES SEO ── */
.seo-step__num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: rgba(240,120,32,.15); line-height: 1; margin-bottom: .5rem; }
.seo-step__title { font-family: var(--font-mono); font-size: .9rem; font-weight: 700; color: var(--c-orange); margin-bottom: .5rem; }
.seo-step__desc  { font-size: .8rem; color: #888; line-height: 1.65; }

/* ── QUI SUIS-JE ── */
.about-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: start;
}
.about-text h2 { color: #1a1a1a; margin-bottom: var(--space-md); }
.about-desc { font-size: .9rem; color: #555; line-height: 1.7; }
.about-desc strong { color: #1a1a1a; }

.skill-item { margin-bottom: var(--space-md); }
.skill-item__header { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.skill-item__label  { font-size: .8rem; color: #555; }
.skill-item__val    { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; }
.skill-item__track  { height: 4px; background: #e0deda; border-radius: 4px; overflow: hidden; }
.skill-item__fill   { height: 100%; border-radius: 4px; transition: width 1s ease; }

/* ── CAROUSEL ANECDOTES ── */
.anecdote-slider { position: relative; overflow: hidden; }
.anecdote-slides { position: relative; }

.anecdote-slide {
  display: none;
  background: #2c2c2c;
  border: .5px solid #383838;
  border-left: 4px solid var(--c-orange);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  animation: fadeSlide .35s ease;
  min-height: 280px;
}
.anecdote-slide--active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anecdote-slide__tag {
  font-family: var(--font-mono); font-size: .65rem;
  color: var(--c-orange); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .4rem;
  display: block;
}
.anecdote-slide__title {
  font-family: var(--font-mono); font-size: 1.1rem;
  font-weight: 700; color: #e4e4e0; margin-bottom: var(--space-md);
}
.anecdote-slide__text {
  font-size: .875rem; color: #9a9a96;
  line-height: 1.8; margin-bottom: .75rem;
}
.anecdote-slide__text:last-child { margin-bottom: 0; }
.anecdote-slide__text em { color: #c8c8c4; font-style: italic; }

.anecdote-controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-md); margin-top: var(--space-lg);
}
.anecdote-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #2c2c2c; border: .5px solid #383838;
  color: #888; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.anecdote-btn:hover { background: var(--c-orange); color: #0a0a0a; border-color: var(--c-orange); }

.anecdote-dots { display: flex; gap: .4rem; }
.anec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #383838; border: none; cursor: pointer;
  transition: background var(--transition);
}
.anec-dot--active { background: var(--c-orange); }

/* ── CONTACT STRIP ── */
.contact-strip__inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: var(--space-lg);
}
.contact-strip__items { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; }
.contact-strip__item {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--c-text-muted-l); text-decoration: none;
  transition: color var(--transition);
}
.contact-strip__item:hover { color: var(--c-orange-dim); }
.contact-strip__item svg { width: 14px; height: 14px; color: var(--c-orange); flex-shrink: 0; }
.contact-strip__item--geo:hover { color: var(--c-text-muted-l); cursor: default; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .home-split  { grid-template-columns: 1fr; }
  .about-wrap  { grid-template-columns: 1fr; }
  .home-split__code-block { display: none; }
}
@media (max-width: 768px) {
  .hero__terminal-wrap { max-width: 100%; }
  .contact-strip__inner { flex-direction: column; align-items: flex-start; }
  .contact-strip__items { flex-direction: column; gap: var(--space-sm); }
  .anecdote-slide { padding: var(--space-md); }
}

/* ── BLOC DÉVELOPPEMENT APPLICATIONS WEB ── */
.appweb-strip {
  background: var(--c-bg-white);
  border-bottom: 1px solid var(--c-border-light);
  padding: var(--space-xl) 0;
}
.appweb-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-xl);
  align-items: center;
}
.appweb-text h2 {
  color: #1a1a1a;
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}
.appweb-text p {
  font-size: .875rem;
  color: #555;
  line-height: 1.7;
}
.appweb-text strong { color: #1a1a1a; font-weight: 600; }

.appweb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.appweb-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: #444;
}
.appweb-tag {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-orange-dim);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .appweb-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ── CAFÉ STAT ── */
.coffee-icon {
  width: 1rem;
  height: 1rem;
  color: var(--c-orange);
  vertical-align: -2px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline;
  flex-shrink: 0;
}

/* ── CODE BLOCK ASCII COULEURS ── */
.home-split__code-dot--r { color: #e05252; font-weight: 700; }
.home-split__code-dot--y { color: #e0a030; font-weight: 700; }
.home-split__code-dot--g { color: #4ec94e; font-weight: 700; }

/* ── RESPONSIVE HERO ── */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__sidebar { flex-direction: row; flex-wrap: wrap; }
  .hero__nav-links { flex-direction: row; gap: var(--space-lg); }
}
@media (max-width: 600px) {
  .hero__sidebar { flex-direction: column; }
  .hero__nav-links { flex-direction: column; }
}

/* ── CAROUSEL CLIENTS ── */
.clients-strip {
  background: #1e1e1e;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--c-border-dark);
  border-bottom: 1px solid var(--c-border-dark);
  overflow: hidden;
}

.clients-track-wrap {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-md);
  /* Fondu sur les bords */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  animation: scrollClients 30s linear infinite;
  width: max-content;
}
.clients-track:hover { animation-play-state: paused; }

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

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: .75rem 1.25rem;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  opacity: .85;
  min-width: 120px;
  height: 64px;
  border-radius: var(--radius-sm);
}
.client-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.client-item img {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* Fond blanc pour logos sombres */
.client-item--bg-white {
  background: #ffffff;
  padding: .6rem 1.1rem;
}
.client-item--bg-white:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Fallback texte si pas de logo */
.client-item__name {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--c-text-muted-l);
  white-space: nowrap;
}
