:root {
	--bleuet: #6495ed;
}

body, html {
	font-family: 'Manrope', Arial, sans-serif;
	background: #000000;
	color: #fff;
  margin: 0 !important;
  min-height: 99vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding-right: 1rem;
	padding-left: 1rem;
	box-sizing: border-box;
	max-width: 100%;
}

.py-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

@media (min-width: 576px) {
	.container {
		max-width: 100%;
	}
}
@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}
@media (min-width: 992px) {
	.container {
		max-width: 960px;
	}
}
@media (min-width: 1200px) {
	.container {
		max-width: 1200px;
	}
}
@media (min-width: 1520px) {
  .container {
    max-width: 1480px;
  }
}

/* ------------ Navbar ------------ */

.navbar {
  width: 100%;
  padding: 16px 0;
  background: #000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 80px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--bleuet);
}

.nav-links a.active {
  color: var(--bleuet);
}

.logo {
  height: 48px;
	width: auto;
	max-width: 100%;
	display: block;
}

@media (min-width: 576px) {
  .logo {
    height: 56px;
  }
}
@media (min-width: 768px) {
  .logo {
    height: 64px;
  }
}
@media (min-width: 992px) {
  .logo {
    height: 70px;
  }
}
@media (min-width: 1200px) {
  .nav-links { gap: 56px; }
  .nav-links a { font-size: 22px; }
}
@media (max-width: 1199px) and (min-width: 992px) {
  .nav-links { gap: 46px; }
  .nav-links a { font-size: 20px; }
}
@media (max-width: 991px) and (min-width: 820px) {
  .nav-links { gap: 36px; }
  .nav-links a { font-size: 18px; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}


/* ------------ Section Hero ------------ */

#hero {
  .hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .hero-text {
    flex: 1;
    min-width: 280px;
  }

  .hero-text h1 {
    font-weight: 700;
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;    
      max-width: 652px;
  }

  .hero-text p {
    font-weight: 500;
    font-size: 30px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 2rem;    
      max-width: 540px;
  }

  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-image img {
    display: block;
    width: clamp(200px, 40vw, 453px);
    height: auto;
    max-width: 100%;
  }
}

.cta-button {
	font-weight: 500;
	font-size: 20px;
	background-color: var(--bleuet);
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 10px 20px;
	cursor: pointer;
  text-decoration: none;
}

.cta-button:hover {
	background-color: #537fd9;
}

.btn-blue {
  font-size: 20px;
  font-weight: 500;
  background-color: var(--bleuet);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
}

.btn-blue:hover {
  background-color: #537fd9;
}


/* ------------ Section Offres ------------ */
.section-title {
  font-size: 45px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 70px;
}

#offres {
  padding-top: 63px;
  
  .container {
    max-width: 1180px;
  }

  .cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .card {
    width: 280px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 3px 10px rgba(100, 149, 237, 0.25);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .card h3 {
    font-size: 25px;
    font-weight: 700;
    margin: 40px 0 20px 0;
  }
  
  .card p {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
  }
}

/* ------------ Section Projets ------------ */

#projets {
  padding-top: 63px;

  .project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .project-card {
    width: 400px;
    height: 547px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .project-card:hover {
    box-shadow: 0 12px 32px rgba(100, 149, 237, 0.25);
    transform: translateY(-8px);
    transition: box-shadow 0.5s, transform 0.5s;
  }
  
  .project-card img {
    width: 400px;
    height: 281px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  
  .project-card h3 {
    font-size: 30px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 0 20px;
  }
  
  .project-card p {
    font-size: 20px;
    font-weight: 400;
    margin: 0 20px 30px;
  
  }

  .center {
    text-align: center;
    margin-top: 100px;
  }
  
  .btn-outline {
    font-size: 20px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    border: 1px solid white;
    text-decoration: none;
  }
  
  .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* ----- Section Vision ----- */

#vision {
  padding-top: 63px;
  text-align: center;

  .vision-subtitle {
    font-size: 30px;
    font-weight: 500;
    max-width: 1230px;
    margin: 0 auto 50px;
    line-height: 1.35;
  }
  
  .vision-text {
    font-size: 25px;
    font-weight: 400;
    max-width: 980px;
    margin: 0 auto 100px;
    line-height: 1.6;
  }
}


/* ------------ Footer ------------ */

footer {
  width: 100%; 
  height: 100px; 
  background-color: #1E1E1E; 
  margin-top: 100px; 
  margin-bottom: -10px; 
  display: flex; 
  justify-content: center; 
  align-items: center;
}

/* ------------ Contact ------------ */
#contact {
  text-align: center;
  
  h2 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  form {
    text-align: start;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 60px auto;
    padding: 20px;
    background: #1E1E1E;
    border-radius: 8px;
  }
  
  label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 600;
  }
  
  input,
  textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background: #262626;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
  }
  
  textarea {
    resize: vertical;
  }
  
  .cta-button {
    align-self: center;
    margin-top: 20px;
  }
}

/* ----------- Page Projet détaillée ----------- */
.project-page > section {
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 32px 16px;
}

  /* --- HERO --- */
  .project-hero {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 10px;
  }
  .project-hero img {
    display: block;
    width: clamp(260px, 70vw, 980px);
    height: 460px;
    object-fit: cover;
    object-position: top;
    margin: 0 auto 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    background: #111;
  }
  .project-hero h1 {
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    margin: 50px 0 20px;
    color: #fff;
  }
  .project-hero p {
    font-size: clamp(16px, 2.2vw, 20px);
    color: #cfcfcf;
    margin: 0;
  }

  @media (max-width: 1030px) {
    .project-hero img {
      width: 100%;   
      height: auto;
    }
  }

  /* --- BLOCS TEXTE --- */
  .project-intro,
  .project-details {
    background: #1E1E1E; /* même teinte que tes cartes & footer */
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
  }
  .project-intro h2,
  .project-details h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 14px;
    color: #fff;
  }
  #project-gallery h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 14px;
    color: #fff;
    text-align: center;
  }
  #project-gallery h3 {
    font-size: clamp(18px, 2vw, 25px);
    margin: 30px 0;
    color: #fff;
    text-align: center;
  }
  .project-intro p {
    color: #d3d3d3;
    line-height: 1.7;
    margin: 0;
  }

  /* Liste rôle & technos */
  .project-details ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #ddd;
    line-height: 1.7;
  }
  .project-details li { margin: 6px 0; }

  /* --- GALERIE --- */
  #project-gallery {
    padding-top: 20px;
    text-align: center;
    h2 {
      font-size: clamp(22px, 2.6vw, 30px);
      margin: 0 0 14px;
      color: #fff;
      margin-bottom: 50px;
      
    }
  }

  .project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centre sur la largeur */
    gap: 16px;
  }

  .project-gallery img {
    flex: 1 1 45%;
    max-width: 48%;
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #111;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  }

  .project-gallery img:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  }

  @media (max-width: 600px) {
    .project-gallery img {
      flex: 1 1 100%;
      max-width: 100%;
    }
  }

  /* --- CTA --- */
  .project-cta {
    text-align: center;
    margin-top: -10px;
    margin-bottom: -50px;
  }
  .project-cta p {
    color: #dcdcdc;
    margin-bottom: 30px;
    font-size: clamp(16px, 2.2vw, 18px);
  }

  /* --- Rythme entre sections --- */
  .project-page > .project-hero + * { margin-top: 10px; }
  .project-page > :not(.project-hero) + :not(.project-hero) { margin-top: 24px; }


  @media (max-width: 1200px) {
    .project-page > section { padding: 24px 14px; }
  }
  @media (max-width: 900px) {
    .project-gallery > img { aspect-ratio: 16 / 11; }
  }
  @media (max-width: 768px) {
    .project-page > section { padding: 20px 12px; }
    .project-cta { padding-bottom: 40px; }
  }

  #pokedex {
    .project-hero img {
      object-position: center;
    }
    .project-gallery .pokemon {
      object-position: center;
    }
  }

/* ----------- Lightbox ----------- */

.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 30px #000;
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 1001;
  font-family: Arial, sans-serif;
}

/* ----------- Responsive ----------- */
@media (max-width: 1520px) {
  #projets {
    .project-card {
      width: 368px;
      height: 503px;
    }
    .project-card img {
      width: 368px;
      height: 258px;
    }
    .project-card h3 {
      font-size: 25px;
    }
    .project-card p {
      font-size: 18px;
    }
  }
}

@media (max-width: 1200px) {
  .section-title {
    font-size: 35px;
  }
  #hero {
    .hero-content {
      gap: 1rem;
    }
    .hero-image {
      justify-content: center;
      margin-top: 2rem;
    }
    .hero-text h1 {
      font-size: 40px;
    }
    .hero-text p {
      font-size: 22px;
    }
  }
  #vision {
    .vision-subtitle {
      font-size: 25px;
    }
    .vision-text {
      font-size: 20px;
    }
  }
  #projets {
    .project-card {
      width: 325px;
      height: 444px;
    }
    .project-card img {
      width: 325px;
      height: 228px;
    }
    .project-card h3 {
      font-size: 22px;
    }
    .project-card p {
      font-size: 16px;
      margin: 0 20px 20px;
    }
  
  }
  #offres {
    .card h3 {
      font-size: 22px;
    }
    .card p {
      font-size: 18px;
    }
    svg {
      width: 60px;
      height: 60px;
    }
  }
}

@media (max-width: 900px) {
  #offres {
    .cards-grid, .project-grid {
      gap: 16px;
    }
    .card {
      min-width: 200px;
      max-width: 300px;
    }
  }
  #projets {
    .project-card {
      width: 300px;
      height: 410px;
    }
    .project-card img {
      width: 300px;
      height: 210px;
    }
    .project-card h3 {
      font-size: 20px;
    }
    .project-card p {
      font-size: 16px;
    }
    .btn-blue {
      font-size: 19px;
      padding: 9px 18px;
    }
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
  #hero {
    .hero-content {
      flex-wrap: nowrap;
      gap: 0rem;
    }
    .hero-text h1 {
      font-size: 32px;
    }
    .hero-text p {
      font-size: 20px;
    }
  }
  #vision {
    .vision-subtitle {
      font-size: 22px;
    }
    .vision-text {
      font-size: 18px;
    }
  }
  #offres {
    .card h3 {
      font-size: 20px;
    }
    .card p {
      font-size: 16px;
    }
    svg {
      width: 50px;
      height: 50px;
    }
    .card {
      width: 224px;
    }
  }
  #projets {
    .project-card h3 {
      font-size: 18px;
    }
    .project-card p {
      font-size: 14px;
      margin: 0 30px 20px;
    }
    .btn-blue {
      font-size: 18px;
      padding: 8px 16px;
    }
  }
}

@media (max-width: 600px) {
  .btn-blue, .btn-outline, .cta-button {
    font-size: 16px;
    padding: 8px 14px;
  }
  .section-title {
    font-size: 24px;
  }
  #hero {
    .hero-image {
      margin-top: 0;
      flex: none;
    }
    .hero-text {
      min-width: 250px;
    }
    .hero-text h1 {
      font-size: 28px;
    }
    .hero-text p {
      font-size: 16px;
    }
  }
  #offres {
    .card h3 {
      font-size: 18px;
    }
    .card p {
      font-size: 14px;
    }
    .card {
      width: 203px;
    }
  }
  #projets {
    .project-card h3 {
      font-size: 16px;
    }
  }
  #vision {
    .vision-subtitle {
      font-size: 20px;
    }
    .vision-text {
      font-size: 16px;
    }
  }
}

@media (max-width: 550px) {
  #hero {
    .hero-image {
      display: none;
    }
    .hero-text {
      text-align: center;
    }
  }
}