/* PALETTE & FONDAMENTAUX */
:root {
  --primary-color: #152939;
  --secondary-color: #1f3b4d;
  --accent-color: #007acc;
  --text-color: #333;
  --background-color: #ffffff; /* fond général blanc */
  --white: #ffffff;
  --light-gray: #e0e0e0; /* gris plus foncé que #f5f5f5 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color); /* blanc */
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.container.full-width {
  max-width: none;
  padding: 0 1rem;
}


/* HEADER */
.header {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  position: relative;
}

.logo-link {
  display: inline-block;   /* pour que width/height s’appliquent */
  width: 120px;
  height: 120px;
}

.logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* garde le logo sans déformation */
}
				

.logo-img {
  height: 120px;
  margin: 0 auto;
}
				
/* fixe la taille de l’ancre du logo */
.header .header-inner .logo-link {
  display: inline-block;
  width: 120px !important;
  height: 120px;
  overflow: hidden;          /* évite tout débordement */
  vertical-align: middle;
}

/* fait rentrer l’image dans l’ancre 120×120 */
.header .header-inner .logo-link img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;       /* pas de déformation du logo */
  margin: 0;                 /* annule le margin auto centré */
}


.navbar {
  margin-top: 1rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

/* BURGER MENU */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 2rem;
  right: 1.5rem;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: 0.3s;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background-color: var(--primary-color);
    padding: 1rem 0;
    display: none;
  }

  .navbar.active .nav-links {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

/* BOUTON */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #005c99;
}

/* HERO */
.hero {
  text-align: center;
  background-color: var(--white);
  padding: 0.3rem 1rem 2rem 1rem; /* haut, droite, bas, gauche */
  animation: fadeIn 1s ease-out;
}


.hero-grid {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.hero-img {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
}

.hero-content {
  flex: 2 1 400px;
}

.profile-pic {
  width: 160px;
  border-radius: 50%;
}

.hero h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin: 0.5rem 0;
}

.intro {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.intro-index {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}


/* POURQUOI ME CHOISIR */
.why {
  background-color: var(--light-gray); /* gris plus foncé */
  text-align: center;
  padding-bottom: 2rem;
}

.why h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* STYLE GÉNÉRAL DES CARTES (TOUTES) */
.card {
  background-color: var(--secondary-color); /* fond sombre pour chaque carte */
  color: var(--white);                      /* texte en blanc */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 300px;
  transition: transform 0.3s;
}

.card-icon {
  width: 50px;              /* Ajuste la taille si besoin */
  height: auto;
  margin: 1rem auto 0 auto; /* Centre horizontalement et ajoute un espace au-dessus */
  display: block;           /* Nécessaire pour margin auto de fonctionner */
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--white); /* titre en blanc */
  margin-bottom: 0.5rem;
}

/* RÉALISATIONS */
.project {
  display: block;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 300px;
  transition: transform 0.3s;
  text-align: center;
  text-decoration: none;  /* enlève le soulignement du lien */
}

.projects h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}


.project-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* STYLE GÉNÉRAL DES PROJETS (TOUTES) */
.project {
  background-color: var(--secondary-color); /* fond sombre pour chaque projet */
  color: var(--white);                      /* texte en blanc */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 300px;
  transition: transform 0.3s;
  text-align: center;
}

.project:hover {
  transform: translateY(-5px);
  text-decoration: none;
}


/* Si le lien est cliquable */
.project p {
  margin: 0;
  color: var(--white);
}

.project a {
  color: var(--white); /* assure la lisibilité du texte/liens */
}

.project img {
  width: 60px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

/* === COMPÉTENCES === */
.skills {
  background-color: var(--light-gray); 
  text-align: center;
  padding-bottom: 2rem;
}

.skills h2 {
  margin-top: 0;           /* pas de marge supplémentaire au-dessus */
  margin-bottom: 1.5rem;   /* marge sous le titre pour espacer les cartes */
  color: var(--primary-color);
}

/* Grille 2x2 inchangée, mais on l’inclut pour contexte */
.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 350px));
  justify-content: center;
  column-gap: 1rem;
  row-gap: 1rem;
  padding: 0;
  list-style: none;
  margin: 0 auto;
}

.skills-list li {
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  width: 100%;
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s;
}

.skills-list li strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.skills-list li:hover {
  transform: translateY(-5px);
}

/* === OVERRIDES POUR DÉGRADÉS === */

/* 1. Power BI (jaune → jaune clair) */
.skills-list li:nth-child(1) {
  background: linear-gradient(
    to right,
    #F2C811,  /* jaune Power BI foncé */
    #FFF176   /* jaune clair */
  );
  color: #000000; /* Texte en noir pour le contraste */
}

/* 2. SQL (bleu → bleu clair) */
.skills-list li:nth-child(2) {
  background: linear-gradient(
    to right,
    #007ACC,  /* bleu SQL foncé */
    #66B2FF   /* bleu clair */
  );
  color: #000000; /* Texte en blanc pour le contraste */
}

/* 3. Python (dégradé bleu → jaune) – inchangé */
.skills-list li:nth-child(3) {
  background: linear-gradient(135deg, #3776AB 0%, #FFD43B 100%);
  color: #000000;
}

/* 4. Excel (vert → vert clair) */
.skills-list li:nth-child(4) {
  background: linear-gradient(
    to right,
    #217346,  /* vert Excel foncé */
    #6ABF8E   /* vert clair */
  );
  color: #000000; /* Texte en blanc pour le contraste */
}



/* TÉMOIGNAGE */
.testimonials {
  background-color: var(--background-color); /* blanc */
  text-align: center;
  padding-bottom: 2rem;
}s

.testimonials h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.testimonial {
  max-width: 700px;
  margin: auto;
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial span {
  display: block;
  margin-top: 0.5rem;
  color: var(--accent-color);
  font-weight: 500;
}

/* CTA */
.cta {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem;
}

.cta h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* FOOTER */
.footer {
  background-color: var(--secondary-color); /* #1f3b4d */
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* ANIMATION */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Liens dans la section Projets */
.projects .project a {
  text-decoration: none;      /* supprime le soulignement */
}

.projects .project a:hover {
  text-decoration: underline;
}

.contact-hero {
  padding-top: 0.5rem;       /* Réduit encore l'espace au-dessus */
  padding-bottom: 0.3rem;    /* Réduit encore l'espace en bas */
}

.contact-hero h1 {
  margin-top: 0;
  margin-bottom: 0.3rem;     /* Très proche du texte intro */
}

.contact-hero .intro {
  margin-top: 0;
  margin-bottom: 0.8rem;     /* Réduit l'espace sous le texte intro */
}



.contact-form {
  background-color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
}

.contact-form .container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.contact-form .form-group label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form .btn {
  align-self: center;
  width: auto;
  padding: 0.75rem 2rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;          /* supprime la bordure noire par défaut */
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.contact-form .btn:hover {
  background-color: #005c99;
}


.hero.contact-hero {
  padding-bottom: 0;
}

.hero.contact-hero + .contact-form {
  margin-top: 0;
}

/* Titres centrés et espacés pour les rapports */
.report-title {
  text-align: center;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Espacement des iframes pour bien séparer chaque rapport */
.report-frame {
  display: block;
  margin: 0 auto 3rem auto;
  width: 80%; /* au lieu de 100% */
  height: 675px;
  border: none;
  border-radius: 12px; /* ajoute des coins arrondis */
  overflow: hidden; /* évite les débordements */
}

.report-frame-football {
  display: block;
  margin: 0 auto 3rem auto;
  width: 80%; /* au lieu de 100% */
  height: 600px;
  border: none;
  border-radius: 12px; /* ajoute des coins arrondis */
  overflow: hidden; /* évite les débordements */
}

.report-block {
  background-color: #f9f9f9; /* gris clair */
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.report-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem; /* plus grand */
  font-weight: 700;  /* plus gras */
  margin-bottom: 1rem;
  text-transform: uppercase; /* optionnel, pour le style */
}

.report-description {
  font-size: 1rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  text-align: center;
}

.report-skills {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.report-skills li {
  background-color: var(--light-gray);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.portfolio-note {
  font-style: italic;
  color: gray;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;   /* espace réduit au-dessus */
  margin-bottom: 1.5rem; /* espace en dessous */
}


