/* ----- RESET ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

/* ===== HEADER ===== */
header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.logo p {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a47a3;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #4a47a3;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 50px 20px;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
}

/* Colonne gauche */
.hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.hero-image img {
  width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Colonne droite */
.hero-text {
  flex: 1 1 400px;
  padding: 20px;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text h1 span {
  color: #4a47a3;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

/* Bouton */
.hero-button {
  display: inline-block;
  background-color: #4a47a3;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #37348c;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .hero-text {
    text-align: left;
  }
}
/* ===== SECTION À PROPOS ===== */
.a-propos {
  position: relative;
  padding: 100px 10%;
  background: linear-gradient(135deg, #f8f8ff 0%, #ecebfa 50%, #ffffff 100%);
  overflow: hidden;
}

.a-propos-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* Texte à gauche */
.a-propos-texte {
  flex: 1;
}

.a-propos-texte h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #3c2e8a;
}

.a-propos-texte p {
  color: #444;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Image à droite */
.a-propos-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.a-propos-image img {
  width: 320px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.a-propos-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Décor abstrait */
.decor {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f2f0ff 0%, #e6e4fa 40%, #ffffff 100%);
  z-index: 1;
  overflow: hidden;
}

.decor::before,
.decor::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(74, 71, 163, 0.15), transparent 70%);
  transform: rotate(25deg);
  border-radius: 30% 70% 70% 30% / 40% 40% 60% 60%;
  filter: blur(80px);
}

.decor::before {
  top: -150px;
  left: -100px;
}

.decor::after {
  bottom: -150px;
  right: -100px;
  background: linear-gradient(135deg, rgba(110, 98, 200, 0.2), transparent 70%);
}

/* Responsive */
@media (max-width: 900px) {
  .a-propos-content {
    flex-direction: column;
    text-align: center;
  }

  .a-propos-image img {
    width: 250px;
  }
}


/* ===== SECTION COMPÉTENCES ===== */
.competences {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f8fb;
}

.competences-container {
  max-width: 1100px;
  text-align: center;
}

.competences h2 {
  font-size: 2.2rem;
  color: #4a47a3;
  margin-bottom: 15px;
  font-weight: 700;
}

.competences .intro {
  font-size: 1.1rem;
  color: #555;
  max-width: 750px;
  margin: 0 auto 60px auto;
  line-height: 1.6;
}

/* Grille */
.competences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ 4 colonnes fixes */
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

/* Cartes générales */
.competence-card {
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.competence-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.icon {
  font-size: 2.3rem;
  margin-bottom: 15px;
}

.competence-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.competence-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Couleurs des fonds par catégorie */
.design {
  background: linear-gradient(145deg, #383a6f, #5b5fa1);
}

.data {
  background: linear-gradient(145deg, #383a6f, #5b5fa1);
}

.communication {
  background: linear-gradient(145deg, #383a6f, #5b5fa1);
}

.ux {
  background: linear-gradient(145deg, #383a6f, #5b5fa1);
}

/* Responsive */
@media (max-width: 768px) {
  .competences .intro {
    margin-bottom: 40px;
  }
}
@media (max-width: 1024px) {
  .competences-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
  }
}

@media (max-width: 600px) {
  .competences-grid {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
  }
}
/* ===== SECTION CALL TO ACTION ===== */
.cta {
  background: linear-gradient(135deg, #4a47a3, #6d69d5);
  color: #fff;
  padding: 100px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 70%);
  transform: rotate(25deg);
  z-index: 0;
}

.cta-text {
  z-index: 2;
}

.cta-text h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.cta-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f1f1f1;
  max-width: 500px;
}

/* ===== FORMULAIRE ===== */
.cta-form {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.cta-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-form label {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}

.cta-form input:focus,
.cta-form textarea:focus {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ===== Bouton ===== */
.cta-button {
  background-color: #fff;
  color: #4a47a3;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 12px 35px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #f5f4ff;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cta-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .cta-text p {
    margin: 0 auto;
  }
}
