/* === Nouveau design moderne === */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #1e40af;
  --radius: 12px;
  --shadow: 0 8px 20px rgba(0,0,0,0.06);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  margin: 0 0 1rem;
}

a {
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 10;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
}

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

nav a {
  margin-left: 20px;
  font-weight: 500;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: 0.3s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}


:root{
  --bg: #F5F9FF;
  --white: #ffffff;
  --text: #1A1A1A;
  --muted: #6b7280;
  --primary: #0066FF;
  --dark: #0A2540;
  --container: 1100px;
  --radius: 12px;
  --gap: 24px;
  font-family: 'Inter', sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background:var(--white);
  line-height:1.7;
}

/* Container */
.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* HEADER */
.header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  padding:20px 0;
  transition:.3s ease;
}
.header.scrolled{
  background:var(--white);
  box-shadow:0 4px 16px rgba(0,0,0,.06);
  padding:10px 0;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  font-family:'Poppins',sans-serif;
  font-weight:700;
  font-size:20px;
  color:var(--dark);
  text-decoration:none;
}
.nav a{
  margin-left:24px;
  text-decoration:none;
  font-weight:500;
  color:var(--text);
}

/* HERO */
/* === Section Hero === */
.hero {
  padding: 80px 0;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: .3rem;
}

.hero-text h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-text p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.hero-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}


/* SECTIONS */
.section{
  padding:100px 0;
}
.section-light{
  background:var(--bg);
}
h2{
  font-family:'Poppins';
  text-align:center;
  margin-bottom:50px;
}

/* ABOUT */
.lead{
  max-width:760px;
  margin:0 auto 40px;
  text-align:center;
  font-size:18px;
}
.stats{
  display:flex;
  justify-content:center;
  gap:30px;
}
.stats div{
  text-align:center;
}
.stats strong{
  font-size:20px;
  display:block;
}

.skills h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 30px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.skill-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
border: none;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.skill-card ul {
  list-style: none;
  padding: 0;
}

.skill-card li {
  color: var(--text);
  padding: 6px 0;
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
}

.skill-card li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .skill-card {
    font-size: 0.9rem;
  }
}



/* PROJECTS */
/* === Projets === */
.projects h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.filters {
  text-align: center;
  margin-bottom: 30px;
}

.filter-btn {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 10px;
  margin: 0 6px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 10px;
}

.project-card span {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}


/* TIMELINE */
.timeline-item{
  background:var(--white);
  padding:20px 30px;
  border-radius:var(--radius);
  border-left:4px solid var(--primary);
}

/* CONTACT */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
}
.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px;
  margin:10px 0;
  border-radius:var(--radius);
  border:1px solid #d1d5db;
}
.contact-form button{
  width:100%;
}

/* FOOTER */
.footer{
  padding:30px 0;
  background:var(--dark);
  color:var(--white);
  text-align:center;
}

/* BUTTONS */
.btn-primary,
.btn-outline{
  display:inline-block;
  padding:12px 22px;
  border-radius:var(--radius);
  text-decoration:none;
  font-weight:600;
}
.btn-primary{
  background:var(--primary);
  color:var(--white);
}
.btn-outline{
  border:2px solid var(--primary);
  color:var(--primary);
}

/* RESPONSIVE */
@media(max-width:900px){
  .hero-inner{flex-direction:column;text-align:center}
  .grid-3,
  .projects-grid,
  .contact-grid{grid-template-columns:1fr}
}

/* === EXPÉRIENCE === */
.experience h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 30px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.exp-card {
  background: var(--bg);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.exp-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.exp-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.exp-card ul {
  margin-left: 20px;
  color: var(--text);
}

.exp-card li {
  margin-bottom: 6px;
}

.exp-tech {
  font-weight: 600;
  color: var(--primary);
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .exp-card {
    font-size: 0.95rem;
  }
}



/* === À propos === */
.section {
  padding: 80px 0;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 40px;
}

.about-text {
  text-align: center;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation d’apparition */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* === CONTACT === */
.contact h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-text {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

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

.form-status {
  display: none;
  text-align: center;
  color: var(--primary);
  font-weight: 500;
  margin-top: 10px;
}

.contact-info p {
  margin-bottom: 12px;
  color: var(--text);
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}


