:root {
    --blue-900: #042C53;
    --blue-800: #0C447C;
    --blue-700: #185FA5;
    --blue-500: #378ADD;
    --blue-200: #85B7EB;
    --blue-100: #B5D4F4;
    --blue-50: #E6F1FB;

    --gray-900: #2C2C2A;
    --gray-700: #5F5E5A;
    --gray-400: #888780;
    --gray-100: #D3D1C7;
    --gray-50: #F1EFE8;

    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
  /* HERO */
  .hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 40%, var(--blue-700) 100%);
    display: flex; align-items: center;
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(55,138,221,0.12);
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute; bottom: -80px; left: 30%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(55,138,221,0.08);
    pointer-events: none;
  }
  .hero-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    width: 100%;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(55,138,221,0.2);
    border: 1px solid rgba(133,183,235,0.3);
    color: var(--blue-100);
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 28px;
  }
  .hero-badge::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
  }
  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 900; line-height: 1.1;
    color: white;
    margin-bottom: 8px;
  }
  .hero h1 .name-highlight {
    color: var(--blue-200);
  }
  .hero-subtitle {
    font-size: 20px; font-weight: 300;
    color: var(--blue-100);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
  }
  .hero-desc {
    font-size: 16px; line-height: 1.75;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
  }
  .hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    background: white; color: var(--blue-800);
    padding: 14px 32px; border-radius: 8px;
    font-weight: 600; font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary:hover { background: var(--blue-50); transform: translateY(-2px); }
  .btn-outline {
    border: 1.5px solid rgba(255,255,255,0.4);
    color: white; padding: 14px 32px; border-radius: 8px;
    font-weight: 500; font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

  .hero-stats {
    display: flex; gap: 32px; margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .stat { text-align: center; }
  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 700;
    color: white;
  }
  .stat-label { font-size: 12px; color: var(--blue-100); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

  .hero-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 36px;
  }
  .hero-avatar {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-200));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px; font-weight: 900; color: white;
    margin: 0 auto 24px;
    border: 3px solid rgba(255,255,255,0.3);
  }
  .tech-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-top: 24px;
  }
  .tech-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 14px 16px;
  }
  .tech-item-label { font-size: 11px; color: var(--blue-100); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
  .tech-item-value { font-size: 14px; font-weight: 500; color: white; }
  .avail-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(76,175,80,0.2);
    border: 1px solid rgba(76,175,80,0.3);
    color: #81C784;
    padding: 8px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
    margin-top: 20px;
  }
  .avail-badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: #4CAF50;
  }

  /* SECTIONS COMMUNES */
  section { padding: 90px 5%; }
  .section-inner { max-width: 1100px; margin: 0 auto; }
  .section-tag {
    font-size: 12px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--blue-700);
    margin-bottom: 12px;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700; color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .section-desc {
    font-size: 17px; line-height: 1.7;
    color: var(--gray-700);
    max-width: 580px;
  }



/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* important fix flex bug */
.testi-slider > * {
    flex-shrink: 0;
}

/* fix classique flex overflow bug */
* {
    min-width: 0;
}


/* =========================
   SYSTEM BASE FIX (v1)
========================= */

/* sécurité layout flex/grid */
* {
    box-sizing: border-box;
    min-width: 0;
}

/* images propres */
img {
    max-width: 100%;
    display: block;
}

/* évite scroll horizontal fantôme */
html, body {
    overflow-x: hidden;
}

/* améliore flex behavior global */
body {
    line-height: 1.6;
}

/* normalisation sections */
section {
    width: 100%;
}



/* =========================
   GRID SYSTEM (UNIFIÉ)
========================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
    width: 100%;
}

.slider > * {
    flex-shrink: 0;
}

/* responsive */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}