/* =========================================================
   VARIABLES
   ========================================================= */
:root {
  --bg: #122250;
  --bg-2: #0e1c46;
  --text: #ffffff;
  --text-2: #c3d3f0;
  --muted: #8ea4cc;
  --blue: #1667d9;
  --blue-2: #1e8de8;
  --purple: #0a78d0;
  --violet: #1e8de8;
  --pink: #0ea5f0;
  --magenta: #3cc4ff;
  --glass: rgba(20, 44, 105, 0.45);
  --glass-2: rgba(26, 56, 128, 0.35);
  --border: rgba(110, 170, 255, 0.22);
  --border-strong: rgba(130, 185, 255, 0.35);
  --input: rgba(24, 52, 120, 0.45);
  --grad-btn: linear-gradient(90deg, #1667d9 0%, #0ea5f0 100%);
  --grad-bar: linear-gradient(90deg, #1667d9 0%, #0ea5f0 60%, #5fd0ff 100%);
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  --bg: #eef4ff;
  --bg-2: #dde9fb;
  --text: #122250;
  --text-2: #34507e;
  --muted: #6a7fa3;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-2: rgba(255, 255, 255, 0.5);
  --border: rgba(30, 100, 200, 0.2);
  --border-strong: rgba(30, 100, 200, 0.32);
  --input: rgba(255, 255, 255, 0.8);
  --shadow: 0 20px 50px rgba(20, 60, 140, 0.15);
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% 10%, rgba(10, 120, 208, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(22, 120, 225, .16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow);
}

.thin { font-weight: 300; letter-spacing: -0.02em; }
.dot { color: var(--pink); text-shadow: 0 0 18px rgba(14, 165, 240, .8); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 22px 0;
  transition: padding .3s, background .3s, box-shadow .3s;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(14, 28, 70, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] .header.scrolled { background: rgba(238, 244, 255, .8); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 4px; position: relative; }
.logo__mark { width: 52px; height: 34px; color: var(--text); }
.logo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); align-self: flex-start; margin: 2px 12px 0 -4px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-size: 15px; font-weight: 700; }
.logo__text small { font-size: 11px; color: var(--muted); }

.nav { display: flex; gap: 46px; margin-left: auto; margin-right: auto; }
.nav__link { position: relative; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .25s; padding: 6px 0; }
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link.active { font-weight: 600; }
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--text); transform: translateX(-50%) scale(0); transition: transform .25s;
  box-shadow: 0 0 8px rgba(255,255,255,.9);
}
.nav__link.active::after { transform: translateX(-50%) scale(1); }

.header__actions { display: flex; gap: 14px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--glass); border: 1px solid var(--border-strong); font-size: 18px; transition: transform .25s, border-color .25s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--violet); }
.icon-btn .i-sun { display: none; }
[data-theme="light"] .icon-btn .i-sun { display: block; }
[data-theme="light"] .icon-btn .i-moon { display: none; }
#menuToggle { display: none; }

/* Sélecteur de langue EN / FR */
.lang-switch {
  position: relative; display: flex; align-items: center; height: 42px; padding: 4px; border-radius: 999px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--border-strong); transition: border-color .25s;
}
.lang-switch:hover { border-color: var(--violet); }
.lang-switch span {
  min-width: 34px; height: 32px; display: grid; place-items: center; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); transition: background .3s, color .3s, box-shadow .3s;
}
.lang-switch span.active { color: #fff; background: linear-gradient(135deg, #1667d9, #0ea5f0); box-shadow: 0 0 14px rgba(14, 165, 240, .5); }

/* =========================================================
   COMMON SECTION
   ========================================================= */
/* Chaque section occupe exactement l'écran (100dvh = hauteur réelle, barres mobiles comprises) */
.section {
  position: relative; z-index: 1; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(84px, 11vh, 110px) 0 calc(clamp(24px, 5vh, 56px) + 34px);
  scroll-snap-align: start; scroll-snap-stop: always;
}

.section__title {
  font-size: clamp(38px, min(5.6vw, 8.4vh), 76px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
}
.section__sub { color: var(--text-2); font-size: clamp(15px, 2vh, 18px); margin-top: clamp(6px, 1.5vh, 14px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; cursor: pointer; border: 0;
  font-weight: 600; font-size: 16px; border-radius: 999px; padding: 12px 14px 12px 26px;
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn svg { font-size: 16px; }
.btn--primary { background: #0ea5f0; color: #122250; font-weight: 700; box-shadow: 0 10px 30px rgba(14, 165, 240, .35); }
.btn--primary:hover { background: #3cc4ff; box-shadow: 0 14px 40px rgba(14, 165, 240, .55); }
.btn--purple { background: transparent; color: var(--text); border: 1.5px solid #0ea5f0; box-shadow: none; }
.btn--purple:hover { background: rgba(14, 165, 240, .12); }
.btn__circle { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #122250; color: #fff; }
.btn__circle--ghost { width: 26px; height: 26px; background: rgba(255,255,255,.18); color: #fff; }
.btn__circle--ghost svg { font-size: 13px; }
.btn--ghost { border: 1px solid var(--border-strong); background: var(--glass); color: var(--text); }
.btn--ghost:hover { border-color: var(--pink); }
.btn--sm { font-size: 13px; padding: 10px 20px; gap: 10px; border-radius: 999px; }


/* Scroll hint */
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.mouse { width: 18px; height: 28px; border: 1.6px solid var(--text-2); border-radius: 10px; position: relative; }
.mouse::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; border-radius: 2px; background: var(--text);
  transform: translateX(-50%); animation: wheel 1.6s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 9px); } }

/* Sparks & orbits */
.spark { position: absolute; border-radius: 50%; z-index: 1; animation: pulse 3s ease-in-out infinite; }
.spark--1 { width: 14px; height: 14px; top: 23%; left: 44%; background: #2b8ff0; box-shadow: 0 0 18px #2b8ff0; }
.spark--2 { width: 12px; height: 12px; top: 62%; right: 3%; background: var(--pink); box-shadow: 0 0 18px var(--pink); }
.spark--3 { width: 6px; height: 6px; top: 40%; right: 2%; background: #5fb4ff; box-shadow: 0 0 12px #5fb4ff; }
.spark--4 { width: 10px; height: 10px; top: 30%; right: 5%; background: #2b8ff0; box-shadow: 0 0 14px #2b8ff0; }
.spark--5 { width: 12px; height: 12px; top: 72%; left: 52%; background: #1667d9; box-shadow: 0 0 16px #1667d9; }
.spark--6 { width: 12px; height: 12px; top: 42%; right: 3%; background: var(--pink); box-shadow: 0 0 18px var(--pink); }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }

.orbit { position: absolute; border: 1px solid rgba(110, 170, 255, .2); border-radius: 50%; pointer-events: none; }
.orbit--hero { width: 1100px; height: 520px; top: 8%; left: 38%; transform: rotate(-14deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 20px; }

.hero__last { display: block; }
.hero__title {
  font-size: clamp(40px, min(5.1vw, 8vh), 76px); font-weight: 700; line-height: 1; letter-spacing: -0.035em;
  margin: 0 0 clamp(14px, 2.8vh, 26px); max-width: 640px;
}
.hero__text { font-size: clamp(15px, 1.9vh, 17px); color: var(--text-2); max-width: 470px; line-height: 1.65; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 18px; margin: clamp(18px, 4vh, 36px) 0 clamp(18px, 5vh, 54px); }

.hero__visual { position: relative; height: min(620px, 66vh); }
.hero__orb {
  position: absolute; width: min(500px, 54vh); height: min(500px, 54vh); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 42% 45%, #0b8ae6 0%, #0a74cc 32%, rgba(10, 92, 186, .75) 52%, rgba(10, 70, 160, 0) 72%);
  filter: blur(4px);
  animation: floatOrb 8s ease-in-out infinite;
}
@keyframes floatOrb { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -53%); } }

.hero__photo {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); z-index: 2;
  height: min(780px, 82vh); width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 97%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4));
}



/* Tool badges */
.tool {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: -.02em;
  border: 1.5px solid currentColor;
}
.tool svg { font-size: 16px; stroke: none; }
.tool--ps { color: #31a8ff; background: #001e36; }
.tool--ai { color: #ff9a00; background: #330000; }
.tool--fig { color: #2c2c3a; background: #1e1e1e; }
.tool--ae { color: #9999ff; background: #00005b; }
.tool--id { color: #ff3366; background: #49021f; }
.tool--pr { color: #9999ff; background: #00005b; }
.tool--lr { color: #74c8ff; background: #001a2e; }
.tool--lg { width: 42px; height: 42px; font-size: 19px; border-radius: 9px; }
.tool--lg svg { font-size: 22px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-left: 36%; margin-top: calc(-1 * min(175px, 19vh)); position: relative; z-index: 5; }
.stat { display: flex; gap: 16px; padding: clamp(14px, 2.4vh, 22px) 18px; transition: transform .3s, border-color .3s; }
.stat:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.stat__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; }
.stat__icon--blue { background: linear-gradient(135deg, #1667d9, #3c9dff); box-shadow: 0 0 20px rgba(22, 103, 217,.6); }
.stat__icon--purple { background: linear-gradient(135deg, #1667d9, #1e8de8); box-shadow: 0 0 20px rgba(10, 120, 208,.6); }
.stat__icon--pink { background: linear-gradient(135deg, #0ea5f0, #3cc4ff); box-shadow: 0 0 20px rgba(14, 165, 240,.6); }
.stat__num { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat__label { display: block; font-size: 14px; font-weight: 600; margin: 6px 0 10px; }
.stat small { font-size: 12px; color: var(--muted); line-height: 1.5; display: block; }

/* =========================================================
   WORK
   ========================================================= */
.work .section__title { margin-top: 6px; }
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(18px, 4vh, 40px); }

.project {
  position: relative; border-radius: 16px; padding: 2px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s, box-shadow .4s;
}
.project::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.project--blue::before { background: linear-gradient(160deg, #3c9dff, #1667d9 50%, #1667d9); }
.project--purple::before { background: linear-gradient(160deg, #1e8de8, #1667d9 50%, #1e8de8); }
.project--pink::before { background: linear-gradient(160deg, #3cc4ff, #0a78d0 50%, #0ea5f0); }
.project--blue { box-shadow: 0 0 40px rgba(22, 103, 217, .35); }
.project--purple { box-shadow: 0 0 40px rgba(10, 120, 208, .35); }
.project--pink { box-shadow: 0 0 40px rgba(14, 165, 240, .35); }
.project:hover { transform: translateY(-10px); }
.project:hover .project__media > * { transform: scale(1.04); }

.project__media { position: relative; z-index: 1; height: clamp(150px, 27vh, 260px); border-radius: 14px 14px 0 0; overflow: hidden; }
.project__media > * { transition: transform .6s; }
.project__body { flex: 1; position: relative; z-index: 1; background: #0f1f4c; padding: 18px 20px 22px; border-radius: 0 0 14px 14px; }
[data-theme="light"] .project__body { background: #fff; }
.project__num { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.project__num i { width: 18px; height: 2px; background: var(--pink); border-radius: 2px; }
.project h3 { font-size: 22px; font-weight: 700; margin: 4px 0 6px; letter-spacing: -.01em; }
.project p { font-size: 13px; color: var(--text-2); padding-right: 44px; }
.project p span { margin: 0 4px; }
.round-arrow {
  position: absolute; right: 20px; bottom: 26px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); font-size: 15px; transition: background .3s, border-color .3s, transform .3s;
}
.project--blue .round-arrow { border-color: #2b8ff0; }
.project--purple .round-arrow { border-color: #1e8de8; }
.project--pink .round-arrow { border-color: #0ea5f0; }
.round-arrow:hover { background: var(--pink); border-color: var(--pink); transform: rotate(-45deg); color: #fff; }

/* Visuels des projets */
.project__media--img { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #0a173a; font: inherit; color: inherit; }
.project__media--img img { width: 100%; height: 100%; object-fit: cover; }
.project__media--top img { object-position: 50% 20%; }
.project__media--left img { object-position: 8% 50%; }
.project__hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: #fff; background: rgba(10, 23, 58, .6);
  opacity: 0; transition: opacity .35s;
}
.project__hover svg { font-size: 20px; }
.project__media--img:hover .project__hover, .project__media--img:focus-visible .project__hover { opacity: 1; }
button.round-arrow { background: none; color: inherit; cursor: pointer; }

/* Pop-up projet */
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(6, 14, 38, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative; width: min(1100px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto;
  background: #0f1f4c; border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(14, 165, 240, .2);
  transform: translateY(20px) scale(.97); transition: transform .35s;
}
.modal.open .modal__box { transform: none; }
.modal__img { display: block; width: auto; max-width: 100%; height: auto; max-height: 70vh; margin: 0 auto; border-radius: 18px 18px 0 0; }
.modal__info { padding: 22px 28px 28px; color: #fff; }
.modal__cat { font-size: 13px; font-weight: 600; color: #3cc4ff; letter-spacing: .04em; }
.modal__info h3 { font-size: clamp(22px, 3vh, 28px); font-weight: 700; margin: 6px 0 10px; }
.modal__info p { font-size: 15px; line-height: 1.7; color: #c3d3f0; max-width: 760px; }
.modal__info strong { color: #fff; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; color: #fff; background: rgba(10, 23, 58, .7); }
body.modal-open { overflow: hidden; }

.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn--send:disabled { opacity: .7; cursor: wait; transform: none; }

/* Process */
.process {
  display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; gap: 40px; margin-top: clamp(24px, 6vh, 70px);
}
.process__title { font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.process__text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

.corner-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.corner-orb--br {
  width: 360px; height: 360px; right: -120px; bottom: -160px;
  background: radial-gradient(circle at 45% 45%, #0b8ae6 0%, #0a6fc7 35%, rgba(10, 80, 170, 0) 70%);
  filter: blur(10px);
}
.corner-orb--tr {
  width: 520px; height: 520px; right: -200px; top: -220px;
  background: radial-gradient(circle at 45% 55%, #0b8ae6 0%, #0a6fc7 35%, rgba(10, 80, 170, 0) 70%);
  filter: blur(10px);
  opacity: .8;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__orb {
  position: absolute; width: 700px; height: 700px; left: 22%; top: 18%; border-radius: 50%;
  background: radial-gradient(circle at 55% 45%, rgba(11, 138, 230, .45), rgba(10, 92, 186, .2) 45%, transparent 70%);
  pointer-events: none;
}
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about__lead { font-size: clamp(15px, 2vh, 18px); line-height: 1.55; margin: clamp(12px, 2.4vh, 24px) 0 clamp(10px, 1.8vh, 18px); max-width: 420px; }
.about__text { font-size: 14px; color: var(--text-2); line-height: clamp(1.55, 0.2vh + 1.5, 1.8); max-width: 430px; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(16px, 3vh, 30px); max-width: 430px; }
.mini-stat { padding: 14px 12px; border-radius: 10px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 6px; }
.mini-stat__icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #1667d9, #1e8de8); color: #fff; font-size: 13px; }
.mini-stat strong { font-size: 18px; font-weight: 700; }
.mini-stat small { grid-column: 1 / -1; font-size: 11px; color: var(--text-2); }

.about__content .scroll-hint { display: flex; margin-top: clamp(18px, 4vh, 40px); }

.about__content .values { margin-top: clamp(16px, 3vh, 28px); max-width: 430px; }

.card { padding: 20px; }
.card h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.value { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.value__icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; margin-bottom: 6px;
  color: var(--pink); background: rgba(14, 165, 240, .08); border: 1px solid rgba(14, 165, 240, .3);
}
.value:nth-child(2) .value__icon { color: #fff; }
.value b { font-size: 11px; font-weight: 600; }
.value small { font-size: 9.5px; color: var(--muted); }

.about__side { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 22px); padding-top: 10px; }
.skill { margin-bottom: clamp(10px, 1.7vh, 16px); }
.skill:last-child { margin-bottom: 0; }
.skill__row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.skill__row span:last-child { font-size: 12px; color: var(--text-2); }
.skill__bar { height: 6px; border-radius: 6px; background: rgba(110, 170, 255, .15); overflow: hidden; }
.skill__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-bar); box-shadow: 0 0 10px rgba(14, 165, 240, .6); transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }

.tools__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
.tool-item { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .3s; }
.tool-item:hover { transform: translateY(-4px); }
.tool-item small { font-size: 10.5px; color: var(--text-2); white-space: nowrap; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__orb {
  position: absolute; width: 640px; height: 640px; right: 4%; bottom: -480px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #0b8ae6 0%, #0a6fc7 30%, rgba(10, 80, 170, .4) 55%, rgba(10, 80, 170, 0) 72%);
  filter: blur(8px);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__text { font-size: clamp(15px, 2vh, 18px); line-height: 1.6; margin: clamp(12px, 2.4vh, 22px) 0 clamp(16px, 3.6vh, 34px); color: var(--text); opacity: .92; }

.contact__list { list-style: none; display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 22px); }
.contact__list li { display: flex; align-items: center; gap: 18px; }
.c-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; border: 1px solid var(--border-strong); background: var(--glass); flex: none; }
.contact__list b { display: block; font-size: 15px; font-weight: 600; }
.contact__list a, .contact__list span { font-size: 15px; color: var(--text-2); }
.contact__list a:hover { color: var(--pink); }

.socials { display: flex; gap: 14px; margin-top: clamp(18px, 3.6vh, 34px); }
.social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 16px;
  background: var(--glass); border: 1px solid var(--border); transition: transform .3s, background .3s, border-color .3s;
}
.social b { font-size: 15px; font-weight: 700; }
.social:hover { transform: translateY(-4px); background: linear-gradient(135deg, #1667d9, #0ea5f0); border-color: transparent; color: #fff; }

.contact__sign { margin-top: clamp(18px, 5vh, 48px); font-size: clamp(20px, 2.8vh, 26px); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

.form {
  padding: 30px 26px 34px; border-radius: 18px; margin-top: -10px;
  box-shadow: 0 0 0 1px rgba(130, 185, 255, .08), 0 0 80px rgba(10, 120, 208, .25), var(--shadow);
}
.field { display: block; margin-bottom: clamp(12px, 2.4vh, 22px); }
.field span { display: block; font-size: 15px; margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--input); font-size: 14px; outline: none; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field textarea { min-height: clamp(80px, 12vh, 112px); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); opacity: .85; }
.field input:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(14, 140, 230, .2); }
.field.invalid input, .field.invalid textarea { border-color: #ff4d7a; }

.btn--send {
  width: 100%; margin-top: 10px; padding: 14px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #122250; background: #0ea5f0; box-shadow: 0 10px 30px rgba(14, 165, 240, .35);
}
.btn--send:hover { background: #3cc4ff; box-shadow: 0 14px 40px rgba(14, 165, 240, .5); }
.form__status { margin-top: 14px; font-size: 13px; text-align: center; min-height: 18px; color: #22e07a; }
.form__status.error { color: #ff4d7a; }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 24px; bottom: 56px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; color: #fff; background: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .3s, box-shadow .3s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; z-index: -1;
  animation: waPing 2.4s ease-out infinite;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 40px rgba(37, 211, 102, .6); }
@keyframes waPing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 560px) { .wa-float { right: 16px; bottom: 52px; width: 52px; height: 52px; font-size: 27px; } }

/* Footer */
.footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 8px 16px; text-align: center; font-size: 12px; line-height: 1.4; color: var(--text-2);
  background: rgba(14, 28, 70, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
[data-theme="light"] .footer { background: rgba(238, 244, 255, .85); }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Petits écrans / écrans peu hauts : les sections peuvent dépasser l'écran,
   on garde l'aimantation par page mais en douceur pour ne pas bloquer le défilement */
@media (max-width: 900px), (max-height: 620px) {
  html { scroll-snap-type: y proximity; }
  .section { scroll-snap-stop: normal; }
}

@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 30px; }
  .stats { margin-left: 0; margin-top: 30px; }
}

@media (max-width: 900px) {
  #menuToggle { display: grid; }
  .nav {
    position: fixed; top: 76px; left: 16px; right: 16px; flex-direction: column; gap: 4px; padding: 14px;
    background: rgba(16, 32, 78, .95); border: 1px solid var(--border); border-radius: 16px; backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s;
  }
  [data-theme="light"] .nav { background: rgba(255, 255, 255, .96); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 12px 14px; border-radius: 10px; }
  .nav__link.active { background: var(--glass-2); }
  .nav__link::after { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-top: -10px; height: 560px; }
  .hero__photo { height: 100%; bottom: 0; }
  /* Mobile : fondu en bas de la photo en mode sombre ; photo nette en mode clair */
  [data-theme="light"] .hero__photo { -webkit-mask-image: none; mask-image: none; }
  .stats { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .project__media { height: 230px; }
  .process { grid-template-columns: 1fr; gap: 18px; }
  .process .btn { justify-self: start; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .orbit--hero { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .logo__text { display: none; }
  .header__actions { gap: 8px; }
  .lang-switch span { min-width: 30px; }
  .section { padding: 110px 0 70px; }
  .hero__visual { height: 470px; }
  .hero__orb { width: 320px; height: 320px; }
  .mini-stats { grid-template-columns: 1fr 1fr 1fr; }
  .mini-stat { padding: 10px 8px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
