html {
  scroll-behavior: smooth;
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

body {
  margin: 0;
}

/* ---=== HEADER ===--- */

header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ecf4ff;
}

/* Partie gauche */

.left-header {
  flex: 1;
  padding: 5px 10px;
}

.left-header-item {
  display: flex;
  align-items: center;
  margin: 10px;
  font-size: 20px;
  font-weight: bold;
  padding-left: 30px;
  white-space: nowrap;
}


.left-header-item img {
  max-width: 60px;
  margin-top: 10px;
}

.left-header-item a {
  text-decoration: none;
  color: #93abc9;
  transition: color 0.25s ease;
}

.left-header-item a:hover {
  color: rgb(67, 71, 124);
}

/* Partie droite */

/* Navigation */

nav {
  padding: 20px 10px;
  display: flex;
  justify-content: space-between;
  flex-grow: 0.1;
}

.nav-item {
  padding: 5px 15px;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: black;
  transition: color 0.25s ease;
}

header a:hover {
  color: #0b6ef0;
}

/* Boutons */

button {
  background-color: white;
  border: 1px solid rgb(214, 212, 212);
  border-radius: 5px;
  font-size: 20px;
  min-height: 40px;
}

/* ---=== SCROLL ===--- */

#parcours,
#competences,
#cv,
#projets,
#contact,
#certifications {
  scroll-margin-top: 120px;
}

/* ---=== A PROPOS ===--- */

.a-propos {
  padding: 80px 10vw;
  background-color: rgb(249, 251, 255);
  display: flex;
  justify-content: center;
  flex-wrap: wrap-reverse;
  gap: 60px;
}

.a-propos-item {
  padding: 0 40px;
  max-width: 500px;
  text-align: justify;
}

.a-propos-item h2{
  text-align: left;
}

.a-propos img {
  width: 250px;
  border: 3px solid rgb(82, 82, 82);
  border-radius: 15px;
  box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.5);

}

.a-propos-item:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
}

.texte-a-propos {
  color: #283b52;
}

/* ---=== TITRES ===--- */

/* Texte du titre */

.titre {
  margin-top: 70px;
  font-size: 22px;
  text-align: center;
}

/* Trait de séparation */

hr {
  width: 60px;
  height: 3px;
  background-color: black;
  border: none;
  border-radius: 2px;
}

.sous-titre {
  color: #4d5f75;
  margin-top: 35px;
  font-size: 20px;
  text-align: center;
}



/* ---=== SECTION PARCOURS ===--- */

.pointilles {
  text-align: center;
  font-size: 50px;
  line-height: 20px;
  color: #283b52;
}

.pointilles p {
  margin: 0;
}

.paragraphe-parcours {
  margin: 35px auto 5px auto;
  padding: 10px 50px;
  text-align: left;
  border: 2px solid #283b52;
  border-radius: 20px;
  width: 50%;
  max-width: 700px;
  font-size: 0.95rem;
  color: #283b52;
}

.paragraphe-parcours-date {
  text-align: right;
  font-weight: bold;
}

/* ---=== SECTION COMPETENCES ===--- */

.section-competences {
  padding: 20px 0;
  background-color: rgb(249, 251, 255);
}

.competences-techniques {
  margin: 40px 0;
  padding: 20px 30px;
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Inter", sans-serif;
}

.competences-techniques-item strong {
  display: block;
  font-size: 1.6rem;
  color: #334155;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid var(--color-before);
}

/* Sous-catégories */
.sous-categorie {
  margin-bottom: 25px;
}

.sous-categorie h4 {
  font-size: 1.2rem;
  color: #334155;
  margin-bottom: 12px;
  position: relative;
}

.sous-categorie h4::before {
  content: "•";
  margin-right: 8px;
  font-weight: bold;
}

/* Liste des compétences */
.liste-competences {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.liste-competences-item {
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: default;
}

.liste-competences-item:hover {
  transform: translateY(-2px);
}

/* Web */
.web {
  border-color: #3b82f6;
  --color-before: #3b82f6;
  --bg-item: #e0f2fe;
  --color-item: #0369a1;
  --shadow-item: rgba(59, 130, 246, 0.3);
}

.web h4::before {
  color: var(--color-before);
}

.web .liste-competences-item {
  background-color: var(--bg-item);
  color: var(--color-item);
}

.web .liste-competences-item:hover {
  box-shadow: 0 4px 8px var(--shadow-item);
}

/* Logiciel */
.log {
  border-color: #f63bbe;
  --color-before: #f63bbe;
  --bg-item: #fae3ee;
  --color-item: #a10372;
  --shadow-item: rgba(246, 59, 199, 0.3);
}

.log h4::before {
  color: var(--color-before);
}

.log .liste-competences-item {
  background-color: var(--bg-item);
  color: var(--color-item);
}

.log .liste-competences-item:hover {
  box-shadow: 0 4px 8px var(--shadow-item);
}

/* BDD */
.bdd {
  border-color: #0de042;
  --color-before: #0de042;
  --bg-item: #e8fced;
  --color-item: #05662e;
  --shadow-item: rgba(59, 246, 137, 0.3);
}

.bdd h4::before {
  color: var(--color-before);
}

.bdd .liste-competences-item {
  background-color: var(--bg-item);
  color: var(--color-item);
}

.bdd .liste-competences-item:hover {
  box-shadow: 0 4px 8px var(--shadow-item);
}

/* Réseaux */
.res {
  border-color: #ff0000;
  --color-before: #ff0000;
  --bg-item: #fae3e3;
  --color-item: #a10303;
  --shadow-item: rgba(246, 59, 59, 0.3);
}

.res h4::before {
  color: var(--color-before);
}

.res .liste-competences-item {
  background-color: var(--bg-item);
  color: var(--color-item);
}

.res .liste-competences-item:hover {
  box-shadow: 0 4px 8px var(--shadow-item);
}

/* comportement */
.cc {
  border-color: #81817e;
  --color-before: #9e9a9a;
  --bg-item: #e6e5e5;
  --color-item: #525252;
  --shadow-item: rgba(185, 185, 185, 0.3);
}

.cc h4::before {
  color: var(--color-before);
}

.cc .liste-competences-item {
  background-color: var(--bg-item);
  color: var(--color-item);
}

.cc .liste-competences-item:hover {
  box-shadow: 0 4px 8px var(--shadow-item);
}

/* ---=== FIN SECTION COMPETENCES ===--- */

/* === SECTION : certifications === */

.certifications {
  padding-bottom: 40px;
  text-align: center;
}

.certifications h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #1e293b;
}

.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.certification-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.certification-info {
  padding: 20px;
}

.certification-info a {
  color: blue;
}

.certification-info h3 {
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.certification-info p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* === SECTION : projets === */

.section-projets {
  background-color: rgb(249, 251, 255);
  padding-top: 1px;
}

.projets-responsive {
  display: flex;
  gap: 20px;
  padding: 10px 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.projet-card {
  text-align: justify;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1 1 350px;
  max-width: 450px;
  transition: transform 0.3s ease;
  
}

.projet-card h3 {
  text-align: left;
  font-size: 27px;
  margin-bottom: 10px;
  color: #1e293b;
}

.projet-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #475569;
}

.liste-projet {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.liste-projet-item {
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: default;
}

.pr {
  --bg-item: #d9eff8;
  --color-item: #3c5e7e;
  --shadow-item: rgba(165, 215, 248, 0.3);
}


.pr .liste-projet-item {
  background-color: var(--bg-item);
  color: var(--color-item);
}

.pr .liste-projet-item:hover {
  box-shadow: 0 4px 8px var(--shadow-item);
  transform: translateY(-2px);
}

.btn-projet {
  display: inline-block;
  margin-top: 15px;
  margin-right: 10px;
  padding: 10px 20px;
  background-color: #25c225;
  color: #fff;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-projet:hover {
  background-color: #1cbe32;
  transform: translateY(-2px);
}

.element-interdit {
  display: inline-block;
  margin-top: 15px;
  margin-right: 10px;
  padding: 10px 20px;
  background-color: #c7c7c7;
  color: #e9e9e9;
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  cursor: not-allowed;
}

/* Images projets*/

.img-dashmed {
  width: 40px;
  position: relative;
  top: 6px;
}

/* Retour du header des pages projets */

.retour {
  font-size: 30px;
}

/* === Fin secion : projets === */

/* === SECTION : Contact === */

.contact-responsive {
  display: flex;
  gap: 20px;
  padding: 10px 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 650px; 
  transition: transform 0.3s ease;
}

/* === SECTION : CV === */

.btn-telecharger {
  display: block;
  text-align: center;
  max-width: 140px;
  margin: 15px auto 0;
  padding: 20px 20px;
  background-color: #2707db;
  color: #fff;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-telecharger:hover {
  background-color: #535df3;
}



.a_cv {
  color : blue;
  font-weight: bold;
}

/* === SECTION : CV === */

footer {
  padding: 30px 0 ;
  margin-top: 50px;
  background-color: rgb(61, 61, 61);
  color: white;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

footer a {
  color: white;
}

footer a:hover {
  color: blue ;
}

/* === SECTION : Mentions légales === */

.mentions-legales-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
}

.mentions-legales-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #000000;
}

.mentions-block {
  margin-bottom: 25px;
  background: #f4f8ff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mentions-block h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.mentions-block a {
  color: #0b6ef0;
  text-decoration: none;
}

.mentions-block a:hover {
  text-decoration: underline;
}
