/* ----------------------------------------- */
/*              STYLES GÉNÉRAUX             */
/* ----------------------------------------- */
body {
  margin: 0;
  font-family: "Montserrat", serif;
  background-color: #f8f9fa;
}

.container {
  font-size: medium;
}

.container h3 {
  color: black;
  text-decoration: none;
}

/* ----------------------------------------- */
/*               HEADER / NAVBAR             */
/* ----------------------------------------- */
header {
  background-color: #ffe5e2;
  padding: 10px 20px;
  color: white;
}

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

.logo-img {
  height: 60px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #960145;
}

.button-connexion {
  background-color: #960145;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-decoration: none;
}

.button-connexion:hover {
  background-color: #960145;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}

/* ----------------------------------------- */
/*                  FOOTER                   */
/* ----------------------------------------- */
.site-footer {
  background-color: #ffe5e2;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  margin-top: 40px;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer-content a {
  color: #960145;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: #960145;
}
.social-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons img.icon {
  width: 24px;
  height: 24px;
  filter: invert(16%) sepia(78%) saturate(5645%) hue-rotate(320deg) brightness(85%) contrast(95%);
}



/* ----------------------------------------- */
/*                CONNEXION                  */
/* ----------------------------------------- */
.mainconnexion {
  display: flex;
  justify-content: center;
}

.login-container {
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.login-container h2 {
  margin-bottom: 30px;
  color: #960145;
  font-size: 20px;
}

form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}

form input::placeholder {
  color: #aaa;
}

form button {
  width: 100%;
  background-color: #960145;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
}

form button:hover {
  background-color: #780036;
  transform: translateY(-2px);
}

/* ----------------------------------------- */
/*             PHOTO / PRÉSENTATION          */
/* ----------------------------------------- */
.hero-section {
  position: relative;
  padding-bottom: 60px;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

.overlay-text {
  position: absolute;
  max-width: 800px;
  padding: 40px;
  background: rgba(255, 255, 255, 100); /* <== plus transparent qu'avant */
  backdrop-filter: blur(10px);           /* flou effet “verre dépoli” */
  -webkit-backdrop-filter: blur(10px);   /* compatibilité Safari */
  color: #333;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease forwards;
  font-family: "Montserrat", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.3); /* optionnel */
}


.overlay-text h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.overlay-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.overlay-text .highlight {
  color: #960145;
  font-weight: bold;
  font-size: 3rem;
}

/* Animation douce */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.floating-word span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.floating-word span:hover {
  animation: floatLetter 0.5s ease;
}

@keyframes floatLetter {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.cv-button-container {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cv-button,
.parcours-button {
  background-color: #960145;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.cv-button:hover,
.parcours-button:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  background-color: #750033;
}

.timeline-section {
  background-color: #fff;
  padding: 120px 20px 80px;
  position: relative;
  z-index: 1;
}

.timeline-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  z-index: 2;
}

.timeline-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 800px;
  text-align: left;
}

.timeline-item .icon {
  font-size: 24px;
  margin-bottom: 10px;
}

/* 📱 Responsive mobile-first (jusqu'à 767px) */
@media (max-width: 767px) {
  .hero-section {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .photo-img {
    height: auto;
    max-height: 300px;
  }

  .overlay-text {
    position: static;
    margin-top: 20px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
  }

  .overlay-text h1 {
    font-size: 1.8rem;
    word-break: break-word;
  }

  .overlay-text p {
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
  }

  .cv-button-container {
    flex-direction: column;
    gap: 15px;
  }

  .cv-button,
  .parcours-button {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 12px 20px;
  }

  .timeline-section {
    padding: 80px 15px 40px;
  }

  .timeline-item {
    padding: 20px;
    font-size: 0.95rem;
  }

  .timeline-item h3 {
    font-size: 1.2rem;
  }
}

/* 📲 Responsive pour tablettes (768px à 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .overlay-text {
    padding: 30px;
    font-size: 1.1rem;
  }

  .overlay-text h1 {
    font-size: 2.2rem;
  }

  .overlay-text p {
    font-size: 1.1rem;
  }

  .cv-button-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cv-button,
  .parcours-button {
    font-size: 1.1rem;
    padding: 14px 25px;
  }
}
/* ----------------------------------------- */
/*             frise parcours                */
/* ----------------------------------------- */

.timeline-section {
  background-color: #f8f8f8;
  padding: 60px 30px;
  text-align: center;
}

.timeline-title {
  margin-bottom: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 100px;
  font-weight: bold;
  color: #750033;
  position: absolute;
  top: 30px;
  left: 50px;
  z-index: 0;
  opacity: 0.2;
}

.timeline {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 20px 25px;
  width: 280px;
  transition: transform 0.6s ease;
  transform-style: transform 0.3s ease;
}

.timeline-item:hover {
  animation: spin360 0.6s ease-in-out;
}

@keyframes spin360 {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}


.timeline-item:hover {
  transform: translateY(-10px);
}

.timeline-item .icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.timeline-item h3 {
  font-size: 22px;
  color: #960145;
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 16px;
  line-height: 1.6;
}


/* ----------------------------------------- */
/*              SECTION PROJETS              */
/* ----------------------------------------- */
.projets-section h1 {
  font-size: 3rem;
  color: #960145;
  text-align: center;
  margin: 40px 0 30px;
  font-weight: 800;
}

.filtres-categorie {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filtres-categorie a {
  padding: 10px 20px;
  border-radius: 25px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: 0.3s;
}

.filtres-categorie a.active,
.filtres-categorie a:hover {
  background-color: #960145;
  color: white;
  border-color: #960145;
}

.project-container {
  max-width: 800px;
  margin: 0 auto 40px;
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.project-container img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.project-container h2 {
  font-size: 1.6rem;
  color: #750033;
  margin-bottom: 15px;
}

.project-container p.meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.delete-btn {
  background-color: #d32f2f;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.3s;
}

.delete-btn:hover {
  background-color: #b71c1c;
}
/* ----------------------------------------- */
/*              Page contact                 */
/* ----------------------------------------- */

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
}

.contact-container {
  padding: 50px;
  max-width: 900px;
  margin: auto;
  position: relative;
}

.contact-title {
  font-size: 100px;
  font-weight: bold;
  color: #750033;
  position: absolute;
  top: 30px;
  left: 50px;
  z-index: 0;
  opacity: 0.2;
}

.contact-form {
  position: relative;
  z-index: 1;
  margin-top: 120px;
}

.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  border: none;
  border-bottom: 2px solid black;
  background: transparent;
  padding: 10px;
  font-size: 16px;
}

.message-group {
  margin-bottom: 30px;
}

.send-button {
  background-color: #750033;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.send-button:hover {
  background-color: #333;
  transform: scale(1.05);
}

.send-button:active {
  transform: scale(0.95);
}

.send-button .circle {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.send-button:hover .circle {
  background-color: #ffe6f0;
}
.confirmation-message {
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
  color: #960145;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----------------------------------------- */
/*              Page espace concepteur       */
/* ----------------------------------------- */

.admin-page {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f7f8fa;
  color: #333;
}

.admin-page h1 {
  text-align: center;
  margin-top: 40px;
  font-size: 2.5em;
  color: #750033;
}

.admin-page table {
  width: 90%;
  margin: 40px auto;
  border-collapse: collapse;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.admin-page th,
.admin-page td {
  padding: 15px 20px;
  text-align: left;
}

.admin-page th {
  background-color: #750033;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
}

.admin-page tr:nth-child(even) {
  background-color: #f2f2f2;
}

.admin-page tr:hover {
  background-color: #ffe6f0;
}

.admin-page a {
  color: white;
  background-color: #750033;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85em;
  transition: background-color 0.3s ease;
}

.admin-page a:hover {
  background-color: #960145;
}

.admin-page a[onclick] {
  background-color: #a30000;
}

.admin-page a[onclick]:hover {
  background-color: #cc0000;
}

/* ----------------------------------------- */
/*              Page ajout de projet         */
/* ----------------------------------------- */

.contact-form select {
  border: none;
  border-bottom: 2px solid black;
  background: transparent;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 30px;
}

/* ----------------------------------------- */
/*              Page attente inscription     */
/* ----------------------------------------- */
.confirmation-container {
  max-width: 700px;
  margin: 80px auto;
  background-color: #fff0f5;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.confirmation-container h1 {
  color: #750033;
  margin-bottom: 20px;
  font-size: 32px;
}

.confirmation-container p {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}
/* ----------------------------------------- */
/*              blog                         */
/* ----------------------------------------- */
.delete-btn {
  background-color: #e60023;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 10px;
}

.delete-btn:hover {
  background-color: #b3001b;
}

/* Responsive spécifique : formulaire ajout d'article */
@media (max-width: 767px) {
  .contact-container {
    padding: 20px;
  }

  .contact-title {
    font-size: 40px;
    top: 10px;
    left: 10px;
  }

  .contact-form {
    margin-top: 80px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea,
  .contact-form select {
    font-size: 14px;
    padding: 8px;
  }

  .send-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
  }

  .confirmation-message {
    font-size: 14px;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .contact-title {
    font-size: 60px;
    top: 20px;
    left: 30px;
  }

  .form-group input,
  .form-group textarea,
  .contact-form select {
    font-size: 15px;
    padding: 10px;
  }

  .send-button {
    font-size: 17px;
    padding: 14px 30px;
  }
}

/* Responsive spécifique : formulaire ajout de projet */
@media (max-width: 767px) {
  .contact-container {
    padding: 20px;
  }

  .contact-title {
    font-size: 40px;
    top: 10px;
    left: 10px;
  }

  .contact-form {
    margin-top: 80px;
  }

  .form-group {
    width: 100%;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea,
  .contact-form select {
    font-size: 14px;
    padding: 8px;
  }

  .form-group input[type="file"] {
    font-size: 12px;
  }

  .send-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
  }

  .confirmation-message {
    font-size: 14px;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .contact-title {
    font-size: 60px;
    top: 20px;
    left: 30px;
  }

  .form-group input,
  .form-group textarea,
  .contact-form select {
    font-size: 15px;
    padding: 10px;
  }

  .send-button {
    font-size: 17px;
    padding: 14px 30px;
  }
}

/* 📱 Responsive pour article.php */
@media (max-width: 767px) {
  .article-container {
    margin: 20px 10px;
    padding: 15px;
  }

  .article-container h1 {
    font-size: 1.6rem;
  }

  .article-container .meta {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .article-container .contenu {
    font-size: 1rem;
    line-height: 1.6;
  }

  .carousel {
    gap: 8px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .carousel img {
    height: 120px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .commentaires form textarea {
    font-size: 14px;
    padding: 8px;
  }

  .commentaires form button {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }

  .retour-blog {
    display: block;
    text-align: center;
    margin: 0 auto 20px;
  }

  .delete-btn {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .article-container {
    margin: 30px auto;
    padding: 20px;
  }

  .carousel img {
    height: 140px;
  }

  .article-container h1 {
    font-size: 1.9rem;
  }

  .article-container .contenu {
    font-size: 1.05rem;
  }

  .delete-btn {
    padding: 10px 25px;
    font-size: 15px;
  }

  .commentaires form button {
    font-size: 15px;
  }
}

/* 📱 Responsive pour blog.php */
@media (max-width: 767px) {
  .blog-heading {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .add-article-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }

  .carousel-inner {
    display: flex;
    flex-direction: column;
  }

  .carousel-item {
    display: block;
    margin-bottom: 20px;
  }

  .blog-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .blog-card img {
    height: 200px;
  }

  .blog-card h3 {
    font-size: 1.2rem;
  }

  .blog-card p {
    font-size: 0.9rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .blog-heading {
    font-size: 2.5rem;
  }

  .blog-card img {
    height: 220px;
  }

  .blog-card h3 {
    font-size: 1.4rem;
  }

  .blog-card p {
    font-size: 0.95rem;
  }
}

/* 📱 Responsive pour connexion.php */
@media (max-width: 767px) {
  .mainconnexion {
    padding: 20px;
  }

  .login-container {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }

  .login-container h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .login-container input {
    font-size: 14px;
    padding: 10px;
  }

  .login-container form button {
    font-size: 15px;
    padding: 10px;
  }

  .btn-inscription {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    color: #960145;
    text-decoration: none;
  }

  .btn-inscription:hover {
    text-decoration: underline;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .login-container {
    width: 90%;
    padding: 40px;
  }

  .login-container h2 {
    font-size: 1.6rem;
  }

  .login-container input {
    font-size: 15px;
  }

  .login-container form button {
    font-size: 16px;
  }
}

/* 📱 Responsive pour contact.php */
@media (max-width: 767px) {
  .contact-container {
    padding: 20px;
  }

  .contact-title {
    font-size: 40px;
    top: 10px;
    left: 10px;
  }

  .contact-form {
    margin-top: 80px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    width: 100%;
    margin-bottom: 20px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
    padding: 10px;
  }

  .send-button {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
    justify-content: center;
  }

  .send-button .circle {
    display: none;
  }

  .confirmation-message {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .contact-title {
    font-size: 60px;
    top: 20px;
    left: 30px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 15px;
  }

  .send-button {
    font-size: 17px;
    padding: 14px 30px;
  }
}

/* 📱 Responsive pour espace_concepteur.php */
@media (max-width: 767px) {
  .admin-page h1 {
    font-size: 1.6rem;
    margin: 20px 0;
  }

  .admin-page table {
    width: 100%;
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border: none;
  }

  .admin-page table thead {
    display: none;
  }

  .admin-page table tr {
    display: block;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
  }

  .admin-page table td {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: none;
    font-size: 0.85rem;
  }

  .admin-page table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #960145;
    margin-right: 10px;
  }

  .admin-page a {
    display: inline-block;
    margin: 5px 0;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Version intermédiaire tablette */
@media (min-width: 768px) and (max-width: 1023px) {
  .admin-page h1 {
    font-size: 2rem;
  }

  .admin-page table {
    font-size: 0.95rem;
  }

  .admin-page a {
    font-size: 0.85rem;
  }
}

/* 📱 Responsive pour inscription_attente.php */
@media (max-width: 767px) {
  .confirmation-container {
    margin: 40px 15px;
    padding: 25px 15px;
  }

  .confirmation-container h1 {
    font-size: 22px;
  }

  .confirmation-container p {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .confirmation-container {
    margin: 60px 30px;
    padding: 35px 25px;
  }

  .confirmation-container h1 {
    font-size: 28px;
  }

  .confirmation-container p {
    font-size: 17px;
  }
}

/* 📱 Responsive pour inscription.php */
@media (max-width: 767px) {
  .mainconnexion {
    padding: 20px;
  }

  .login-container {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }

  .login-container h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .login-container input,
  .login-container select {
    font-size: 14px;
    padding: 10px;
    margin-bottom: 10px;
  }

  .login-container form button {
    font-size: 15px;
    padding: 10px;
  }

  .btn-connexion {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    color: #960145;
    text-decoration: none;
  }

  .btn-connexion:hover {
    text-decoration: underline;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .login-container {
    width: 90%;
    padding: 40px;
  }

  .login-container h2 {
    font-size: 1.6rem;
  }

  .login-container input,
  .login-container select {
    font-size: 15px;
  }

  .login-container form button {
    font-size: 16px;
  }
}

/* 📱 Responsive pour mesprojets.php */
@media (max-width: 767px) {
  .projets-section h1 {
    font-size: 2rem;
    margin: 30px 0 20px;
  }

  .filtres-categorie {
    flex-direction: column;
    gap: 10px;
    margin: 0 auto 30px;
    padding: 0 10px;
  }

  .filtres-categorie a {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 12px;
  }

  .project-container {
    padding: 15px;
    margin-bottom: 30px;
  }

  .project-container img {
    max-height: 250px;
    object-fit: cover;
  }

  .project-container h2 {
    font-size: 1.4rem;
    margin-top: 10px;
  }

  .project-container p.meta {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 8px 0;
  }

  .delete-btn,
  .edit-btn,
  .commentaire-section button {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    margin-top: 10px;
  }

  .commentaire-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
  }

  .commentaire-section textarea {
    width: 100%;
    font-size: 14px;
    padding: 8px;
  }

  .commentaire-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #960145;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .project-container img {
    max-height: 300px;
  }

  .project-container h2 {
    font-size: 1.6rem;
  }

  .project-container p.meta {
    font-size: 1rem;
  }

  .delete-btn,
  .edit-btn {
    font-size: 15px;
    padding: 10px 20px;
  }

  .filtres-categorie a {
    font-size: 1rem;
    padding: 10px 18px;
  }
}

/* 📱 Responsive pour modifier_projet.php */
@media (max-width: 767px) {
  .contact-container {
    padding: 20px;
  }

  .contact-title {
    font-size: 40px;
    top: 10px;
    left: 10px;
  }

  .contact-form {
    margin-top: 80px;
  }

  .form-group {
    width: 100%;
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
    padding: 10px;
    width: 100%;
  }

  .form-group input[type="file"] {
    font-size: 13px;
  }

  .form-group img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
  }

  .send-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .contact-title {
    font-size: 60px;
    top: 20px;
    left: 30px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 15px;
    padding: 10px;
  }

  .send-button {
    font-size: 17px;
    padding: 14px 30px;
  }
}


/* Force la page à utiliser tout l'écran, même vide */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Le contenu principal prendra l'espace restant */
main {
  flex: 1;
}

/* Footer toujours en bas, pleine largeur */
.site-footer {
  background-color: #ffe5e2;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* Liens & icônes */
.footer-content a {
  color: #960145;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: #960145;
}

.social-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons img.icon {
  width: 24px;
  height: 24px;
  filter: invert(16%) sepia(78%) saturate(5645%) hue-rotate(320deg) brightness(85%) contrast(95%);
}