/* ============================================================
   style.css — MaxD Dev
   Palette extraite du logo : bleu marine + blanc + accents
   ============================================================ */

/* ============================================================
   VARIABLES — MODIFIER ICI POUR CHANGER LES COULEURS GLOBALEMENT
   ============================================================ */
:root {
  /* Couleurs principales (tirées du logo) */
  --navy:        #0e1245;   /* Bleu marine très foncé — fond principal */
  --navy-mid:    #1a2070;   /* Bleu marine moyen — cartes, sections */
  --navy-light:  #242d8a;   /* Bleu marine clair — hover, bordures */
  --royal:       #2d35c0;   /* Bleu royal — éléments secondaires */
  --white:       #f4f6ff;   /* Blanc légèrement bleuté — texte principal */
  --off-white:   #c8cff0;   /* Blanc cassé — texte secondaire */

  /* Accent (couleur vive pour les CTA et highlights) */
  /* ============================================================
     MODIFIER : changer --accent pour une autre couleur d'accentuation
     Actuellement : blanc pur (contraste max sur fond marine)
     Alternatives : #4fc3f7 (bleu ciel), #a5b4fc (indigo clair)
  ============================================================ */
  --accent:      #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);

  /* Couleur secondaire pour badges "en cours" etc. */
  --cyan:        #4dd0e1;

  /* Typographie */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Espacements de base */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --page-pad:    clamp(1.5rem, 5vw, 3rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ============================================================
   GRILLE DE FOND (effet tech subtil)
   MODIFIER opacity pour plus/moins visible, ou supprimer body::before
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Lueur centrale dans le hero */
.hero-glow {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 53, 192, 0.35) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--page-pad);
  background: rgba(14, 18, 69, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s;
}
/* backdrop-filter sur pseudo-élément pour ne pas piéger le menu mobile */
#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}

#navbar.scrolled {
  border-bottom-color: rgba(45, 53, 192, 0.4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
}
.nav-logo span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--off-white);
  letter-spacing: 0.03em;
}
.nav-logo span em {
  color: var(--accent);
  font-style: normal;
}

/* Liens nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--off-white);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Bouton CTA nav */
.nav-cta {
  padding: 0.5rem 1.2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--white) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10000;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   COMPOSANTS COMMUNS
   ============================================================ */

/* Label de section */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--cyan);
}

/* Titre de section */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--white);
}

/* Bouton principal */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
  background: var(--off-white);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

/* Bouton fantôme */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--off-white);
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* Animation d'apparition au scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vw, 10rem) var(--page-pad) 4rem;
  overflow: hidden;
}

/* Texte géant en arrière-plan */
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 26rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.05em;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1150px;
  width: 100%;
}

/* Badge "disponible" */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 2rem;
  border: 1px solid rgba(77, 208, 225, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  width: fit-content;
}
.tag-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* H1 animé */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  /* La taille est pilotée par les .line ci-dessous */
}
h1 .line {
  display: block;
}
h1 .line span {
  display: block;
  white-space: nowrap;        /* Interdit le retour à la ligne */
  /* Taille fluide calibrée sur la ligne la plus longue ("Web & Solutions").
     min = mobile 375px, max = desktop 1400px
     Ajuster le chiffre vw si vous changez le texte */
  font-size: clamp(1.5rem, 5.6vw, 4.6rem);
  animation: slideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(110%);
}
h1 .line:nth-child(1) span { animation-delay: 0.08s; }
h1 .line:nth-child(2) span { animation-delay: 0.18s; }
h1 .line:nth-child(3) span { animation-delay: 0.28s; }
h1 .accent { color: var(--cyan); }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  color: var(--off-white);
  line-height: 2;
  max-width: 480px;
  margin-bottom: 3rem;
  animation: fadeIn 1s ease 0.55s forwards;
  opacity: 0;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease 0.75s forwards;
  opacity: 0;
}

/* Colonne droite : stats + scroll indicator */
.hero-right-col {
  position: absolute;
  right: var(--page-pad);
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.5rem;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
  z-index: 1;
}

/* Stats flottantes (desktop) */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hero-stat { text-align: right; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: block;
}
.hero-stat .num em {
  color: var(--cyan);
  font-style: normal;
}
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--off-white);
}

/* Indicateur de scroll */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--off-white);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2.2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1; }
}

/* ============================================================
   SECTION SERVICES
   ============================================================ */
#services {
  padding: var(--section-pad) var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card {
  background: var(--navy);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--cyan), var(--royal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover { background: var(--navy-mid); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--off-white);
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
  opacity: 0.5;
}
.service-icon {
  width: 44px;
  height: 44px;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  line-height: 1.15;
}
.service-card p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--off-white);
  line-height: 1.9;
  margin-bottom: 2rem;
  flex: 1;
}
.service-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: auto;
}
.service-link svg { transition: transform 0.2s; }
.service-card:hover .service-link svg { transform: translateX(5px); }

/* ============================================================
   SECTION PROCESS
   ============================================================ */
#process {
  padding: var(--section-pad) var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--navy-mid);
  position: relative;
  z-index: 1;
}

.process-header { margin-bottom: 4rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

/* Ligne de connexion entre étapes */
.process-steps::before {
  content: '';
  position: absolute;
  top: 23px;
  left: calc(12.5% + 0.5rem);
  right: calc(12.5% + 0.5rem);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(77, 208, 225, 0.4) 20%,
    rgba(77, 208, 225, 0.4) 80%,
    transparent
  );
}

.process-step { padding: 0 1.5rem; }

.step-dot {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(77, 208, 225, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  margin-bottom: 1.75rem;
  background: var(--navy-mid);
  position: relative;
  z-index: 1;
  transition: background 0.2s, border-color 0.2s;
}
.process-step:hover .step-dot {
  background: var(--navy-light);
  border-color: var(--cyan);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.process-step p {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--off-white);
  line-height: 1.85;
}

/* ============================================================
   SECTION PROJETS
   ============================================================ */
#projects {
  padding: var(--section-pad) var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  border-color: rgba(77, 208, 225, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 20, 0.4);
}
.project-wip { cursor: default; }
.project-wip:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.project-thumb {
  height: 200px;
  background: var(--navy-light);
  overflow: hidden;
  position: relative;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* remplit la vignette sans déformer */
  object-position: top;       /* cadre sur le haut de la capture */
}
/* Léger fondu bleu en bas de la vignette */
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, rgba(26, 32, 112, 0.45));
  pointer-events: none;
}
.project-thumb-wip::after { display: none; }
.project-thumb-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--off-white);
  opacity: 0.5;
}
/* Miniature "en cours" avec motif hachuré */
.wip-pattern {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--navy-light) 0,
    var(--navy-light) 12px,
    var(--navy-mid) 12px,
    var(--navy-mid) 24px
  );
  opacity: 0.5;
}

.project-body { padding: 1.5rem; }

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--off-white);
  border-radius: 3px;
}
.project-tag.featured {
  border-color: rgba(77, 208, 225, 0.35);
  color: var(--cyan);
}
.project-tag.wip {
  border-color: rgba(255, 200, 100, 0.3);
  color: #ffc864;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-card p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--off-white);
  line-height: 1.8;
}
.project-card-cta {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.project-card:hover .project-card-cta {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   SECTION À PROPOS
   ============================================================ */
#about {
  padding: var(--section-pad) var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--navy-mid);
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 8vw, 6rem);
  align-items: center;
}

.about-left .section-title { margin-bottom: 2rem; }

.about-text p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--off-white);
  line-height: 2;
  margin-bottom: 1rem;
}
.about-text strong {
  color: var(--white);
  font-weight: 400;
}

/* Badge "disponible" */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  border: 1px solid rgba(77, 208, 225, 0.25);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-top: 2rem;
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s ease infinite;
  flex-shrink: 0;
}

/* Compétences — tags */
.about-right {
  display: flex;
  flex-direction: column;
  align-self: start;
  padding-left: 2.5rem;
}
.skills-tags {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.6rem;
  margin-top: 0.6rem;   /* compense l'effet d'optique du gros titre à gauche */
}
.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--off-white);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.skill-tag:hover {
  color: var(--white);
  border-color: rgba(77, 208, 225, 0.5);
  background: rgba(77, 208, 225, 0.08);
}

/* ============================================================
   SECTION CONTACT
   ============================================================ */
#contact {
  padding: var(--section-pad) var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--navy-mid);
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-inner { max-width: 900px; margin: 0 auto; }

.contact-big {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 1.5rem 0 2rem;
  background: linear-gradient(135deg, var(--white) 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--off-white);
  line-height: 2.2;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.2s;
}
a.contact-item {
  padding: 0.75rem 1.4rem;
  border: 1px solid rgba(77, 208, 225, 0.4);
  border-radius: 6px;
  background: rgba(77, 208, 225, 0.05);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
a.contact-item:hover {
  color: var(--white);
  border-color: var(--cyan);
  background: rgba(77, 208, 225, 0.12);
  transform: translateY(-2px);
}
a.contact-item:hover svg { color: var(--white); }
.contact-item svg { color: var(--cyan); flex-shrink: 0; transition: color 0.2s; }
.contact-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.contact-sub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--off-white);
  opacity: 0.65;
}
.contact-sub svg { color: var(--cyan); flex-shrink: 0; }

/* ============================================================
   SECTION AVIS CLIENTS
   ============================================================ */
#avis {
  padding: var(--section-pad) var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.avis-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.avis-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.avis-empty {
  text-align: center;
  padding: 3rem;
  border: 1px dashed rgba(77, 208, 225, 0.2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.avis-empty p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--off-white);
  line-height: 2;
}

.avis-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s;
}
.avis-card:hover { border-color: rgba(77, 208, 225, 0.25); }

.avis-stars {
  color: #ffc864;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.avis-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--off-white);
  line-height: 1.95;
  flex: 1;
}

.avis-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}
.avis-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white);
  font-weight: 700;
}
.avis-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
footer p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--off-white);
  opacity: 0.6;
}
.accent-text { color: var(--cyan); opacity: 1; }

/* ============================================================
   RESPONSIVE — TABLETTE (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .avis-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Navigation mobile */
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.9rem; }
  .nav-cta { padding: 0.75rem 2rem !important; font-size: 0.9rem; }

  /* Hero */
  #hero { padding-bottom: 3rem; }
  .hero-right-col { display: none; }
  /* Sur mobile le vw fait déjà le travail, on garde white-space: nowrap */
  h1 .line span { font-size: clamp(1.3rem, 5.6vw, 3rem); }

  /* Projets */
  .projects-grid { grid-template-columns: 1fr; }

  /* À propos */
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { padding-left: 0; }
  .skills-tags { margin: 0; }

  /* Contact */
  footer { justify-content: center; text-align: center; }

  .avis-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — PETIT MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .contact-big { font-size: clamp(2.8rem, 14vw, 5rem); }
  h1 .line span { font-size: clamp(1.1rem, 5.6vw, 2rem); }
  .skills-tags { grid-template-columns: repeat(2, max-content); }
}

/* ============================================================
   SECTION FAQ
   ============================================================ */
#faq {
  padding: var(--section-pad) var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.faq-header {
  margin-bottom: 3.5rem;
}

.faq-list {
  max-width: 860px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-item:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(77, 208, 225, 0.35);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--cyan);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }

.faq-item[open] .faq-icon { background: rgba(77, 208, 225, 0.12); border-color: var(--cyan); }
.faq-item[open] .faq-icon::after { transform: scaleY(0); opacity: 0; }

/* Pendant la fermeture : l'icône repasse en "+" dès le clic */
.faq-item.faq-closing .faq-icon { background: transparent; border-color: rgba(77, 208, 225, 0.35); }
.faq-item.faq-closing .faq-icon::after { transform: scaleY(1); opacity: 1; }

.faq-answer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--off-white);
  line-height: 1.95;
  padding-bottom: 1.75rem;
  max-width: 720px;
}
.faq-answer strong { color: var(--white); font-weight: 700; }

/* Animation d'ouverture/fermeture du dropdown FAQ (pilotée en JS) */
.faq-answer.faq-animating {
  overflow: hidden;
  padding-bottom: 0;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              padding-bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer.faq-animating { transition: none; }
}

@media (max-width: 768px) {
  .faq-question { font-size: 0.92rem; padding: 1.25rem 0; }
}
