/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rowdies', Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(315deg,
    rgba(101, 0, 94, 0.692) 3%,
    rgba(60, 133, 206, 0.752) 38%,
    rgba(48, 238, 225, 0.682) 68%,
    rgba(255, 25, 25, 0.627) 98%);
  animation: gradient 60s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
  min-height: 100vh;
}

@keyframes gradient {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ===== WAVES ===== */
.wave {
  background: rgb(255 255 255 / 25%);
  border-radius: 1000% 1000% 0 0;
  position: fixed;
  width: 200%;
  height: 12em;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
  bottom: 0;
  left: 0;
  z-index: -1;
}
.wave:nth-of-type(2) {
  bottom: -1.25em;
  animation: wave 18s linear reverse infinite;
  opacity: 0.8;
}
.wave:nth-of-type(3) {
  bottom: -2.5em;
  animation: wave 20s -1s reverse infinite;
  opacity: 0.9;
}
@keyframes wave {
  2%   { transform: translateX(1); }
  25%  { transform: translateX(-25%); }
  50%  { transform: translateX(-50%); }
  75%  { transform: translateX(-25%); }
  100% { transform: translateX(1); }
}

/* ===== BANNER ===== */
.banner {
  width: 100%;
  background: #222b45;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.banner-title {
  color: #fff;
  margin: 0 0 12px 0;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2em;
  font-style: italic;
  letter-spacing: 2px;
}
.banner-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.banner-buttons a { text-decoration: none; }

/* ===== BUTTONS ===== */
button {
  align-items: center;
  appearance: none;
  background-color: #FCFCFD;
  border-radius: 4px;
  border-width: 0;
  box-shadow: rgba(45,35,66,0.4) 0 2px 4px, rgba(45,35,66,0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395A;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono", monospace;
  height: 48px;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow, transform;
  font-size: 18px;
}
button:focus {
  box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45,35,66,0.4) 0 2px 4px, rgba(45,35,66,0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}
button:hover {
  box-shadow: rgba(45,35,66,0.4) 0 4px 8px, rgba(45,35,66,0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
}
button:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}

/* ===== TYPOGRAPHY ===== */
h2 {
  font-family: 'Orbitron', Arial, sans-serif;
  color: #222b45;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 4px 16px rgba(0,0,0,0.18);
  font-size: 1.6em;
  margin: 36px 0 12px 0;
  letter-spacing: 1px;
}
p {
  color: #222b45;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 2px 15px 8px rgba(0,0,0,0.25);
  line-height: 1.7;
}

/* ===== PAGE WRAPPER ===== */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 40px 20px;
  text-align: center;
}

/* ===== CARDS ===== */
.card {
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(34,43,69,0.18), 0 2px 8px rgba(0,0,0,0.08);
  padding: 28px 32px;
  margin: 20px auto;
  max-width: 700px;
  text-align: left;
  border: 1.5px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 16px 48px rgba(34,43,69,0.22), 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ===== CV DOWNLOAD BOX ===== */
.cv-card {
  background: rgba(255,255,255,0.88);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(34,43,69,0.2), 0 2px 8px rgba(0,0,0,0.08);
  padding: 36px 40px;
  margin: 40px auto;
  max-width: 460px;
  text-align: center;
  border: 2px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(34,43,69,0.25);
}
.cv-card .cv-icon {
  font-size: 3em;
  margin-bottom: 12px;
  display: block;
}
.cv-card-title {
  font-family: 'Orbitron', sans-serif;
  color: #222b45;
  font-size: 1.2em;
  margin-bottom: 10px;
  text-shadow: none;
}
.cv-card .cv-desc {
  font-size: 1em;
  margin-bottom: 22px;
  color: #555;
  text-shadow: none;
}
.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #222b45;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9em;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(34,43,69,0.3);
}
.cv-download-btn:hover {
  background: #3a4e80;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,43,69,0.4);
  color: #fff;
}

/* ===== CONTACT FOOTER ===== */
.contact-footer {
  background: #222b45;
  color: #fff;
  padding: 40px 20px 28px 20px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  position: relative;
  z-index: 10;
}
.contact-footer h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3em;
  font-style: italic;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #fff;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Rowdies', sans-serif;
  font-size: 0.95em;
  transition: background 0.2s, transform 0.15s;
}
.contact-links a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: #fff;
}
.contact-icon { font-size: 1.2em; }
.footer-credit {
  font-size: 0.78em;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  font-family: monospace;
  letter-spacing: 1px;
}

/* ===== VEILLE TECHNOLOGIQUE ===== */
.veille-intro {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 28px 34px;
  margin: 24px auto;
  max-width: 820px;
  text-align: left;
  box-shadow: 0 6px 24px rgba(34,43,69,0.15);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.veille-intro p {
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
  text-shadow: none;
}

.timeline {
  max-width: 820px;
  margin: 10px auto 30px auto;
  position: relative;
  padding-left: 44px;
  text-align: left;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #222b45, #3a8fd4, #48ede1);
  border-radius: 3px;
}
.timeline-item {
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(34,43,69,0.12);
  border: 1.5px solid rgba(255,255,255,0.6);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #222b45;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #3a8fd4;
}
.timeline-date {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82em;
  color: #3a8fd4;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.timeline-item h4 {
  font-family: 'Orbitron', sans-serif;
  color: #222b45;
  font-size: 0.95em;
  margin-bottom: 7px;
}
.timeline-item p {
  font-size: 0.93em;
  color: #444;
  text-shadow: none;
  line-height: 1.65;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 16px auto 30px auto;
}
.tool-card {
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 4px 16px rgba(34,43,69,0.12);
  border: 1.5px solid rgba(255,255,255,0.6);
  text-align: center;
  transition: transform 0.2s ease;
}
.tool-card:hover { transform: translateY(-3px); }
.tool-card .tool-emoji { font-size: 2em; margin-bottom: 8px; display: block; }
.tool-card h4 {
  font-family: 'Orbitron', sans-serif;
  color: #222b45;
  font-size: 0.9em;
  margin-bottom: 8px;
}
.tool-card p { font-size: 0.88em; color: #555; text-shadow: none; line-height: 1.5; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 16px auto 30px auto;
}
.impact-card {
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 4px 16px rgba(34,43,69,0.12);
  border: 1.5px solid rgba(255,255,255,0.6);
  text-align: left;
}
.impact-card h4 {
  font-family: 'Orbitron', sans-serif;
  color: #222b45;
  font-size: 0.85em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.impact-card p { font-size: 0.9em; color: #444; text-shadow: none; line-height: 1.6; }

.sources-list {
  max-width: 820px;
  margin: 16px auto 30px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.source-item {
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 3px 12px rgba(34,43,69,0.1);
  border-left: 4px solid #3a8fd4;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.source-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05em;
  color: #3a8fd4;
  font-weight: 900;
  min-width: 28px;
}
.source-info h4 {
  font-family: 'Rowdies', sans-serif;
  color: #222b45;
  font-size: 0.95em;
  margin-bottom: 4px;
  text-shadow: none;
}
.source-info p {
  font-size: 0.85em;
  color: #666;
  text-shadow: none;
  margin: 0;
  line-height: 1.4;
}
.source-info a { color: #3a8fd4; font-size: 0.82em; word-break: break-all; }

/* ===== PERSONAL PROJECTS ===== */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.82);
  border-radius: 10px;
  padding: 14px 24px;
  margin: 8px;
  font-size: 1.05em;
  font-family: 'Rowdies', sans-serif;
  color: #222b45;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(34,43,69,0.15);
  border: 1.5px solid rgba(255,255,255,0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,43,69,0.2);
  color: #3a8fd4;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(34,43,69,0.2), transparent);
  margin: 28px auto;
  max-width: 600px;
}

/* ===== STAT BADGE ===== */
.stat-badge {
  display: inline-block;
  background: #222b45;
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 3px;
}
