:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #111827;
  --text-soft: #5b6474;
  --border: rgba(15, 23, 42, 0.08);
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #0f172a;
  --accent: #14b8a6;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-soft: #111827;
  --surface: rgba(17, 24, 39, 0.8);
  --surface-strong: #111827;
  --text: #f8fafc;
  --text-soft: #a5b4c7;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --secondary: #e5e7eb;
  --accent: #22c55e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.08), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

ul {
  padding-left: 18px;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.narrow {
  width: min(900px, 92%);
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 251, 0.72);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .site-header {
  background: rgba(11, 17, 32, 0.72);
}

.header-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

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

.logo-accent {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  justify-content: space-between;

}

.main-nav > a{
  white-space: nowrap;
}

.main-nav a {
  color: var(--text-soft);
  font-weight: 600;
  transition: 0.25s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

/* HERO */
.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.10);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: var(--text-soft);
  font-weight: 500;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.hero-card-inner {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 30px;
}

.mini-title {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero-card-inner h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.hero-card-inner p {
  color: var(--text-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.10);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.big-tags {
  margin-top: 20px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* SECTION */
.section {
  padding: 90px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-soft));
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.center {
  text-align: center;
}

.section-heading.light h2,
.section-heading.light p,
.section-heading.light .section-kicker {
  color: #ffffff;
}

.section-kicker {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-soft);
}

/* TEXT CARD */
.text-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.text-card p + p {
  margin-top: 14px;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card,
.info-card,
.skill-card,
.project-shot,
.timeline-item,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.project-card {
  overflow: hidden;
  transition: 0.28s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-image-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.project-content {
  padding: 22px;
}

.project-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.project-top h3 {
  font-size: 1.2rem;
}

.project-content p,
.info-card p,
.skill-card p,
.timeline-item p,
.project-intro {
  color: var(--text-soft);
}

.project-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 700;
}

/* GENERIC CARDS */
.info-card,
.skill-card {
  padding: 24px;
}

.info-card h3,
.skill-card h3 {
  margin-bottom: 12px;
}

.info-card ul li + li {
  margin-top: 8px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  padding: 22px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-date {
  color: var(--primary);
  font-weight: 800;
}

/* CONTACT */
.contact-section {
  background: linear-gradient(135deg, var(--secondary), #1e293b);
}

.contact-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

/* PROJECT PAGE */
.project-hero {
  padding: 90px 0 40px;
}

.project-hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.project-gallery {
  display: grid;
  gap: 22px;
}

.project-shot {
  overflow: hidden;
}

.project-shot img {
  width: 100%;
}

.project-shot figcaption {
  padding: 14px 16px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

.small-centered-shot {
  max-width: 720px;
  margin: 0 auto;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

/* FOOTER */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid,
  .projects-grid,
  .skills-grid,
  .project-info-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .header-container {
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 70px 0 50px;
  }

  .section {
    padding: 70px 0;
  }

  .hero-card-inner,
  .project-content,
  .info-card,
  .skill-card,
  .timeline-item,
  .contact-card,
  .text-card {
    padding: 20px;
  }

  .hero-infos {
    gap: 10px;
    flex-direction: column;
  }
}
/* LISTE PROJETS STYLE APPLE */

.projects-list{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.project-row{
  display:flex;
  gap:30px;
  align-items:center;

  padding:24px;

  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;

  transition:0.25s;
}

.project-row:hover{
  transform:translateY(-3px);
}

.project-row img{
  width:260px;
  height:150px;
  object-fit:cover;
  border-radius:12px;
}

.project-row-content{
  flex:1;
}

.project-row-content h3{
  margin-bottom:8px;
}

.project-row-content p{
  color:var(--text-soft);
  margin-top:6px;
}

.project-link{
  display:inline-block;
  margin-top:10px;
  color:var(--primary);
  font-weight:600;
}

/* responsive */

@media (max-width:900px){

.project-row{
  flex-direction:column;
  align-items:flex-start;
}

.project-row img{
  width:100%;
  height:180px;
}

}
.project-row img{
  width:260px;
  height:150px;
  object-fit:cover;
  object-position:center;
  border-radius:12px;
}

.nav-links{
  display:flex;
  gap:10px;
  margin-left:30px;
  align-items:center;
  flex-shrink:0;
}
.nav-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-btn:hover{
  background:var(--primary);
  color:white;
  transform:translateY(-1px);
}

.project-gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(650px,1fr));
gap:40px;
align-items:start;
}

.project-shot{
text-align:center;
display:flex;
flex-direction:column;
align-items:center;
}

.project-shot img{
width:70%;
max-width:800px;
height:auto;
border-radius:14px;
cursor:pointer;
transition:0.3s;
box-shadow:0 10px 25px rgba(0,0,0,0.35);
}

.project-shot img:hover{
transform:scale(1.02);
}

