:root {
    --bg-dark: oklch(0.1 0.005 285);
    --bg: oklch(0.15 0.005 285);
    --bg-light: oklch(0.2 0.005 285);
    --text: oklch(0.96 0.01 285);
    --text-muted: oklch(0.76 0.01 285);
    --highlight: oklch(0.5 0.01 285);
    --border: oklch(0.4 0.01 285);
    --border-muted: oklch(0.3 0.01 285);
    --primary: oklch(0.76 0.1 285);
    --secondary: oklch(0.76 0.1 105);
    --danger: oklch(0.7 0.05 30);
    --warning: oklch(0.7 0.05 100);
    --success: oklch(0.7 0.05 160);
    --info: oklch(0.7 0.05 260);
}

body{
    background: var(--bg-dark);
    color: var(--text-muted);
}

button {
    background: var(--bg-light);
    padding: 0.5rem 1rem 0.7rem 1rem;
    color: var(--text);
    font-weight: 700;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    border: solid 1px var(--border);
    cursor: pointer; 
}

div {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 1rem;
  border: solid 1px var(--border);
  border-top: solid 1px var(--highlight);
  margin: 2rem auto;
  max-width: 1100px;
  box-sizing: border-box;
}


div:hover {
    background: var(--gradient-hover);
}

h1 {
    color: var(--text);
}

h2 {
    color: var(--text);
}

strong {
  color: var(--info)
}

p {
    color: var(--text-muted);
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg);
  border: solid 1px var(--border);
  border-top: solid 1px var(--highlight);
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

nav ul li {
  float: left;
}

nav ul li a {
  display: block;
  color: var(--text);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

nav ul li a:hover {
  background-color: var(--gradient-hover);
}

nav ul li:hover {
  background: var(--bg-light);
}

.primary {
    background: var(--primary);
}

ul {
  list-style-type: none;
}

ul li a {
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

ul li a:hover {
  color: var(--highlight);
  text-align: center;
  text-decoration: none;
  -ms-text-size-adjust: 105%;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
}

.projects-gallery div {
  margin-left: auto;
  margin-right: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects-gallery div:hover {
  background: var(--bg);
  transform: translateY(-5px);
  box-shadow: 0 0 10px var(--info), 0 0 20px var(--info);
}

.projects-gallery img {
  width: 100%;
  cursor: pointer;
  transition: 1s;
}

.projects-gallery h1 {
  width: 100%;
  cursor:text;
  transition: 1s;
}

.projects-gallery p {
  width: 100%;
  cursor: text;
  transition: 1s;
}

a {
  color: var(--info);
  text-align: none;
}

.competences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  background: none;
  border: none;
  justify-items: center;
  max-width: calc(3 * 330px + 2 * 2rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.competence-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 2px solid var(--highlight);
  border-radius: 0.8rem;
  padding: 1.5rem;
  max-width: 330px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Effet au survol */
.competence-card:hover {
  background: var(--bg);
  transform: translateY(-5px);
  box-shadow: 0 0 10px var(--info), 0 0 20px var(--info);
}

.competence-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

#profil > div {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: var(--bg);
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

#profil > div:hover {
  background: var(--gradient-hover);
}

#profil h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--text);
}

#profil p {
  line-height: 1.6;
  color: var(--text-muted);
}

#profil iframe {
  display: block;
  margin-top: 1.5rem;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}