:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --primary: #2563eb;
  --text-alt: #64748b;
  --light_grey: #e2e8f0;
  --grey: #9cabbf;
  --usage-color: #0ea5e9;
  --usage-color-light: #E2F4FD;
  --type-color: #f65c5c;
  --type-color-light: #FDEAEA;
  --vox-color: #f59e0b;
  --vox-color-light: #FEF4E2;
  --extra-color: #10b981;
  --extra-color-light: #E0F7F0;
  --media-color: #cb77f2;
  --media-color-light: #f9eeff;
  --licence-color: #9fb737;
  --licence-color-light: #ebf4dc;
  --header-height: 70px;
  --side-panel-width: 360px;

}

html {
  scrollbar-gutter: stable;
}


body {
  font-family: "acumin-variable", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-variation-settings: "wdth" 115, "wght" 370;
  line-height: 1.8;

}

h4 {

  font-variation-settings: "wdth" 115, "wght" 600;
}



.sticky-nav {
  position: relative;
  width: 100%;
  height: var(--header-height);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 100;
}

.adobe-btn {
  background-color: #0f172a;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s;
  display: inline-block;
  margin-top: 50px;
  animation: pulse-blue 1.5s infinite;
}

.adobe-btn:hover {
  transform: scale(1.05);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin: 0px;
  font-variation-settings: "wdth" 115, "wght" 500;
}

.controls {
  padding-bottom: 30px;
  padding-top: 20px;
}

.filter-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.filter-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-radius: 30px;
  padding-bottom: 27px;
  background: #fff;
  padding-top: 27px;
}

.desc-image {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.desc-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
}

.desc-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
}

#group-usage {
  --select-accent: var(--usage-color);
  --select-accent-light: var(--usage-color-light);
}

#group-type {
  --select-accent: var(--type-color);
  --select-accent-light: var(--type-color-light);
}

#group-vox {
  --select-accent: var(--vox-color);
  --select-accent-light: var(--vox-color-light);
}

#group-extra {
  --select-accent: var(--extra-color);
  --select-accent-light: var(--extra-color-light);
}

#group-media {
  --select-accent: var(--media-color);
  --select-accent-light: var(--media-color-light);
}

#group-licence {
  --select-accent: var(--licence-color);
  --select-accent-light: var(--licence-color-light);
}

.filter-viz.active .desc-image {
  border-color: var(--select-accent);
}

.filter-viz.active .desc-text {
  color: var(--select-accent);
  font-weight: 800;
  font-size: 1.2rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  background-color: #f8fafc;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.option-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  border-color: #e2e8f0;
}

.option-card.selected {
  border-color: var(--modal-accent);
  background-color: #fff;
}

.option-card.unavailable {
  opacity: 0.6;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  order: 100;
  filter: grayscale(1);
}

.option-card.unavailable:hover {
  opacity: 1;
  border-style: solid;
  border-color: var(--text);
  transform: scale(0.99);
  filter: grayscale(0.8);
}

.opt-img-container {
  flex-shrink: 0;
  margin-right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.opt-img-container img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background-color: var(--modal-accent-light);
  border-radius: 20px;
  padding: 25px;
}

.opt-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: 5px;
}

.opt-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.opt-title {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}

.opt-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-alt);
  padding: 2px 8px;
  border-radius: 4px;
  text-align: right;
}

.unavailable .opt-count {
  color: #94a3b8;
}

.opt-desc {
  font-size: 0.95rem;
  color: var(--text-alt);
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 14px;
}

.specimen-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.font-card {
  flex: 1 1 350px;
  max-width: 450px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--light_grey);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.font-card.clickable { cursor: pointer; }

.font-card.clickable:hover {
  transform: scale(101%);
  box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1);
}

.specimen-img {
  background: #fdfdfd;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.specimen-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  font-size: 2rem;
  color: #cbd5e1;
  font-weight: 300;
  align-self: center;
}

.font-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  position: relative;
  line-height: 1.5;
}

.font-main {
  display: flex;
  flex-direction: column;
}

.fiu-link {
  align-self: flex-end;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-alt);
  text-decoration: none;
  margin-top: auto;
  margin-right: 15px;
}

.fiu-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.font-name {
  font-size: 1rem;
  margin-bottom: 12px;
  display: block;
  font-variation-settings: "wdth" 115, "wght" 500;
}

.tag-pill {
  display: inline-block;
  font-size: 0.7rem;
  margin-right: 4px;
  color: var(--text-alt);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0px 4px 4px 0px;
  font-variation-settings: "wdth" 100, "wght" 600;
}

footer {
  background-color: #ffffff;
  border: 1px solid var(--light_grey);
  margin-top: 80px;
  padding: 60px 0 0 0;
  color: var(--text);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 60px;
  align-items: start;

}

.foundry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px 15px;
  padding: 30px 0px 40px 0px;
}

.ext-link {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: underline 1.5px;
  text-underline-offset: 4px;
  font-variation-settings: "wdth" 115, "wght" 500;
}

.ext-link:after {
  content: "\00A0→";
  transform: rotate(-45deg);
  position: absolute;
  margin-top: 2px;
}

.fiu-link:after {
  content: "\00A0→";
  transform: rotate(-45deg);
  position: absolute;
  margin-top: 2px;
}

.img-ext-link {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: underline 1.5px;
  text-underline-offset: 4px;
  font-variation-settings: "wdth" 115, "wght" 500;
}



.ext-link:hover {
  color: var(--text-alt);
}


.img-ext-link:hover .img-ressource {
background-color: var(--grey);
transition: background .5s ease;
color: var(--text-alt);

}

.footer-bottom {
  text-align: center;
  margin-top: 80px;
  font-size: 0.85rem;
  color: #94a3b8;
  padding: 25px;
  border-top: 1px solid var(--light_grey);
  line-height: 1.8;
}

@media (max-width: 768px) {
.footer-container {
  grid-template-columns: 1fr;
  }
}

.specimen-grid.list-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.specimen-grid.list-view .font-card {
  max-width: none;
  min-height: 70px;
}

.specimen-grid.list-view .specimen-img {
  display: none;
}

.specimen-grid.list-view .font-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 0 30px;
}

.specimen-grid.list-view .font-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.specimen-grid.list-view .fiu-link {
  white-space: nowrap;
  align-self: center;
  margin-top: 0;
}

.specimen-grid.list-view .font-name {
  margin-bottom: 0;
  min-width: 200px;
}

.tag-pill.tag-usage {
  color: var(--usage-color);
  background-color: var(--usage-color-light);
}

.tag-pill.tag-type {
  color: var(--type-color);
  background-color: var(--type-color-light);
}

.tag-pill.tag-vox {
  color: var(--vox-color);
  background-color: var(--vox-color-light);
}

.tag-pill.tag-extra {
  color: var(--extra-color);
  background-color: var(--extra-color-light);
}

.tag-pill.tag-media {
  color: var(--media-color);
  background-color: var(--media-color-light);
}

.tag-pill.tag-licence {
  color: var(--licence-color);
  background-color: var(--licence-color-light);
}

.filter-viz {
  position: relative;
}

.btn-reset-filter {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1000;
  transition: transform 0.2s ease;
  background: var(--select-accent-light);
  border-radius: 20px;
}

.btn-reset-filter svg {
  width: 24px;
  height: 24px;
  fill: var(--text-alt);
  transition: fill 0.2s;
  fill: var(--select-accent);
}

.filter-viz.active .btn-reset-filter {
  display: flex;
}

.btn-reset-filter:hover {
  transform: scale(1.1);
}

.btn-reset-filter:hover svg {
  fill: #ef4444;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-item {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon-btn {
  background: #f1f5f9;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.social-icon-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.section-header {
  width: 100%;
  flex: 0 0 100%;
  margin: 120px 0px 60px 0px;
  text-align: center;
}

.inline-message {
  width: 100%;
  flex: 0 0 100%;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-alt);
  font-weight: 700;
}

.header-title-row h2 {
  margin: 20px 0 40px 0;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 90%;
  font-variation-settings: "wdth" 116, "wght" 900;
  word-break: keep-all;
}

.section-description {
  font-size: 22px;
  line-height: 150%;
  color: var(--text);
  max-width: 700px;
  width: 100%;
  margin: 0px auto 0px auto;
  font-variation-settings: "wdth" 115, "wght" 370;
}

.tag-pill.tag-usage {
  color: var(--usage-color);
  background-color: var(--usage-color-light);
}

.tag-pill.tag-type {
  color: var(--type-color);
  background-color: var(--type-color-light);
}

.tag-pill.tag-vox {
  color: var(--vox-color);
  background-color: var(--vox-color-light);
}

.tag-pill.tag-extra {
  color: var(--extra-color);
  background-color: var(--extra-color-light);
}

.tag-pill.tag-licence {
  color: var(--licence-color);
  background-color: var(--licence-color-light);
}

.specimen-img {
  position: relative;
}

.btn-info-pulse {
  position: absolute;
  right: 15px;
  top: -24px;
  width: 44px;
  height: 44px;
  background:var(--light_grey);
  outline:2px solid #FFF ;
  border-radius: 50%;
  font-family: "Times New Roman", serif;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-blue 1.5s infinite;
  text-decoration: none;


}

.btn-info-pulse:hover {

  width: 50px;
  height: 50px;
  right: 12px;
  top: -27px;
  outline:5px solid #FFF ;
  animation: pulse-blue 0.8s infinite;

}

@keyframes pulse-blue {
  0% {
              transform: scale(1);
              box-shadow: 0 0 0 0 rgba(99, 99, 99, 0.7);
          }
          70% {
              transform: scale(1.3);
              box-shadow: 0 0 0 10px rgba(99, 99, 99, 0);
          }
          100% {
              transform: scale(1);
              box-shadow: 0 0 0 0 rgba(99, 99, 99, 0);
          }
}
.the {
  animation: the 3s infinite both cubic-bezier(.95,.05,.8,.04);

}

.type {
  animation: type 3s infinite both cubic-bezier(.95,.05,.8,.04);
  animation-delay: 300ms
}

.top {
  animation: top 3s infinite both cubic-bezier(.95,.05,.8,.04);
  animation-delay: 600ms
}

.ttt {
  animation: ttt 3s infinite both cubic-bezier(.95,.05,.8,.04);
  transform-origin: left center;
  animation-delay: 600ms
}

@keyframes the {
  0%, 100%  {
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);
          }
    80%
            { 
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);
          }

     30%
            { 
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);
          }


          20% {
              font-variation-settings: "wght" 200, "wdth" 50;
              color: var(--text);
  
          }
}

@keyframes type {
  0%, 100%  {
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);

          }

      80%
            { 
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);
          }

     30%
            { 
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);

          }


          15% {
              font-variation-settings: "wght" 200, "wdth" 50;
              color: var(--text);
  
          }
}

@keyframes top {
   0%, 100%  {
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);
          }


          80%
            { 
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);
          }

     30%
            { 
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);
          }


          10% {
              font-variation-settings: "wght" 200, "wdth" 50;
              color: var(--text);
  
          }
}

@keyframes ttt {
   0% {
              transform: skew(0deg);
    
          }



   95%  {
              transform: skew(-10deg);
    
          }

     70%
            { 
              transform: skew(0deg);
             
            
          }
          50%
            { 
              transform: skew(0deg);
          }


          10% {
              transform: skew(0deg);
  
          }
}


 /*0%, 100% {
              font-variation-settings: "wght" 550, "wdth" 82;
              color: var(--text);
          }
          25% {
              font-variation-settings: "wght" 900, "wdth" 115;
              color: var(--text);
          }
          50% {
              font-variation-settings: "wght" 550, "wdth" 82;
              color: var(--text);
          }
          75% {
              font-variation-settings: "wght" 200, "wdth" 50;
              color: var(--text);
          }*/

.sticky-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--text);
  font-size: 32px;
  font-variation-settings: "wdth" 116, "wght" 900;
}

.nav-menu {
  justify-self: center;
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.footer-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 0px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  text-decoration: underline 1.5px;
  text-underline-offset: 4px;
}


#about,
#contact {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.about-section {
  margin: 100px 0 40px 0;
  padding: 0 10px;
}

.about-card {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 38px 34px;
}

.about-card h2 {
  margin: 20px 0 60px 0;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 100%;
  font-variation-settings: "wdth" 116, "wght" 900;
  word-break: keep-all;
}

.about-card h3 {
  margin: 34px 0 12px 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-variation-settings: "wdth" 115, "wght" 800;
}

.about-card p {
  margin: 0 0 14px 0;
  font-size: 22px;
  line-height: 1.8;
  color: var(--text);
  font-variation-settings: "wdth" 115, "wght" 370;
}

#about,
#contact {
  scroll-margin-top: 20px;
}

@media (max-width: 700px) {
.sticky-nav {
  padding: 0 18px;
    grid-template-columns: auto 1fr auto;
  }

  .nav-menu {
  justify-self: center;
    gap: 10px;
  }

  .nav-link {
  font-size: 13px;
    padding: 7px 8px;
  }

  .about-card {
  padding: 28px 20px;
  }


}

.sticky-nav {
  position: relative;
  top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 1100;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.nav-menu {
  justify-self: auto;
}

.burger-btn {
  border: none;
  background: transparent;
  color: var(--text);
  fill: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 8px;
  transition: transform .15s ease, opacity .2s ease;
  margin: 0px 0px 0px 10px;
  position: relative;
}

/* Pastille rouge : indique que des filtres sont actifs quand le panneau est replié */
.burger-btn.has-active-filters:not([aria-expanded="true"])::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--type-color);
  box-shadow: 0 0 0 2px #ffffff;
}

/* Segmented control (Type-top 25 / 100) */
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--light_grey);
  background-color: var(--bg);
}

.segmented-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-variation-settings: "wdth" 115, "wght" 700;
}

.segmented-btn:hover {
  color: var(--text-alt);;
}

.segmented-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .7);
  outline-offset: 3px;
}

.segmented-btn.active {
  background: var(--text);
  color: #ffffff;
}

.segmented-btn.active:hover {
  background: var(--text);
  color: var(--light_grey);
}

/* Language dropdown (discreet)
   - Same "pill" feel as segmented
   - Only shows 🇫🇷 / 🇬🇧 with a small caret */
.lang-select-wrap {
  position: relative;
  display: inline-block;
  height: 44px;
  width: 44px;

  

}

.lang-select {
  
  height: 44px;
  appearance: none;
  font-size: 22px;
  border-radius: 999px;
  border: none;
  background-color: #fff;
  text-align: center;
}


.lang-select:focus-visible {
  outline: none;
}

.lang-select-wrap::after {
  position:absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  pointer-events:none;
}


/* Message "Pas de résultat" sous le bouton Adobe (mode 25) */
.top25-empty-message {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.top25-empty-message p {
  color: var(--text);
  font-weight: 500;
  padding: 20px;
  background-color: var(--type-color-light);
  border-radius: 20px;
  margin-top: 60px;
  margin-bottom: -100px;
  font-size: 14px;
  font-variation-settings: "wdth" 115, "wght" 370;
}

.reset-filters-btn {
  border: 1px solid var(--light_grey);
  background: #ffffff;
  color: var(--text);
  padding: 12px 42px;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}

/* Variante dans le panneau latéral */
.reset-filters-btn--drawer {
  width: 100%;
  box-shadow: none;
}

.reset-filters-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

.reset-filters-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .7);
  outline-offset: 4px;
}

/* Bouton reset entre la liste des typos et la section About */
.reset-filters-between {
  margin: 26px 0 4px;
  display: flex;
  justify-content: center;
}

/* IMPORTANT: respecte l'attribut HTML `hidden` (utilisé pour masquer/afficher des UI)
   Sans ça, certains composants (ex: reset-filters) pouvaient rester visibles
   malgré `element.hidden = true` côté JS, à cause de règles `display:*`. */
[hidden] {
  display: none !important;
}

.burger-btn:hover {
  color: var(--text-alt);
  fill: var(--text-alt);
}

.burger-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .7);
  outline-offset: 4px;
  border-radius: 10px;
}

.burger-lines {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background .2s ease;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.burger-lines::before {
  top: -6px;
}

.burger-lines::after {
  top: 6px;
}

.burger-btn[aria-expanded="true"] .burger-lines {
  background: transparent;
}

.burger-btn[aria-expanded="true"] .burger-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.burger-btn[aria-expanded="true"] .burger-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.18);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

.drawer-links {
  display: none;
  gap: 6px;

}

.drawer-link {
  text-decoration: none;
  color: var(--text);
  padding: 12px 12px;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease;
  font-variation-settings: "wdth" 115, "wght" 500;
  font-size: 14px;
}

.drawer-link:hover {
  text-decoration: underline 1.5px;
  text-underline-offset: 4px;
}

.drawer-title {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-alt);
  margin: 6px 0px 10px 2px;
  text-align: right;
  font-variation-settings: "wdth" 115, "wght" 500;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease;
  user-select: none;
}

.radio-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.opt-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  fill: currentColor;
}

.opt-badge {
  width: 22px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text);
}

.radio-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-row input[type="radio"] {
  margin-left: auto;
  accent-color: var(--text);
  height: 20px;
  width: 20px;
}

.radio-row:hover {
  background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 700px) {
.sticky-nav {
  padding: 0 18px;
  }

  .nav-menu {
  gap: 10px;
  }

  .nav-link {
  font-size: 13px;
    padding: 7px 8px;
  }
}

@media (max-width: 700px) {
.nav-menu {
  display: none;
  }
  .drawer-links { display:grid }
}


.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 65px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--light_grey);
  background: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1050;
}


.langgg {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--light_grey);
  background: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  opacity: 1;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1050;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  display: block;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .7);
  outline-offset: 4px;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 700px) {
.back-to-top {
  right: 14px;
    bottom: 61px;
  }
.langgg{
  right: 14px;
    bottom: 14px;
}
}

.sticky-nav {
  position: fixed;
  top: 0;
  z-index: 1300;
  background: #fff;
  border-bottom: 1px solid var(--light_grey);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.nav-right {
  justify-self: end;
}

#page {
  transition: margin-left .25s ease;
}

body.panel-open #page {
  margin-left: var(--side-panel-width);
}

@media (max-width: 999px) {
body.panel-open #page {
  margin-left: 0;
  }
}

@media (min-width: 1000px) {
.drawer-backdrop {
  display: none !important;
  }
}

.side-panel {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--side-panel-width);
  max-width: calc(100vw - 24px);
  height: calc(100vh - var(--header-height));
  background: #ffffff;
  border-right: 1px solid var(--light_grey);
  z-index: 1200;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform .25s ease;
}

body.panel-open .side-panel {
  transform: translateX(0);
}

.side-panel__inner {
  height: 100%;
  overflow-y: auto;
  padding: 18px 16px 24px 16px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.side-panel__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-panel__section-title {
  font-weight: 850;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-alt);
  margin: 4px 0 0 2px;
}

.drawer-sep {
  background: var(--light_grey);
  height: 1px;
  margin: 16px -16px;

}

.side-panel .controls {
  padding: 0;
}

.side-panel .filter-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 420px) {
.side-panel .filter-section {
  grid-template-columns: 1fr;
  }
}

.side-panel .filter-group {
  display: flex;
}

.side-panel .filter-viz {
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  border-radius: 16px;
  background: #ffffff;
  outline: 1px dashed var(--grey);
  cursor: pointer;
}

.side-panel .desc-image {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  margin-bottom: 0;
}

.side-panel .desc-image img {
  object-fit: contain;
}

.side-panel .desc-text {
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  font-variation-settings: "wdth" 115, "wght" 500;
}

.side-panel .filter-viz:hover {
  border-color: var(--select-accent);
}

.side-panel .filter-viz:focus-visible {
  outline: 3px solid var(--select-accent);
  outline-offset: 2px;
}

.side-panel .filter-viz.active .desc-text {
  font-size: 0.95rem;
  font-weight: 850;
}

.side-panel .drawer-title {
  text-align: left;
}

.side-panel .btn-reset-filter {
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  z-index: 2;
}

.side-panel .btn-reset-filter svg {
  width: 24px;
  height: 24px;
}

.filter-viz.active {
  outline: none;
  background-color: var(--select-accent-light);
}

.filter-viz.active:hover {
  outline: 2px solid var(--select-accent);
}

.filter-viz:hover {
  outline: 1px dashed var(--text);
}

.xbold {
  font-variation-settings: "wdth" 115, "wght" 900;
}

.bold {
  font-variation-settings: "wdth" 115, "wght" 800;
}

.semibold {
  font-variation-settings: "wdth" 115, "wght" 700;  
}

.medium {
  font-variation-settings: "wdth" 115, "wght" 500;
}

.regular {
  font-variation-settings: "wdth" 115, "wght" 370;
}

.book {
  font-variation-settings: "wdth" 115, "wght" 300;
}


@media (max-width: 768px) {
.specimen-grid.list-view .font-main{
  flex-direction: column;
  padding: 20px 0px;
  align-items: flex-start;
  }
}

.tt-selection{
  position: absolute;
  padding-left: 5px;
  margin-top: 2px;
}

.desc-image:hover{

  transform: scale(1.2);
}


/* --- ABOUT MODAL + ACCORDION --- */
.about-open-btn {
  margin-top: 18px;
}

.about-open-hint {
  margin: 10px 0 0 0;
  color: var(--text-alt);
  font-size: 16px;
  line-height: 1.6;
}

.about-modal-body p {
  margin: 0 0 14px 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  font-variation-settings: "wdth" 115, "wght" 370;
}

.about-accordion {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10%;
}

.accordion-item {
  border-bottom: 1px dashed var(--text);
  overflow: hidden;
}

.accordion-title {
  cursor: pointer;
  padding: 18px 0px;
  font-size: 18px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.accordion-title::-webkit-details-marker {
  display: none;
}

.accordion-title::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  font-variation-settings: "wdth" 115, "wght" 200
}

.accordion-item[open] .accordion-title::after {
  content: "–";
}

.accordion-content {
  padding: 10px 20px 30px 0px;
}

.accordion-content p {
  margin: 0 0 12px 0;
  color: var(--text);
}

.accordion-title:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .7);
  outline-offset: 4px;
  border-radius: 12px;
}


.modal-padding {
padding:30px 60px

}

@media (max-width: 550px) {
.option-card {
  display: block;}
.opt-img-container{
  justify-content: left;
  margin-bottom: 20px;

}  
}

.specimen-grid.list-view .btn-info-pulse{

  display: none;
}

.desc-ressource{
padding-bottom:5px;

}

.titre-ressource {

  font-variation-settings: "wdth" 115, "wght" 700;
  font-size: 22px;
  margin-bottom: 10px;
  margin-top: 30px;
}

.img-ressource {
max-width: 120px ;
margin-bottom: 10px;
border-radius: 12px;
background-color: var(--light_grey);

}


.mention {

  max-width: 900px;
  text-align: left;
  margin: 20px auto;
}

.titre-mention {
  font-variation-settings: "wdth" 115, "wght" 700;
  font-size: 22px;
  margin-bottom: 10px;
  margin-top: 30px;

}

.footer-section {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;

}

.desc-footer{
padding-bottom:20px;

}

.titre-footer {

  font-variation-settings: "wdth" 115, "wght" 700;
  color: var(--text);
  font-size: 22px;
  margin-bottom: 10px;
  margin-top: 0px;
}

.credit{
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.footer-link:before{
content: "→\00A0";
display: inline-block;
}

/*.ext-link:after{
content: "\00A0→";
rotate: 45deg;
display: inline-block;

}*/

.aboutlink{
  color: var(--text);
  text-decoration: underline 1.5px;
  text-underline-offset: 4px;
}

/* --- Pages statiques (about / ressource / legal) --- */

body.simple-page main#page {
  margin-left: 0 !important;
  padding-top: calc(var(--header-height) + 24px);
}

body.simple-page .container {
  max-width: 980px;
}

body.simple-page .page-card {
  border-radius: 30px;
  padding: 34px;
}

body.simple-page .page-title {
  margin: 0 0 18px 0;
  font-size: 3rem;
  line-height: 1.15;
}

@media (max-width: 700px) {
  body.simple-page .page-card { padding: 26px 18px; }
  body.simple-page .page-title { font-size: 3rem; }
}
