/* --------------------- */
/* VARIABLES CSS         */
/* --------------------- */
:root {
  --bg-dark: #04181a;              /* Fond principal sombre */
  --bg-accent: #0ea5a4;            /* Couleur accent aqua */
  --accent-alt: #ffb86b;           /* Couleur accent corail/orangé */
  --card-bg: rgba(255,255,255,0.04); /* Fond transparent pour cartes */
  --text: #e8f8f6;                 /* Couleur texte principal */
  --muted: #bfeeea;                /* Couleur texte secondaire/atténuée */
}

/* --------------------- */
/* RESET                 */
/* --------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html,body { height: 100%; }

body {
  min-height: 100vh;  /* Toujours occuper toute la hauteur */
  background-color: #022; /* Fond très sombre */
  color: var(--text); /* Texte par défaut */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

body, a {
  font-family: "Arial", sans-serif; /* remplacez par votre police */
}

/* --------------------- */
/* ANIMATION FADE-IN     */
/* --------------------- */
.fade-in { animation: fadeIn .7s ease both; }

@keyframes fadeIn { 
  from { opacity:0; transform:translateY(6px);} 
  to   { opacity:1; transform:none;} 
}

/* --------------------- */
/* HEADER                */
/* --------------------- */
header {
  display: flex;
  justify-content: space-between; /* Espace entre le titre et le menu */
  align-items: center;
  padding: 16px 36px;
  background: rgba(255,255,255,0.02); /* Fond légèrement transparent */
  border-bottom: 2px solid rgba(255,255,255,0.04);
  position: sticky; /* Reste en haut lors du scroll */
  z-index: 50;
}

header h1 {
  font-size: 1.7rem;
  color: var(--bg-accent); /* Couleur aqua */
}

/* --------------------- */
/* NAVIGATION            */
/* --------------------- */
nav ul { 
  display:flex; 
  gap:22px; 
  list-style:none; 
}

nav a {
  color: var(--muted); /* Texte clair */
  font-weight: 600;
  text-decoration: none;
  padding:6px 8px;
  border-radius:8px;
  transition: all .22s ease;
}
nav a:hover { 
  color: white; 
  background: rgba(255,255,255,0.05); /* Légère surbrillance */
}

/* --------------------- */
/* CONTAINER PRINCIPAL   */
/* --------------------- */
.container { 
  max-width: 1100px; 
  margin: 36px auto; 
  padding: 0 20px 60px; 
}

/* --------------------- */
/* INTRO PROJET          */
/* --------------------- */
.intro_projet {
  background: rgba(255,255,255,0.03); /* Fond translucide */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 36px;
  text-align: center;
}
.intro_projet h2 { 
  font-size: 1.9rem; 
  margin-bottom: 14px; 
  color: var(--bg-accent); 
}
.intro_projet p { 
  color: var(--muted); 
}

/* --------------------- */
/* GRID DES CARTES       */
/* --------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); /* Responsive */
  gap: 20px;
  margin: 28px 0 40px;
}

.card.futuristic {
  background: var(--card-bg); /* Fond semi-transparent */
  border: 1px solid rgba(14,165,164,0.08); /* Bordure légère */
  border-radius: 14px;
  padding: 22px;
  transition: transform .28s ease, box-shadow .28s ease;
}
.card.futuristic:hover {
  transform: translateY(-6px); /* Décalage au survol */
  box-shadow: 0 18px 40px rgba(3,18,18,0.65); /* Ombre forte */
}
.card h3 { margin-bottom: 12px; }
.card ul { margin-left: 18px; color: var(--muted); }
.card p { color: var(--muted); }

/* --------------------- */
/* SECTION CAPTURES      */
/* --------------------- */
.development { 
  text-align:center; 
  margin-bottom:40px; 
}
.development h2 { 
  font-size:1.8rem; 
  margin-bottom:18px; 
  color: var(--accent-alt); /* Corail */
}
.development p { 
  color: var(--muted); 
  margin-bottom: 18px; 
}

/* Grille des images */
.images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 18px;
}

.img-card {
  background: rgba(14,165,164,0.02);
  border: 1px solid rgba(14,165,164,0.06);
  border-radius: 12px;
  padding: 10px;
  transition: transform .22s ease;
  text-align: center;
}

.img-card img { 
  width: 100%; 
  height: 200px;        /* Toutes les images → même taille */
  object-fit: cover;    /* Recadrage propre */
  border-radius: 8px; 
}

.img-card:hover { 
  transform: translateY(-6px); /* Décalage au survol */
}

.legend {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* --------------------- */
/* SECTION PLUS          */
/* --------------------- */
.plus {
  text-align:center;
  margin: 50px auto;
  padding: 26px;
  border-radius: 12px;
  background: rgba(255,255,255,0.01);
  max-width: 900px;
  color: var(--muted);
}
.plus h3 { 
  color: var(--accent-alt); 
  margin-top: 14px; 
}

/* --------------------- */
/* NAVIGATION ENTRE PROJETS */
/* --------------------- */
.next-project, .prev-project {
  position: fixed;
  bottom: 20px;
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--bg-accent), var(--accent-alt));
  color: #022;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
}
.next-project { right: 20px; }
.prev-project { left: 20px; }
.next-project:hover, .prev-project:hover { 
  transform: translateY(-4px); /* Décalage au survol */
}

/* --------------------- */
/* FOOTER                */
/* --------------------- */
footer {
  bottom: 0;
  width: 100%;
  background-color: #222; /* Fond sombre */
  color: white;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}

