/* Portfolio — styles, thèmes, composants et responsive */

/* VARIABLES & THEMES */

:root{
  --color-1:#f05a28;
  --color-1-rgb:240,90,40;
  --color-1-dark:#c94318;
  --background:#faf8f5;
  --surface:#ffffff;
  --surface-2:#e8e1d8;
  --text:#181614;
  --text-light:#655f58;
  --border:#d6cbc0;
  --shadow-soft:0 24px 55px -24px rgba(35,27,20,.18);
  --shadow-card:0 14px 35px -16px rgba(35,27,20,.14);
  --glass-bg:rgba(250,248,245,.84);
  --glass-border:rgba(24,22,20,.14);

  /* Typographie */
  --font-display:'Sora', sans-serif;
  --font-hero:'Outfit', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  /* Rythme */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --section-pad: 7rem;
}

/* Thème sombre — activé via data-theme="dark" sur <html> */
[data-theme="dark"]{
  --color-1:#f05a28;
  --color-1-rgb:240,90,40;
  --color-1-dark:#c94318;
  --background:#0b0b0b;
  --surface:#161616;
  --surface-2:#202020;
  --text:#f5f5f5;
  --text-light:#999999;
  --border:#2b2b2b;

  --shadow-soft:0 24px 55px -24px rgba(0,0,0,.9);
  --shadow-card:0 14px 35px -16px rgba(0,0,0,.8);
  --glass-bg:rgba(18,18,18,.72);
  --glass-border:rgba(255,255,255,.1);
}


/* RESET LEGER & TYPOGRAPHIE */

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  background-color:var(--background);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:24px 24px;
  color:var(--text);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.65;
  transition:background-color .4s ease, color .4s ease;
  overflow-x:hidden;
}

[data-theme="dark"] body{
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
}

h1,h2,h3,h4,h5{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-0.02em;
  color:var(--text);
}

p{ margin-bottom:0; }

a{ text-decoration:none; color:inherit; }

img{ max-width:100%; display:block; }

::selection{ background:var(--color-1); color:#0f1115; }

/* Focus visible clavier — accessibilité */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:2px solid var(--color-1);
  outline-offset:3px;
  border-radius:4px;
}

/* Scrollbar discrète */
::-webkit-scrollbar{ width:9px; }
::-webkit-scrollbar-track{ background:var(--background); }
::-webkit-scrollbar-thumb{ background:var(--border); border-radius:10px; }
::-webkit-scrollbar-thumb:hover{ background:var(--color-1); }

/* UTILITAIRES */

.accent{ color:var(--color-1); }
.mono{ font-family:var(--font-mono); }

.eyebrow{
  font-family:var(--font-mono);
  font-size:.8rem;
  letter-spacing:.03em;
  color:var(--color-1);
  margin-bottom:.75rem;
  opacity:.9;
}

.section{ padding:var(--section-pad) 0; position:relative; }
.bg-surface{ background:var(--surface); }

.section.bg-surface{
  background-color:rgba(232,225,216,.72);
  background-image:
    linear-gradient(rgba(41,37,33,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,37,33,.04) 1px, transparent 1px);
  background-size:24px 24px;
}

[data-theme="dark"] .section.bg-surface{
  background-color:rgba(22,22,22,.72);
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
}

.section-title{
  font-size:clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom:.5rem;
}

.section-subtitle{
  color:var(--text-light);
  max-width:560px;
  margin:0 auto 1rem;
}

.text-light-custom{ color:var(--text-light); }

.underline-fx{
  position:relative;
  white-space:nowrap;
}
.underline-fx::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:2px;
  height:.35em;
  background:rgba(var(--color-1-rgb), .28);
  z-index:-1;
  border-radius:3px;
}

/* Boutons */
.btn-accent{
  background:var(--color-1);
  border:1px solid var(--color-1);
  color:#0f1115;
  padding:.60rem 1rem;
  font-weight:600;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-accent:hover{
  background:var(--color-1-dark);
  color:#0f1115;
  transform:translateY(-2px);
  box-shadow:0 10px 25px -8px rgba(var(--color-1-rgb),.55);
}

.hero-actions .btn{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.75rem 1rem;
  border-radius:50px;
  font-size:1rem;
}
.hero-actions .btn span,
.hero-actions .btn i{
  display:inline-flex;
  align-items:center;
  line-height:1;
}
.hero-actions .btn i{
  flex:0 0 auto;
  font-size:1.35rem;
}

.btn-outline-light{
  border:1px solid var(--glass-border);
  color:var(--text);
  background:transparent;
  font-weight:600;
  transition:all .25s ease;
}
.btn-outline-light:hover{
  color:var(--text);
  border-color:var(--color-1);
  background:rgba(var(--color-1-rgb), .08);
  transform:translateY(-2px);
}
.hero-actions .btn-outline-light{
  min-width:180px;
  padding-inline:1rem;
  border:0;
  border-bottom:1px solid currentColor;
  color:var(--text);
  background:transparent;
}
.hero-actions .btn-outline-light:hover{
  border-color:var(--color-1);
  color:var(--color-1);
  background:transparent;
}

/* Effet Ripple (cercle qui se dilate au clic) */
.ripple{ position:relative; overflow:hidden; }
.ripple-circle{
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.5);
  transform:scale(0);
  animation:rippleAnim .6s ease-out;
  pointer-events:none;
}
@keyframes rippleAnim{
  to{ transform:scale(3); opacity:0; }
}

/* NAVBAR — Glassmorphism "goutte d'eau" */

.glass-nav{
  top:14px;
  margin:0 auto;
  width:min(1180px, 94%);
  left:0; right:0;
  font-family:'Manrope', sans-serif;
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(28px) saturate(160%);
  -webkit-backdrop-filter:blur(28px) saturate(160%);
  border:1px solid var(--glass-border);
  border-radius:100px;
  box-shadow:var(--shadow-soft);
  padding:.55rem .5rem;
  transition:padding .35s ease, background .35s ease, border-radius .35s ease, box-shadow .35s ease;
  z-index:1000;
}
.glass-nav.scrolled{
  padding:.35rem .5rem;
  background:rgba(255,255,255,.72);
  box-shadow:0 15px 35px -18px rgba(0,0,0,.5);
}

.brand-logo{
  font-family:'Manrope', sans-serif;
  font-weight:700;
  font-size:1.15rem;
  color:var(--text);
}
.brand-logo .mono{ color:var(--color-1); opacity:.8; }

.nav-links .nav-link{
  color:var(--text);
  font-weight:500;
  font-size:.92rem;
  padding:.5rem .9rem !important;
  border-radius:50px;
  position:relative;
  transition:color .25s ease, background .25s ease;
}
.nav-links .nav-link:hover{
  color:var(--text);
  background:rgba(var(--color-1-rgb), .1);
}
.nav-links .nav-link.active{
  color:#0f1115;
  background:var(--color-1);
}
.theme-toggle{
  width:40px; height:40px;
  border-radius:50%;
  border:1px solid var(--glass-border);
  background:var(--surface-2);
  color:var(--color-1);
  display:flex; align-items:center; justify-content:center;
  font-size:1rem;
  transition:transform .3s ease, background .3s ease;
}
.nav-actions > .theme-toggle,
.nav-actions > .btn-accent{
  position:relative;
  top:-2px;
}
.theme-toggle:hover{ transform:rotate(20deg) scale(1.05); }

.hamburger-icon{ display:flex; flex-direction:column; gap:5px; width:22px; }
.hamburger-icon span{
  height:2px; width:100%; background:var(--text); border-radius:2px;
  transition:.3s ease;
}
.navbar-toggler.is-open .hamburger-icon span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.navbar-toggler.is-open .hamburger-icon span:nth-child(2){ opacity:0; }
.navbar-toggler.is-open .hamburger-icon span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.navbar-toggler{ border:none; padding:.3rem; }
.navbar-toggler:focus{ box-shadow:none; }

.navbar-collapse{
  background:transparent;
}
[data-theme="dark"] .glass-nav,
[data-theme="dark"] .glass-nav.scrolled{
  background:rgba(18,18,18,.68);
}
[data-theme="dark"] .nav-links .nav-link{
  color:#ffffff;
}
[data-theme="dark"] .nav-links .nav-link:hover{
  color:#ffffff;
}
[data-theme="dark"] .nav-links .nav-link.active{
  color:#ffffff;
}
@media (max-width: 991px){
  .glass-nav{
    position:sticky;
    background:var(--surface);
    border:0;
    border-bottom:1px solid var(--border);
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .glass-nav.scrolled{ background:var(--surface); box-shadow:none; }
  [data-theme="dark"] .glass-nav,
  [data-theme="dark"] .glass-nav.scrolled{ background:var(--surface); }
  .navbar-collapse{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#ffffff;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    border-radius:0;
    margin-top:0;
    padding:.75rem 0 0;
    border:0;
    border-bottom:1px solid var(--border);
    box-shadow:none;
  }
  [data-theme="dark"] .navbar-collapse{
    background:var(--surface);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .nav-links{ gap:.25rem; }
  .nav-links .nav-link{ border-radius:0; }
  .nav-links .nav-link{ display:block; }
  .nav-actions{ margin-top:1rem; justify-content:space-between; width:100%; }
}

/* HERO */

.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  position:relative;
  padding-top:140px;
  padding-bottom:60px;
  overflow:hidden;
  isolation:isolate;
  background:radial-gradient(circle at 76% 28%, rgba(255,255,255,.07), transparent 24%);
}

.hero-inner{ position:relative; z-index:2; }

.hero-title{
  font-family:var(--font-hero);
  font-size:clamp(2.1rem, 4.4vw, 3.4rem);
  line-height:1.15;
  margin-bottom:1.3rem;
}

.hero-text{
  color:var(--text-light);
  max-width:520px;
  font-size:1.05rem;
  margin-bottom:2rem;
}

.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:2rem; }

.hero-socials{ display:flex; gap:.85rem; }
.hero-socials a{
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--surface);
  display:flex; align-items:center; justify-content:center;
  color:var(--text);
  font-size:1.05rem;
  transition:all .25s ease;
}
.hero-socials a:hover{
  background:var(--surface);
  border-color:var(--border);
  transform:translateY(-3px);
}
.hero-socials a.social-github:hover{
  background:#181717;
  border-color:#181717;
  color:#ffffff;
}
.hero-socials a.social-linkedin:hover{
  background:#0a66c2;
  border-color:#0a66c2;
  color:#ffffff;
}
.hero-socials a.social-whatsapp:hover{
  background:#25d366;
  border-color:#25d366;
  color:#ffffff;
}
.hero-socials a.social-telegram:hover{
  background:#229ed9;
  border-color:#229ed9;
  color:#ffffff;
}
.hero-photo-wrap{ position:relative; max-width:420px; margin-inline:auto; }
.hero-photo{
  border-radius:var(--radius-lg);
  aspect-ratio:5/6;
  object-fit:cover;
  position:relative; z-index:2;
  border:none;
}
.floating-badge{
  position:absolute;
  background:var(--glass-bg);
  backdrop-filter:blur(14px);
  border:1px solid var(--glass-border);
  padding:.55rem 1rem;
  border-radius:50px;
  font-size:.78rem;
  color:var(--text);
  box-shadow:var(--shadow-card);
  z-index:3;
  animation:floatSlow 5s ease-in-out infinite;
}
.floating-badge i{ color:var(--color-1); margin-right:.35rem; }
.badge-top{ top:8%; left:-8%; }
.badge-bottom{ bottom:8%; right:-10%; animation-delay:1.2s; }

.scroll-cue{
  display:flex; justify-content:center; margin-top:3rem;
}
.scroll-cue span{
  width:26px; height:42px;
  border:2px solid var(--border);
  border-radius:20px;
  position:relative;
  display:block;
}
.scroll-cue span::before{
  content:"";
  position:absolute;
  top:8px; left:50%;
  width:5px; height:5px;
  background:var(--color-1);
  border-radius:50%;
  transform:translateX(-50%);
  animation:scrollDot 1.8s ease infinite;
}
@keyframes scrollDot{
  0%{ opacity:1; top:8px; }
  70%{ opacity:0; top:24px; }
  100%{ opacity:0; top:8px; }
}

/*ABOUT*/

.about-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:clamp(1.6rem, 3vw, 3rem);
  box-shadow:var(--shadow-card);
  margin-top:2rem;
}

.about-photo-wrap{ width:75%; max-width:240px; margin-inline:auto; border-radius: none; border:1px solid var(--border); overflow:hidden; box-shadow:10px 10px 0 var(--color-1-dark); }
.about-photo{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.about-photo-wrap:hover .about-photo{ transform:scale(1.05); }

.tech-tags{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.3rem; }
.tag{
  font-family:var(--font-mono);
  font-size:.78rem;
  padding:.4rem .85rem;
  border-radius:50px;
  border:1px solid var(--border);
  color:var(--text-light);
  background:var(--surface-2);
  transition:all .25s ease;
}
.tag:hover{ border-color:var(--color-1); color:var(--color-1); }

/*MARQUEE TECHNOLOGIES*/

.simple-marquee-wrap{
  position:relative;
  margin-top:4rem;
  overflow:hidden;
  border-radius:0;
  background:#ffffff;
}

.simple-marquee-wrap::before,
.simple-marquee-wrap::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:96px;
  z-index:2;
  pointer-events:none;
}

.simple-marquee-wrap::before{
  left:0;
  background:linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.simple-marquee-wrap::after{
  right:0;
  background:linear-gradient(270deg, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.simple-marquee{
  position:relative;
  overflow:hidden;
  background:#ffffff;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:0.9rem 0;
}

.simple-marquee-track{
  display:flex;
  align-items:center;
  width:max-content;
  white-space:nowrap;
  animation:simpleMarquee 28s linear infinite;
  will-change:transform;
}

.simple-marquee:hover .simple-marquee-track{
  animation-play-state:paused;
}
[data-theme="dark"] .simple-marquee-wrap,
[data-theme="dark"] .simple-marquee{
  background:var(--background);
}
[data-theme="dark"] .simple-marquee-wrap::before{
  background:linear-gradient(90deg, var(--background) 0%, rgba(11,11,11,0) 100%);
}
[data-theme="dark"] .simple-marquee-wrap::after{
  background:linear-gradient(270deg, var(--background) 0%, rgba(11,11,11,0) 100%);
}

.marquee-set{
  display:flex;
  align-items:center;
  gap:0.9rem;
  flex-shrink:0;
  padding:0;
}

.marquee-set span{
  color:var(--text);
  font-family:var(--font-mono);
  font-size:clamp(0.8rem, 1vw, 1.05rem);
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:600;
}

.marquee-separator{
  color:var(--color-1);
  font-size:1rem;
  line-height:1;
  transform:translateY(-1px);
}

@keyframes simpleMarquee{
  from { transform:translateX(0); }
  to { transform:translateX(-50%); }
}

/*SERVICES*/

.service-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:2rem 1.6rem;
  height:100%;
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover{
  transform:translateY(-8px) scale(1.015);
  box-shadow:var(--shadow-soft);
  border-color:rgba(var(--color-1-rgb),.4);
}
.service-icon{
  width:56px; height:56px;
  border-radius:16px;
  background:rgba(var(--color-1-rgb), .12);
  color:var(--color-1);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem;
  margin-bottom:1.2rem;
  transition:transform .35s ease;
}
.service-card:hover .service-icon{ transform:rotate(-8deg) scale(1.08); }
.service-card h3{ font-size:1.15rem; margin-bottom:.6rem; }
.service-card p{ color:var(--text-light); font-size:.92rem; }

.skill-card-level{ color:var(--color-1); font:500 .68rem var(--font-mono); letter-spacing:.04em; text-transform:uppercase; }

/* PORTFOLIO */

#portfolio{
  background-color:var(--background);
  background-image:
    linear-gradient(rgba(41,37,33,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,37,33,.045) 1px, transparent 1px);
  background-size:24px 24px;
}
#portfolio .section-title,
#portfolio .section-subtitle,
#portfolio .eyebrow{ color:var(--text); }
#portfolio .section-subtitle{ color:var(--text-light); }
[data-theme="dark"] #portfolio{
  background-color:#0b0b0b;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
}
[data-theme="dark"] #portfolio .section-title,
[data-theme="dark"] #portfolio .section-subtitle,
[data-theme="dark"] #portfolio .eyebrow{ color:var(--text); }
#portfolio .eyebrow{ color:var(--color-1); }

.filter-bar{
  display:flex; justify-content:center; gap:.6rem; flex-wrap:wrap; margin-top:1rem;
}
.filter-btn{
  font-family:var(--font-mono);
  font-size:.85rem;
  padding:.55rem 1.3rem;
  border-radius:50px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text-light);
  transition:all .25s ease;
}
.filter-btn:hover{ border-color:var(--color-1); color:var(--color-1); }
.filter-btn.active{
  background:var(--color-1);
  border-color:var(--color-1);
  color:#0f1115;
  font-weight:600;
}

#portfolioGrid{
  display:flex;
  flex-wrap:nowrap;
  gap:1rem;
  margin-inline:0;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding:1rem .25rem 1.25rem;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  scroll-padding-inline:.25rem;
}
#portfolioGrid::-webkit-scrollbar{ display:none; }
#portfolioGrid > .portfolio-item{
  flex:0 0 min(280px, calc(100vw - 3rem));
  width:auto;
  padding:0;
  scroll-snap-align:start;
}
#portfolioGrid > .portfolio-item[data-category="certificates"]{
  grid-column:span 1;
}
#portfolioGrid > .portfolio-item[data-category="tech"]{
  grid-column:span 1;
}
.showcase-carousel-wrap{ position:relative; }
.carousel-control{
  position:absolute;
  top:50%;
  z-index:3;
  width:34px;
  height:34px;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--surface);
  color:var(--text);
  transform:translateY(-50%);
  box-shadow:var(--shadow-card);
}
.carousel-control:hover{ background:var(--color-1); color:#0f1115; border-color:var(--color-1); }
.carousel-prev{ left:-1.2rem; }
.carousel-next{ right:-1.2rem; }

.portfolio-item{ transition:opacity .35s ease, transform .35s ease; }
.portfolio-item.hide{
  display:none;
}

.project-card{
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
  height:100%;
  transition:transform .35s ease, box-shadow .35s ease;
}
.project-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-soft); }

.project-img{ position:relative;  overflow:hidden; aspect-ratio:3/2; }
.project-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.project-card:hover .project-img img{ filter:brightness(0.5); transform:scale(1.08); }

.project-tag{
  font-family:var(--font-mono);
  font-size:.72rem;
  color:var(--color-1);
  border:1px solid rgba(var(--color-1-rgb),.4);
  padding:.2rem .6rem;
  border-radius:50px;
}
.project-body{
  padding:1rem;
  display:flex;
  flex-direction:column;
  flex:1;
}
.project-body h3{ font-size:1rem; margin:.55rem 0 .3rem; }
.project-body p{ color:var(--text-light); font-size:.78rem; line-height:1.45; }
.project-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-top:auto;
  padding-top:.35rem;
}
.project-tech{ margin:0 !important; font-size:.68rem; color:var(--text); }
.project-arrow{
  flex:0 0 auto;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1.5px solid var(--text);
  border-radius:50%;
  color:var(--text);
  background:transparent;
  font-size:.85rem;
  line-height:1;
}

.project-link{
  flex:0 0 auto;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
}

.project-link:hover{
  transform:scale(1.05);
  background:var(--color-1);
  i{
    color:#ffffff;
  }
}

.showcase-info-card{
  height:100%;
  min-height:220px;
  padding:1rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-card);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.showcase-info-card:hover{
  transform:translateY(-6px);
  border-color:rgba(var(--color-1-rgb),.55);
  box-shadow:var(--shadow-soft);
}
.showcase-info-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin-bottom:1.2rem;
  border-radius:var(--radius-sm);
  background:rgba(var(--color-1-rgb),.12);
  color:var(--color-1);
  font-size:1.35rem;
}
.showcase-info-card h3{ font-size:1rem; margin:.55rem 0 .35rem; }
.showcase-info-card p{ color:var(--text-light); font-size:.78rem; line-height:1.45; }
.tech-showcase-card{
  min-height:155px;
  padding:1rem .75rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.tech-showcase-card .showcase-info-icon{
  width:100%;
  height:64px;
  margin:0 0 .5rem;
  background:transparent;
  font-size:3rem;
}
.tech-showcase-card .showcase-info-icon img{
  width:64px;
  height:64px;
  object-fit:contain;
}
.tech-showcase-card h3{ margin:.25rem 0 .35rem; }
.tech-showcase-card p{ margin-bottom:.65rem; }
.certificate-card{ min-height:280px; }
.certificate-preview{
  width:100%;
  border-radius:var(--radius-sm);
  cursor:pointer;
  min-height:155px;
  margin:-.1rem -.1rem .8rem;
  padding:.7rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  text-align:center;
  background:#ffffff;
  border:5px solid #f5f5f5;
  outline:1px solid #555555;
  color:#181614;
}
.certificate-preview img{ width:100%; height:110px; object-fit:contain; }
.certificate-preview span{ font:600 .65rem var(--font-mono); letter-spacing:.16em; color:var(--text-light); }

.preview-modal[hidden]{ display:none; }
.preview-modal{ position:fixed; inset:0; z-index:2000; display:grid; place-items:center; padding:1.5rem; }
.preview-modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.82); backdrop-filter:blur(8px); }
.preview-modal-dialog{ position:relative; z-index:1; width:min(900px, 100%); max-height:90vh; padding:1.5rem; overflow:auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow-soft); }
.preview-modal-dialog h2{ font-size:1.2rem; margin:0 2.5rem .9rem 0; }
.preview-modal-close{ position:absolute; top:1rem; right:1rem; width:36px; height:36px; border:1px solid var(--border); border-radius:50%; background:var(--surface-2); color:var(--text); }
.preview-modal-content{ min-height:180px; display:grid; place-items:center; }
.preview-modal-content img{ max-height:72vh; width:auto; object-fit:contain; }
.preview-modal-content iframe{ width:100%; height:70vh; border:0; background:#ffffff; }
.preview-modal-download{ margin-top:1rem; }
body.modal-open{ overflow:hidden; }
/* CONTACT */

.contact-heading{ font-size:1.6rem; margin-bottom:1rem; }
.contact-info-list{ list-style:none; padding:0; margin:1.5rem 0 0; }
.contact-info-list li{
  color:var(--text-light);
  margin-bottom:.9rem;
  display:flex; align-items:center; gap:.7rem;
  font-size:.95rem;
}

.contact-form{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:clamp(1.5rem, 3vw, 2.3rem);
  box-shadow:var(--shadow-card);
}
.form-label{ font-size:.85rem; color:#000000; margin-bottom:.4rem; }
.custom-input{
  background:var(--surface);
  border:1px solid var(--border);
  color:#000000;
  border-radius:var(--radius-sm);
  padding:.75rem 1rem;
  font-family:var(--font-body);
  transition:border-color .25s ease;
}
.custom-input:focus{
  background:var(--surface);
  color:#000000;
  border-color:var(--color-1);
  box-shadow:none;
}
.custom-input::placeholder{ color:#000000; opacity:.55; }

[data-theme="dark"] .form-label,
[data-theme="dark"] .custom-input{
  color:var(--text);
}
[data-theme="dark"] .custom-input:focus{
  color:var(--text);
}
[data-theme="dark"] .custom-input::placeholder{
  color:var(--text-light);
}

.form-success{
  color:var(--color-1);
  font-size:.85rem;
  margin-top:1rem;
  display:none;
}
.form-success.show{ display:block; animation:fadeInUp .4s ease; }

#contact .hero-socials a{
  background:var(--surface);
  border-color:var(--border);
  color:var(--text);
}
#contact .hero-socials a.social-github:hover{
  background-color:#181717;
  border-color:#181717;
  color:#ffffff;
}
#contact .hero-socials a.social-linkedin:hover{
  background-color:#0a66c2;
  border-color:#0a66c2;
  color:#ffffff;
}
#contact .hero-socials a.social-whatsapp:hover{
  background-color:#25d366;
  border-color:#25d366;
  color:#ffffff;
}
#contact .hero-socials a.social-telegram:hover{
  background-color:#229ed9;
  border-color:#229ed9;
  color:#ffffff;
}

/* FOOTER*/

.footer{
  background:#102c26;
  border-top:1px solid rgba(250,248,245,.18);
  padding:1.5rem 0 1.6rem;
}
.footer-top{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem;
}
.footer-logo{ font-size:1.2rem; color:#ffffff; }
.footer-logo .mono,
.footer-logo .accent{
  color:var(--color-1);
}
.footer-copy{ margin:0; text-align:right; color:#ffffff; font-size:.8rem; }
[data-theme="dark"] .footer{
  background:#0B0B0B;
}

/* BOUTON RETOUR EN HAUT */

.back-to-top{
  position:fixed;
  bottom:28px; right:28px;
  width:48px; height:48px;
  border-radius:50%;
  background:var(--color-1);
  color:#0f1115;
  border:none;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
  box-shadow:var(--shadow-card);
  opacity:0;
  visibility:hidden;
  transform:translateY(15px);
  transition:all .35s ease;
  z-index:900;
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ transform:translateY(-4px); box-shadow:0 15px 30px -10px rgba(var(--color-1-rgb),.6); }

/* ANIMATIONS GENERIQUES (scroll reveal) */

.fade-up, .fade-left, .fade-right{
  opacity:0;
  transition:opacity .8s ease, transform .8s cubic-bezier(.22,.9,.33,1);
}
.fade-up{ transform:translateY(35px); }
.fade-left{ transform:translateX(-35px); }
.fade-right{ transform:translateX(35px); }

.fade-up.in-view,
.fade-left.in-view,
.fade-right.in-view{
  opacity:1;
  transform:translate(0,0);
}

@keyframes fadeInUp{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes floatSlow{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms; animation-iteration-count:1; transition-duration:0.001ms; }
  html{ scroll-behavior:auto; }
}

/* ---------- Laptop / petits desktops (<=1200px) ---------- */
@media (max-width: 1199.98px){
  :root{ --section-pad: 6rem; }
  .hero-title{ font-size:clamp(1.9rem, 4vw, 2.8rem); }
}

/* ---------- Tablette (<=991px) ---------- */
@media (max-width: 991.98px){
  :root{ --section-pad: 5rem; }
  main{ overflow-x:hidden; }

  .glass-nav{ top:0; width:100%; border-radius:0; }

  .hero{ padding-top:35px; text-align:start; }
  .hero-text{ margin-inline:0; }
  .hero-actions{ justify-content:flex-start; }
  .hero-socials{ justify-content:center; }
  #contact .hero-socials{ justify-content:flex-start; }

  .hero-photo-wrap{ margin-top:2.5rem; max-width:320px; }
  .badge-top{ left:-4%; }
  .badge-bottom{ right:-4%; }

  .about-card .row{ text-align:start; }
  .tech-tags{ justify-content:flex-start; }
  .section > .container > .eyebrow{ text-align:center !important; }

}

/* ---------- Mobile large (<=767px) ---------- */
@media (max-width: 767.98px){
  :root{ --section-pad: 4rem; --radius-lg: 22px; }

  .hero-title{ font-size:2rem; }
  .hero{ min-height:auto; padding-top:72px; padding-bottom:44px; }
  .hero-photo-wrap{ display:none; }
  .scroll-cue{ margin-top:2.25rem; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{
    width:100%;
    max-width:100%;
    text-align:center;
  }

  .section-title{ font-size:1.6rem; }

  .about-card{ padding:1.4rem; }

  .filter-bar{ gap:.4rem; }
  .filter-btn{ padding:.45rem 1rem; font-size:.8rem; }
  #portfolioGrid{ gap:.85rem; padding-inline:0; touch-action:pan-x; }
  #portfolioGrid > .portfolio-item{ flex-basis:min(76vw, 300px); }
  #portfolioGrid > .portfolio-item[data-category="tech"]{ flex-basis:min(68vw, 250px); }
  .carousel-control{ width:32px; height:32px; }
  .carousel-prev{ left:.55rem; }
  .carousel-next{ right:.55rem; }

  .footer-top{ flex-direction:column; text-align:center; justify-content:center; }
  .footer-copy{ width:100%; text-align:center; }

  .back-to-top{ bottom:18px; right:18px; width:44px; height:44px; }
}

/* ---------- Mobile (<=575px) ---------- */
@media (max-width: 575.98px){
  .brand-logo{ font-size:1rem; }
  .theme-toggle{ width:36px; height:36px; }

  .about-card{ border-radius:18px; }
  .contact-form{ padding:1.2rem; }

  #portfolioGrid > .portfolio-item{ flex-basis:calc(100vw - 3.5rem); }
  #portfolioGrid > .portfolio-item[data-category="tech"]{ flex-basis:250px; }
  .certificate-card{ min-height:0; }
  .certificate-preview{ min-height:155px; }
}
