:root{
  --purple-red: #7b1634;
  --bg: #f6f6f8;
  --text: #1f1f25;
  --card: #ffffff;
  --border: rgba(0,0,0,0.08);
}

/* ===============================
   BASE
   =============================== */
*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

/* ===============================
   HERO
   =============================== */
.hero{
  background-color: var(--purple-red);
  color: #fff;
  padding: clamp(24px, 5vw, 56px) 16px;
}

.hero-inner{
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.hero h1{
  margin: 0;
  font-size: clamp(24px, 5vw, 44px);
  letter-spacing: -0.02em;
}

.hero p{
  margin-top: 10px;
  opacity: 0.92;
}

/* Nom sous le titre principal : plus grand que le texte normal, mais plus petit que le titre */
.hero .name{
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: clamp(18px, 3.2vw, 32px);
  letter-spacing: -0.01em;
}

/* ===============================
   VARIANTES HERO
   =============================== */
.hero-minecraft:not(.page-projets .hero){
  background-color: #0f3d2e;
}

.page-projets .hero{
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  color: #f0f6fc;
  border-bottom: 1px solid #30363d;
}

.page-projets{
  background-color: #fff;
}

/* ===============================
   BOUTONS
   =============================== */
.btn{
  display: inline-block;
  margin-top: 18px;
  background-color: #fff;
  color: var(--purple-red);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.45);
  transition: transform .15s ease, opacity .15s ease;
}

.btn:hover,
.btn:focus-visible{
  transform: translateY(-1px);
  opacity: 0.95;
}

/* ===============================
   CONTENU
   =============================== */
.container{
  max-width: 980px;
  margin: 18px auto;
  padding: 0 16px 40px;
  display: grid;
  gap: 14px;
}

.card{
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.card h2{
  margin-bottom: 10px;
  color: var(--purple-red);
  font-size: 20px;
}

.page-projets .card{
  background-color: #0d1117;
  border-color: #30363d;
  color: #c9d1d9;
}

.page-projets .footer{
  background-color: #fff;
  color: rgba(0,0,0,0.6);
}

/* ===============================
   CHIPS
   =============================== */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  background-color: var(--purple-red);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* ===============================
   FOOTER
   =============================== */
.footer{
  text-align: center;
  padding: 16px;
  color: rgba(0,0,0,0.6);
}

/* Galerie d'images pour la page Minecraft */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.gallery img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ===== PAGE MAIL : BANDEAU BLEU FONCÉ ===== */
.hero.hero-mail{
  background: linear-gradient(180deg, #05243a 0%, #063a5a 100%);
  color: #f6fbff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero.hero-mail .btn{
  background-color: #fff;
  color: var(--purple-red);
  border-color: rgba(255,255,255,0.45);
}

.hero.hero-mail .btn:hover,
.hero.hero-mail .btn:focus-visible{
  background-color: #fff;
  opacity: 0.95;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (orientation: landscape) and (max-height: 500px){
  .hero{
    padding: 18px 16px;
  }
}

@media (min-width: 900px){
  .container{
    grid-template-columns: 1fr;
  }
  .card{
    padding: 18px;
  }
}

/* Bouton CV sticky */
.btn--cv-sticky{
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 24px));
  right: 24px;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(90deg,#0b74c7,#0460a0);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(2,6,23,0.35);
  border: 0;
}

.btn--cv-sticky:focus-visible{
  outline: 3px solid rgba(11,116,199,0.18);
  outline-offset: 4px;
}

/* Mobile : bouton centré et pleine largeur */
@media (max-width: 600px){
  .btn--cv-sticky{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom, 12px));
    width: calc(100% - 32px);
    max-width: 760px;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(2,6,23,0.25);
  }
}
/* Bouton CV sticky */
.btn--cv-sticky {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;

  padding: 14px 20px;
  font-weight: 600;
  border-radius: 12px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Mobile : bouton centré */
@media (max-width: 600px) {
  .btn--cv-sticky {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 16px;
    width: calc(100% - 32px);
    text-align: center;
  }
}
