/* Réinitialisation des styles par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header et navigation */
header {
  background-color: #333;
  color: #fff;
  padding: 1rem;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: space-around;
}

nav a {
  color: #fff;
  text-decoration: none;
}

/* Sections principales */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  margin-bottom: 3rem;
}

h1,
h2 {
  margin-bottom: 1rem;
}

/* Projets */
.projet {
  margin-bottom: 2rem;
}

.projet img {
  max-width: 100%;
  height: auto;
}

/* Compétences */
#competences ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#competences li {
  background-color: #f4f4f4;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

input,
textarea {
  padding: 0.5rem;
  margin-top: 0.5rem;
}

/* Pied de page */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin-bottom: 0.5rem;
  }
}

/* -------------------------------------------------------------- */
/* Landing Page / Accueil */
#accueil {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background-color: #2c3e50;
  background-image: linear-gradient(#3498db 1px, transparent 1px),
    linear-gradient(to right, #3498db 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

#accueil::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.8);
  z-index: 1;
}

#accueil > * {
  z-index: 2;
}
.hero {
  max-width: 800px;
  padding: 2rem;
}

#accueil h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

#accueil h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out 0.5s;
  animation-fill-mode: both;
}

#accueil p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 1s;
  animation-fill-mode: both;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 1.5s;
  animation-fill-mode: both;
}

.btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.arrow {
  display: block;
  width: 20px;
  height: 20px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive design pour la landing page */
@media (max-width: 768px) {
  #accueil h1 {
    font-size: 3rem;
  }

  #accueil h2 {
    font-size: 1.5rem;
  }

  #accueil p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

/* Section Projets */
#projets {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

#projets h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.projet-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.projet-image img {
  width: 100%;
  object-fit: cover;
}

.projet-info {
  padding: 1.5rem;
}

.projet-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.projet-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  list-style-type: none;
}

.tech-stack li {
  background-color: #e9ecef;
  color: #495057;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.projet-links {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-demo {
  background-color: #007bff;
  color: #fff;
}

.btn-code {
  background-color: #6c757d;
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .projets-grid {
    grid-template-columns: 1fr;
  }
}

/* Section Compétences */
#competences {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

#competences h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.competences-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
}

.competence-categorie {
  flex-basis: calc(33.333% - 2rem);
  margin-bottom: 2rem;
}

.competence-categorie h3 {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.competence-liste {
  list-style-type: none;
  padding: 0;
}

.competence-item {
  margin-bottom: 1rem;
}

.competence-nom {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.competence-barre {
  background-color: #e9ecef;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.competence-niveau {
  height: 100%;
  background-color: #007bff;
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

/* Animation des barres de compétences */
@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.competence-niveau {
  animation: fillBar 1.5s ease-out forwards;
}

/* Responsive design */
@media (max-width: 992px) {
  .competence-categorie {
    flex-basis: calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  .competence-categorie {
    flex-basis: 100%;
  }
}

/* Section Pourquoi me choisir */
#pourquoi-moi {
  padding: 4rem 0;
  background-color: #ffffff;
}

#pourquoi-moi h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.pourquoi-moi-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.aspirations,
.atouts,
.valeur-ajoutee {
  flex-basis: calc(33.333% - 2rem);
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aspirations:hover,
.atouts:hover,
.valeur-ajoutee:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pourquoi-moi-content h3 {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.pourquoi-moi-content p {
  margin-bottom: 1rem;
  color: #555;
}

.pourquoi-moi-content ul {
  list-style-type: none;
  padding-left: 0;
}

.pourquoi-moi-content li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.pourquoi-moi-content li::before {
  content: "✓";
  color: #28a745;
  position: absolute;
  left: 0;
}

.cta-container {
  text-align: center;
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 992px) {
  .aspirations,
  .atouts,
  .valeur-ajoutee {
    flex-basis: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .aspirations,
  .atouts,
  .valeur-ajoutee {
    flex-basis: 100%;
  }
}
/* Section Pattern */
#pattern-section {
  background-color: #f8f9fa;
  padding: 4rem 0;
  overflow: hidden;
}

.pattern-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.pattern-row {
  display: flex;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.pattern-square,
.pattern-circle,
.pattern-triangle {
  width: 60px;
  height: 60px;
  margin: 0 20px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.pattern-square:hover,
.pattern-circle:hover,
.pattern-triangle:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pattern-square {
  background-color: #007bff;
}

.pattern-circle {
  background-color: #28a745;
  border-radius: 50%;
}

.pattern-triangle {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 60px solid #dc3545;
  background-color: transparent;
}

/* Responsive design */
@media (max-width: 768px) {
  .pattern-square,
  .pattern-circle,
  .pattern-triangle {
    width: 40px;
    height: 40px;
    margin: 0 10px;
  }

  .pattern-triangle {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid #dc3545;
  }
}

#realisations {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

#realisations h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.realisation-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.realisation-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.realisation-item h3 {
  color: #007bff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.realisation-item ul {
  list-style-type: none;
  padding-left: 0;
}

.realisation-item li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.realisation-item li::before {
  content: "▹";
  color: #28a745;
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .realisations-grid {
    grid-template-columns: 1fr;
  }
}

.section-title {
  position: relative;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  color: #333;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title::before {
  content: "<h2>";
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #007bff;
  font-weight: normal;
  opacity: 0.6;
  font-family: "Courier New", monospace;
}

.section-title::after {
  content: "</h2>";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #007bff;
  font-weight: normal;
  opacity: 0.6;
  font-family: "Courier New", monospace;
}

.section-title span {
  background: linear-gradient(120deg, #007bff, #00dbde);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.seo-optimized {
  padding: 4rem 2rem;
  background-color: #f8f9fa;
}

.expertise-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.expertise-column {
  flex-basis: calc(33.333% - 2rem);
  margin-bottom: 2rem;
}

.expertise-column h3 {
  color: #007bff;
  margin-bottom: 1rem;
}

.keyword-list {
  list-style-type: none;
  padding-left: 0;
}

.keyword-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.keyword-list li::before {
  content: "▹";
  color: #28a745;
  position: absolute;
  left: 0;
}

.seo-paragraph {
  margin-top: 2rem;
  text-align: justify;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .expertise-column {
    flex-basis: calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  .expertise-column {
    flex-basis: 100%;
  }
}
.section-corner {
  position: relative;
}

.section-corner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent #007bff transparent transparent;
  animation: animateCorner 1.5s infinite;
}

@keyframes animateCorner {
  0%,
  100% {
    border-width: 0 20px 20px 0;
    border-color: transparent #007bff transparent transparent;
  }
  50% {
    border-width: 0 10px 10px 0;
    border-color: transparent #0056b3 transparent transparent;
  }
}
