/* Section Descargar CV */
.cv-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  color: #fff;
}

.cv-section::before,
.cv-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .4;
  pointer-events: none;
  animation: blobMove 14s ease-in-out infinite alternate;
}

.cv-section::before { width: 300px; height: 300px; background: #f093fb; top: -100px; left: -80px; }
.cv-section::after { width: 260px; height: 260px; background: #4facfe; bottom: -100px; right: -60px; animation-delay: -6s; }

.cv-section .container { position: relative; z-index: 2; }

.cv-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.cv-icon {
  flex: 0 0 auto;
  width: 110px;
  height: 140px;
  border-radius: 14px;
  background: #fff;
  color: #dc2626;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: cvFloat 4s ease-in-out infinite;
}

.cv-icon .bi { font-size: 3.2rem; }

@keyframes cvFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.btn-cv {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: .85rem 2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6600, #f093fb);
  box-shadow: 0 0 0 0 rgba(255, 102, 0, .6);
  animation: cvPulse 2s infinite;
  transition: transform .3s var(--ease-smooth);
}

.btn-cv:hover { color: #fff; transform: translateY(-3px) scale(1.05); }

.btn-cv::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  animation: cvShine 3s infinite;
}

.btn-cv .bi { display: inline-block; animation: cvArrow 1.2s ease-in-out infinite; }

@keyframes cvPulse {
  70% { box-shadow: 0 0 0 18px rgba(255, 102, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

@keyframes cvShine {
  0% { left: -75%; }
  60%, 100% { left: 130%; }
}

@keyframes cvArrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@media (max-width: 767px) {
  .cv-card { flex-direction: column; text-align: center; }
}

/* ===== CV v2 (orange) ===== */
section[id] { scroll-margin-top: 70px; }

.nav-sections .nav-link { font-size: .92rem; padding: .4rem .6rem; position: relative; white-space: nowrap; }
.nav-sections .nav-link::after {
  content: '';
  position: absolute;
  left: .6rem; right: .6rem; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6600, #ffb347);
  transform: scaleX(0);
  transition: transform .3s var(--ease-smooth);
}
.nav-sections .nav-link:hover::after,
.nav-sections .nav-link.active::after { transform: scaleX(1); }
.nav-sections .nav-link.active { color: #ff6600 !important; }

.cv-section {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%) !important;
  color: #333;
}
.cv-section::before { background: #ff9a3c; opacity: .35; }
.cv-section::after { background: #ffd8a8; opacity: .5; }

.cv-box {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 25px 60px rgba(255, 102, 0, .18);
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #ff6600, #ffb347, #764ba2);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.cv-doc {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ffd8a8;
  box-shadow: 0 18px 35px rgba(255, 102, 0, .3);
  padding: 14px;
  animation: cvFloat 4s ease-in-out infinite;
  overflow: hidden;
}
.cv-doc .cv-doc-head { height: 36px; border-radius: 6px; background: linear-gradient(135deg, #ff6600, #ffb347); margin-bottom: 12px; }
.cv-doc .cv-line { height: 7px; border-radius: 4px; background: #f1e3d3; margin-bottom: 9px; }
.cv-doc .cv-line.s { width: 60%; }
.cv-doc .cv-badge {
  position: absolute; right: 8px; bottom: 8px;
  background: #dc2626; color: #fff; font-weight: 800; font-size: .75rem;
  padding: 2px 8px; border-radius: 6px;
}
.cv-doc::after {
  content: '';
  position: absolute; left: 0; right: 0; top: -30%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(255, 102, 0, .25), transparent);
  animation: cvScan 3s linear infinite;
}
@keyframes cvScan { to { top: 110%; } }

.cv-title { color: #1f2937; font-weight: 800; }
.cv-title span { color: #ff6600; }
.cv-text { color: #6b7280; }

.btn-cv-preview {
  border: 2px solid #ff6600;
  color: #ff6600;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: .75rem 1.6rem;
  transition: all .3s var(--ease-smooth);
}
.btn-cv-preview:hover { background: #ff6600; color: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(255, 102, 0, .35); }

.cv-section .btn-cv { padding: .8rem 1.8rem; }

@media (max-width: 767px) {
  .cv-box { flex-direction: column; text-align: center; padding: 1.75rem; }
}

/* Boutons flottants */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease-smooth), opacity .3s ease;
}

.fab:hover { color: #fff; transform: translateY(-4px) scale(1.1); }

.fab-top {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 20px rgba(29, 78, 216, .45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.fab-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.fab-top.visible:hover { transform: translateY(-4px) scale(1.1); }

.fab-whatsapp {
  width: 58px;
  height: 58px;
  background: #25d366;
  font-size: 1.8rem;
  animation: waPulse 2.2s infinite;
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.contact-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    color: #fff;
    padding: 0.9rem 1.1rem;
    backdrop-filter: blur(6px);
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.contact-input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-send {
    background: #fff;
    color: #764ba2;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-send:hover:not(:disabled) {
    color: #667eea;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-send:disabled {
    opacity: 0.7;
}

.contact-form {
    margin-bottom: 2.5rem;
}

.contact-form .btn-send {
    margin-top: 0.75rem;
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    border-left: 5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: contactStatusIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-status.d-none {
    display: none !important;
}

.contact-status i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-status.success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.contact-status.success i {
    animation: contactStatusPop 0.5s ease 0.15s both;
}

.contact-status.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.contact-status.error i {
    animation: contactStatusShake 0.5s ease 0.15s both;
}

.contact-status.hiding {
    animation: contactStatusOut 0.35s ease forwards;
}

@keyframes contactStatusIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes contactStatusOut {
    to { opacity: 0; transform: translateY(-8px); }
}

@keyframes contactStatusPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes contactStatusShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-status, .contact-status i { animation: none !important; }
}
