/* ===== Réglages globaux ===== */
/* ----- Barre de défilement toujours présente, menu fixe ----- */
html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;   /* le body fait au moins la hauteur de l'écran */
  overflow-y: scroll;  /* la place de la barre verticale est toujours réservée */
}

/* ===== Réglages globaux ===== */
:root {
  --bg:#070b19;
  --panel:#0c1328;
  --panel2:#0f1834;
  --text:#e9eefb;
  --muted:#9fb0d8;
  --brand1:#0ea5e9;
  --brand2:#6366f1;
  --ring:rgba(99,102,241,.55);
}

:root {
  --bg:#070b19;
  --panel:#0c1328;
  --panel2:#0f1834;
  --text:#e9eefb;
  --muted:#9fb0d8;
  --brand1:#0ea5e9;
  --brand2:#6366f1;
  --ring:rgba(99,102,241,.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Réserve toujours la place pour la barre verticale
   => évite que le menu se décale entre les pages */
a {
  color: inherit;
  text-decoration: none;
}


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

/* ===== HEADER / NAVBAR ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(5,8,18,.96), rgba(5,8,18,.7) 60%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Contrainte de largeur commune à TOUT le contenu (y compris le menu) */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
}

/* On utilise .wrapper dans le HTML, mais comme tu as déjà
   <header class="nav"> ... on encapsule via flex interne */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.links a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap; /* empêche Marketing digital / Bande dessinée de casser */
}

.links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

/* Boutons génériques */

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border-color: transparent;
}

/* ===== HERO / PAGE GÉNÉRALE ===== */

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 92px 18px 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(99,102,241,.35), transparent 60%),
    radial-gradient(30% 30% at 80% 20%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(40% 40% at 20% 60%, rgba(14,165,233,.25), transparent 60%);
  filter: blur(40px);
  opacity: .9;
}

.hero-inner {
  max-width: 1040px;
  text-align: center;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  margin: 0 0 14px;
}

h2 {
  font-size: 24px;
  margin: 0 0 12px;
}

.lead,
.page-lead {
  font-size: clamp(16px,2.1vw,19px);
  color: var(--muted);
  max-width: 900px;
  margin: 0 auto 18px;
}

.page-lead {
  text-align: left;
  margin-bottom: 24px;
}

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}

.badges {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 14px 0 0;
}

.badges li {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

/* Sections et largeur commune */

.section {
  padding: 64px 18px;
}

.page,
.section {
  max-width: 900px;   /* largeur commune au contenu */
  margin: 0 auto;
}

/* Cartes / projets */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg,var(--panel),var(--panel2));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 18px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.p-card {
  background: linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 18px;
  position: relative;
}

.p-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--muted);
}

.about-card {
  line-height: 1.6;
}

.bullets {
  margin: 6px 0 0 18px;
  color: var(--muted);
}

/* Icônes de projets (SnowTrack, GeoSnap, Cartel 21, AthlétiQ) */

.project-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-title .project-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

/* Champs génériques */

input,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a0f20;
  color: var(--text);
  outline: none;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}

.small {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */

.footer {
  padding: 24px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}

.grad {
  background: linear-gradient(90deg,var(--brand1),var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

/* ===== FORMULAIRE CONTACT ===== */

/* Bloc Contact centré sous le titre, largeur fixe */
.contact-form {
  max-width: 420px;
  margin: 24px 0 0 0;   /* aligné sur la colonne de gauche de .page */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Une ligne = label + champ (en colonne, peu d’espace) */
.form-row {
  display: flex;
  flex-direction: column;
}

/* Labels alignés à gauche, collés au bord des boîtes */
.form-row label {
  margin-bottom: 6px;
  text-align: left;
  font-weight: 600;
}

/* Champs : même largeur */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* Bouton Envoyer : même largeur que les boîtes */
.form-btn {
  width: 100%;
  margin-top: 6px;
}

/* Texte sous le bouton, aligné avec le formulaire */
.contact-extra {
  margin-top: 10px;
  font-size: 14px;
  text-align: left;
}

/* ===== Responsive ===== */

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .page,
  .section {
    max-width: 100%;
  }

  .contact-form,
  .contact-extra {
    max-width: 100%;
  }
}
body {
    min-height: 120vh; /* Force la page Contact à être assez grande */
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav .links .lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Correction qui empêche le menu de bouger */
.nav-inner {
    max-width: 900px;        /* même largeur que ton contenu */
    margin: 0 auto;          /* centré parfaitement */
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 40;
}
