
*  {
   box-sizing: border-box;
}

:root{
  --primary: #3030ec;
  --primary-alt: #0A66C2;
  --primary-dark: #084b96;
  --white: #ffffff;
  --bg: #f9f9f9;
  --text: #333333;
  --muted: #555555;
  --muted-light: #cccccc;
  --success: #008000;
  --shadow: rgba(0,0,0,0.1);
  --shadow-strong: #0000001a;
}
body {
  margin: 0;
  font-family: 'Gagalin', sans-serif;
}

h1, h2, h3{
  font-family: 'Gagalin', sans-serif;
  font-weight: 600;
}

/* Utiliser Gagalin pour tous les h1 */
h1 {
  font-family: 'Gagalin', sans-serif;
}

.overlay{
    display: flex;
    justify-content: center;
    align-items: center;
}



#primary-header{
    background-size: cover;
    background-position: center;
    height: 0vh;
    background-attachment: fixed;
}

#primary-header nav {
  background-color: var(--primary);
  backdrop-filter: blur(8px);
  width: 100%;
  position: fixed;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  box-sizing: border-box;
}

#primary-header .nav-left {
  flex: 0 0 auto;
}

#primary-header .nav-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

#primary-header .nav-right {
  flex: 0 0 auto;
}

#primary-header .nav-center ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#primary-header .nav-center li{
  list-style: none;
}

#primary-header a {
  color: var(--white);
  text-decoration: none;
  font-family: 'inter', sans-serif ;
  font-weight: 700;
}

#primary-header .brand {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

#primary-header .contact-btn{
  background-color: var(--primary);
  color: #ffffff; /* texte blanc */
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.35);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 24px rgba(48, 48, 236, 0.18);
}

#primary-header .contact-btn:hover{
  background-color: var(--primary-dark);
  color: #ffffff;
  border-color: rgba(255,255,255,0.42);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(48, 48, 236, 0.24);
}

#primary-header .nav-toggle{
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Responsive : menu hamburger */
@media (max-width: 768px) {
  #primary-header .nav-center ul {
    display: none;
  }

  #primary-header .nav-toggle{
    display: inline-block;
  }

  /* When nav is open show vertical menu */
  #primary-header nav.open {
    align-items: flex-start;
  }

  #primary-header nav.open .nav-center ul{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px 0;
    gap: 12px;
    align-items: center;
  }

  #primary-header nav.open .nav-right{
    position: absolute;
    top: 56px;
    right: 12px;
  }

  #primary-header .nav-center a,
  #primary-header .nav-center li a{
    color: var(--white);
    padding: 8px 12px;
    display: inline-block;
  }

  /* Reduce header padding on small screens */
  #primary-header nav{
    padding: 0 12px;
    height: 56px;
  }
}

.section{
    scroll-margin-top: 80px;
}

/* HERO SECTION */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* reduced height for less empty space */
  padding: calc(56px + 8px) 16px 12px;
  background-color: #ffffff;
}

.hero-content {
  text-align: center;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-text { margin-top: 18px; }
.marquee {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  background: transparent;
  border: none;
  padding: 0;
}
.marquee__inner {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 16s linear infinite;
}
.marquee__inner span {
  display: inline-block;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  background: transparent;
}
.marquee:hover .marquee__inner { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Home image: smaller, centered and professional */
.home-image {
  max-width: 960px;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 8px auto;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(48,48,236,0.12);
}

@media (max-width: 1024px) {
  .home-image { max-width: 720px; }
}

@media (max-width: 768px) {
  .hero { min-height: 50vh; padding: calc(56px + 8px) 12px 12px; }
  .home-image { max-width: 95%; margin: 12px auto; }
}

/* Flèche scroll */
.scroll-down {
  position: absolute;   /* permet de la placer au bas de la section */
  bottom: 140px;        /* remonter la flèche au-dessus du défilement */
  left: 50%;            /* centre horizontal */
  transform: translateX(-50%); /* ajuste pour que ce soit exactement centré */
  text-align: center;
  z-index: 5;
}

.scroll-down a {
  font-size: 2rem;
  color: var(--primary-alt);
  text-decoration: none;
  display: inline-block;
  animation: bounce 2s infinite;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect – glow et petit mouvement */
.scroll-down a:hover {
  color: var(--primary-dark);
  transform: translateY(-5px); /* remonte légèrement */
  text-shadow: 0 0 8px var(--primary-alt), 0 0 12px var(--primary-alt);
}

/* Animation bounce */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(12px);
  }
  60% {
    transform: translateX(-50%) translateY(6px);
  }
}

@media (max-width: 720px) {
  .scroll-down {
    bottom: 60px;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

.contact-scroll-top {
  margin-top: 24px;
  text-align: center;
}

.contact-scroll-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(10, 102, 194, 0.18);
  background: rgba(10, 102, 194, 0.08);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  animation: float-up 2.6s ease-in-out infinite;
}

.contact-scroll-top a:hover {
  transform: translateY(-3px);
  background-color: rgba(10, 102, 194, 0.12);
  box-shadow: 0 14px 30px rgba(10, 102, 194, 0.14);
  text-decoration: none;
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  .hero { min-height: 50vh; padding: calc(56px + 12px) 12px 16px; }
  .hero-content { gap: 14px; }
  .home-image { max-width: 85%; margin: 12px auto; }
  .hero-text { margin-top: 12px; }
  .marquee__inner span { font-size: 1.1rem; }
}

@media (max-width: 540px) {
  .hero { min-height: 44vh; padding-top: calc(56px + 10px); }
  .home-image { max-width: 100%; border-radius: 18px; }
  .contact-actions { justify-content: center; }
}


/* SECTION ABOUT */
.about {
  padding: 60px 20px;
  margin: 0;
  background-color: rgba(48, 48, 236, 0.06);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  gap: 40px;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(48, 48, 236, 0.08);
}

/* TEXTE */
.about-text {
  flex: 1;
}

.about-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: rgba(48, 48, 236, 0.12);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.about-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--primary);
}

.about-text p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: var(--text);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.about-highlight {
  padding: 24px 22px;
  border-radius: 24px;
  background: rgba(48, 48, 236, 0.08);
  border: 1px solid rgba(48, 48, 236, 0.14);
  box-shadow: 0 10px 28px rgba(48, 48, 236, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.about-highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(48, 48, 236, 0.18);
  background-color: rgba(48, 48, 236, 0.12);
}

.about-highlight h4 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  color: var(--primary);
}

.about-highlight p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

/* IMAGE */
.about-image {
  flex: 1;
  text-align: center;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -18px;
  right: -18px;
  width: 80%;
  height: 80%;
  background: rgba(48, 48, 236, 0.12);
  border-radius: 28px;
  z-index: 0;
}

.about-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(48, 48, 236, 0.14);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover img {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 50px rgba(48, 48, 236, 0.2);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column-reverse;
    padding: 24px;
  }

  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .about-container {
    text-align: center;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .about-image::before {
    display: none;
  }
}

/* SECTION SKILLS */
.skills {
  padding: 80px 20px;
  background-color: #ffffff;
}

.skills-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.skills-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
}

.skills-headline {
  max-width: 720px;
  text-align: center;
}

.skills-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.skills-header p {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.skills-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: rgba(48, 48, 236, 0.12);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Grille */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Cartes */
.skill-card {
  background: linear-gradient(180deg, rgba(48,48,236,0.96) 0%, rgba(10,102,194,0.96) 100%);
  border: 1px solid rgba(13, 17, 79, 0.12);
  border-radius: 24px;
  padding: 28px 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  text-align: left;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
}

.skill-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.skill-card h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--white);
}

.skill-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .skills-header {
    text-align: center;
    justify-content: center;
  }

  .skills-header p {
    margin: 14px auto 0;
  }
}

@media (max-width: 500px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}



 


.projets {
  padding: 80px 20px;
  background-color: #f7f8ff;
}

.projets-container {
  max-width: 1100px;
  margin: 0 auto;
}

.projets-header {
  text-align: center;
  margin-bottom: 32px;
}

.projets-label {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: rgba(48, 48, 236, 0.12);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.projets-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  margin: 16px 0 12px;
  color: var(--primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  display: block;
  padding: 14px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(48, 48, 236, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(48, 48, 236, 0.15);
}

.project-card-image {
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  background-color: #f2f4ff;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card-image:hover {
  transform: scale(1.01);
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.project-card-image:hover img {
  transform: scale(1.03);
  filter: brightness(0.95);
}


.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.project-link:hover {
  background: var(--primary-dark);
}

@media (max-width: 820px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card-image {
    min-height: 220px;
  }
}

/* SECTION PROJETS ACCUEIL */
.home-project {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 35px 15px;
}

/* TITRE */
.home-project h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #0A66C2;
}

/* IMAGE CLIQUABLE */
.home-project img {
  width: 100%;
  max-width: 700px;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER IMAGE */
.home-project img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* TEXTE */
.home-project p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-top: 20px;
  line-height: 1.6;
  color: #444;
}

/* BOUTON PROJETS */
.btn-projects {
  margin-top: 30px;
  padding: 12px 25px;
  background-color: #0A66C2;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s ease;
}

.btn-projects:hover {
  background-color: #084b96;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .home-project h2 {
    font-size: 2rem;
  }

  .home-project img {
    max-width: 90%;
  }
}

.contact {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(48, 48, 236, 0.12), rgba(255, 255, 255, 0.95));
}

.contact-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  background-color: #ffffff;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(48, 48, 236, 0.08);
}

.contact-label {
  display: inline-flex;
  margin: 0 auto 16px; /* centrer horizontalement */
  padding: 10px 18px;
  border-radius: 999px;
  background-color: rgba(48, 48, 236, 0.12);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.contact-copy h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  margin: 0 0 20px;
  color: var(--primary);
}

.contact-copy p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 620px;
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.linkedin-link {
  border: 1px solid rgba(10, 102, 194, 0.18);
  background-color: rgba(10, 102, 194, 0.08);
  color: var(--primary);
}

.contact-link,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-link {
  background-color: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(48, 48, 236, 0.18);
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(48, 48, 236, 0.12);
}

.contact-button {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(48, 48, 236, 0.18);
  background-color: var(--primary-dark);
}

.contact-card {
  background-color: rgba(48, 48, 236, 0.06);
  border: 1px solid rgba(48, 48, 236, 0.14);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 0 18px 36px rgba(48, 48, 236, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement le contenu */
  align-items: flex-start; /* garde le texte aligné à gauche */
  text-align: left;
  align-self: center; /* centre la carte dans la grille */
  min-height: 220px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px rgba(48, 48, 236, 0.16);
  background-color: rgba(48, 48, 236, 0.08);
}

.contact-card-title {
  margin: 0 0 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-details {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.contact-details li {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 540px) {
  .contact-copy h2 {
    font-size: 2.2rem;
  }
}







