/* ===================== RESET ===================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== VARIABLES ===================== */
:root {
  --blue: #4f7df3;
  --violet: #7b4fe9;
  --bg-dark: #0f172a;
  --bg-dark-2: #111827;
  --text-main: #ffffff;
  --text-muted: #b6c0d0;
  --blue-dark: #2f4fb8;
  --violet-dark: #5a34b5;
}

/* ===================== BODY ===================== */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  min-height: 100vh;

  background:
    linear-gradient(
      rgba(10, 15, 30, 0.6),
      rgba(10, 15, 30, 0.6)
    ),
    url("../assets/img/bg-home.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* ===================== CONTAINER CENTRAL ===================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===================== HEADER ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: linear-gradient(
    90deg,
    rgba(47, 79, 184, 0.95),
    rgba(90, 52, 181, 0.95)
  );

  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);

  padding: 1.2rem 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 43px;      /* taille idéale desktop */
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.logo img {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo img:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.logo a {
  display: flex;
  align-items: center;
}

nav{
display:flex;
align-items:center;
gap:1.6rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

.discord-btn{
display:inline-flex;
align-items:center;

background:#5865F2;
color:white;

padding:0.45rem 0.9rem;
border-radius:8px;

font-size:0.85rem;
font-weight:500;
text-decoration:none;

transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-btn:hover{
transform:translateY(-2px);
box-shadow:0 8px 20px rgba(88,101,242,0.45);
}

.discord-btn{
margin-left:0.5rem;
}

/* ===================== ZONE DE CONTENU ===================== */

main {position: relative;
      z-index: 1;
      
      background: rgba(17, 24, 39, 0.75);
      backdrop-filter: blur(4px);
  
      margin: 4rem auto;
      padding: 4rem 0;

      border-radius: 24px;
      max-width: 1100px;
  }

/* ===================== BUTTON ===================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background:linear-gradient(135deg,#5865F2,#7b4fe9);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(123, 79, 233, 0.4);
}

/* ===================== ACCUEIL ===================== */
.home {
  min-height: calc(100vh - 120px); /* hauteur écran - header */
  display: flex;
  align-items: center;             /* centre vertical */
}

.home-content {
  text-align: left;                /* propre, lisible */
}

.home h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.home-section {
margin-top:6rem;
}

.btn-hero {
  padding: 0.75rem 1.6rem;   /* un peu plus compact */
  font-size: 0.95rem;        /* légèrement plus petit */
}

.skills-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:1.5rem;
margin-top:2rem;
}

.skill-card{
background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.05);
padding:1.5rem;
border-radius:12px;
}

.project-highlight{
background:rgba(255,255,255,0.02);
border:1px solid rgba(255,255,255,0.05);
padding:2rem;
border-radius:16px;
margin-top:1.5rem;
}

.tech-list{
display:flex;
flex-wrap:wrap;
gap:0.8rem;
margin-top:1rem;
}

.tech-list span{
background:rgba(255,255,255,0.05);
padding:0.5rem 0.8rem;
border-radius:6px;
font-size:0.9rem;
}

.home p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.skill-card{
transition:transform 0.2s ease, box-shadow 0.2s ease;
background:rgba(255,255,255,0.03);
border:1px solid rgba(255,255,255,0.05);
padding:1.5rem;
border-radius:12px;
}

.skill-card:hover{
transform:translateY(-5px);
box-shadow:0 20px 40px rgba(0,0,0,0.4);
}

.skill-card:hover{
border-color:rgba(123,79,233,0.4);
}

.highlight {
  color: #8ab4ff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(122,162,255,0.4);
}

.home-cta{
text-align:center;
margin-top:6rem;
}

.cta-text{
max-width:520px;
margin:1rem auto 2rem auto;
color:var(--text-muted);
line-height:1.7;
}

h2{
font-weight:600;
}

html{
scroll-behavior:smooth;
}

/* ===================== HOME SECTIONS ===================== */

.hero {
  margin-bottom: 6rem;
}

.home-section {
  margin-top: 5rem;
}

.home-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.home-list {
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.home-list li {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.home-muted {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.home-cta {
  text-align: center;
  margin-top: 6rem;
}

/* ===================== A PROPOS ===================== */
.about-page {
  padding: 6rem 0;
}

.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 2rem;
}

.about-page h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-intro {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4rem;
}

.about-section {
  margin-bottom: 4rem;
}

.about-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.about-section p,
.about-section li {
  color: var(--text-muted);
  line-height: 1.7;
}

.about-section ul {
  padding-left: 1.2rem;
}

.about-cta {
  text-align: center;
  margin-top: 4rem;
}

/* ===================== PARCOURS ===================== */
.parcours-page {
  padding: 6rem 0;
}

.parcours-intro {
  margin-bottom: 5rem;
}

.parcours-intro h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.parcours-intro p {
  color: var(--text-muted);
  line-height: 1.7;
}

.parcours-section {
  margin-bottom: 4rem;
}

.parcours-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.parcours-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .home h1,
  .about-page h1,
  .parcours-intro h1 {
    font-size: 1.8rem;
  }
}

/* ================= CONTACT PAGE ================= */

.contact-page {
  padding: 6rem 0;
}

.contact-intro {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 520px;
}

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

.contact-form {
  max-width: 520px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* Bouton déjà existant : btn-primary */
.btn-primary {
  margin-top: 1rem;
}

/* ================= NOTE ================= */

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ================= CONTACT ALTERNATIF ================= */

.contact-alternative {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-alternative h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-alternative ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-alternative li {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.contact-alternative a {
  color: var(--blue);
  text-decoration: none;
}

.contact-alternative a:hover {
  text-decoration: underline;
}

/* ================= PROJETS PAGE ================= */

.projet-page {
  padding: 6rem 0;
}  

.projet-page h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.projets-intro {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 4rem;
  max-width: 700px;
}

/* ================= CARTE PROJET ================= */

.project-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.5rem;
  margin-bottom: 4rem;
}

.project-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.project-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.project-card strong {
  color: var(--text-main);
}

/* ===================== LISTE ===================== */

.project-list {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.project-list li {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

/* ===================== IDENTITÉ PROJET ===================== */

.project-identity {
  margin-top: 2.5rem;
  text-align: center;
}

.project-logo-link {
  display: inline-block;
}

.project-logo {
  width: 90px;
  height: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-logo:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.project-description {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== CTA PROJETS ===================== */

.project-cta {
  text-align: center;
  margin-top: 5rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ===================== RESPONSIVE PROJETS ===================== */

@media (max-width: 768px) {
  .project-card {
    padding: 1.8rem;
  }

  .project-card h2 {
    font-size: 1.3rem;
  }
}

.discord-contact-btn{
display:inline-block;

margin-top:1.2rem;

background:#5865F2;
color:white;

padding:0.65rem 1.2rem;
border-radius:8px;

font-size:0.9rem;
font-weight:500;
text-decoration:none;

transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-contact-btn{
display:inline-block;

margin-top:1.2rem;

background:#5865F2;
color:white !important;

padding:0.7rem 1.3rem;
border-radius:8px;

font-size:0.9rem;
font-weight:500;

text-decoration:none !important;

transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-contact-btn:hover{
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(88,101,242,0.45);

color:white !important;
}
