/* ============================================================
   AymarInfo — AYMAR Dony Théodoric
   Design system : thème clair par défaut (lisible, rassurant pour
   les clients non techniques) + thème sombre en option.
   ============================================================ */

/* ---------- Google Fonts ----------
   Chargées par <link> dans index.html et project.html, précédées d'un
   preconnect. Pas de @import ici : il ne serait découvert qu'une fois ce
   fichier téléchargé, ce qui sérialise les requêtes et retarde le texte. */

/* ---------- Variables : thème clair (défaut) ----------
   Palette tirée du logo AymarInfo : bleu marine #021736 + turquoise #00B2BF / #00D3E5.
   Les noms historiques sont conservés : --blue = accent principal (turquoise),
   --gold = accent secondaire (marine). */
:root {
  color-scheme: light;

  --bg-0:      #FFFFFF;
  --bg-1:      #F3F8FA;
  --bg-2:      #E8F1F5;
  --bg-card:   #FFFFFF;
  --bg-glass:  rgba(255, 255, 255, 0.8);

  --blue:      #00808E;
  --blue-dim:  rgba(0, 150, 166, 0.09);
  --blue-glow: rgba(0, 150, 166, 0.25);
  --gold:      #0B3566;
  --gold-dim:  rgba(2, 23, 54, 0.06);
  --teal:      #00939F;
  --teal-dim:  rgba(0, 147, 159, 0.09);
  --purple:    #00B2BF;

  --text-1: #021736;
  --text-2: #44546B;
  --text-3: #5D6D84;
  --border: rgba(2, 23, 54, 0.09);
  --border-hover: rgba(0, 137, 154, 0.4);

  --grad-blue:  linear-gradient(120deg, #03305A 0%, #00899A 60%, #00A9B8 100%);
  --grad-gold:  linear-gradient(135deg, #021736 0%, #0B3566 100%);
  --grad-hero:  linear-gradient(180deg, #E9F5F8 0%, #F6FAFC 55%, #FFFFFF 100%);

  --on-accent:   #FFFFFF;
  --on-gold:     #FFFFFF;
  --header-bg:   rgba(255, 255, 255, 0.9);
  --menu-bg:     rgba(255, 255, 255, 0.98);
  --chip-bg:     rgba(255, 255, 255, 0.92);
  --badge-bg:    linear-gradient(120deg, #FFFFFF 0%, #EEF9FB 55%, #FFFFFF 100%);
  --shadow:      0 4px 20px rgba(2, 23, 54, 0.06);
  --shadow-lg:   0 18px 40px rgba(2, 23, 54, 0.10);
  --shadow-glow: 0 10px 30px rgba(0, 150, 166, 0.14);

  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  --nav-h:  72px;
  --radius: 12px;
  --radius-lg: 20px;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Variables : thème sombre (fond = bleu marine du logo) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg-0:      #021736;
  --bg-1:      #031C40;
  --bg-2:      #06264F;
  --bg-card:   rgba(6, 34, 72, 0.85);
  --bg-glass:  rgba(6, 34, 72, 0.7);

  --blue:      #22CADB;
  --blue-dim:  rgba(0, 211, 229, 0.12);
  --blue-glow: rgba(0, 211, 229, 0.3);
  --gold:      #9EE7EF;
  --gold-dim:  rgba(158, 231, 239, 0.1);
  --teal:      #00D3E5;
  --teal-dim:  rgba(0, 211, 229, 0.12);
  --purple:    #00B2BF;

  --text-1: #F2F7FC;
  --text-2: #A5B6CB;
  --text-3: #7688A2;
  --border: rgba(0, 211, 229, 0.12);
  --border-hover: rgba(0, 211, 229, 0.38);

  --grad-blue:  linear-gradient(120deg, #0089A0 0%, #00B2BF 60%, #00C6D8 100%);
  --grad-gold:  linear-gradient(135deg, #9EE7EF 0%, #00D3E5 100%);
  --grad-hero:  linear-gradient(135deg, #021736 0%, #03204A 60%, #052A5C 100%);

  --on-accent:   #FFFFFF;
  --on-gold:     #021736;
  --header-bg:   rgba(2, 23, 54, 0.92);
  --menu-bg:     rgba(2, 23, 54, 0.97);
  --chip-bg:     rgba(2, 23, 54, 0.88);
  --badge-bg:    linear-gradient(120deg, #021736 0%, #05254D 55%, #021736 100%);
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 211, 229, 0.15);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Réglages typographiques (Outfit / Plus Jakarta Sans) ----------
   Outfit est une géométrique : elle respire mieux avec un tracking négatif
   sur les grands titres. Plus Jakarta Sans gagne en netteté avec un
   interlignage légèrement plus généreux sur les paragraphes. */
.loader-logo, .section-title, .nav-logo, .hero-title, .profile-info h3,
.stat-value, .service-title, .process-title, .tech-group-title, .project-title,
.contact-card h3, .detail-hero-title,
.detail-features h3, .detail-sidebar-title {
  letter-spacing: -0.025em;
  font-feature-settings: 'ss01' 1;
}
.hero-title, .section-title, .detail-hero-title, .stat-value {
  letter-spacing: -0.04em;
}
.footer-links h4, .footer-contact h4 { letter-spacing: -0.015em; }
p, .service-desc, .project-desc, .hero-tagline, .about-text { text-wrap: pretty; }
h1, h2, h3, .section-title, .hero-title, .detail-hero-title { text-wrap: balance; }

/* ---------- Icônes (sprite SVG inline, ex-Font Awesome) ----------
   width/height en `em` : les règles `font-size` déjà en place continuent de
   dimensionner les icônes exactement comme les glyphes qu'elles remplacent.
   `fill: currentColor` fait de même pour la couleur. */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.icon-spin { animation: iconSpin 1s linear infinite; }
@keyframes iconSpin { to { transform: rotate(360deg); } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--blue-dim); color: var(--blue); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ---------- Canvas Particles ---------- */
#particles-canvas {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

:root[data-theme="dark"] #particles-canvas { display: block; }

/* ---------- Page Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo { margin-bottom: 1.5rem; }
.loader-logo img { height: 72px; width: auto; margin: 0 auto; }
.loader-bar {
  width: 160px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-progress {
  height: 100%;
  background: var(--grad-blue);
  border-radius: 2px;
  width: 0;
  animation: loaderAnim 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loaderAnim {
  0%   { width: 0; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ---------- Section Base ---------- */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--gold-dim);
  border-radius: 100px;
  background: var(--gold-dim);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
}
.gradient-text {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
:root[data-theme="dark"] .gradient-text { background-image: linear-gradient(120deg, #E6FBFD 0%, #00D3E5 100%); }
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: var(--tr);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--grad-blue);
  color: var(--on-accent);
  box-shadow: 0 4px 20px var(--blue-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--blue-glow); }
.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text-1);
  background: transparent;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost {
  color: var(--text-2);
  border: 1px solid var(--border);
  background: transparent;
}
.btn-ghost:hover { color: var(--text-1); border-color: var(--border-hover); }
.btn-gold {
  background: var(--grad-gold);
  color: var(--on-gold);
  font-weight: 700;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,178,191,0.3); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Tags / Badges ---------- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(0,178,191,0.2);
  border-radius: 100px;
}
.tag-gold {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(0,178,191,0.2);
}
.tag-teal {
  background: var(--teal-dim);
  color: var(--teal);
  border-color: rgba(0,211,229,0.2);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--tr);
}
#header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
/* Logo AymarInfo : deux déclinaisons (marine sur clair, blanc sur sombre) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand-mark { height: 34px; width: auto; }
.brand-word { height: 16px; width: auto; }
.on-dark { display: none !important; }
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark  { display: inline-block !important; }
.loader-logo .on-dark { display: none !important; }
:root[data-theme="dark"] .loader-logo .on-dark { display: block !important; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: var(--tr);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--grad-blue);
  border-radius: 1px;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--text-1); }
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: var(--text-1); }
.nav-cta {
  background: var(--grad-blue);
  color: #fff !important;
  border-radius: var(--radius);
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--blue-glow);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--blue-glow); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-1);
  border-radius: 1px;
  transition: var(--tr);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  position: relative;
  background: var(--grad-hero);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0,178,191,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(0,211,229,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}
/* ---------- Badge disponibilité ----------
   Parallélogramme : les deux arêtes latérales sont coupées à 45° et penchent
   vers la droite. La bordure est un dégradé animé (effet brillant) : le bloc
   extérieur porte le dégradé, le bloc intérieur le recouvre en laissant
   --bw px visibles tout autour. Les décalages en b√2 gardent une épaisseur
   de bordure constante sur les arêtes obliques. */
.hero-badge {
  --edge: 38px;                            /* décalage horizontal = hauteur → 45° */
  --bw: 1.5px;                             /* épaisseur de la bordure */
  --bwd: calc(var(--bw) * 1.4142);         /* b√2 : report de l'épaisseur sur l'oblique */
  position: relative;
  display: inline-flex;
  height: 38px;
  padding: var(--bw);
  margin-bottom: 1.25rem;
  clip-path: polygon(var(--edge) 0, 100% 0, calc(100% - var(--edge)) 100%, 0 100%);
  background: linear-gradient(105deg,
    rgba(0,211,229,0.35) 0%,
    var(--teal)           14%,
    #E6FBFD               26%,
    var(--blue)           42%,
    var(--gold)           60%,
    #CFF6FA               70%,
    rgba(0,211,229,0.35) 88%,
    var(--teal)           100%);
  background-size: 260% 100%;
  animation: badgeShine 5s linear infinite;
  filter: drop-shadow(0 0 16px rgba(0,211,229,0.22));
}
.hero-badge-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 calc(var(--edge) / 2 + 0.85rem);
  overflow: hidden;
  clip-path: polygon(
    calc(var(--edge) + var(--bwd) - var(--bw) * 2) 0,
    calc(100% - var(--bwd)) 0,
    calc(100% - var(--edge) - var(--bwd) + var(--bw) * 2) 100%,
    var(--bwd) 100%
  );
  background: var(--badge-bg);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--teal);
}
/* reflet qui balaie la surface */
.hero-badge-inner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.13) 50%, transparent 100%);
  /* animé en transform : animer `left` déclencherait un recalcul de mise en
     page à chaque frame, transform se contente de la composition */
  transform: translateX(-240%);
  animation: badgeSweep 4.5s ease-in-out infinite;
}
@keyframes badgeShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}
@keyframes badgeSweep {
  0%, 55%  { transform: translateX(-240%); }
  100%     { transform: translateX(290%); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,211,229,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0,211,229,0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  min-height: 1.8rem;
}
.typed-text { color: var(--blue); font-weight: 600; }
.typed-cursor {
  color: var(--blue);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-tagline {
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-socials {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  transition: var(--tr);
}
.social-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-image-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-hover);
  position: relative;
  z-index: 2;
}
.hero-image-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--blue);
  border-right-color: var(--teal);
  animation: spin 8s linear infinite;
  z-index: 1;
}
.hero-image-ring.ring-2 {
  inset: -22px;
  border-top-color: var(--gold);
  border-right-color: transparent;
  border-bottom-color: var(--purple);
  animation-duration: 12s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-1);
  box-shadow: var(--shadow);
  animation: floatCard 4s ease-in-out infinite;
  z-index: 3;
}
.hero-float-card .icon { font-size: 1rem; }
.card-1 { top: 5%; left: -20%; animation-delay: 0s; }
.card-1 .icon { color: var(--blue); }
.card-2 { bottom: 15%; left: -15%; animation-delay: 1.5s; }
.card-2 .icon { color: var(--blue); }
.card-3 { top: 15%; right: -2%; animation-delay: 0.75s; }
.card-3 .icon { color: var(--blue); }
.card-4 { bottom: 10%; right: -4%; animation-delay: 2.25s; }
.card-4 .icon { color: var(--blue); }
.card-5 { bottom: -6%; left: 28%; animation-delay: 3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-3);
  transition: var(--tr);
}
.scroll-indicator:hover { color: var(--blue); }
.scroll-indicator .icon { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--bg-1); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-bio {
  font-size: 0.975rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about-bio strong { color: var(--text-1); font-weight: 600; }
.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.profile-avatar {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}
.profile-card:hover .profile-avatar img { transform: scale(1.04); }
.availability-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--chip-bg);
  border: 1px solid var(--teal-dim);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.profile-info {
  padding: 1.4rem 1.5rem;
}
.profile-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}
.profile-info > p {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 1rem;
}
.profile-details { display: flex; flex-direction: column; gap: 0.5rem; }
.detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-2);
}
.detail-item .icon { color: var(--gold); font-size: 0.8rem; width: 14px; text-align: center; }

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--tr);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--bg-0); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-dim);
  border: 1px solid rgba(0,178,191,0.2);
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
  transition: var(--tr);
}
.service-card:hover .service-icon { background: var(--blue); color: #fff; border-color: var(--blue); }
.service-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.6rem;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section { background: var(--bg-1); }
.projects-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  transition: var(--tr);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-dim);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--tr);
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card.hidden { display: none; }

/* Project Gallery */
.project-gallery {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-2);
}
.gallery-slides { display: flex; height: 100%; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-slide {
  min-width: 100%;
  height: 100%;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .gallery-slide img { transform: scale(1.04); }
.gallery-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--tr);
}
.gallery-dot.active { width: 18px; background: var(--blue); }
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(6,10,20,0.7);
  color: #fff;
  font-size: 0.75rem;
  opacity: 0;
  transition: var(--tr);
  backdrop-filter: blur(4px);
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.project-card:hover .gallery-prev,
.project-card:hover .gallery-next { opacity: 1; }
.gallery-prev:hover, .gallery-next:hover { background: var(--blue); }

/* ---------- Mobile / Phone mockup ---------- */
.project-card[data-platform="mobile"] .project-gallery {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 50% 0%,  rgba(0,178,191,0.18) 0%, transparent 60%),
    radial-gradient(90% 70% at 50% 100%, rgba(0,178,191,0.12) 0%, transparent 65%),
    var(--bg-2);
}
.project-card[data-platform="mobile"] .project-gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,178,191,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,178,191,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 100%);
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 1;
  height: 300px;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  padding: 5px;
  background: linear-gradient(160deg, #1B2540 0%, #0B1122 45%, #182240 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 18px 45px rgba(0,0,0,0.55),
    0 0 40px var(--blue-glow);
  transition: transform var(--tr), box-shadow var(--tr);
}
.project-card:hover .phone-frame {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 24px 55px rgba(0,0,0,0.6),
    0 0 55px var(--blue-glow);
}
.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 34%;
  height: 13px;
  border-radius: 100px;
  background: #05080F;
  box-shadow: inset 0 -1px 2px rgba(255,255,255,0.06);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 23px;
  overflow: hidden;
  background: var(--bg-0);
}
.phone-screen .gallery-slides,
.phone-screen .detail-gallery-slides { height: 100%; }
.phone-frame .gallery-slide,
.phone-frame .detail-gallery-slide { min-width: 100%; height: 100%; }
.phone-frame .gallery-slide img,
.phone-frame .detail-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* the frame itself lifts on hover — no zoom inside the screen */
.project-card:hover .phone-frame .gallery-slide img { transform: none; }
.phone-glare {
  position: absolute;
  inset: 5px;
  border-radius: 23px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.03) 22%,
    transparent 45%);
}
.phone-gallery .gallery-controls { bottom: 12px; z-index: 4; }
.phone-gallery .gallery-prev,
.phone-gallery .gallery-next { z-index: 4; }

/* Mobile badge */
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,211,229,0.25);
}
.project-badge .icon { font-size: 0.7rem; }

/* Project Body */
.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.project-year {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
}
.project-client {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.3rem;
  transition: var(--tr);
}
.project-card:hover .project-title { color: var(--blue); }
.project-subtitle {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
/* Project Links */
.project-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: var(--tr);
  flex: 1;
  justify-content: center;
}
.project-link:hover { color: var(--text-1); border-color: var(--border-hover); background: var(--bg-2); }
.project-link.link-github:hover { color: var(--text-1); border-color: var(--text-3); }
.project-link.link-live:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-dim); }
.project-link.link-detail {
  background: var(--blue-dim);
  color: var(--blue);
  border-color: rgba(0,178,191,0.25);
}
.project-link.link-detail:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.project-link.disabled { opacity: 0.35; pointer-events: none; }

/* Résultat client sur les cartes projets */
.project-outcome {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--teal-dim);
  border: 1px solid var(--teal-dim);
  flex: 1;
}
.project-outcome .icon { color: var(--teal); margin-top: 0.25rem; font-size: 0.8rem; }
.project-outcome p { font-size: 0.86rem; line-height: 1.55; color: var(--text-1); }

/* ============================================================
   NAV ACTIONS / THEME TOGGLE
   ============================================================ */
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: var(--tr);
  margin-left: 0.5rem;
}
.theme-toggle:hover { color: var(--blue); border-color: var(--border-hover); background: var(--blue-dim); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   HERO — arguments de confiance
   ============================================================ */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust .icon { color: var(--teal); font-size: 0.8rem; }

/* ============================================================
   PROCESS (méthode)
   ============================================================ */
.process-section { background: var(--bg-0); }
.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}
.process-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--tr);
}
.process-step:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.process-num {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--border-hover);
  opacity: 0.6;
}
.process-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-dim);
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}
.process-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}
.process-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ============================================================
   ABOUT — pourquoi travailler ensemble
   ============================================================ */
.why-list { display: grid; gap: 0.9rem; margin: 1.75rem 0; }
.why-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.why-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.9rem;
}
.why-list strong { display: block; font-size: 0.95rem; color: var(--text-1); font-weight: 600; }
.why-list span { font-size: 0.875rem; color: var(--text-2); line-height: 1.55; }

/* ============================================================
   TECHNOLOGIES
   ============================================================ */
.tech-section { background: var(--bg-0); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tech-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.tech-group-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.9rem;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--bg-1); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--tr);
}
.contact-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.contact-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--grad-blue);
  color: var(--on-accent);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px var(--blue-glow);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.4rem;
}
.contact-card > p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 1rem; }
.contact-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.4rem;
  word-break: break-word;
}
.contact-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
}
.contact-card-wa .contact-card-icon {
  background: #25D366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.contact-card-wa .contact-value { color: #128C7E; }
:root[data-theme="dark"] .contact-card-wa .contact-value { color: #25D366; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4); }

/* Bouton WhatsApp flottant, présent sur toutes les pages */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 54px;
  padding: 0 1.2rem 0 1rem;
  border-radius: 100px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: var(--tr);
}
.wa-float .icon { font-size: 1.6rem; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5), 0 2px 6px rgba(0, 0, 0, 0.15); }

.contact-card-actions .btn { padding: 0.7rem 1rem; }
.copy-btn.copied { color: var(--teal); border-color: var(--teal); }
.contact-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-2);
}
.contact-note .icon { color: var(--gold); margin-right: 0.3rem; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.footer-socials a { font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand-mark { height: 40px; }
.footer-brand .brand-word { height: 18px; }
.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.65;
}
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: var(--tr);
}
.footer-links a:hover { color: var(--blue); }
.footer-contact p {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.footer-contact a { color: var(--text-3); transition: var(--tr); }
.footer-contact a:hover { color: var(--blue); }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }
.heart { color: #F87171; }

/* Gallery placeholder (project without screenshots yet) */
.gallery-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
}
.gallery-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, var(--blue-dim) 0%, transparent 70%);
}
.gallery-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
}
.gallery-placeholder-initials {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--blue-dim);
  border: 1px solid var(--border-hover);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
}
.gallery-placeholder-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  max-width: 200px;
  line-height: 1.4;
}

/* ============================================================
   PROJECT DETAIL PAGE (project.html)
   ============================================================ */
.project-detail-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  background: var(--grad-hero);
  position: relative;
}
.project-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0,178,191,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--blue); transition: var(--tr); }
.breadcrumb a:hover { color: var(--text-1); }
.breadcrumb-sep { color: var(--text-3); }
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.detail-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.detail-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.detail-hero-subtitle {
  font-size: 1rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 1rem;
}
.detail-hero-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.detail-hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.meta-label { font-size: 0.7rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.meta-value { font-size: 0.875rem; color: var(--text-1); font-weight: 600; }
.detail-hero-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.detail-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.detail-gallery-slides { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.detail-gallery-slide { min-width: 100%; }
.detail-gallery-slide img { width: 100%; height: 300px; object-fit: cover; }
.detail-gallery-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.detail-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--tr);
}
.detail-gallery-dot.active { width: 22px; background: var(--blue); }
.detail-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,10,20,0.75);
  border-radius: 50%;
  color: #fff;
  transition: var(--tr);
  backdrop-filter: blur(4px);
}
.detail-gallery-btn.prev { left: 12px; }
.detail-gallery-btn.next { right: 12px; }
.detail-gallery-btn:hover { background: var(--blue); }

/* Detail gallery — mobile app variant */
.detail-gallery.phone-detail {
  border: none;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 60% at 50% 0%,  rgba(0,178,191,0.16) 0%, transparent 65%),
    radial-gradient(80% 60% at 50% 100%, rgba(0,178,191,0.10) 0%, transparent 70%);
}
.phone-frame-lg { height: 460px; }
.phone-detail .detail-gallery-btn { top: 40%; }
.phone-detail .detail-gallery-btn.prev { left: 0; }
.phone-detail .detail-gallery-btn.next { right: 0; }
.phone-thumbs {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.phone-thumbs::-webkit-scrollbar { height: 4px; }
.phone-thumbs::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }
.phone-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 96px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.5;
  border: 1px solid var(--border);
  transition: var(--tr);
}
.phone-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-thumb:hover { opacity: 0.85; }
.phone-thumb.active {
  opacity: 1;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 6px 16px rgba(0,0,0,0.4);
}

.detail-content { padding: 4rem 0; background: var(--bg-1); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.detail-features h3,
.detail-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 1.1rem;
}
.features-list { display: flex; flex-direction: column; gap: 0.65rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.feature-item .icon { color: var(--teal); font-size: 0.75rem; margin-top: 0.2rem; flex-shrink: 0; }

.detail-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.detail-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.sidebar-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--tr);
}
.sidebar-link:hover { color: var(--text-1); border-color: var(--border-hover); background: var(--bg-2); }
.sidebar-link .icon { font-size: 0.9rem; }

.detail-outcome { flex: none; margin-bottom: 1.1rem; }
.detail-outcome strong { color: var(--teal); font-weight: 700; }
.detail-cta { border-color: var(--border-hover); box-shadow: var(--shadow-glow); display: flex; flex-direction: column; gap: 0.6rem; }
.detail-cta .detail-sidebar-title { margin-bottom: 0; }
.detail-cta p { font-size: 0.85rem; color: var(--text-2); margin-bottom: 0.4rem; }
.detail-cta .btn { font-size: 0.82rem; padding: 0.7rem 1rem; }

/* Loading state for detail page */
.detail-loading {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-3);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up    { transform: translateY(30px); }
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-fade  { }
.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger for cards */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.15s; }
.stagger > *:nth-child(3) { transition-delay: 0.25s; }
.stagger > *:nth-child(4) { transition-delay: 0.35s; }
.stagger > *:nth-child(5) { transition-delay: 0.45s; }
.stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content { max-width: 580px; margin: 0 auto; }
  .hero-tagline { margin: 0 auto 2rem; }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image-wrapper { width: 240px; height: 240px; }
  .card-1 { left: -5%; top: 0; }
  .card-2 { left: -5%; bottom: 0; }
  .card-3 { right: -5%; top: 0; }
  .card-4 { right: -5%; bottom: 0; }
  .card-5 { left: 50%; bottom: -14%; transform: translateX(-50%); }
  @keyframes floatCard5 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-8px); }
  }
  .card-5 { animation-name: floatCard5; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-content { order: 2; }
  .about-card { order: 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; max-width: 520px; }
  .hero-trust { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--menu-bg);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: var(--tr-slow);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 0.75rem 1rem; border-radius: var(--radius); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 0.5rem; }
  .nav-toggle { display: flex; }
  .section { padding: 4rem 0; }
  .hero { padding-top: calc(var(--nav-h) + 2rem); }
  .hero-scroll { display: none; }
  .hero-image-wrapper { width: 200px; height: 200px; }
  .hero-float-card { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card[data-platform="mobile"] .project-gallery { height: 300px; }
  .phone-frame { height: 260px; }
  .phone-frame-lg { height: 380px; }
  /* Au doigt il n'y a pas de survol : les flèches restent visibles. On enlève
     le backdrop-filter, coûteux en GPU, remplacé par un fond opaque. */
  .phone-gallery .gallery-prev,
  .phone-gallery .gallery-next {
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6,10,20,0.88);
  }
  .gallery-prev, .gallery-next,
  .detail-gallery-btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .contact-cards { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.9rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; right: 1rem; bottom: 1rem; }
  .wa-float-label { display: none; }
  .contact-card { padding: 1.6rem 1.25rem; }
  .about-actions { flex-direction: column; }
  .about-actions .btn { width: 100%; justify-content: center; }
  .hero-badge { --edge: 30px; height: 30px; }
  .hero-badge-inner { font-size: 0.68rem; padding: 0 calc(var(--edge) / 2 + 0.6rem); }
  .detail-hero-links { flex-direction: column; }
  .phone-frame-lg { height: 340px; }
  .phone-thumb { width: 40px; height: 80px; }
  .phone-detail .detail-gallery-btn.prev { left: -6px; }
  .phone-detail .detail-gallery-btn.next { right: -6px; }
}

/* ============================================================
   ACCESSIBILITÉ / ÉCONOMIE — mouvement réduit
   Le site fait tourner en permanence des particules, deux anneaux, cinq
   cartes flottantes, un badge scintillant et plusieurs pulsations. Pour qui
   a demandé « moins d'animations » dans son système, on coupe tout : les
   apparitions au scroll restent fonctionnelles, juste instantanées.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  #particles-canvas { display: none; }
  .hero-image-ring { display: none; }
  .hero-badge { filter: none; }
}
