/* ============================================================
   SECTIONS.CSS — Section-specific styles
   ============================================================ */

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-16);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.hero__title {
  font-size: var(--fs-6xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
  color: var(--clr-text-primary);
}

.hero__title .gradient {
  background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-secondary);
  line-height: var(--lh-snug);
}

.hero__subtitle span {
  color: var(--clr-blue);
}

.hero__subtitle-en {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  letter-spacing: 0.03em;
  margin-top: calc(var(--sp-2) * -1);
}

.hero__desc {
  font-size: var(--fs-base);
  color: var(--clr-text-secondary);
  max-width: 540px;
  line-height: var(--lh-relaxed);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

/* ── PHOTO CARD (hero) ── */
.hero__photo-card {
  position: relative;
  flex-shrink: 0;
}

/* Animated gradient glow border */
.hero__photo-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  background: linear-gradient(
    135deg,
    var(--clr-blue),
    var(--clr-cyan),
    var(--clr-purple),
    var(--clr-blue)
  );
  background-size: 300% 300%;
  animation: gradient-shift 5s ease infinite;
  z-index: 0;
}

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

/* Photo frame — clips the image */
.hero__photo-frame {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 390px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-blue), var(--clr-cyan));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(59, 130, 246, 0.12);
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.hero__photo-card:hover .hero__photo-frame img {
  transform: scale(1.04);
}

/* Fallback initiales */
.hero__photo-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: var(--fw-extrabold);
  color: #fff;
  letter-spacing: -3px;
  pointer-events: none;
}

/* Bottom gradient + disponibilité */
.hero__photo-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px var(--sp-4) var(--sp-4);
  background: linear-gradient(to top, rgba(8, 10, 18, 0.95) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__photo-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px var(--sp-3);
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  color: var(--clr-green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__photo-status-pill .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Floating cert badge — top right */
.hero__cert-badge {
  position: absolute;
  top: -12px;
  right: -16px;
  z-index: 10;
  background: rgba(15, 20, 32, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  color: var(--clr-gold);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245,158,11,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

/* Cert badge — bottom left */
.hero__cert-badge-2 {
  position: absolute;
  bottom: 70px;
  left: -16px;
  z-index: 10;
  background: rgba(15, 20, 32, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  color: var(--clr-blue-light);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(59,130,246,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

.hero__location {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.hero__location::before {
  content: '📍';
}

.hero__mobility {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}

.hero__mobility-tag {
  font-size: var(--fs-xs);
  padding: 3px var(--sp-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-secondary);
}

/* ── ABOUT ── */
#about .about__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--sp-12);
  align-items: start;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.about__intro {
  font-size: var(--fs-lg);
  color: var(--clr-text-primary);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-medium);
}

.about__body {
  font-size: var(--fs-base);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
}

.about__qualities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.quality-tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(59,130,246,0.08);
  color: var(--clr-blue-light);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-full);
}

.about__card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.about__card-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-1);
}

.about__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* ── SKILLS ── */
#skills .skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

/* ── EXPERIENCE ── */
#experience .experience__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 780px;
}

/* ── PROJECTS ── */
#projects .projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
}

/* ── STACK ── */
#stack .stack__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-4);
}

/* ── CERTIFICATIONS ── */
#certifications .certs__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-12);
  align-items: start;
}

.certs__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.edu__card-wrapper {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
}

.edu__card-wrapper h3 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
}

/* ── CONTACT ── */
.contact__channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  max-width: 720px;
  margin: 0 auto;
}

.contact__channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-6);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

.contact__channel-card:hover {
  border-color: var(--clr-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.12);
}

.contact__channel-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.contact__channel-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.contact__channel-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-blue);
}

/* ── CLIENTS RÉFÉRENCES ── */
.clients__block {
  margin-top: var(--sp-12);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--clr-border);
}

.clients__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-5);
}

.clients__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.client-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) var(--sp-5);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-primary);
  line-height: 1.3;
}

.client-badge span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-normal);
  color: var(--clr-text-muted);
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
