@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');


body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: #fff;
  font-size: 18px;
  line-height: 1.7;
}




/* Appliquer au html ET body */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto; /* scroll actif */
}

/* Cacher scrollbar pour Chrome, Safari et Opera */
html::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Firefox */
html {
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

/* Internet Explorer 10+ */
body {
  -ms-overflow-style: none;
}



header, footer {
  background: #000;
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 20px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  gap: 2rem;
  font-size: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;  
  transition: color 0.3s;
}

nav ul li a:hover {
  color: red;
}

h1, h2, h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero {
  padding: 6rem 3rem;
  background: #000;
  text-align: center;
  color: white;
  font-size: 22px;
}

.cta-button {
  margin-top: 2rem;
  padding: 14px 28px;
  font-size: 18px;
  background: red;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.4);
  transform: scale(1);
}

.cta-button:hover {
  background: #c40000;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(196, 0, 0, 0.7);
}

.gallery {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 3rem;
}

.gallery img {
  width: 350px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.05);
}

form {
  max-width: 700px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem;
  background: #111;
  border-radius: 10px;
  font-size: 18px;
}

input, textarea, button {
  padding: 1rem;
  font-size: 18px;
  border-radius: 5px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
}

button {
  background: red;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #b30000;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
    font-size: 18px;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
  }
}


h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: white;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
}

/* Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.grid-projets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.projet-item {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.projet-item:hover {
  transform: scale(1.02);
}

.projet-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #333;
}

.projet-item p {
  padding: 1rem;
  font-size: 16px;
  color: #ddd;
  text-align: center;
}




.grid-competences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.competence-item {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.competence-item:hover {
  transform: scale(1.05);
}

.competence-item img {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
}

.competence-item p {
  color: #ddd;
  font-size: 1.1rem;
}


.grid-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-item {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.video-item:hover {
  transform: scale(1.02);
}

.video-item video {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.video-item p {
  color: #ddd;
  font-size: 1rem;
  text-align: center;
}


.a-propos {
  padding: 4rem 2rem;
  background-color: #000;
  color: #fff;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.grid-apropos {
  display: grid;
  place-items: center;
  padding: 2rem;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
  margin-bottom: 3rem;
}

.grid-apropos p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
  text-align: center;
}

/* Grille pour ce que j'aime */
.grid-ce-que-jaime {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.photo-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.photo-item img:hover {
  transform: scale(1.05);
}

.texte-ce-que-jaime {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 4rem;
}


.photo-item {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.8rem;
  text-align: center;
}

.description-image {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.4;
}



.et-maintenant {
  padding: 4rem 2rem;
  background-color: #000;
  color: #fff;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem auto;
}

.grid-et-maintenant {
  display: grid;
  place-items: center;
  padding: 2rem;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
  margin-top: 2rem;
}

.grid-et-maintenant p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
  text-align: center;
}


.btn-bottom-container {
  max-width: 900px;
  margin: 3rem auto 4rem auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem;
}

.btn {
  padding: 0.85rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 220px;
}

.btn-red {
  background-color: #ff0000;
  color: #fff;
  border: 2px solid #ff0000;
}

.btn-red:hover {
  background-color: #000000;
  border-color: #ff0000;
  color: #ff0000;
}

.btn-red-outline {
  background-color: transparent;
  color: #ff0000;
  border: 2px solid #ff0000;
}

.btn-red-outline:hover {
  background-color: #ff0000;
  color: #fff;
}


.contact-header {
  max-width: 700px;
  margin: 2rem auto 4rem auto;
  text-align: center;
  color: #ddd;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff0000;
  margin-bottom: 1rem;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.7);
}

.contact-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #ff0000;
}

.presentation-contact {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #ccc;
}

.reseaux-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.reseaux-contact a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.reseaux-contact a:hover,
.reseaux-contact a:focus {
  transform: scale(1.1);
  
}

.reseaux-icon {
  width: 50px;
  height: 50px;
  
}




/* Animation du glow rouge pulsé */
@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 6px rgba(255,0,0,0.6)) drop-shadow(0 0 10px rgba(255,0,0,0.4));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255,0,0,0.8)) drop-shadow(0 0 15px rgba(255,0,0,0.5));
    }
    100% {
        filter: drop-shadow(0 0 6px rgba(255,0,0,0.6)) drop-shadow(0 0 10px rgba(255,0,0,0.4));
    }
}

/* Hover avec pop + glow pulsé */
.reseaux-contact a:hover .reseaux-icon {
    transform: scale(1.1);
    animation: glowPulse 1s infinite alternate;
    transition: transform 0.6s ease;
}


.hero {
  background: #000;
  color: #ff0000;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.5rem;
  color: #fff;
}

.intro, .projets-aperçu, .competences-aperçu, .contact-rapide {
  max-width: 900px;
  margin: 3rem auto;
  color: #ddd;
  padding: 0 1rem;
}

.grid-projets {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-projets img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255,0,0,0.4);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #ff0000;
  color: #fff;
}

.btn-primary:hover {
  background-color: #cc0000;
}

.btn-secondary {
  background-color: #222;
  border: 2px solid #ff0000;
  color: #ff0000;
}

.btn-secondary:hover {
  background-color: #ff0000;
  color: #fff;
}

.competences-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: #ff0000;
}



.projets {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.projets h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: red;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Grille des projets */
.grid-projets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  padding-bottom: 4rem;
}

.projet-item {
  background-color: #111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  max-width: 350px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
}

.projet-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid red;
}

.projet-item p {
  padding: 1rem 1.2rem 1.5rem;
  font-size: 1.1rem;
  color: #eee;
}

/* Grille des vidéos */
.grid-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  padding-bottom: 4rem;
}

.video-item {
  background-color: #111;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  max-width: 700px;
  width: 100%;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.video-item:hover {
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
}

.video-item p {
  margin-top: 1rem;
  color: #eee;
  font-size: 1.1rem;
}

/* Vidéo responsive */
.video-item video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  outline: none;
  box-shadow: 0 0 10px #f00;
}

/* Responsive général */
@media (max-width: 768px) {
  .grid-projets, .grid-videos {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .projets h2 {
    font-size: 2rem;
  }
}


.grid-videos video {
  width: 100%;
  max-width: 900px; 
  height: auto;
  display: block;
  margin: 0 auto;
}


header img.banner {
  width: 100%; /* ou une largeur fixe en px */
  height: auto;
  max-height: 200px; /* limite la hauteur si tu veux */
  display: block;
  margin: 0 auto;
}


@media (max-width: 768px) {
  header img.banner {
    max-height: 120px;
  }
}



header {
  background-color: #000; /* fond noir */
  padding: 20px 30px;     /* espace autour */
  box-shadow: 0 2px 8px rgba(0,0,0,0.5); /* légère ombre pour "boîte" */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;       /* largeur max de la boîte */
  margin: 0 auto;          /* centrer horizontalement la boîte */
  display: flex;
  justify-content: center; /* centrer logo + menu horizontalement */
  align-items: center;     /* aligner verticalement */
  gap: 50px;               /* espace entre logo et menu */
}

header .logo img {
  max-height: 60px;
}

nav ul {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.4rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #f00;
}
header {
  position: static; 
  background-color: #000;
  padding: 20px 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}



@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.grid-apropos {
  opacity: 0; /* invisible au départ */
  animation: fadeIn 1s ease forwards; /* animation qui fait apparaître */
  background: #fff;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 2em;
}

.grid-apropos {
  background-color: #111;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  padding: 2rem;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.grid-apropos:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
}

.grid-apropos p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #eee;
}



.grid-image {
  background-color: #111;  /* noir foncé */
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  padding: 0;              /* plus de padding qui crée cet effet gris */
  border: none;            /* supprime la bordure grise */
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.grid-image img {
  border-radius: 15px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

.grid-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
}

.grid-image:hover img {
  transform: scale(1.05);
}






/* Bloc central compétences */
.competences-block {
  max-width: 900px;
  margin: 2rem auto 4rem auto;
  padding: 2rem;
  background-color: #111;
  border-radius: 15px;
  border: 1px solid #333;
  box-shadow: 0 4px 15px rgba(255,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet hover sur le bloc entier */
.competences-block:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(255,0,0,0.7);
}

/* Barre de compétence */
.competence-bar {
  margin-bottom: 1.8rem;
  transition: transform 0.3s ease;
}

/* Hover sur chaque ligne de compétence */
.competence-bar:hover {
  transform: scale(1.03);
}

/* Texte des compétences */
.competence-bar p {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

/* Barre de fond */
.bar {
  width: 100%;
  height: 28px;
  background-color: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(255,0,0,0.3);
}

/* Barre rouge */
.fill {
  width: 0;
  height: 100%;
  background-color: red;
  border-radius: 12px 0 0 12px;
  transition: width 2s ease-in-out, transform 0.3s ease;
}

/* Hover sur la barre */
.competence-bar:hover .fill {
  transform: scaleY(1.2); /* grossit verticalement la barre */
}

/* Grille outils & logiciels */
.grid-competences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.competence-item img {
  width: 80px;
  height: auto;
  margin-bottom: 0.5rem;
}

.competence-item p {
  font-size: 0.95rem;
  color: #fff;
}




/* Bloc central "Ce que j'aime" */
.ce-que-jaime-block {
  max-width: 1000px;
  margin: 2rem auto 4rem auto;
  padding: 2rem;
  background-color: #111;
  border-radius: 15px;
  border: 1px solid #333;
  box-shadow: 0 4px 15px rgba(255,0,0,0.5);
}

/* Grille des passions */
.grid-ce-que-jaime {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card individuelle */
.photo-item {
  background-color: #111;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 4px 15px rgba(255,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

/* Hover pour agrandir la card */
.photo-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(255,0,0,0.7);
}

/* Image dans la card */
.photo-item img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

/* Hover image */
.photo-item:hover img {
  transform: scale(1.05);
}

/* Description sous l'image */
.description-image {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
  margin-top: 0.5rem;
  text-align: center;
  transition: color 0.3s ease;
}

/* Hover description */
.photo-item:hover .description-image {
  color: #fff;
}

/* Texte global sous la grille */
.texte-ce-que-jaime {
  max-width: 900px;
  margin: 2rem auto 4rem auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ddd;
}




/* Header général */
header {
  background-color: #000000; /* fond noir */
  padding: 1.5rem 0;
  width: 100%;
  box-shadow: none; /* supprime la barre grise */
  position: static; /* header normal, pas sticky */
}

/* Nav centré */
header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Liste du menu */
header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

/* Liens sous forme de blocs ronds */
header nav ul li a {
  display: inline-block;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px; /* arrondi complet */
  border: 2px solid #333;
  box-shadow: 0 4px 12px rgba(255,0,0,0.2);
  transition: all 0.3s ease;
  text-align: center;
}

/* Hover sur les blocs */
header nav ul li a:hover {
  background-color: red;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(255,0,0,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}





@font-face {
  font-family: 'Police1'; /* nom que tu choisis */
  src: url('/assets/font/ArsenicaTrial-Demibold.woff2') format('woff2'),
       url('/assets/font/ArsenicaTrial-Demibold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'Police2'; /* nom que tu choisis */
  src: url('/assets/font/KANNESARegular.woff2') format('woff2'),
       url('/assets/font/KANNESARegular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}




h1,h2,h3, a{
  text-align: center;
  font-family: 'Police1';
}

p{
  font-family: 'Playfair Display', serif;
}


.typing {


  font-size: 5rem;
  font-weight: bold;
  color: #ff0000;
  opacity: 0;
  position: relative;
  animation: particlesIn 2s forwards;
}

@keyframes particlesIn {
  0% {
    opacity: 0;
    text-shadow:
      0 0 10px #ff0000,
      -5px 5px 10px #ff0000,
      5px -5px 10px #ff0000;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    text-shadow: none;
    transform: scale(1);
  }
}



/* ===== Responsive général ===== */

/* Tablettes (1024px et moins) */
@media (max-width: 1024px) {

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero {
    padding: 3rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  .grid-projets {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
  }

  .projet-item {
    max-width: 300px;
  }

  .grid-competences {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
  }

  .competence-item img {
    width: 70px;
  }

  .grid-videos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
  }

  .btn, .btn-red, .btn-red-outline {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    min-width: 180px;
  }

  .grid-ce-que-jaime {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .photo-item img {
    max-height: 200px;
  }

  .texte-ce-que-jaime {
    font-size: 1rem;
  }
}

/* Mobiles (768px et moins) */
@media (max-width: 768px) {

  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .grid-projets {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .projet-item {
    max-width: 100%;
  }

  .grid-competences {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .competence-item img {
    width: 60px;
  }

  .grid-videos {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .btn, .btn-red, .btn-red-outline {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    min-width: 160px;
  }

  .grid-ce-que-jaime {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .photo-item img {
    max-height: 180px;
  }

  .texte-ce-que-jaime {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  header nav ul {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  nav ul li a {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .reseaux-contact {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .reseaux-icon {
    width: 40px;
    height: 40px;
  }

  .typing {
    font-size: 3rem;
  }
}

/* Petits mobiles (480px et moins) */
@media (max-width: 480px) {

  body {
    font-size: 14px;
    line-height: 1.4;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn, .btn-red, .btn-red-outline {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    min-width: 140px;
  }

  .competence-item img {
    width: 50px;
  }

  .grid-videos video {
    max-width: 100%;
  }

  .photo-item img {
    max-height: 150px;
  }

  .texte-ce-que-jaime {
    font-size: 0.9rem;
  }

  .grid-apropos, .grid-image {
    padding: 1rem;
  }
}









/* Grand mobile / petits écrans larges (769px à 900px) */
@media (min-width: 769px) and (max-width: 900px) {

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero {
    padding: 3rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  .grid-projets {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
  }

  .projet-item {
    max-width: 300px;
  }

  .grid-competences {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
  }

  .competence-item img {
    width: 70px;
  }

  .grid-videos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
  }

  .btn, .btn-red, .btn-red-outline {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    min-width: 180px;
  }

  .grid-ce-que-jaime {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .photo-item img {
    max-height: 200px;
  }

  .texte-ce-que-jaime {
    font-size: 1rem;
  }
}

/* Grande tablette / petit laptop (901px à 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {

  body {
    font-size: 17px;
  }

  .hero {
    padding: 4rem 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.4rem;
  }

  .grid-projets {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .projet-item {
    max-width: 320px;
  }

  .grid-competences {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .grid-videos {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .grid-ce-que-jaime {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .photo-item img {
    max-height: 220px;
  }

  .texte-ce-que-jaime {
    font-size: 1.05rem;
  }
}




@media (min-width: 1201px) and (max-width: 1600px) {
  body {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .grid-projets {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .projet-item {
    max-width: 360px;
  }
}




/* ==== Ajustements pour très grands écrans ==== */
@media (min-width: 1600px) {
  body {
    font-size: 20px;
    line-height: 1.8;
  }

  .hero h1 {
    font-size: 4rem !important; /* force la taille du titre */
  }

  .projet-item {
    max-width: 500px !important; /* projete plus large */
  }

  .competence-item img {
    width: 100px !important; /* icônes plus grandes */
  }

  .photo-item img {
    max-height: 300px !important; /* images plus grandes */
  }
}





/* Footer signature blanche par défaut, rouge au hover */
.footer-signature {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-signature img {
  max-width: 400px;
  width: 40%;
  height: auto;

  /* signature blanche par défaut */
  filter: brightness(0) invert(1);

  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.5s ease;
}

/* Hover : rouge + zoom + pulse */
.footer-signature img:hover {
  transform: scale(1.2);
  opacity: 1;

  /* passe en rouge au hover */
  filter: invert(18%) sepia(96%) saturate(7000%) hue-rotate(350deg) brightness(1);

  /* pulse uniquement au hover */
  animation: pulseHover 1.4s ease-in-out infinite;
}

/* Animation pulse au hover */
@keyframes pulseHover {
  0%   { transform: scale(1.2); }
  50%  { transform: scale(1.27); }
  100% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 1200px) {
  .footer-signature img {
    max-width: 300px;
    width: 45%;
  }
}

@media (max-width: 768px) {
  .footer-signature img {
    max-width: 200px;
    width: 50%;
  }
}

@media (max-width: 480px) {
  .footer-signature img {
    max-width: 150px;
    width: 60%;
  }
}




/* ===== Responsive Tablettes (769px à 1200px) ===== */
@media (min-width: 769px) and (max-width: 1200px) {

  body {
    font-size: 16.5px;
    line-height: 1.6;
  }

  .hero {
    padding: 3rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  /* Projets */
  .grid-projets {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
  }

  .projet-item {
    max-width: 320px;
  }

  /* Compétences */
  .grid-competences {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
  }

  .competence-item img {
    width: 75px;
  }

  /* Vidéos */
  .grid-videos {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  /* Boutons */
  .btn, .btn-red, .btn-red-outline {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    min-width: 180px;
  }

  /* Ce que j'aime */
  .grid-ce-que-jaime {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .photo-item img {
    max-height: 210px;
  }

  .texte-ce-que-jaime {
    font-size: 1rem;
  }

  /* Header / Navigation */
  header nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav ul li a {
    padding: 0.7rem 1.2rem;
    font-size: 1.1rem;
  }

  /* Footer signature */
  .footer-signature img {
    max-width: 250px;
    width: 45%;
  }
}






/* ===== iPad Air Responsive ===== */
@media (min-width: 768px) and (max-width: 1024px) {

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero */
  .hero {
    padding: 3rem 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  /* Projets */
  .grid-projets {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    padding: 0 1rem;
  }

  .projet-item {
    max-width: 300px;
  }

  /* Compétences */
  .grid-competences {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
  }

  .competence-item img {
    width: 70px;
  }

  /* Vidéos */
  .grid-videos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    padding: 0 1rem;
  }

  /* Ce que j'aime */
  .grid-ce-que-jaime {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .photo-item img {
    max-height: 200px;
  }

  .texte-ce-que-jaime {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  /* Boutons */
  .btn, .btn-red, .btn-red-outline {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    min-width: 180px;
  }

  /* Header / nav */
  header nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  nav ul li a {
    padding: 0.7rem 1.2rem;
    font-size: 1.1rem;
  }

  /* Footer signature */
  .footer-signature img {
    max-width: 220px;
    width: 45%;
  }

  /* Typing animation */
  .typing {
    font-size: 3.5rem;
  }
}






/* ===== Tablettes larges (iPad Air et similaires) ===== */
@media (min-width: 820px) and (max-width: 1200px) {

  body {
    font-size: 16.5px;
    line-height: 1.6;
  }

  /* Hero */
  .hero {
    padding: 3rem 2rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.35rem;
  }

  /* Grille Projets */
  .grid-projets {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .projet-item {
    max-width: 320px;
  }

  /* Grille Compétences */
  .grid-competences {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
  }

  .competence-item img {
    width: 75px;
  }

  /* Grille Vidéos */
  .grid-videos {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }

  /* Grille Ce que j'aime */
  .grid-ce-que-jaime {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .photo-item img {
    max-height: 210px;
  }

  .texte-ce-que-jaime {
    font-size: 1.05rem;
    padding: 0 0.5rem;
  }

  /* Boutons */
  .btn, .btn-red, .btn-red-outline {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    min-width: 180px;
  }

  /* Header / navigation */
  header nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }

  nav ul li a {
    padding: 0.7rem 1.3rem;
    font-size: 1.1rem;
  }

  /* Footer signature */
  .footer-signature img {
    max-width: 250px;
    width: 40%;
  }

  /* Typing animation */
  .typing {
    font-size: 3.8rem;
  }
}



@media (min-width: 820px) and (max-width: 1200px) {
  .grid-projets {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .projet-item {
    max-width: 320px; /* chaque projet ne dépassera pas cette largeur */
  }
}






@media (min-width: 820px) and (max-width: 1200px) {

  .grid-projets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    justify-items: center; /* centre les items dans la grille */
  }

  .projet-item {
    max-width: 100%; /* s'adapte à son conteneur */
    width: 100%;
    box-sizing: border-box;
  }

  .projet-item img {
    width: 100%; /* l'image ne dépasse jamais le projet */
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover; /* évite que l'image se déforme */
  }

  .grid-projets h3,
  .grid-projets p {
    text-align: center;
  }

}





@media (min-width: 820px) and (max-width: 1200px) {

  .grid-projets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    justify-items: center; /* centre les items */
  }

  .projet-item {
    width: 100%;
    max-width: 320px; /* limite la largeur pour chaque projet */
    box-sizing: border-box;
  }

  .projet-item img {
    width: 100%;   /* image 100% de son bloc */
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
  }

  /* Forcer le photomontage à passer à la ligne si pas assez de place */
  .grid-projets article:nth-child(3) {
    grid-column: span 1; 
    /* Avec la grille ci-dessus, dès qu'il n'y a pas de place, il descend naturellement */
  }

}




/* ===== Grille projets responsive iPad Air (820px de large) ===== */
@media (max-width: 820px) {

  .grid-projets {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes max */
    gap: 1rem;
    padding: 0 1rem;
    box-sizing: border-box;
    justify-items: center; /* centre les items horizontalement */
  }

  .grid-projets article {
    width: 100%;
    max-width: 100%; /* ne dépasse jamais la colonne */
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .grid-projets article img {
    width: 100%;       /* toujours à 100% de la colonne */
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    max-height: 200px; /* limite la hauteur pour éviter débordement */
  }

  .grid-projets article h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    line-height: 1.3;
    word-wrap: break-word; 
  }

  .grid-projets article p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #eee;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .projets-aperçu a.btn {
    display: block;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    max-width: 220px;
  }
}



.grid-ce-que-jaime {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes égales */
  grid-template-rows: repeat(2, auto);   /* 2 lignes */
  gap: 2rem;                              /* espace entre les blocs */
}

/* Optionnel : style des blocs */
.photo-item {
  background: #1a1a1a; /* ou blanc/rouge selon ton thème */
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}






.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


.clickable-img {
  cursor: pointer; /* Change le curseur en main quand on survole l'image */
  transition: transform 0.2s; /* optionnel : petite animation au survol */
}

.clickable-img:hover {
  transform: scale(1.05); /* léger zoom au survol, optionnel */
}























/* ============================================== */
/* RESPONSIVE SPÉCIAL PAGE INDEX                  */
/* Sans modifier <body> et sans toucher autres pages */
/* ============================================== */

/* On reconnaît la page index grâce à .hero + .grid-image */
@media (max-width: 768px) {

  /* H1 du haut */
  .hero .typing, 
  h1.typing {
    font-size: 2.3rem;
    text-align: center;
    padding: 0 1rem;
  }

  /* Texte sous le titre */
  .hero p {
    text-align: center;
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  /* Image principale */
  .hero .grid-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }

  /* Bloc "Quelques projets" */
  .projets-aperçu .grid-projets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .projets-aperçu article img {
    width: 100%;
    height: auto;
  }

  /* Compétences */
  .competences-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
    padding: 0 1rem;
  }

  .competences-list .competence-item img {
    width: 60px;
  }

  /* Boutons du bas */
  .contact-rapide .btn-bottom-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .contact-rapide .btn-bottom-container .btn {
    width: 100%;
    text-align: center;
  }
}





/* Container des boutons */
.btn-bottom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Boutons */
.btn-bottom-container .btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    text-align: center;
    min-width: 180px;
}

/* Responsive : boutons en colonne + centrés */
@media (max-width: 700px) {
    .btn-bottom-container {
        flex-direction: column;
        gap: 15px;
    }

    .btn-bottom-container .btn {
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
    }
}





/* Titres des blocs photo */
.photo-item h2 {
    font-size: 2rem;
    text-align: center;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 700px) {
    .photo-item h2 {
        font-size: 1.4rem;
        line-height: 1.2;
        padding: 0 10px; /* évite que ça déborde */
    }
}






/* Conteneur de chaque compétence */
.competence-item {
    display: flex;
    flex-direction: column; /* image au-dessus, texte en-dessous */
    align-items: center;    /* centre horizontalement */
    justify-content: center; /* centre verticalement si hauteur définie */
    text-align: center;     /* centre le texte */
    padding: 10px;
    box-sizing: border-box;
}

/* Image des compétences */
.competence-item img {
    max-width: 80%;   /* limite la taille pour rester dans la case */
    height: auto;
    margin-bottom: 10px;
    display: block;   /* pour éviter les décalages inline */
}

/* Texte sous l'image */
.competence-item p {
    margin: 0;
    font-size: 1rem;
}

/* Optionnel : responsive pour petits écrans */
@media (max-width: 700px) {
    .competence-item img {
        max-width: 60%;
    }
}








/* Grille principale pour les "Ce que j'aime" */
.grid-ce-que-jaime {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes par défaut */
    gap: 20px;
    padding: 10px;
}

/* Centrer le contenu des blocs */
.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Images responsive */
.photo-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Texte sous les images */
.description-image {
    margin: 0;
}

/* Media query pour les petits écrans */
@media (max-width: 768px) {
    .grid-ce-que-jaime {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
}






/* Boutons côte à côte par défaut */
.btn-bottom-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Media query pour petit écran : boutons empilés */
@media (max-width: 768px) {
    .btn-bottom-container {
        flex-direction: column;
        gap: 10px; /* moins d’espace entre les boutons empilés */
    }

    .btn-bottom-container a {
        width: 100%; /* bouton prend toute la largeur du conteneur */
        text-align: center;
    }
}






/* Conteneur des boutons */
.btn-bottom-container {
    display: flex;
    justify-content: center; /* centre horizontalement */
    gap: 20px;
    margin-top: 20px;
}

/* Media query pour mobile */
@media (max-width: 768px) {
    .btn-bottom-container {
        flex-direction: column; /* empile les boutons */
        align-items: center;    /* centre les boutons */
        gap: 10px;
        width: 100%;            /* occupe toute la largeur possible */
    }

    .btn-bottom-container a {
        width: 80%; /* ou 100% si tu veux que le bouton prenne tout l’espace */
        max-width: 300px; /* limite la largeur pour pas que ce soit trop grand */
        text-align: center;
    }
}




.btn-bottom-container {
    display: flex;
    justify-content: center; /* centre horizontalement */
    gap: 20px;
    margin-top: 20px;
}

/* Mobile : empile et réduit la largeur */
@media (max-width: 768px) {
    .btn-bottom-container {
        flex-direction: column; /* empile les boutons */
        align-items: center;    /* centre les boutons */
        gap: 10px;
    }

    .btn-bottom-container a {
        width: 70%;        /* réduit la largeur pour mobile */
        max-width: 250px;  /* limite max pour pas que ça déborde */
        text-align: center;
        padding: 10px 0;   /* ajustement padding si nécessaire */
    }
}




@media (max-width: 768px) {
    .btn-bottom-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-bottom-container a {
        width: 55%;       /* largeur réduite pour mobile */
        max-width: 200px; /* limite max */
        text-align: center;
        padding: 10px 0;
    }
}





@media (max-width: 768px) {
    .btn-bottom-container {
        flex-direction: column;
        align-items: center; /* centre les boutons */
        gap: 10px;
        width: 100%;         /* prend toute la largeur du conteneur */
    }

    .btn-bottom-container a {
        width: 55%;          /* largeur réduite pour mobile */
        max-width: 200px;    /* limite max */
        text-align: center;
        padding: 10px 0;
        margin: 0 auto;      /* centre exactement horizontalement */
        display: block;      /* nécessaire pour que margin auto fonctionne */
    }
}



@media (max-width: 768px) {
    .btn-bottom-container {
        display: flex !important;       /* s'assure que c'est flex */
        flex-direction: column !important;
        align-items: center !important; /* centre horizontalement */
        justify-content: center !important;
        gap: 10px;
        width: 100% !important;
        padding: 0;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .btn-bottom-container a {
        width: 80% !important;          /* largeur réduite pour mobile */
        max-width: 250px;
        text-align: center;
        padding: 12px 0;
        display: block !important;       /* nécessaire pour margin auto */
        margin: 0 auto !important;
    }
}




/* ===== Responsive projets mobiles ===== */
@media (max-width: 768px) {
  .grid-projets {
    grid-template-columns: 1fr; /* passe en colonne unique */
    gap: 1.5rem;               /* espace entre les items */
    padding: 0 1rem;           /* padding horizontal conservé */
    justify-items: center;     /* centre les projets horizontalement */
  }

  .grid-projets article, 
  .projet-item {
    width: 100%;               /* s'adapte à la colonne */
    max-width: 100%;
    box-sizing: border-box;
  }

  .grid-projets article img,
  .projet-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
  }

  .grid-projets article h3,
  .grid-projets article p,
  .projet-item p {
    text-align: center;
  }
}


