:root {
  --bg: #fbf7f5;
  --surface: #ffffff;
  --muted: #7a5548;
  --text: #3a241c;
  --accent: #d97452;
  --border: #f3e7e2;
  --sidebar-width: 260px;
  --transition: all 0.18s ease;
}
 
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
html {
  scroll-behavior: smooth;
}
 
body {
  font-family: Inter, Segoe UI, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
 
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  padding: 28px 18px;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid var(--border);
  box-shadow: 2px 0 12px rgba(58, 36, 28, 0.03);
  z-index: 1400;
  display: flex;
  flex-direction: column;
}
 
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
 
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
 
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
}
 
.sidebar-links a:hover,
.sidebar-links a.active {
  background: rgba(217, 116, 82, 0.06);
  color: var(--text);
}
 
.sidebar-toggle {
  display: flex;
  position: fixed;
  top: 20px;
  left: 12px;
  min-width: 84px;
  padding: 12px 18px;
  height: 60px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 36px rgba(58, 36, 28, 0.06);
  z-index: 1500;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  border: 2px solid currentColor;
}
 
.sidebar-toggle .hamburger,
.sidebar-toggle .hamburger::before,
.sidebar-toggle .hamburger::after {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  position: relative;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
 
.sidebar-toggle .hamburger::before,
.sidebar-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
 
.sidebar-toggle .hamburger::before { top: -8px; }
.sidebar-toggle .hamburger::after  { top: 8px; }
 
.main-content {
  padding: 28px 20px;
  transition: transform 0.22s ease, padding-left 0.22s ease;
}
 
@media (min-width: 901px) {
  .sidebar-wrap[open] + .main-content {
    transform: translateX(min(calc(var(--sidebar-width) * 0.6), 20vw));
  }
}
 
@media (max-width: 900px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    box-shadow: none;
    padding: 12px 16px;
    transform: translateX(-110%);
    transition: transform 0.22s ease;
  }
 
  .sidebar-wrap[open] .sidebar {
    transform: translateX(0);
  }
 
  .sidebar-toggle {
    top: 12px;
    left: 12px;
    min-width: 64px;
    padding: 10px 12px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }
 
  .sidebar-wrap[open] + .main-content {
    padding-left: calc(var(--sidebar-width) * 0.45);
    font-size: 0.98rem;
  }
 
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 1300;
    pointer-events: none;
  }
 
  .sidebar-wrap[open] .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
 
  .sidebar-wrap[open] .sidebar-toggle .hamburger {
    background: transparent;
  }
 
  .sidebar-wrap[open] .sidebar-toggle .hamburger::before {
    transform: rotate(45deg) translate(4px, 4px);
  }
 
  .sidebar-wrap[open] .sidebar-toggle .hamburger::after {
    transform: rotate(-45deg) translate(4px, -4px);
  }
 
  .main-content {
    padding-left: 0;
    padding-top: 76px;
  }
}
 
.hero-content h1,
.projects-section h2,
.skills-section h2,
.about-section h2,
.contact-section h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
 
.hero {
  background: var(--bg);
  padding: 56px 20px;
  min-height: 48vh;
  display: flex;
  align-items: center;
}
 
.hero .container {
  width: 100%;
}
 
.hero-content {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
  padding: 8px 12px;
}
 
.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.15rem;
  font-weight: 700;
  color: var(--text);
}
 
.hero-content p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
 
@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.5rem; }
  .hero { padding: 40px 16px; min-height: 44vh; }
}
 
.about-section    { padding: 64px 20px; }
.projects-section { padding: 64px 20px; }
.skills-section   { padding: 56px 20px; }
.contact-section  { padding: 56px 20px; text-align: center; }
 
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
 
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
 
.skill-category {
  background: var(--surface);
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(217, 116, 82, 0.32);
  font-size: 0.95rem;
  line-height: 1.5;
}
 
.skill-category h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
 
.skills-section .project-card-detail {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
 
.skills-section .skill-category {
  background: var(--surface) !important;
  border: 2px solid rgba(217, 116, 82, 0.32) !important;
  border-radius: 10px !important;
  padding: 24px !important;
}
 
.project-card-detail {
  border: 2px solid rgba(217, 116, 82, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  width: 100%;
  display: block;
}
 
.project-card-detail .project-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
 
.project-heading {
  padding: 0;
  margin: 0;
}
 
.project-heading .project-title {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--text);
}
 
.project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  text-align: justify;
  width: 100%;
}
 
.project-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--accent);
  color: var(--surface);
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 10px;
  text-align: center;
}
 
.image2 {
  height: 35%;
  width: 35%;
  display: block;
  margin: auto;
  border-radius: 6px;
}
 
.image-presentation {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
 
ul.liste-competences,
ul.liste-competences2,
ul.liste-competences3,
ul.liste-competences4 {
  display: block;
  text-align: left;
  list-style-type: disc;
}
 
ul.liste-competences  li,
ul.liste-competences2 li,
ul.liste-competences3 li,
ul.liste-competences4 li {
  display: list-item;
  text-align: left;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}
 
ul.liste-competences  { padding-right: 750px; }
ul.liste-competences2 { padding-right: 635px; }
ul.liste-competences4 { padding-right: 300px; }
 
.lien-telechargement {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-top: 5px;
  transition: opacity 0.2s ease;
}
 
.linkedin-btn {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
 
.footer {
  background: transparent;
  color: var(--muted);
  text-align: center;
  padding: 2rem 20px;
}

.c1 {
  padding-right: 30px;
}