/* Palette sombre, accents chauds. Responsive + typographie propre */
:root{
--bg:#0f0f10;
--card:#111214cc;
--muted:#bfc3c6;
--accent:#d9a85b; /* warm gold */
--glass: rgba(255,255,255,0.04);
--max-width:1100px;
}
*{
box-sizing:border-box;
}
html,body{
height:100%
}
body{
  margin:0; font-family:Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(30,30,30,0.6), transparent), linear-gradient(180deg,#070707,#0e0e10);
  color:#e9e9ea; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; padding:40px 20px;
}
.site-nav{background:transparent; position:sticky; top:0; z-index:40; padding-top:12px}
.site-nav .navbar-brand{font-weight:700; color:var(--accent)}
.site-nav .nav-link{color:rgba(233,233,234,0.75)}
.site-nav .nav-link:hover{color:var(--accent)}
.hero{max-width:var(--max-width); margin:0 auto}
.card{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:28px;
  align-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.15));
  padding:28px;
  -o-border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.03);
  -webkit-border-radius:14px;
  -moz-border-radius:14px;
  -ms-border-radius:14px;
  border-radius:14px;
}

.profile{display:flex; justify-content:center}
.profile{position:relative}
.profile > *{position:relative; z-index:1}

/* subtle halo / pulse around profile */
.profile::before{
  content:"";
  position:absolute;
  left:50%; top:50%;
  width:calc(100% + 48px);
  height:calc(100% + 48px);
  transform:translate(-50%,-50%) scale(1);
  border-radius:18px;
  background: radial-gradient(circle at center, rgba(217,168,91,0.06) 0%, rgba(217,168,91,0.03) 30%, transparent 55%);
  pointer-events:none;
  z-index:0;
  transition:opacity .28s ease, transform .36s ease;
  animation: pulseRing 4s ease-in-out infinite;
}
.profile:hover::before{ animation-duration:2.2s; opacity:1; transform:translate(-50%,-50%) scale(1.02)}

@keyframes pulseRing{
  0%{ transform:translate(-50%,-50%) scale(0.98); opacity:0.6 ; -webkit-transform:translate(-50%,-50%) scale(0.98); -moz-transform:translate(-50%,-50%) scale(0.98); -ms-transform:translate(-50%,-50%) scale(0.98); -o-transform:translate(-50%,-50%) scale(0.98); }
  50%{ transform:translate(-50%,-50%) scale(1.03); opacity:0.28 ; -webkit-transform:translate(-50%,-50%) scale(1.03); -moz-transform:translate(-50%,-50%) scale(1.03); -ms-transform:translate(-50%,-50%) scale(1.03); -o-transform:translate(-50%,-50%) scale(1.03); }
  100%{ transform:translate(-50%,-50%) scale(0.98); opacity:0.6 }
}

/* reduce effect on very small screens for performance */
@media(max-width:420px){
  .profile::before{ display:none }
}
.photo{width:280px; height:420px; object-fit:cover; border-radius:10px; box-shadow:0 12px 30px rgba(0,0,0,0.6); border:1px solid rgba(255,255,255,0.04)}
.info{padding:8px 4px}
.thumbs{display:flex; gap:8px; justify-content:center; margin-top:12px}
.thumb{background:transparent; border:1px solid rgba(255,255,255,0.03); padding:4px; border-radius:8px; cursor:pointer}
.thumb img{width:64px; height:96px; object-fit:cover; display:block; border-radius:6px}
.thumb[aria-pressed="true"]{outline:3px solid rgba(217,168,91,0.22)}

/* Carousel */
.carousel{position:relative; width:100%; max-width:320px}
.slides{overflow:hidden; border-radius:10px}
.slides .slide{min-height:420px; display:flex; align-items:center; justify-content:center}
.slides .slide img.photo{width:100%; height:420px; object-fit:cover; display:block; transition:opacity .36s ease, transform .36s ease}
.slides{position:relative}
.slides .slide{position:absolute; inset:0; display:block; opacity:0; transform:translateY(6px); transition:opacity .36s ease, transform .36s ease}
.slides .slide.hidden{pointer-events:none}
.slides .slide.active{opacity:1; transform:none; position:relative}
.carousel-btn{position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.45); color:#fff; border:none; width:42px; height:42px; border-radius:999px; display:flex; align-items:center; justify-content:center; cursor:pointer}
.carousel-btn.prev{left:8px}
.carousel-btn.next{right:8px}
.dots{display:flex; gap:8px; justify-content:center; margin-top:10px}
.dot{width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,0.12); border:none; cursor:pointer}
.dot[aria-selected="true"]{background:var(--accent); box-shadow:0 4px 12px rgba(217,168,91,0.12)}

/* make slides responsive */
@media(max-width:880px){
  .carousel{max-width:420px; margin:0 auto}
  .slides .slide img.photo{height:420px}
}
.name{font-family: 'Merriweather', serif; margin:0; font-size:28px; letter-spacing:0.4px; color: #ffffff}
.role{color:var(--muted); margin-top:6px}
.tagline{margin-top:14px; color:var(--muted); line-height:1.5}
.skills{list-style:none; padding:0; margin:16px 0 20px 0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; color:var(--muted)}
.skills li{background:var(--glass); padding:8px 10px; border-radius:8px; font-size:14px}
.actions{display:flex; gap:12px; margin-top:6px}
.btn{display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:10px; text-decoration:none; color:inherit; font-weight:600}
.btn.primary{background:linear-gradient(90deg,var(--accent), #f0c87a); color:#111}
.btn.ghost{border:1px solid rgba(255,255,255,0.06); background:transparent}
.contact-card{margin-top:18px; background:rgba(255,255,255,0.02); padding:12px; border-radius:10px; color:var(--muted)}
#copyBtn{margin-left:8px; padding:6px 8px; border-radius:6px; border:none; background:transparent; color:var(--accent); cursor:pointer}
.socials{display:flex; gap:8px; margin-top:10px}
.social-btn{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:8px; text-decoration:none; color:inherit; font-weight:700; font-size:14px}
.social-btn svg{opacity:0.95}
.social-btn{background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12)); color:var(--muted); border:1px solid rgba(255,255,255,0.04)}
.social-btn svg{filter:drop-shadow(0 1px 0 rgba(0,0,0,0.4))}
.social-btn.fb{background:linear-gradient(90deg, rgba(24,119,242,0.95), rgba(24,119,242,0.9)); color:white}
.social-btn.wa{background:linear-gradient(90deg, rgba(37,211,102,0.98), rgba(37,211,102,0.9)); color:#042f18}
.courses{margin-top:28px; padding:22px; border-radius:12px}
.courses h2{margin:0 0 12px 0}
.course-list{display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.course{background:rgba(255,255,255,0.02); padding:14px; border-radius:10px; border:1px solid rgba(255,255,255,0.02)}
.course h3{margin:0 0 6px 0}
/* Responsive */
@media(max-width:880px){
  .card{grid-template-columns:1fr; text-align:center}
  .photo{height:420px; width:60%; max-width:340px}
  .skills{grid-template-columns:1fr}
  .info{padding-top:6px}
}
@media(max-width:420px){
  body{padding:18px}
  .photo{width:80%}
}
/* subtle entrance */
.card{transform:translateY(6px); opacity:0; animation:fadeIn 600ms ease forwards 120ms}
@keyframes fadeIn{to{transform:none; opacity:1}}

/* IA modal carousel */
.ia-modal{position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:200}
.ia-modal[aria-hidden="false"]{display:flex}
.ia-modal-backdrop{position:absolute; inset:0; background:rgba(6,6,6,0.7)}
.ia-modal-panel{position:relative; max-width:900px; width:92%; background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2)); padding:18px; border-radius:12px; box-shadow:0 20px 60px rgba(0,0,0,0.7); z-index:10}
.ia-close{position:absolute; right:12px; top:12px; background:transparent; color:var(--muted); border:none; font-size:18px; cursor:pointer}
.ia-carousel{display:flex; align-items:center; gap:12px}
.ia-slides{flex:1; min-height:320px; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative}
.ia-slides .ia-slide{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transform:scale(.98); transition:opacity .36s ease, transform .36s ease}
.ia-slides .ia-slide.active{opacity:1; transform:none; position:relative}
.ia-slides img{max-width:100%; max-height:70vh; object-fit:contain; border-radius:8px}
.ia-prev,.ia-next{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2)); border:none; color:var(--muted); width:44px; height:44px; border-radius:999px; cursor:pointer}
.ia-dots{display:flex; gap:8px; justify-content:center; margin-top:12px}
.ia-dots .dot{width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,0.12);}
.ia-dots .dot.active{background:var(--accent)}

/* small page utilities for course pages */
.page-pad{padding:24px}
.mb-16{margin-bottom:16px}
.mt-18{margin-top:18px}

/* bottom IA button */
.bottom-ia-wrap{display:flex; justify-content:center; margin-top:26px}
.bottom-ia-btn{background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.12)); color:var(--muted); border:1px solid rgba(255,255,255,0.04); padding:12px 18px; border-radius:999px; cursor:pointer; font-weight:700}
.bottom-ia-btn:hover{color:#fff; box-shadow:0 8px 30px rgba(0,0,0,0.6)}

/* in-page mini nav */
.inpage-nav{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.inpage-nav .small{padding:6px 10px; font-size:13px; border-radius:8px}

/* hide markdown sections by default, show on demand */
.md-section{display:none}
.md-section.visible{display:block}
.md-body{color:var(--muted); line-height:1.6}
