/* ============================================
   GAEL LOPEZ — BIO PAGE
   Responsive: mobile (< 480px) · tablet (480–1023px) · desktop (≥ 1024px)
   ============================================ */

:root {
  --bg:         #0f0f0f;
  --bg-card:    #191919;
  --border:     #2c2c2c;
  --text:       #c8c2ba;
  --text-light: #ede8e2;
  --text-mute:  #908880;
  --accent:     #e8533a;
  --white:      #f4f0eb;

  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing tokens */
  --section-y:  clamp(3.5rem, 7vw, 7rem);
  --section-x:  clamp(1.25rem, 5vw, 4rem);
  --max-w:      1100px;
  --gap-grid:   1px;           /* grid separator lines */
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

/* Noise texture overlay */
.noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 200;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   SHARED LAYOUT
   ============================================ */
.section {
  border-bottom: 1px solid var(--border);
  padding: var(--section-y) var(--section-x);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

/* ============================================
   HERO — DESKTOP (≥ 1024px)
   ============================================ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--section-x);
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero__tag {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fadeUp .7s ease both;
}

.hero__name {
  font-family: var(--font-head);
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: .9;
  color: var(--white);
  letter-spacing: -.02em;
  animation: fadeUp .7s .08s ease both;
}

.hero__name span {
  color: var(--accent);
  display: block;
}

.hero__baseline {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--text);
  max-width: 440px;
  line-height: 1.65;
  animation: fadeUp .7s .16s ease both;
}

.hero__cta {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  transition: background .25s, transform .2s;
  animation: fadeUp .7s .24s ease both;
}

.hero__cta:hover {
  background: #d4402a;
  transform: translateY(-2px);
}

/* Photo column */
.hero__right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  animation: fadeIn .9s .2s ease both;
}

.hero__photo-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero__photo-wrap::before {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  z-index: 0;
}

.hero__photo {
  width: 100%;
  position: relative;
  z-index: 1;
  mix-blend-mode: lighten;
  filter: contrast(1.05);
}

/* ============================================
   APPROACH
   ============================================ */
.approach__inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  align-items: start;
}

.approach__number {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  padding-top: .4rem;
}

.approach__content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.approach__lead {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.approach__content p + p { margin-top: 1rem; color: var(--text); }

/* ============================================
   SERVICES
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  transition: background .2s;
}

.service-card:hover { background: #181818; }

.service-card__num {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .75rem;
  line-height: 1.3;
}

.service-card p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.75;
}

.service-card:hover p { color: var(--text-light); }

/* ============================================
   EXPERIENCES
   ============================================ */
.xp__list { display: flex; flex-direction: column; }

.xp__item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  transition: padding-left .2s;
}

.xp__item:hover { padding-left: .5rem; }
.xp__item:last-child { border-bottom: none; }

.xp__meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.xp__meta strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
}

.xp__meta span {
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .05em;
}

.xp__item p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.75;
}

/* ============================================
   STACK (OUTILS + LANGUES)
   ============================================ */
.stack__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.stack__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.stack__tags span {
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .82rem;
  padding: .4rem 1rem;
  letter-spacing: .04em;
  transition: border-color .2s, color .2s;
}

.stack__tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stack__langs {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.lang {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}

.lang span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  color: var(--white);
  min-width: 28px;
}

.lang em {
  font-style: normal;
  color: var(--text);
  font-size: .85rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { border-bottom: none; }

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__inner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 580px;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact__btn {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.contact__btn:hover {
  background: var(--accent);
  color: var(--white);
}

.contact__phone {
  color: var(--text-mute);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}

.contact__phone:hover { color: var(--text-light); }

.contact__location {
  font-size: .75rem;
  color: var(--text-mute);
  letter-spacing: .08em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 1.5rem var(--section-x);
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .7rem;
  color: var(--text-mute);
  letter-spacing: .1em;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   RESPONSIVE — TABLETTE (480px – 1023px)
   ============================================ */
@media (min-width: 480px) and (max-width: 1023px) {

  /* Hero: photo au-dessus, texte en-dessous */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 0;
    gap: 2rem;
  }

  .hero__right {
    order: -1;
    justify-content: center;
  }

  .hero__photo-wrap {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__photo-wrap::before {
    bottom: -1rem;
    right: -1rem;
  }

  .hero__name {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
  }

  .hero__baseline { max-width: 100%; }

  /* Approche: sans numéro décoratif */
  .approach__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .approach__number { display: none; }

  /* Services: 2 colonnes conservées */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* XP: colonne unique */
  .xp__item {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  /* Stack: 2 colonnes plus serrées */
  .stack__inner {
    gap: 3rem;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (< 480px)
   ============================================ */
@media (max-width: 479px) {

  :root {
    --section-y: 2.75rem;
    --section-x: 1.25rem;
  }

  /* Hero: photo petite, tout en colonne */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 0;
    gap: 1.75rem;
    align-items: start;
  }

  .hero__right {
    order: -1;
    justify-content: center;
  }

  .hero__photo-wrap {
    max-width: 200px;
    margin: 0 auto;
  }

  .hero__photo-wrap::before { display: none; }

  .hero__name {
    font-size: clamp(3rem, 16vw, 3.8rem);
  }

  .hero__tag { font-size: .65rem; }

  .hero__baseline {
    font-size: .9rem;
    max-width: 100%;
  }

  .hero__cta {
    font-size: .75rem;
    padding: .8rem 1.5rem;
    align-self: stretch;
    text-align: center;
  }

  /* Section labels */
  .section__label { margin-bottom: 1.75rem; }

  /* Approche */
  .approach__inner {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .approach__number { display: none; }

  .approach__content h2 { font-size: 1.4rem; }

  /* Services: 1 colonne */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card { padding: 1.75rem 1.25rem; }

  /* XP: empilé */
  .xp__item {
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: 1.5rem 0;
    transition: none;         /* pas de hover sur mobile */
  }

  .xp__item:hover { padding-left: 0; }

  /* Stack: 1 colonne */
  .stack__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Contact */
  .contact__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .contact__btn {
    width: 100%;
    text-align: center;
  }

  /* Footer */
  .footer { flex-direction: column; gap: .35rem; }
}
