/* --- HEADER --- */
.navbar {
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
}
.navbar-brand {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}
.nav-link {
  color: #333 !important;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #0074D9;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: #0074D9 !important;
}
.btn-outline-primary {
  border-radius: 30px;
  padding: 5px 15px;
}
.btn-outline-primary:hover {
  background-color: #0074D9;
  color: #fff;
}


/* HERO Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #001f3f, #0074D9);
  color: #fff;
  overflow: hidden;
}
.hero-section .text-info {
  color: #00d4ff !important;
}
.hero-section .overlay {
  animation: fadeBg 15s ease-in-out infinite alternate;
}
@keyframes fadeBg {
  from { background: rgba(0,0,0,0.3); }
  to { background: rgba(0,0,0,0.6); }
}

/* Animate.css (optional but beautiful) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

.btn-lg {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.75rem 2rem;
}

/* Smooth transition for everything */
* {
  transition: all 0.3s ease-in-out;
}


/* --- A PROPOS --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 2rem 0;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #0074D9;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}
.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
}
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #0074D9;
  border: 4px solid #fff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item.right::after { left: -10px; }
.timeline-item .content {
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 10px;
}
@media screen and (max-width: 768px) {
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; }
  .timeline-item.right { left: 0; }
  .timeline-item::after, .timeline-item.right::after { left: 15px; }
}

/* Bootstrap icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css");


/* PAGE CONTACT – BLEU ÉLÉGANT */
.text-primary {
  color: #0074D9 !important;
}

.btn-primary {
  background-color: #0074D9;
  border-color: #0074D9;
}
.btn-primary:hover {
  background-color: #005fa3;
  border-color: #005fa3;
}

.card i {
  transition: transform 0.3s ease;
}
.card:hover i {
  transform: scale(1.1);
}
.card {
  transition: box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 8px 20px rgba(0,116,217,0.2);
}

.contact-form {
  max-width: 900px;
  margin: auto;
}


/* --- PAGE CV --- */
.cv-container {
  border-radius: 10px;
  overflow: hidden;
}
.cv-action-bar {
  background: linear-gradient(90deg, #0074D9, #005fa3);
  font-size: 0.95rem;
}
.cv-action-bar .btn {
  border-radius: 30px;
  font-weight: 500;
  padding: 5px 15px;
}
.cv-action-bar .btn i {
  vertical-align: middle;
}
.cv-viewer {
  background: #f8f9fa;
  height: 900px;
}
.cv-viewer object {
  border: none;
  width: 100%;
  height: 100%;
}

/* PROFILE SIDEBAR */
.profile-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,116,217,0.15);
}
.profile-card img {
  transition: transform 0.3s ease;
}
.profile-card:hover img {
  transform: scale(1.05);
}
.profile-card a:hover {
  color: #0074D9 !important;
}

/* Print mode */
@media print {
  nav, footer, .profile-card, .cv-action-bar, .lead, .text-muted { display: none !important; }
  .cv-viewer { border: none; height: 100vh; }
}



/* Simple custom styles */
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }
.navbar-brand img { max-height:40px; }
footer { border-top: 1px solid #e9ecef; }


/* --- PORTFOLIO PAGE --- */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-scale:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,116,217,0.15);
}
.card-title {
  color: #0074D9;
}
.badge {
  border-radius: 20px;
  font-size: 0.8rem;
}
ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* --- GRID IMAGES FIXED SIZE --- */
.card-img-wrapper {
  width: 100%;
  height: 220px; /* même hauteur pour toutes les images */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.card-img-wrapper img.fixed-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recadre sans déformer */
  transition: transform 0.4s ease;
}

/* Animation hover */
.card:hover .fixed-img {
  transform: scale(1.05);
}

/* Uniformisation des cartes */
.card {
  border-radius: 10px;
  overflow: hidden;
}
.card-body {
  min-height: 250px;
}

/* --- GALLERY --- */
.gallery-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-box:hover img {
  transform: scale(1.05);
}

.gallery-box .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 116, 217, 0.85);
  color: #fff;
  text-align: center;
  padding: 8px 5px;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-box:hover .overlay {
  transform: translateY(0);
}

/* FILTER BUTTONS */
.filter-btn.active {
  background-color: #0074D9;
  color: #fff;
}

.filter-btn {
  border-radius: 25px;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #0074D9;
  color: #fff;
}

/* Lightbox backdrop */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}



/* --- FOOTER --- */
.footer-section {
  background: linear-gradient(135deg, #001f3f, #005fa3);
  color: #fff;
}
.footer-section h5 {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}
.footer-section a {
  color: #dbe9ff;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-section a:hover {
  color: #fff;
  transform: translateY(-2px);
}
.footer-section hr {
  margin: 1rem 0;
  border-color: rgba(255,255,255,0.2);
}
.footer-section .text-info {
  color: #74c0ff !important;
}
.footer-section .text-info:hover {
  color: #fff !important;
}
