/* ═══════════════════════════════════════════════════════════════════════════
 *  CODXP — Skill Pages — Stylesheet partagé
 * ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  background: #020508;
  color: rgba(180,215,245,0.85);
  font-family: 'JetBrains Mono', monospace;
}

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #0b1a30 0%, #060e1c 40%, #020508 100%);
  overflow-x: hidden;
}

/* ─── Navigation retour ─── */
.nav-back {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: rgba(2,5,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(120,200,255,0.08);
  transition: border-color 0.3s ease;
}
.nav-back:hover { border-bottom-color: rgba(120,200,255,0.2); }

.nav-back__logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 2px;
  background: linear-gradient(to bottom, rgba(100,180,240,0.55) 0%, #78c8ff 45%, #a0ddff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-back__link {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(120,200,255,0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}
.nav-back__link:hover { color: rgba(120,200,255,0.95); }

/* ─── Hero de page compétence ─── */
.skill-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 30px 80px;
  position: relative;
  overflow: hidden;
}

.skill-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(120,200,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.skill-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(120,200,255,0.06);
  border: 1px solid rgba(120,200,255,0.15);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(120,200,255,0.7);
  margin-bottom: 32px;
}

.skill-hero__title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 62px);
  color: rgba(120,200,255,0.95);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
}

.skill-hero__subtitle {
  font-size: 14px;
  color: rgba(180,215,245,0.65);
  max-width: 640px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.skill-hero__separator {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,200,255,0.4), transparent);
  margin: 40px auto 0;
}

/* ─── Section générique ─── */
.skill-section {
  padding: 80px 30px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.skill-section__label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(120,200,255,0.65);
  margin-bottom: 16px;
}

.skill-section__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 36px);
  color: rgba(120,200,255,0.9);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.skill-section__text {
  font-size: 13px;
  color: rgba(180,215,245,0.7);
  line-height: 1.9;
  max-width: 760px;
  letter-spacing: 0.3px;
}

.skill-section__text strong {
  color: rgba(120,200,255,0.85);
  font-weight: 500;
}

.skill-section__separator {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(120,200,255,0.3), transparent);
  margin: 48px 0;
}

/* ─── Grille de features / rubriques ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  background: rgba(10,22,45,0.6);
  border: 1px solid rgba(120,200,255,0.08);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.feature-card:hover {
  border-color: rgba(120,200,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 20px rgba(120,200,255,0.06);
}

.feature-card__icon {
  font-size: 20px;
  margin-bottom: 14px;
  display: block;
}

.feature-card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: rgba(120,200,255,0.9);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.feature-card__text {
  font-size: 11px;
  color: rgba(180,215,245,0.65);
  line-height: 1.7;
}

/* ─── Avis clients ─── */
.avis-card {
  display: flex;
  flex-direction: column;
}
.avis-card__quote {
  font-size: 32px;
  color: rgba(120,200,255,0.4);
  line-height: 1;
  margin-bottom: 14px;
}
.avis-card__text {
  font-size: 12px;
  color: rgba(180,215,245,0.8);
  line-height: 1.75;
  flex: 1;
  margin: 0 0 20px;
}
.avis-card__footer {
  border-top: 1px solid rgba(120,200,255,0.1);
  padding-top: 14px;
}
.avis-card__stars {
  font-size: 20px;
  letter-spacing: 3px;
  color: rgba(120,200,255,0.85);
  margin-bottom: 8px;
}
.avis-card__name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(120,200,255,0.9);
  margin-bottom: 2px;
}
.avis-card__role {
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(120,200,255,0.4);
  text-transform: uppercase;
}

/* ─── Stack technique / tags ─── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tech-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(120,200,255,0.7);
  background: rgba(120,200,255,0.06);
  border: 1px solid rgba(120,200,255,0.12);
  border-radius: 6px;
  padding: 5px 14px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.tech-tag:hover {
  border-color: rgba(120,200,255,0.35);
  color: rgba(120,200,255,0.95);
}

/* ─── Process / méthodologie — timeline verticale ─── */
.process-list {
  list-style: none;
  position: relative;
  padding-left: 32px;
  margin-top: 32px;
}
.process-list::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(120,200,255,0.3), rgba(120,200,255,0.05));
}

.process-list li {
  position: relative;
  margin-bottom: 32px;
}
.process-list li::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(120,200,255,0.5);
  border: 2px solid rgba(120,200,255,0.25);
}

.process-list__step {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: rgba(120,200,255,0.85);
  margin-bottom: 6px;
}

.process-list__desc {
  font-size: 11px;
  color: rgba(180,215,245,0.6);
  line-height: 1.7;
}

/* ─── Galerie d'images ─── */
.gallery-section {
  padding: 60px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: rgba(10,22,45,0.5);
  border: 1px solid rgba(120,200,255,0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover {
  border-color: rgba(120,200,255,0.3);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img { opacity: 1; }

.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(120,200,255,0.3);
}

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2,5,8,0.95);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(120,200,255,0.1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 14px;
  color: rgba(120,200,255,0.6);
  cursor: pointer;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: none;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.3s ease;
}
.lightbox__close:hover { color: rgba(120,200,255,1); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: rgba(120,200,255,0.5);
  cursor: pointer;
  background: none;
  border: none;
  padding: 16px;
  transition: color 0.3s ease;
}
.lightbox__nav:hover { color: rgba(120,200,255,1); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ─── Projets liés ─── */
.projects-section {
  padding: 80px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.project-card {
  background: rgba(10,22,45,0.5);
  border: 1px solid rgba(120,200,255,0.08);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card:hover {
  border-color: rgba(120,200,255,0.25);
  transform: translateY(-4px);
}

.project-card__tag {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,210,60,0.75);
  margin-bottom: 10px;
}

.project-card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: rgba(120,200,255,0.9);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 11px;
  color: rgba(180,215,245,0.6);
  line-height: 1.7;
}

/* ─── CTA / Contact bottom ─── */
.skill-cta {
  text-align: center;
  padding: 80px 30px 100px;
  max-width: 600px;
  margin: 0 auto;
}

.skill-cta__title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: rgba(120,200,255,0.92);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.skill-cta__text {
  font-size: 12px;
  color: rgba(180,215,245,0.6);
  line-height: 1.8;
  margin-bottom: 32px;
}

.skill-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: rgba(120,200,255,0.08);
  border: 1px solid rgba(120,200,255,0.3);
  border-radius: 8px;
  color: rgba(120,200,255,0.9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-cta__btn:hover {
  background: rgba(120,200,255,0.15);
  border-color: rgba(120,200,255,0.5);
  box-shadow: 0 0 30px rgba(120,200,255,0.12);
}

/* ─── Section contact inline ─── */
.contact-section {
  padding: 80px 30px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 4vw, 42px);
  color: rgba(120,200,255,0.92);
  letter-spacing: 2px;
  text-decoration: none;
  margin: 24px 0 12px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.contact-email:hover {
  color: rgba(160,220,255,1);
  text-shadow: 0 0 30px rgba(120,200,255,0.25);
}

.contact-sub {
  font-size: 12px;
  color: rgba(180,215,245,0.55);
  letter-spacing: 1px;
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(120,200,255,0.5);
}

.contact-form__input,
.contact-form__textarea {
  background: rgba(10,22,45,0.6);
  border: 1px solid rgba(120,200,255,0.12);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(180,215,245,0.9);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: rgba(120,200,255,0.4);
  box-shadow: 0 0 16px rgba(120,200,255,0.08);
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(120,200,255,0.25);
}

.contact-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__submit {
  align-self: flex-start;
  padding: 14px 36px;
  background: rgba(120,200,255,0.08);
  border: 1px solid rgba(120,200,255,0.3);
  border-radius: 8px;
  color: rgba(120,200,255,0.9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form__submit:hover {
  background: rgba(120,200,255,0.15);
  border-color: rgba(120,200,255,0.5);
  box-shadow: 0 0 30px rgba(120,200,255,0.12);
}

.contact-form__feedback {
  font-size: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}
.contact-form__feedback--success {
  display: block;
  color: rgba(120,255,180,0.9);
  background: rgba(120,255,180,0.06);
  border: 1px solid rgba(120,255,180,0.2);
}
.contact-form__feedback--error {
  display: block;
  color: rgba(255,120,120,0.9);
  background: rgba(255,120,120,0.06);
  border: 1px solid rgba(255,120,120,0.2);
}

/* ─── Section CTA Rendez-vous ─── */
.rdv-cta-section {
  padding: 90px 40px;
  background: linear-gradient(180deg, #0d0d1a 0%, #0f0f20 100%);
  border-top: 1px solid rgba(120,200,255,.15);
}
.rdv-cta-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.rdv-cta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(120, 200, 255, 0.9);
  margin-bottom: 20px;
}
.rdv-cta-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #e8e8f0;
  margin-bottom: 20px;
}
.rdv-cta-accent { color: rgba(120, 200, 255, 0.9); }
.rdv-cta-desc {
  font-size: 16px;
  color: rgba(200,200,220,.65);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.rdv-cta-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto 32px;
}
.rdv-cta-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: #e8e8f0;
  transition: border-color .2s, background .2s, transform .15s;
  text-align: left;
}
.rdv-cta-card:hover {
  border-color: rgba(120,200,255,.45);
  background: rgba(120,200,255,.08);
  transform: translateX(4px);
}
.rdv-cta-card--primary {
  border-color: rgba(120,200,255,.4);
  background: rgba(120,200,255,.08);
}
.rdv-cta-card--primary:hover {
  border-color: rgba(120, 200, 255, 0.9);
  background: rgba(120,200,255,.14);
}
.rdv-cta-card-icon { font-size: 26px; flex-shrink: 0; }
.rdv-cta-card-content { flex: 1; }
.rdv-cta-card-content strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #fff;
}
.rdv-cta-card--primary .rdv-cta-card-content strong { color: rgba(120, 200, 255, 0.9); }
.rdv-cta-card-content span { font-size: 13px; color: rgba(200,200,220,.55); }
.rdv-cta-card-arrow {
  font-size: 18px;
  color: rgba(120,200,255,.55);
  transition: color .2s, transform .2s;
  flex-shrink: 0;
}
.rdv-cta-card:hover .rdv-cta-card-arrow { color: rgba(120, 200, 255, 0.9); transform: translateX(4px); }
.rdv-cta-note {
  font-size: 12px;
  color: rgba(150,150,170,.4);
  letter-spacing: .5px;
}
@media (max-width: 600px) {
  .rdv-cta-section { padding: 64px 20px; }
  .rdv-cta-card { padding: 16px 18px; gap: 14px; }
  .rdv-cta-card-icon { font-size: 22px; }
}

/* ─── Footer léger ─── */
.skill-footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid rgba(120,200,255,0.06);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(120,200,255,0.3);
  text-transform: uppercase;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-back { padding: 14px 20px; }
  .skill-hero { padding: 120px 20px 60px; }
  .skill-section { padding: 50px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-section { padding: 50px 20px; }
}
