/* 🌸 Portfolio Nada Aznak – Style principal */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #faf8ff;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Loader */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #faf8ff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.loader-content h2 {
  color: #7a3cff;
  margin-bottom: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e1d8ff;
  border-top: 4px solid #7a3cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4%;
}
.logo {
  font-weight: 700;
  color: #7a3cff;
  font-size: 1.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #7a3cff;
}

/* Sections */
section {
  padding: 80px 4%;
}
h2 {
  color: #7a3cff;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}
h3 {
  color: #333;
  margin-bottom: 0.5rem;
}
p {
  color: #444;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn.primary {
  background: #7a3cff;
  color: white;
}
.btn.primary:hover {
  background: #5a1eff;
}
.btn.secondary {
  background: #eae0ff;
  color: #7a3cff;
}
.btn.secondary:hover {
  background: #7a3cff;
  color: #fff;
}

/* Projects */
.project {
  background: white;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.project h3 {
  color: #7a3cff;
}

/* Certifications */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.cert-card {
  background: white;
  border-radius: 14px;
  text-align: center;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.cert-card img {
  height: 60px;
  margin-bottom: 15px;
}
.hp-cert {
  width: 100%;
  margin-top: 15px;
  border-radius: 8px;
}

/* Footer */
footer {
  background: #7a3cff;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}
/* ===== Photo de profil ===== */
.photo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo img {
  width: 320px;          /* taille idéale de portrait */
  height: auto;
  border-radius: 20px;   /* coins arrondis doux */
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(122, 60, 255, 0.25);
}

/* Disposition section d’accueil */
.home-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  padding: 60px 0;
}

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

