/* Variables CSS pour la palette de couleurs */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 3.9%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 3.9%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(0, 0%, 3.9%);
  --primary: hsl(217.2, 91.2%, 59.8%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(0, 0%, 96.1%);
  --secondary-foreground: hsl(0, 0%, 9%);
  --muted: hsl(0, 0%, 96.1%);
  --muted-foreground: hsl(0, 0%, 45.1%);
  --accent: hsl(0, 0%, 96.1%);
  --accent-foreground: hsl(0, 0%, 9%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(0, 0%, 89.8%);
  --input: hsl(0, 0%, 89.8%);
  --ring: hsl(0, 0%, 3.9%);
  --chart-1: hsl(12, 76%, 61%);
  --chart-2: hsl(173, 58%, 39%);
  --chart-3: hsl(197, 37%, 24%);
  --chart-4: hsl(43, 74%, 66%);
  --chart-5: hsl(27, 87%, 67%);
  --radius: 0.5rem;
  --sidebar-background: hsl(0, 0%, 98%);
  --sidebar-foreground: hsl(240, 5.3%, 26.1%);
  --sidebar-primary: hsl(240, 5.9%, 10%);
  --sidebar-primary-foreground: hsl(0, 0%, 98%);
  --sidebar-accent: hsl(240, 4.8%, 95.9%);
  --sidebar-accent-foreground: hsl(240, 5.9%, 10%);
  --sidebar-border: hsl(220, 13%, 91%);
  --sidebar-ring: hsl(217.2, 91.2%, 59.8%);
}

.profile-pic {
  position: absolute;
  top: 20px;
  left: 15px;
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  border: 6px solid var(--sidebar-primary);
  border-radius: 50%;
}

.social {
  margin: 0 auto;
  width: auto;
  text-align: inherit;
}

.icon-btn {
  width: 50px;
  height: 50px;
  border: 0;
  color: var(--primary-foreground);
  cursor: pointer;
  font-size: 30px;
  line-height: 50px;
  border-radius: 45px;
  display: inline-block;
  margin: 4px;
  transition: transform 0.2s, background-color 0.2s;
}

.github {
  color: var(--foreground);
}

.linkedin {
  color: #0077b5;
}

.angellist {
  color: var(--muted-foreground);
}

.icon-btn:hover {
  transform: scale(1.1);
  color: var(--primary-foreground);
}

.linkedin:hover {
  background-color: #0077b5;
}

.angellist:hover {
  background-color: var(--muted-foreground);
}

.github:hover {
  background-color: var(--foreground);
}

.readme {
  position: relative;
  padding: 11px 35px;
  background: var(--primary-foreground);
  color: var(--primary);
  border: 2px solid var(--primary-foreground);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  border-radius: 5px;
  transition: background-color 0.2s, color 0.2s;
}

.readme:hover {
  background-color: transparent;
  color: var(--primary-foreground);
}

.contactme {
  position: relative;
  padding: 11px 35px;
  background: transparent;
  color: var(--primary-foreground);
  border: 2px solid var(--primary-foreground);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  margin-top: 1.5em;
  border-radius: 5px;
  transition: background-color 0.2s, color 0.2s;
}

.contactme:hover {
  color: var(--primary);
  background-color: var(--primary-foreground);
}

body {
  color: var(--foreground);
  font-size: 18px;
}

a {
  color: var(--primary);
}

blockquote {
  border-left: 5px solid var(--muted-foreground);
  color: var(--muted-foreground);
  font-size: 125%;
  font-weight: 400;
  margin: 20px 0;
  padding-left: 1.5rem;
}

blockquote * {
  font-size: inherit;
  line-height: inherit;
}

.text-center {
  text-align: center;
}

nav {
  background: var(--background);
  box-shadow: none;
  height: 0;
}

nav i {
  padding: 0 15px;
  position: relative;
  top: 5px;
}

main {
  background: url(../../assets/img/bg.png) repeat;
  padding-left: 220px;
  padding-bottom: 100px;
}

dl {
  margin-top: 0.5rem;
}

dd {
  display: inline-block;
  font-weight: 500;
  margin-left: 0;
}

dt {
  display: inline-block;
  margin-left: 0.5rem;
}

ul.side-nav {
  width: 220px;
}

ul.side-nav li {
  padding: 0;
}

ul.side-nav li a {
  color: var(--primary);
  display: flex;
  align-items: center;
  padding: 10px 15px;
  transition: background-color 0.2s;
}

ul.side-nav li a i {
  margin-right: 10px;
  color: var(--primary);
  font-size: 20px;
}

ul.side-nav.fixed a {
  color: var(--primary);
  display: flex;
  align-items: center;
  padding: 10px 15px;
  transition: background-color 0.2s;
}

ul.side-nav.fixed li.logo {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  min-height: 222px;
  padding: 20px 15px;
  position: absolute;
  top: -225px;
  width: 220px;
}

ul.table-of-contents li:not(.logo) a.active,
ul.table-of-contents li:not(.logo) a:hover {
  background-color: var(--secondary);
  border-left: 3px solid var(--primary);
}

ul.side-nav.fixed.table-of-contents li:not(.logo) a span,
ul#slide-out li:not(.logo) a span {
  color: var(--foreground);
}

li.logo span {
  display: block;
  font-size: 14px;
}

.container {
  width: 95%;
}

h3 {
  font-weight: 200;
  margin-bottom: 60px;
  margin-top: 0;
  padding: 30px 40px;
  text-transform: uppercase;
}

.section {
  padding-bottom: 30px;
  padding-top: 0;
  position: relative;
}

.full-height {
  min-height: 100vh;
}

#intro.section {
  background: var(--accent) repeat;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#intro.section .container {
  color: var(--primary-foreground);
  font-weight: 200;
  position: relative;
  width: 95%;
  margin: 0 auto;
  padding: 20px 0;
  z-index: 2;
}

#intro.section .container *:not(span) {
  font-weight: 300;
  line-height: 150%;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

#intro.section .teal {
  padding: 0 4px;
}

#intro.section .overlay {
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#intro.section .container .content {
  position: relative;
  z-index: 2;
}

.card {
  margin-bottom: 20px;
}

.card .role {
  font-size: 1.25rem;
  position: absolute;
  right: 20px;
  top: 10px;
}

.card li a {
  margin-right: 0;
  color: var(--foreground);
  border-bottom: 2px solid var(--chart-4);
}

.card li a:hover {
  color: var(--foreground);
  font-weight: 500;
}

.card .card-content {
  padding-bottom: 20px;
  min-height: 300px;
  position: relative;
}

.card .card-content p {
  padding: 5px 0;
}

.card h5 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.card h6 {
  font-weight: 300;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  text-transform: uppercase;
}

#experience .card-action {
  background-color: var(--muted);
  border-top: none;
}

#experience .card .col.s12.m2 a {
  display: block;
}

#experience .card .col.s12.m2 a img {
  max-height: 60px;
}

.card-action span {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.card ul {
  margin-bottom: 0;
}

.card ul li {
  line-height: 1.8;
  list-style-type: disc;
  margin-left: 24px;
}

.card ul li li {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.card .card-title {
  font-size: 24px;
}

.card .card-content .card-title {
  line-height: 2rem;
}

.card i.right {
  margin-left: 10px;
}

a.hoverline {
  border-bottom: 3px solid transparent;
  padding: 3px;
  transition: border-bottom 0.25s;
}

a.hoverline:hover {
  border-bottom: 3px solid var(--primary);
}

#skills .card.large {
  min-height: 360px;
}

#skills h4 {
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  padding-bottom: 15px;
}

#skills .col img.responsive-img {
  margin: 0 auto;
  max-height: 100px;
  padding-bottom: 10px;
  text-align: center;
  vertical-align: middle;
  display: table-cell;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card.large .card-content p {
  color: inherit;
  margin: 0;
  padding: 20px 0;
}

#experience .card-content .row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.card.large .card-image {
  height: 230px;
}

.card.large .card-content {
  height: auto;
}

.card.medium .card-image {
  height: 240px;
}

.card-action a.btn-floating {
  margin-bottom: 0;
}

#experience .col.s12.m2 {
  text-align: center;
}

.fa-external-link-alt:before {
  left: 3px;
  position: relative;
  top: 2px;
}

.grey-text {
  color: var(--muted-foreground) !important;
}

.teal-text {
  color: var(--primary) !important;
}

.teal {
  background-color: var(--primary) !important;
}

ul.side-nav i.material-icons {
  font-size: 24px;
  vertical-align: middle;
  margin-right: 10px;
}

ul.side-nav.fixed {
  position: fixed;
  top: 222px;
  left: 0;
  height: calc(100% - 222px);
  width: 220px;
  z-index: 999;
  background-color: var(--background);
}

ul.side-nav.fixed li a {
  padding: 10px 15px;
  display: flex;
  align-items: center;
}

#contact .card {
  border: 1px solid var(--border);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#contact .card-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#contact .input-field label {
  color: var(--foreground);
}

#contact .input-field input[type="text"],
#contact .input-field input[type="email"],
#contact .input-field textarea {
  border-bottom: 1px solid var(--input);
  color: var(--foreground);
}

#contact .input-field input[type="text"]:focus,
#contact .input-field input[type="email"]:focus,
#contact .input-field textarea:focus {
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 1px 0 0 var(--primary);
}

#contact .input-field input[type="text"].valid,
#contact .input-field input[type="email"].valid,
#contact .input-field textarea.valid {
  border-bottom: 1px solid var(--chart-2);
  box-shadow: 0 1px 0 0 var(--chart-2);
}

#contact .input-field label.active {
  color: var(--primary);
}

#contact .contact-form {
  margin-top: 1.5rem;
}

#contact .success-icon {
  margin-bottom: 1rem;
}

#contact .collection {
  border: none;
}

#contact .collection-item {
  background-color: transparent;
  color: var(--foreground);
  padding: 1rem;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

#contact .collection-item:hover {
  background-color: var(--secondary);
}

#contact .collection-item i {
  margin-right: 1rem;
}

#contact .red-text {
  margin-bottom: 1rem;
}

#contact-success {
  min-height: 300px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10 !important;
}
#contact-success.hide {
  display: none !important;
}

.card .card-content {
  min-height: 300px;
  position: relative;
}

/* Styles supplémentaires pour Materialize et le layout */
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
.section.full-height {
  min-height: 100vh;
}
.side-nav {
  width: 200px;
}
.side-nav a {
  color: #444;
}
.side-nav a.active {
  background-color: #26a69a;
  color: white !important;
  font-weight: bold;
  border-left: 3px solid #00796b;
}
.tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1000;
}
.typing {
  display: inline-block;
  min-width: 200px;
  vertical-align: middle;
}

nav.hide-on-large-only.trigger {
  background: var(--background);
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav a.button-collapse {
  position: fixed;
  top: 0;
  left: 10px;
  height: 64px;
  line-height: 64px;
  z-index: 1005;
}

.name-title {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--background);
  z-index: 1000;
  padding: 0 50px;
  box-sizing: border-box;
}

#slide-out {
  width: 220px;
  height: calc(100% - 64px);
  position: fixed;
  top: 64px;
  left: 0;
  background: var(--background);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

#slide-out.active {
  transform: translateX(0);
}

#slide-out li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 15px;
}

#slide-out li a {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--primary);
  text-decoration: none;
  transition: background-color 0.2s;
}

#slide-out li a i {
  margin-right: 10px;
  color: var(--primary);
  font-size: 20px;
}

#slide-out li a span {
  color: var(--foreground);
  font-size: 16px;
}

#slide-out li a:hover,
#slide-out li a.active {
  background-color: var(--secondary);
  border-left: 3px solid var(--primary);
}

.page-footer {
  background-color: var(--primary);
  padding-top: 20px;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.page-footer .container {
  width: 90%;
}

.footer-copyright {
  background-color: var(--secondary-foreground);
  padding: 15px 0;
  border-top: 1px solid var(--border);
}

.footer-copyright .container {
  text-align: left;
  color: var(--primary-foreground);
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-copyright .container span {
  text-align: center;
  margin-left: 15px;
}

.footer-copyright .social-links {
  display: flex;
  align-items: center;
}

.footer-copyright .social-links a {
  color: var(--primary-foreground);
  font-size: 1.5rem;
  margin-left: 15px;
  transition: color 0.2s;
}

.footer-copyright .social-links a:hover {
  color: var(--chart-2);
}

.tooltip {
  position: fixed;
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--foreground) transparent transparent transparent;
}

.tooltipped:hover .tooltip {
  opacity: 1;
}

@media (min-width: 1200px) {
  #experience .container {
    width: 860px;
  }
}

@media (max-width: 1360px) {
  .card ul li {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-left: 20px;
  }
}

@media (max-width: 1160px) {
  .card ul li {
    line-height: 1.6;
  }
}

@media (max-width: 992px) {
  main {
    padding-left: 0;
    padding-top: 64px;
    padding-bottom: 120px;
    min-height: calc(100vh - 64px);
  }

  ul.side-nav a {
    padding: 10px 15px;
    width: 100%;
  }

  nav {
    background: var(--background);
    height: 64px;
    position: fixed;
    top: 0;
    z-index: 1000;
  }

  nav.hide-on-large-only.trigger {
    display: block;
    position: fixed;
    top: 0;
    z-index: 1001;
  }

  nav a.button-collapse,
  nav a.button-collapse i {
    color: var(--primary);
    height: 64px;
    line-height: 64px;
    position: fixed;
    top: 0;
    left: 10px;
    z-index: 1005;
    font-size: 24px;
  }

  .name-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 64px;
    width: 100%;
    padding: 0 50px;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--background);
    z-index: 1000;
  }

  .name-title > span,
  .name-title > a {
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .name-title a {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
  }

  .name-title span {
    font-size: 12px;
    color: var(--muted-foreground);
  }

  h3,
  .container {
    position: static;
    top: 0;
  }

  section#intro {
    margin-bottom: 0;
  }

  .card .role {
    position: relative;
    right: initial;
    top: initial;
  }
}

@media (max-width: 600px) {
  .card {
    margin-bottom: 40px;
  }

  .card .role {
    font-size: 1.1rem;
    position: static;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 20px;
    line-height: 1.8;
    margin: 20px 0 0;
  }

  #intro.section .container *:not(span) {
    padding: 0;
  }

  .card .card-content .card-title {
    font-size: 18px;
    line-height: 22px;
  }

  #experience span.card-title {
    text-align: center;
    display: block;
  }

  #experience span.card-title a {
    margin: 0;
  }

  i.material-icons.right {
    position: relative;
    bottom: 10px;
  }

  #contact .collection-item {
    font-size: 0.9rem;
  }

  #intro.section {
    background-position-x: 30%;
  }

  .page-footer .container {
    width: 95%;
  }

  .footer-copyright .container {
    font-size: 0.9rem;
  }

  .footer-copyright .social-links a {
    font-size: 1.3rem;
  }
}

@media (min-width: 992px) {
  .footer-copyright .container {
    flex-direction: row;
    justify-content: space-between;
  }
}