/*
 * Lien vers mon github   : https://github.com/gshimatu
 * Auteur                 : Gauthier Shimatu (Le shimatologue)
 * Nom du fichier         : styles.css
 * Date de création       : 2025-05-25 01:46:01
 * Description            : Styles pour le portfolio personnel
 * Version                : 1.0.0
 */

/*******************************************************************************************
 * TABLE DES MATIÈRES
 * 
 * 1. Variables globales
 * 2. Styles généraux
 * 3. Navbar
 * 4. Header
 * 5. Sections générales
 * 6. À propos
 * 7. Compétences
 * 8. Projets
 * 9. Timeline (Parcours scolaire)
 * 10. Services
 * 11. Contact
 * 12. Footer
 * 13. Animations globales
 * 14. Swiper (carrousel)
 * 15. Responsive
 * 16. Apparition au scroll
 * 17. Scrollbar
 * 18. Mode Sombre / Clair
 * 19. Collaborateurs
 *******************************************************************************************/


/************************************ 1. Variables globales ************************************/
/* Couleurs principales */

:root {
  --main-color: #03333c;
  --accent-color: #3fd3ca;
  --text-light: #f8f9fa;
  --text-dark: #03333c;
}


/************************************ 2. Styles généraux ************************************/
/* Police, couleurs et transitions globales */

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--main-color);
  color: var(--text-light);
  transition: background 0.5s;
}


/************************************ 3. Navbar ************************************/
/* Apparence de la barre de navigation et liens */

.navbar {
  background: var(--main-color) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 10px #0002;
  transition: background 0.5s;
}

.navbar .navbar-brand {
  color: var(--accent-color) !important;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.5rem;
}

.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin-left: 10px;
  transition: color 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent-color) !important;
}


/************************************ 4. Header ************************************/
/* Section d'accueil, image de profil, titre principal */

.header {
  min-height: 100vh;
  background: linear-gradient(120deg, var(--main-color) 60%, var(--accent-color) 100%);
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.2s;
}

.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
  border: 6px solid var(--accent-color);
  box-shadow: 0 0 30px #0002;
  margin-bottom: 25px;
  transition: transform 0.4s;
  animation: float 3s ease-in-out infinite;
}

.header h1 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.header .lead {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.header .btn {
  background: var(--accent-color);
  color: var(--main-color);
  border: none;
  font-weight: 600;
  border-radius: 30px;
  padding: 12px 36px;
  box-shadow: 0 4px 20px #3fd3ca44;
  transition: background 0.3s, color 0.3s;
}

.header .btn:hover {
  background: #fff;
  color: var(--main-color);
}

/* .scroll-down-icon {
  font-size: 2.5rem; 
  color: var(--accent-color);
  animation: bounceDown 2s infinite; 
} */


/************************************ 5. Sections générales ************************************/
/* Apparence générale des sections, titres */

.section {
  padding: 70px 0 60px 0;
  background: var(--main-color);
  color: var(--text-light);
  transition: background 0.5s;
  overflow: hidden;
}

.section.bg-light {
  background: #fff !important;
  color: var(--main-color) !important;
}

.section h2 {
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--accent-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  animation: fadeInRight 1s;
}


/************************************ 6. À propos ************************************/
/* Image et texte de la section à propos */

#about .img-fluid {
  border-radius: 40% 60% 60% 40%/60% 40% 60% 40%;
  box-shadow: 0 0 30px #3fd3ca55;
  width: 260px;
  max-width: 90%;
  animation: fadeInRight 1.2s;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
}


/************************************ 7. Compétences ************************************/
/* Cartes de compétences, animation, icônes */

.skill-card {
  background: #fff;
  color: var(--main-color);
  padding: 28px 18px;
  border-radius: 18px;
  box-shadow: 0 4px 24px #03333c22;
  margin-bottom: 25px;
  transition: transform .3s, box-shadow .3s, color .3s;
  animation: fadeInUp 1s;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #3fd3ca33;
  color: var(--accent-color);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  transition: color 0.3s;
  animation: bounce 2s infinite;
}

.skill-card h5 {
  font-weight: 600;
  margin-top: 10px;
}


/************************************ 8. Projets ************************************/
/* Cartes projets, carrousel Swiper, badges */

.project-card {
  background: #fff;
  color: var(--main-color);
  padding: 18px 12px;
  border-radius: 16px;
  box-shadow: 0 4px 24px #03333c22;
  transition: transform .3s, box-shadow .3s;
  animation: fadeInUp 1s;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #3fd3ca33;
}

.project-card img {
  border-radius: 12px;
  margin-bottom: 12px;
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: filter 0.3s;
}

.project-card:hover img {
  filter: brightness(0.95) blur(1px);
}

.project-card h5 {
  color: var(--main-color);
  font-weight: 700;
}

.badge.bg-info {
  background: var(--accent-color) !important;
  color: var(--main-color) !important;
  font-weight: 600;
}


/************************************ 9. Timeline (Parcours scolaire) ************************************/
/* Timeline verticale, pastilles, animation */

.timeline {
  position: relative;
  border-left: 4px solid var(--accent-color);
  margin: 0 auto;
  padding-left: 40px;
  max-width: 700px;
  list-style: none;
  animation: fadeInUp 1s;
}

.timeline li {
  position: relative;
  margin-bottom: 38px;
  padding-left: 12px;
  font-size: 1.13rem;
  color: var(--main-color);
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px #3fd3ca22;
  transition: box-shadow 0.3s, background 0.3s;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.timeline li:hover {
  background: #e6fcfa;
  box-shadow: 0 6px 24px #3fd3ca33;
}

.timeline li:before {
  content: "";
  position: absolute;
  left: -46px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 0 4px #3fd3ca22;
  transition: border-color 0.3s;
}

.timeline li strong {
  color: var(--accent-color);
  font-weight: 700;
  margin-right: 8px;
  font-size: 1.08em;
}


/************************************ 10. Services ************************************/
/* Cartes de services, icônes animées */

.service-card {
  background: #fff;
  color: var(--main-color);
  padding: 28px 18px;
  border-radius: 18px;
  box-shadow: 0 4px 24px #03333c22;
  margin-bottom: 25px;
  transition: transform .3s, box-shadow .3s;
  animation: fadeInUp 1s;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #3fd3ca33;
  color: var(--accent-color);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  transition: color 0.3s;
  animation: bounce 2s infinite;
}

.service-card h5 {
  font-weight: 600;
  margin-top: 10px;
}


/************************************ 11. Contact ************************************/
/* Formulaire de contact, icônes animées, bouton animé */

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px #03333c22;
  transition: box-shadow 0.3s, transform 0.3s;
  animation: fadeInUp 1s;
}

.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px #3fd3ca33;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 8px;
  border: 1px solid #ddd;
  color: var(--main-color);
  background: #fff;
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-form button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 36px;
  font-weight: 600;
  box-shadow: 0 4px 20px #3fd3ca44;
  transition: background 0.3s, color 0.3s;
}

.contact-form button:hover {
  background: var(--main-color);
  color: #fff;
}

/* Icônes dans les champs du formulaire */
.contact-form .contact-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 1.15rem;
  pointer-events: none;
  transition: color 0.3s;
  animation: bounce 2s infinite;
  opacity: 0.85;
}

.contact-form .form-control:focus + .contact-icon,
.contact-form .form-control:focus ~ .contact-icon,
.contact-form select:focus ~ .contact-icon,
.contact-form textarea:focus ~ .contact-icon {
  color: var(--main-color);
  opacity: 1;
}

/* Bouton animé */
.btn-accent {
  background: var(--accent-color);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  padding: 12px 36px;
  box-shadow: 0 4px 20px #3fd3ca44;
  border: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--main-color);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}
.btn-animated i {
  animation: send-plane 1.8s infinite;
}
@keyframes send-plane {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px);}
}

/* Amélioration générale du formulaire */
.contact-form .form-control, .contact-form select, .contact-form textarea {
  padding-left: 2.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form .form-control:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px #3fd3ca33;
  background: #e6fcfa;
}


/************************************ 12. Footer ************************************/
/* Apparence du pied de page, liens sociaux */

.footer {
  background: #23272b; /* gris très foncé */
  color: #e2e2e2;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 4px solid var(--accent-color);
  animation: fadeIn 1.5s;
}

.footer .social-links a {
  color: var(--accent-color);
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color .2s;
}

.footer .social-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-color);
}


/************************************ 13. Animations globales ************************************/
/* Apparition, bounce, fadeInUp, fadeInRight, float */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}


/************************************ 14. Swiper (carrousel) ************************************/
/* Styles du carrousel Swiper, boutons, pagination */

.swiper-container {
  width: 100%;
  padding-bottom: 40px;
  overflow: hidden !important;
  margin: 0 auto;
  position: relative;
  overflow: visible !important;
  padding-bottom: 60px;
}

.swiper-slide {
  max-width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}

.project-fixed {
  width: 100%;
  max-width: 400px;
  min-height: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.project-fixed img {
  height: 170px;
  object-fit: cover;
}

.project-fixed h5 {
  min-height: 48px;
}

.project-fixed p {
  flex: 1;
}

.project-fixed .btn {
  align-self: flex-start;
}

/* Pagination (boules sous les cards) */
.project-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: -10px;
}

.project-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.project-dot.active {
  opacity: 1;
  transform: scale(1.25);
  box-shadow: 0 0 8px var(--accent-color);
  border: 2px solid var(--accent-color);
}

.project-dot:hover {
  opacity: 0.7;
  transform: scale(1.1);
  border: 2px solid #fff;
}

/* Boutons Swiper */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  color: var(--accent-color) !important;
  background: #fff !important;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 12px #03333c22;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.swiper-button-next {
  right: 10px !important;
}

.swiper-button-prev {
  left: 10px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 2rem;
  font-weight: bold;
}


/************************************ 15. Responsive ************************************/
/* Adaptation mobile et tablette */

@media (min-width: 992px) {
  .swiper-container {
    max-width: 1200px;
  }
  .swiper-slide {
    max-width: 600px;
  }
  .project-fixed {
    max-width: 600px;
    min-width: 0;
  }
}

@media (max-width: 991px) {
  .swiper-slide,
  .project-fixed {
    max-width: 98vw;
    min-width: 0;
  }
  .swiper-button-next {
    right: 2px !important;
  }
  .swiper-button-prev {
    left: 2px !important;
  }
  .header {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .profile-img {
    width: 120px;
    height: 120px;
  }
  .section {
    padding: 40px 0 30px 0;
  }
}

@media (max-width: 767px) {
  .timeline {
    padding-left: 18px;
    max-width: 98vw;
  }
  .timeline li {
    font-size: 1rem;
    padding-left: 8px;
  }
  .timeline li:before {
    left: -30px;
    width: 16px;
    height: 16px;
  }
  #projects .container {
    max-width: 98vw;
    padding: 0 2vw;
  }
  .swiper-slide {
    max-width: 90vw;
  }
  .project-fixed {
    max-width: 95vw;
  }
}

/* Utilitaires */
.text-accent {
  color: var(--accent-color) !important;
}

#current-section-marker {
  font-size: 1.1rem;
  letter-spacing: 1px;
  min-width: 90px;
  display: inline-block;
  vertical-align: middle;
  transition: color 0.3s;
}

#projects .container {
  position: relative;
  overflow: hidden;
  max-width: 950px;
}

/************************************ Apparition au scroll ************************************/
/* Les éléments apparaissent avec une transition d'opacité et de translation lors du défilement */

.section,
.skill-card,
.project-card,
.service-card {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1), transform 0.7s cubic-bezier(.4, 0, .2, 1);
}

.section.scrolled,
.skill-card.scrolled,
.project-card.scrolled,
.service-card.scrolled {
  opacity: 1;
  transform: none;
}

/************************************ Scrollbar ************************************/
/* Personnalisation de la barre de défilement pour une intégration moderne */

::-webkit-scrollbar {
  width: 10px;
  background: #222c31;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 8px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: #2bb3a8;
}

::-webkit-scrollbar-track {
  background: #0e232a;
  border-radius: 8px;
}

/* Pour Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) #0e232a;
}

/************************************ Mode Sombre / Clair ************************************/
/* Styles pour le mode clair */

body.light-mode {
  background: #f8f9fa;
  color: #03333c;
}

body.light-mode,
body.light-mode .section,
body.light-mode .section.bg-light,
body.light-mode .header,
body.light-mode .footer,
body.light-mode .project-card,
body.light-mode .skill-card,
body.light-mode .service-card,
body.light-mode .contact-form,
body.light-mode #about p,
body.light-mode .lead,
body.light-mode .timeline li,
body.light-mode .contact-form input,
body.light-mode .contact-form textarea,
body.light-mode .contact-form select {
  color: #03333c !important;
  background: #fff !important;
}

body.light-mode .section.bg-light {
  background: #f8f9fa !important;
}

body.light-mode .navbar .nav-link,
body.light-mode .navbar .navbar-brand {
  color: #03333c !important;
}

body.light-mode .navbar .nav-link.active,
body.light-mode .navbar .nav-link:hover {
  color: #3fd3ca !important;
}

body.light-mode .btn-accent,
body.light-mode .header .btn {
  background: #3fd3ca;
  color: #fff;
}

body.light-mode .btn-accent:hover,
body.light-mode .header .btn:hover {
  background: #03333c;
  color: #fff;
}

/* Ajustement couleur logo et navbar en mode clair */

body.light-mode .navbar {
  background: #fff !important;
  box-shadow: 0 2px 10px #0001;
}

body.light-mode .navbar .navbar-brand {
  color: #03333c !important;
  text-shadow: 0 1px 0 #fff, 0 0 4px #3fd3ca22;
}

/* Effet de shadow sur le bouton du mode sombre/clair */
#theme-toggle {
  box-shadow: 0 2px 12px #03333c22, 0 1.5px 6px #3fd3ca22;
  transition: box-shadow 0.3s, background 0.3s;
}

#theme-toggle:hover, #theme-toggle:focus {
  box-shadow: 0 4px 18px #3fd3ca44, 0 2px 8px #3fd3ca33;
  background: #e6fcfa !important;
}

/* Icône du bouton mode sombre/clair en couleur secondaire */
#theme-toggle i {
  color: var(--accent-color) !important;
  transition: color 0.3s;
}

/* En mode clair, soleil en couleur secondaire, lune aussi */
body.light-mode #theme-toggle i.fa-sun,
body.light-mode #theme-toggle i.fa-moon {
  color: var(--accent-color) !important;
}


/************************************ 19. Collaborateurs ************************************/

#collaborators .project-card.project-fixed {
  margin: 0 auto;
  min-height: 420px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

