@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* --- COULEURS --- */
:root {
    --primary: #2c2c2c;
    --secondary: #444444;
    --text: #797979;
    --success: #22c55e;
    --error: #ef4444;
    --border: #f1f1f1;
}

.green {
  color: var(--success);
  font-weight: 500;
}
.red {
  color: var(--error);
  font-weight: 500;
}

/* ---------------- */

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.italic {
  font-style: italic;
}

.underline {
  margin: 1.5rem 0 1rem 0;
  border-bottom: 2px solid var(#444444);
  padding-bottom: 0.5rem;
}

.strong {
  font-weight: 700;
}

/* Navbar */
nav {
  z-index: 999;
  padding: 10px 20px;
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-nav {
  width: 150px;
}

nav .links {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: var(--text);
}

nav .links a {
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text);
  border-radius: 10px;
  transition: 200ms;
}

nav .links a:hover {
  background-color: var(--border);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger img {
  width: 30px;
  height: 30px;
}

@media (max-width: 768px) {
  .burger {
      display: block;
  }

  nav .links {
      display: none;
      flex-direction: column;
      gap: 10px;
      position: absolute;
      top: 82px;
      right: 0;
      background-color: #fff;
      border: 1px solid var(--border);
      padding: 10px;
      border-radius: 0px 0px 10px 10px;
  }

  nav .links.active {
      display: flex;
  }
}

/* ---------------- */

.content {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  margin: 2rem auto;
}

.logo {
  width: 30%;
}
.icon {
  color: var(--primary);
  width: 20%;
}

/* Titres et textes */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

h2 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin: 1.5rem 0 1rem 0;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
}

p {
  margin: 1rem 0;
}

/* Formulaires */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 20px;
}
form div {
  display: flex;
  flex-direction: column;
}
form div label {
  margin-bottom: 10px;
  color: var(--primary);
}
form .input-form, .input-form {
  cursor: text;
  margin-bottom: 15px;
  width: 30%;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: transparent;
  border: 1px solid #f1f1f1;
  color: var(--primary);
}
form .input-radio-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}
form .input-radio-container label {
  margin-left: 10px;
  margin-bottom: -5px;
  color: var(--text);
  font-weight: 400;
}

.loading {
  display: none;
  align-items: center;
}
/* HTML: <div class="loader"></div> */
.loader {
  width: 20px;
  height: 20px;
  padding: 4px;
  margin-right: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #45eee7;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}


.actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}
.actions a {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.actions .icon {
  margin-right: 0.5rem;
}

/* Boutons */
.button {
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  transition:  0.2s ease;
  cursor: pointer;
  max-width: fit-content;
}
.button:hover {
  background-color: #3e3e3e;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Liens */
.link {
  color: var(--text);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* ----------------- */
/* --- HOME PAGE --- */
/* ----------------- */

.home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.home h1 {
  text-align: center;
  font-size: 5rem;
}

.home p {
  color: var(--text);
}

/* Container des outils */
.tools {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 35%;
}

.single-tool {
  text-decoration: none;
  display: flex;
  background: linear-gradient(#ffffff, #f9f9f9);
  padding: 0px 15px;
  border-radius: 15px;
  border: 2px #f1f1f1 solid;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.05);
}
.single-tool:hover {
  background: linear-gradient(#f9f9f9, #efefef);
}
.single-tool:active {
  background: linear-gradient(var(--border), var(--border));
}

.single-tool p {
    text-decoration: none;
    color: var(--text);
}
.single-tool img {
  margin-left: 5px;
  rotate: 180deg;
  width: 20px;
  color: var(--border);
}

.button-home {
  margin-top: 50px;
  color: #fff;
  text-decoration: none;
  padding: 15px;
  border-radius: 15px;
  background: linear-gradient(#363636 0%, #242424 100%);
  box-shadow: 0 4px 15px rgba(45, 45, 45, 0.3);
  box-shadow: inset 0 4px 4px rgba(255, 255, 255, 0.2);
}

/* ----------------- */
/* --- CHECKSITE --- */
/* ----------------- */
@media print {
  
  .no-print {
      display: none !important;
  }
  
}


/* ----------------- */
/* -- COLOR FILTER -- */
/* ----------------- */
.pixel {
  display: inline-block;
  background-color: #000;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

fieldset {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 10px;
  margin-bottom: 30px;
}

fieldset p {
  display: flex;
  flex-direction: column;
}

.color-filter tr {
  display: flex;
  flex-direction: column;
}

.copyIcon {
  cursor: copy;
}

.input-picker {
  border-radius: 20px;
  background-color: transparent;
  border: none;
  width: 45px;
  height: 45px;
  margin-top: -15px;
}

.input-group {
  display: flex;
  gap: 10px;
  align-items: center;

}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  
  /* --- GLOBAL --- */ 
  .content {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }

  /* --- HOME PAGE --- */
  .tools {
    width: 100%;
  }

  /* --- CHECK SITE --- */
  form .input-form {
    width: 75%;
  }

  
}