/* reset */
html,body,div,span,applet,object,iframe,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,img,ins,kbd,q,s,samp,small,strike,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav ul,nav li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after {content:'';content:none;}
table {border-collapse:collapse;border-spacing:0;}
/* start editing from here */
a {text-decoration:none;}
.txt-rt {text-align:right;}
.txt-lt {text-align:left;}
.txt-center {text-align:center;}
.float-rt {float:right;}
.float-lt {float:left;}
.clear {clear:both;}
.pos-relative { position:relative; }
.pos-absolute { position:absolute; }
.vertical-base { vertical-align:baseline; }
.vertical-top {	vertical-align:top; }
.underline { padding-bottom:5px; border-bottom: 1px solid #eee; margin:0 0 20px 0; }
nav.vertical ul li { display:block; }
nav.horizontal ul li { display: inline-block; }
img {max-width: 100%;}
/*end reset*/

:root {
  --layout-width: 1200px;
  --layout-gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(15, 139, 141, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(38, 19, 105, 0.08), transparent 24%),
    linear-gradient(180deg, #f4f9fc 0%, #edf4f8 48%, #f7fafc 100%);
  color: #172233;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.35);
  outline-offset: 3px;
}

.dark-mode {
  background: rgba(37, 37, 38, 0.915);
  color: #ffffff;
}

.dark-mode a:focus-visible,
.dark-mode button:focus-visible,
.dark-mode input:focus-visible,
.dark-mode textarea:focus-visible,
.dark-mode summary:focus-visible {
  outline-color: rgba(100, 210, 212, 0.35);
}

.dark-mode .hamburger {
  color: #50507f;
}

.dark-mode .navbar {
  background: #1a1a1a;
  color: #fff;
}

.dark-mode .navbar a {
  color: #a8a4c5;
}

.dark-mode .language-switcher label {
  color: #d8d6ea;
}

.dark-mode .language-switcher select {
  background-color: #252535;
  border-color: rgba(168, 164, 197, 0.32);
  color: #f5f4ff;
}

.dark-mode a:hover {
  color: #3876ac; /* Darker shade for hover */
}

.dark-mode a {
  color: #4f9dfc; /* Light blue for links */
}

.dark-mode .btn {
  background: #16330c;
  color: #fff;
  border: 1px solid transparent;
}

.dark-mode .btn:hover {
  color: #dcdcdc;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: #fff;
}

.dark-mode input[type='text'],
.dark-mode input[type='email'],
.dark-mode input[type='password'],
.dark-mode textarea {
    background-color: #262626;
    color: #fff;
    border: 1px solid #555;
}

.dark-mode ::placeholder {
  color: #ddd;
}

.dark-mode .card,
.dark-mode .panel {
    background-color: #262626;
    color: #fff;
    border-color: #333;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.dark-mode table {
  background-color: #262626;
  color: #fff;
}

.dark-mode th, .dark-mode td {
  border-color: #333;
}

@font-face {
  font-family: 'Protos';
  src: url("../fonts/Protos.d7dd70a360d2.otf");
}

@font-face {
  font-family: 'Futura';
  src: url("../fonts/57Futura-Regular.04e64896358e.otf")
}

@font-face {
  font-family: 'Segoe';
  src: url("../fonts/SegoeWP.88c7cb10b703.ttf");
}

.author {
  background:rgb(239, 240, 251); 
}

.dark-mode .author,
.dark-mode .comment-body {
  background-color: #333; /* ou une autre couleur adaptée */
  color: #fff;
}

.comment-body {
  padding-bottom: 20px;
}

.update-body {
  padding-bottom: 10px;
}

.update {
  padding-bottom: 20px;
}

.btn-primary {
  background-color: #0f8b8d;
  border: 2px solid #0f8b8d;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 10px 20px rgba(15, 139, 141, 0.18);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  padding: 8px 12px;
}

.dark-mode .btn-primary {
  background-color: #261369;
  border-color: #261369;
  box-shadow: 0 10px 20px rgba(38, 19, 105, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0b6f71;
  border-color: #0b6f71;
  box-shadow: 0 14px 26px rgba(15, 139, 141, 0.24);
}

.btn-primary:active {
  background-color: #15999b;
  border-color: #15999b;
  box-shadow: 0 6px 12px rgba(15, 139, 141, 0.18);
  transform: translateY(1px);
}

.dark-mode .btn-primary:hover,
.dark-mode .btn-primary:focus {
  background-color: #38228b;
  border-color: #38228b;
  box-shadow: 0 14px 26px rgba(56, 34, 139, 0.28);
}

.dark-mode .btn-primary:active {
  background-color: #4a2eb8;
  border-color: #4a2eb8;
  box-shadow: 0 6px 12px rgba(56, 34, 139, 0.2);
}

.blueForms {
  margin: 0;
}

.blueForms .form-group {
  margin-bottom: 18px;
}

.blueForms .form-group:last-of-type {
  margin-bottom: 0;
}

.blueForms label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #243245;
}

.blueForms .asteriskField {
  margin-left: 4px;
  color: #c14444;
}

.blueForms .form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cad2df;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              background-color 0.2s ease;
}

.blueForms .form-control:focus {
  border-color: #0f8b8d;
  box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.14);
  outline: none;
}

.blueForms textarea.form-control {
  min-height: 170px;
  resize: vertical;
}

.blueForms input[type="submit"] {
  min-width: 150px;
  margin-top: 8px;
}

.dark-mode .blueForms label {
  color: #eef2f8;
}

.dark-mode .blueForms .form-control {
  background-color: #333;
  color: #fff;
  border-color: #555;
}

.dark-mode .blueForms .form-control:focus {
  border-color: #64d2d4;
  box-shadow: 0 0 0 4px rgba(100, 210, 212, 0.14);
}

.projects-filter {
  font-family: 'Segoe';
  font-size: 16px;
  font-weight: 600;
  background-color: #5e5ea5;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 10px;
  margin-bottom: 25px;
  display: flex; /* Aligns items in a row */
  flex-wrap: wrap; /* Allows items to wrap in smaller screens */
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.dark-mode .projects-filter {
  background-color: #343454;
}

.projects-filter-label {
  color: #ffffff;
}

.projects-filter a {
  color: #08f7fe;
  text-decoration: none;
  transition: color 0.3s ease;
}

.projects-filter a:hover {
  color: #ff3afc; /* Color change on hover */
  text-decoration: underline; /* Underline effect on hover */
}

.footer {
  background: linear-gradient(180deg, #172233 0%, #101722 100%);
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell {
  min-height: 75px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-block: 28px;
}

.footer-brand,
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-meta {
  align-items: flex-start;
}

.footer-kicker {
  color: #90f0f2;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-copy,
.footer-meta p {
  margin: 0;
  color: rgba(232, 238, 248, 0.78);
  line-height: 1.7;
}

.footer-note {
  color: rgba(192, 202, 218, 0.74);
}

.footer a {
  color: #dff6f6;
  text-decoration: none;
}

.footer a:hover {
  color: #90f0f2;
}

.menu {
  margin: 0;
}

.menu ul {
  justify-content: flex-end;
  gap: 12px;
}

.menu li {
	display: inline-flex;
  align-items: center;
}

.menu li a {
	display: inline-flex;
  align-items: center;
  padding: 10px 14px;
	font-weight: 700;
  font-size: 0.95rem;
	color: #223246;
  font-family: 'Fira Code', 'Source Code Pro', monospace;
  border-radius: 999px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}

.menu li a:hover {
	background: #edf3f8;
	color: #0b6f71;
	text-decoration: none;
  transform: translateY(-1px);
}

.menu li a.is-current {
  background: #0f8b8d;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 139, 141, 0.18);
}

.dark-mode .menu li a {
  color: #d0d7e4;
}

.dark-mode .menu li a:hover {
  background: #333a46;
	color: #90f0f2;
}

.dark-mode .menu li a.is-current {
  background: #261369;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(38, 19, 105, 0.28);
}

.wrap {
  width: 100%;
  flex: 1 0 auto;
  max-height: fit-content;
}

.layout-shell {
  width: min(100%, var(--layout-width));
  margin: 0 auto;
  padding-inline: var(--layout-gutter);
}

.hamburger-menu {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  width: min(20rem, calc(100vw - (var(--layout-gutter) * 2)));
  top: calc(100% + 12px);
  right: 0;
  z-index: 1000;
  border: 1px solid rgba(32, 47, 67, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 36px rgba(25, 40, 71, 0.18);
}

.hamburger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(32, 47, 67, 0.08);
}

.mobile-nav-title {
  color: #172233;
  font-size: 0.95rem;
  font-weight: 700;
}

.mobile-nav-copy {
  color: #5c6a7d;
  font-size: 0.88rem;
  line-height: 1.5;
}

.hamburger-menu ul li + li {
  border-top: 1px solid rgba(32, 47, 67, 0.08);
}

.hamburger-menu ul li a {
  color: #223246;
  text-decoration: none;
  padding: 15px 18px;
  display: block;
  font-weight: 600;
}

.hamburger-menu ul li a:hover {
  background: #edf3f8;
  color: #0b6f71;
  text-decoration: none;
}

.hamburger-menu ul li a.is-current {
  background: rgba(15, 139, 141, 0.12);
  color: #0b6f71;
}

.content {
  text-justify: inter-word;
  font-family: 'Segoe';
  width: min(100%, var(--layout-width));
  margin: 0 auto;
  padding:
    clamp(24px, 4vw, 40px)
    var(--layout-gutter)
    clamp(48px, 6vw, 72px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-eyebrow {
  color: #0f8b8d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-title {
  color: #172233;
  font-family: 'Fira Code', 'Source Code Pro', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 249, 252, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(32, 47, 67, 0.1);
  box-shadow: 0 12px 28px rgba(25, 40, 71, 0.08);
}

.navbar-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.navbar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.navbar li {
  display: flex;
  align-items: center;
}

.navbar a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: inherit;
}

button.theme-toggle {
  background: #172233;
  border: 1px solid #172233;
  color: white;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease;
  margin-left: 0;
  align-self: center;
  flex-shrink: 0;
}

.dark-mode button.theme-toggle {
  background: #261369;
  border-color: #261369;
}

button.theme-toggle:hover,
button.theme-toggle:focus-visible {
  background-color: #0f8b8d;
  border-color: #0f8b8d;
  transform: translateY(-1px);
}

.dark-mode button.theme-toggle:hover,
.dark-mode button.theme-toggle:focus-visible {
  background-color: #38228b;
  border-color: #38228b;
}

.logo-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.section-title {
  margin: 0;
  color: #172233;
  font-family: 'Fira Code', 'Source Code Pro', monospace;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
}

.dark-mode .section-title {
  color: #f0f3f8;
}

.tech-logo {
  width: 32px;
  height: 32px;
}

ul {
  list-style: none;
}

#projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.project-item {
  min-width: 0;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(90, 110, 136, 0.12);
  box-shadow: 0 12px 30px rgba(25, 40, 71, 0.08),
              0 2px 8px rgba(15, 139, 141, 0.05);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-header, .card-footer {
  background-color: #f3f8fb; /* Light background for header and footer */
  padding: 10px 15px;
  border-bottom: 1px solid rgba(90, 110, 136, 0.12); /* Header/footer separator */
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dark-mode .card-header, .dark-mode .card-footer {
  background-color: #2a3a49;
  border-bottom: 1px solid #1e2438;
}

.card-body {
  padding: 15px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
}

.card-img-top {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #e5eef6;
}

.project-title {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-text {
  margin-bottom: 0;
}

.card-footer {
  text-align: right;
  border-top: none;
  margin-top: auto;
}

.mobile-menu {
  display: none;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 12px;
  white-space: nowrap;
}

.language-switcher label {
  color: #223246;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switcher select {
  min-height: 36px;
  border: 1px solid rgba(214, 227, 239, 0.24);
  border-radius: 8px;
  background-color: #edf5f8;
  color: #172233;
  font-weight: 600;
  padding: 6px 28px 6px 10px;
}

@media (max-width: 768px) {
  .navbar-shell {
    min-height: 78px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mobile-menu {
    display: flex;
  }

  .language-switcher {
    margin-left: auto;
  }

  .language-switcher label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hamburger-menu.active {
    display: block;
  }

  .menu {
    display: none;
  }

  .logo {
    height: 44px;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .hamburger {
    background: #e9f2f6;
    border: 1px solid rgba(32, 47, 67, 0.1);
    border-radius: 12px;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    color: #172233;
    font-size: 1.7rem;
    cursor: pointer;
    padding: 8px 12px;
    align-self: center;
    line-height: 1;
  }
}

@media (max-width: 450px) {
  #projects-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-copy {
    display: none;
  }

  .mobile-menu {
    gap: 10px;
  }

  .theme-switch {
    width: 54px;
    height: 32px;
  }

  .slider:before {
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
  }

  input:checked + .slider:before {
    transform: translateX(22px);
  }
}

@media (max-width: 400px) {
  .content {
    font-family: 'Segoe';
  }
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #c7d2df;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #0f8b8d;
}

input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.22);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.dark-mode .navbar {
  background: rgba(19, 22, 27, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.dark-mode .brand-title {
  color: #f0f3f8;
}

.dark-mode .hamburger-menu {
  background: rgba(38, 38, 38, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .mobile-nav-header,
.dark-mode .hamburger-menu ul li + li {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .mobile-nav-title,
.dark-mode .hamburger-menu ul li a {
  color: #f0f3f8;
}

.dark-mode .mobile-nav-copy {
  color: #aeb8ca;
}

.dark-mode .hamburger-menu ul li a:hover {
  background: #333a46;
  color: #90f0f2;
}

.dark-mode .hamburger-menu ul li a.is-current {
  background: rgba(100, 210, 212, 0.14);
  color: #8ee9eb;
}

.dark-mode .hamburger {
  background: #333a46;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f0f3f8;
}

.dark-mode .footer {
  background: linear-gradient(180deg, #0f141d 0%, #090d14 100%);
  border-top-color: rgba(255, 255, 255, 0.06);
}

.dark-mode input:checked + .slider {
  background-color: #64d2d4;
}

.dark-mode input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(100, 210, 212, 0.22);
}
