@charset "UTF-8";
/* CRAZYMAKERS — STYLES COMMUNS
   Modifier les variables ci-dessous pour personnaliser le site.
   Les mises en page spécifiques sont dans pages.css. Aucun outil de compilation.
*/

/* Réglages et thème */

:root {
  --primary: #5bcaf0;
  --bg: #e3f7ff;
  --text: #24292c;
  --url: #1767a0;
  --urlhover: blue;
  --urldark: white;
  --urldarkhover: darkgrey;
  --card: #ffffff;
  --carddarkbackground: dimgrey;
  --border: #e2e8ee;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --page-width: 1200px;
  --article-width: 1160px;
  --accent: #08618a;
  --accent-soft: #8bdef2;
  --focus-guide: #0b86bd;
  --hero-bg: #162a38;
  --hero-text: #f3f8fc;
  --hero-border: #314958;
  --hero-muted: #d1e0e9;
  --radius-card: 12px;
  --radius-panel: 14px;
  --radius-hero: 20px;
  --guide-columns: 4;
  --guide-gap: 14px;
  --guide-card-padding: 16px;
  --guide-image-height: 160px;
  --list-leading: 1.4;
  --list-space: 8px;
  --list-item-space: 2px;
  --list-paragraph-space: 3px;
}

body.dark {
  --bg: #1b1f22;
  --bginp: #2d3234;
  --text: #e6eef3;
  --card: #24292c;
  --border: #30363c;
}

body.dark .card-index {
  background-color: slategrey;
}

body.dark .search {
  color: white;
}

body.dark a {
  color: var(--urldark);
}

body.dark a:hover,
body.dark .footer a:hover {
  color: var(--urldarkhover);
}

body.dark .socials svg {
  fill: white;
}

body.dark .share-btn {
  color: white;
}

body.dark .socials a {
  background: rgba(255,255,255,0.08);
}

body.dark .socials a:hover {
  background: rgba(255,255,255,0.2);
}

body.dark .faq-question {
  color: var(--urldark);
}

body.dark .tag {
  background: var(--carddarkbackground);
  color: white;
}

body.dark .tag:hover {
  color: white;
}

body.dark .hero div#menu {
  background-color: var(--carddarkbackground);
}

body.dark .cat {
  background: var(--carddarkbackground);
}

body.dark .cat.active {
  background: var(--urldarkhover);
}

body.dark .card .divtitre {
  background: var(--carddarkbackground);
  border-radius: 4px;
  height: 60px;
  justify-content: center;
  align-items: center;
  display: flex;
}

body.dark .card .divtitre h3 {
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: bold;
  width: 100%;
  color: white;
}

body.dark input,
body.dark select,
body.dark textarea {
  border: 1px solid var(--border);
  background: var( --bginp);
  color: white;
}

/* Base et accessibilité */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui,Arial;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: .25s;
}

a {
  text-decoration: none;
  color: var(--url);
  font-weight: inherit;
}

a:hover {
  color: var(--urlhover);
}

input,
select,
textarea {
  width: 300px;
  margin-left: auto;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
}

hr {
  width: 50%;
  height: 1px;
  border: none;
  margin: 5px auto;
  background: linear-gradient(to right, transparent, #000, transparent);
}

h2,
h3 {
  scroll-margin-top: 70px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10001;
  transform: translateY(-160%);
  background: #fff;
  color: #124c7b;
  padding: 12px;
  border: 2px solid #124c7b;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid #d47400;
  outline-offset: 3px;
}

.global-search {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.global-search button {
  min-height: 40px;
  cursor: pointer;
  border-radius: 6px;
  padding: 8px;
  color: var(--text);
}

main img {
  max-width: 100%;
  height: auto;
}

main iframe {
  max-width: 100%;
}

main table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* En-tête et navigation */

header,
.header,
.header-right {
  flex-wrap: wrap;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  z-index: 1000;
  padding: 6px 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header {
  max-width: var(--page-width);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo-header {
  max-width: 100%;
  height: auto;
  max-height: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials {
  display: flex;
  gap: 6px;
}

.socials a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.share-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: max-content;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.search {
  font-size: 13px;
  margin-left: auto;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.theme {
  font-size: 18px;
}

.hero {
  padding: 30px 0 0 0;
  text-align: center;
  background: radial-gradient(circle,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 52%, rgba(87, 87, 115, 1) 100%);
  color: darkgrey;
}

.hero div#menu {
  margin-top: 20px;
  height: 40px;
  background-color: dodgerblue;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero div#menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.hero div#menu ul li {
  list-style: none;
  width: auto;
  height: 40px;
  display: inline-grid;
  padding: 8px 8px 0 8px;
}

.hero div#menu ul li:hover {
  background-color: navy;
}

.hero div#menu ul li a {
  text-decoration: none;
  font-weight: bold;
  color: white;
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.hero #breadcrumbs {
  margin-top: 10px;
  padding: 8px 15px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: normal;
  color: #ccc;
}

.hero #breadcrumbs a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}

.hero #breadcrumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 200px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

.global-search .search {
  max-width: 240px;
  width: 100%;
  margin: 0;
}

.theme {
  min-height: 40px;
  cursor: pointer;
  border-radius: 6px;
  padding: 8px;
  color: var(--text);
}

button.theme {
  font: inherit;
}

/* Cartes, articles et listes */

.categories {
  max-width: var(--page-width);
  margin: auto;
  display: flex;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
}

.cat {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
}

.cat.active {
  background: var(--primary);
  color: white;
  border: none;
}

.container,
.container-article {
  max-width: var(--page-width);
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
}

.card {
  all: unset;
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
}

.card *,
.card *:hover {
  color: inherit;
  text-decoration: none;
  font-weight: normal;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content ul li {
  margin-left: 3px;
}

.card h3 a,
.card h3 a:hover {
  font-weight: bold;
}

.card h3 a:hover {
  color: grey;
}

.card h3 {
  margin-bottom: 5px;
}

.card .divtitre h3 {
  font-size: 13px;
  font-weight: bold;
  width: 100%;
  color: black;
}

.card .divtitre {
  background: var(--bg);
  border-radius: 4px;
  height: 60px;
  justify-content: center;
  align-items: center;
  display: flex;
  margin-bottom: 6px;
  padding: 10px;
}

.card p {
  font-size: 13px;
  color: inherit;
}

.card-index {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 10px;
  background-color: white;
  margin-top: 5px;
  height: auto;
}

.tags {
  margin-top: auto;
}

.tag {
  font-size: 11px;
  padding: 3px 6px;
  background: var(--bg);
  color: black;
  border-radius: 4px;
  display: inline-block;
  width: 250px;
}

.tag:hover {
  color: black;
}

.tag strong,
.tag:hover strong {
  font-weight: bold;
  text-decoration: underline;
}

.content {
  padding: 0;
  margin: 10px;
  text-align: center;
}

.content ul {
  margin: 8px 0 12px;
  padding-left: 18px;
  text-align: left;
}

.content ul li {
  margin-bottom: 4px;
  line-height: 1.6;
  display: list-item;
}

.content ul li:not(:last-child):after {
  content: none;
}

.article {
  border-radius: var(--radius);
  width: 100%;
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
}

.article ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  text-align: center;
}

.article ul li {
  display: block;
}

.article ul li:not(:last-child):after {
  content: none;
}

.table_article {
  text-align: center;
  margin: 0 auto;
}

#Code {
  overflow-x: auto;
  text-align: left;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: bold;
  color: #FFF;
  background-color: #000;
  height: auto;
  width: 100%;
  padding: 3px 10px;
  margin: 5px 0;
  display: block;
}

#Code pre {
  margin: 0;
  white-space: pre;
  font-family: monospace;
}

#youtubevid-container {
  text-align: center;
  width: 100%;
  margin: auto;
  padding: 0;
}

#youtubevid-container .youtubevid-title {
  padding: 10px;
  text-align: center;
  background-color: brown;
}

#youtubevid-container .youtubevid-video {
  padding: 10px;
}

#youtubevid-container .youtubevid-video iframe {
  width: 100%;
  height: 320px;
  margin: 0;
}

#youtubevid-container .youtubevid-description {
  padding: 10px;
}

#youtubevid-container .youtubevid-description div {
  width: 100%;
  text-align: center;
  display: block;
}

#youtubevid-container .youtubevid-comments {
  padding: 10px;
  text-align: center;
}

#youtubevid-container .youtubevid-title,
#youtubevid-container .youtubevid-video,
#youtubevid-container .youtubevid-description,
#youtubevid-container .youtubevid-comments {
  width: 650px;
  margin: auto;
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s;
  transform: translateY(20px);
}

main.content {
  min-width: 0;
  max-width: 100%;
}

.content :is(.card,.card-index,.card-content) ul {
  list-style-type: disc;
}

.content :is(.card,.card-index,.card-content) ol {
  list-style-type: decimal;
}

.content :is(.card,.card-index,.card-content) li {
  display: list-item;
  margin: 0 0 6px;
  line-height: 1.6;
  text-align: left;
}

.content :is(.card,.card-index,.card-content) li::after {
  content: none;
}

.content :is(.card,.card-index,.card-content) ul ul {
  list-style-type: circle;
}

.content :is(.card,.card-index,.card-content) :is(ul,ol) {
  display: block;
  margin: 10px 0 14px;
  padding-inline-start: 1.4em;
  text-align: left;
  list-style-position: outside;
  width: fit-content;
  max-width: min(100%,70ch);
  margin-inline: auto;
}

.content :is(.card,.card-index,.card-content) li :is(ul,ol) {
  width: auto;
  max-width: 100%;
  margin-inline: 0;
}

main.content :is(ul,ol) {
  margin-block: var(--list-space) !important;
}

main.content :is(ul,ol)>li {
  margin-block: var(--list-item-space) !important;
  line-height: var(--list-leading) !important;
}

main.content :is(ul,ol)>li>p {
  margin-block: var(--list-paragraph-space) !important;
  line-height: var(--list-leading) !important;
}

/* Recherche et repères du projet */

.search-filters button {
  min-height: 40px;
  cursor: pointer;
  border-radius: 6px;
  padding: 8px;
  color: var(--text);
}

.search-page {
  max-width: var(--page-width);
  margin: 20px auto;
  padding: 16px;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 20px 0;
}

.search-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 170px;
}

.search-filters input,
.search-filters select {
  max-width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr));
  gap: 16px;
  margin: 20px 0;
}

.search-result {
  padding: 18px;
  border-radius: 8px;
}

.search-result h2 {
  font-size: 19px;
  margin: 8px 0;
}

.search-result p {
  line-height: 1.6;
}

.search-result>span {
  font-size: 13px;
}

.search-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-pagination a {
  padding: 8px 12px;
  border: 1px solid var(--border);
}

.search-pagination [aria-current] {
  font-weight: bold;
  background: var(--card);
}

.project-summary h1,
.project-summary h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.project-summary dt {
  font-size: 13px;
  font-weight: bold;
}

.project-summary h3 {
  margin-top: 16px;
}

.project-summary h2.project-resources-heading {
  font-size: 1.17em;
  margin: 16px 0 0;
}

.project-summary {
  max-width: var(--article-width);
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  text-align: center;
}

.project-summary dl {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
}

.project-summary dl>div {
  min-width: 0;
  text-align: center;
}

.project-summary dd {
  margin: 4px 0;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.project-summary ul {
  line-height: 1.8;
  display: table;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  list-style-position: inside;
  padding-left: 0;
}

/* Images, FAQ et calculateur laser */

.img-center img {
  display: block;
  margin: 15px auto;
  max-width: 100%;
  float: none !important;
}

.content a.example-image-link {
  display: block;
  text-align: center;
  margin: 15px auto;
}

.example-image {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,1) 4px), linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,1) 4px), linear-gradient(to left, rgba(0,0,0,0.2), rgba(0,0,0,1) 4px), linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,1) 4px);
  -webkit-mask-composite: intersect;
  mask-composite: intersect;
  transition: -webkit-mask-image 0.2s ease;
}

.example-image:hover {
  -webkit-mask-image: none;
}

.example-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.95);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.example-image:hover::after {
  opacity: 0;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  transition: transform 0.2s ease, opacity 0.3s;
  font-size: 12px;
  padding: 3px;
  border-radius: 5px;
}

#backToTop:hover {
  transform: translateY(-5px);
  background: var(--primary);
}

.faq {
  margin-top: 15px;
  color: inherit;
  text-align: center;
}

.faq h2 {
  text-align: center;
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 5px;
}

.faq-answer {
  display: none;
  padding: 0 15px 15px;
}

.faq-item.active .faq-answer {
  display: block;
}

.lightburn-calculator .lb-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.lightburn-calculator .lb-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightburn-calculator select {
  width: 100%;
  margin-left: 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: center;
  padding: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  color: var(--url);
  min-height: 44px;
}

/* Composants communs : surfaces, bandeaux et soutien */

.donation-invitation {
  max-width: 850px;
  margin: 36px auto 12px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.donation-invitation p {
  margin: 6px 0;
}

.donation-invitation a {
  display: inline-block;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer.footer .footer-left,
.home-theme,
.home-tool,
.home-content-card,
.home-faq,
.print-guide-intro>a,
.defect-controls,
.defect,
.p3d-guide .p3d-intro,
.p3d-nav a,
.p3d-heading>span,
.p3d-card,
.p3d-guide .p3d-note,
.p3d-related a,
.p3d-form,
.p3d-result,
.p3d-error,
.p3d-details,
.p3d-conclusion,
.solder-guide .solder-diagram,
.cat,
.card,
.article,
#youtubevid-container .youtubevid-title,
#youtubevid-container .youtubevid-video,
#youtubevid-container .youtubevid-description,
#youtubevid-container .youtubevid-comments,
.global-search button,
.theme,
.search-filters button,
.search-result,
.project-summary,
.support-box,
.support-history,
.tool-nav a,
.tool-section,
.maker-tools .tool-nav a,
.maker-tools .diagnostic-check,
.maker-tools .lightburn-calculator select,
.topic-guides .topic-guide {
  background: var(--card);
  border: 1px solid var(--border);
}

.home-hero,
.tools-hero {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-hero);
  background: var(--hero-bg);
  color: var(--hero-text);
  border: 1px solid var(--hero-border);
}

.home-eyebrow,
.tools-eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 750;
  color: #79d4ef;
}

.home-hero-visual img,
.home-theme img,
.home-content-card img,
.tools-hero-image,
.beginner-paths article>img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.home-tools,
.home-contents,
.maker-tools .tool-nav,
.p3d-samples {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.home-theme small,
.tool-nav small {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}

/* Liens vers les guides */

.topic-guides {
  max-width: var(--article-width);
  margin: 24px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr));
  gap: 16px;
  text-align: left;
}

.topic-guides .topic-guide {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-card);
  color: var(--text);
  min-width: 0;
  text-decoration: none;
}

.topic-guide>img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 9px;
  flex: 0 0 96px;
}

.topic-guide>span {
  display: block;
  min-width: 0;
}

.topic-guide strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

.topic-guide span span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0;
}

.topic-guide small {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}

.topic-guides .topic-guide:hover {
  border-color: #5bcaf0;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.topic-guides .topic-guide:focus-visible {
  outline: 3px solid var(--focus-guide);
  outline-offset: 4px;
}

body.dark .topic-guide small {
  color: var(--accent-soft);
}

/* Consentement et contenus externes */

[hidden] {
  display: none !important;
}

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--card,#fff);
  color: var(--text,#24292c);
  border-top: 2px solid #1767a0;
  padding: 16px 20px;
  box-shadow: 0 -3px 15px #0002;
  text-align: left;
  max-height: 45vh;
  overflow: auto;
}

.consent-banner p {
  max-width: 1100px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.consent-actions button,
.consent-placeholder button,
.consent-open {
  font: inherit;
  cursor: pointer;
  border: 1px solid #1767a0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--card,#fff);
  color: var(--text,#24292c);
  min-height: 44px;
}

.consent-actions button {
  flex: 0 1 210px;
}

.consent-dialog {
  box-sizing: border-box;
  width: min(600px,calc(100% - 24px));
  max-height: 85vh;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--border,#bbb);
  border-radius: 10px;
  background: var(--card,#fff);
  color: var(--text,#24292c);
  overflow: auto;
  text-align: left;
}

.consent-dialog::backdrop {
  background: #0009;
}

.consent-dialog p {
  margin: 12px 0;
  line-height: 1.6;
}

.consent-choice {
  display: flex;
  align-items: start;
  gap: 12px;
  margin: 18px 0;
  line-height: 1.6;
}

.consent-choice input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 3px;
}

.consent-media {
  max-width: 100%;
  margin: 12px auto;
}

.consent-placeholder {
  padding: 24px 16px;
  border: 1px solid var(--border,#bbb);
  border-radius: 8px;
  background: var(--card,#fff);
  color: var(--text,#24292c);
  text-align: center;
  line-height: 1.6;
}

.consent-placeholder p {
  margin-bottom: 12px;
}

.consent-open {
  margin: 8px 0;
}

.consent-status {
  margin: 8px 0;
  font-size: 14px;
}

/* Pied de page */

footer.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  padding: 28px 16px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer.footer .footer-left {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 7px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: 0 3px 14px #00000005;
  list-style: none;
}

footer.footer .footer-left :is(a,button) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 600 13px/1.4 system-ui,Arial,sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transform: none;
  transition: background-color .18s,color .18s;
}

footer.footer .footer-left :is(a,button):hover {
  background: var(--bg);
  color: var(--url);
  transform: none;
}

footer.footer .footer-left :is(a,button):focus-visible {
  outline: 3px solid #d47400;
  outline-offset: 2px;
}

footer.footer .footer-right {
  flex: initial;
  width: 100%;
  max-width: 1050px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  text-align: center;
}

footer.footer .footer-right p {
  margin: 0 0 10px;
}

footer.footer .footer-right p:last-child {
  margin-bottom: 0;
}

body.dark .footer-left .consent-open {
  color: var(--urldark);
}

body.dark .footer-left .consent-open:hover {
  color: var(--urldarkhover);
}

/* Adaptation : (min-width:1051px) */

@media (min-width:1051px) {
  .topic-guides {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .topic-guides .topic-guide {
    gap: 12px;
    padding: 14px;
  }

  .topic-guide>img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .topic-guide strong {
    font-size: 15px;
  }
}

/* Adaptation : (max-width:650px) */

@media (max-width:650px) {
  header {
    padding: 10px;
  }

  .lightburn-calculator .lb-menu {
    gap: 5px;
  }

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

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .socials a {
    width: 26px;
    height: 26px;
  }

  .search {
    max-width: 120px;
    width: 100%;
    margin: 0;
  }

  .hero div#menu {
    height: auto;
    padding: 5px 0;
  }

  .hero div#menu ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero div#menu ul li {
    height: auto;
    padding: 6px 10px;
  }

  .logo-header {
    max-height: 30px;
    width: 380px;
  }

  #youtubevid-container .youtubevid-video,
  #youtubevid-container .youtubevid-title,
  #youtubevid-container .youtubevid-description,
  #youtubevid-container .youtubevid-comments {
    width: 100%;
  }

  #youtubevid-container .youtubevid-video iframe {
    width: 100% !important;
    height: auto;
    aspect-ratio: 16/9;
  }

  .baseline {
    font-size: 12px;
  }

  .hero img {
    max-height: 160px;
  }

  .global-search {
    width: 100%;
    margin: 0;
  }

  .global-search .search {
    max-width: none;
  }

  .contact-layout {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 24px !important;
  }

  .lightburn-calculator .lb-layout {
    gap: 5px;
    grid-template-columns: minmax(0,1fr);
  }

  .project-summary {
    margin: 12px 8px;
    padding: 16px;
  }

  .project-summary dl {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }

  .search-filters label {
    flex-basis: 100%;
  }

  .search-page,
  .container {
    padding: 12px;
  }

  .hero #menu ul {
    gap: 0;
  }

  .donation-invitation {
    margin: 24px 8px 8px;
    padding: 16px 8px;
  }

  .consent-banner {
    padding: 12px;
    max-height: 42vh;
  }

  .consent-actions {
    gap: 6px;
  }

  .consent-actions button {
    flex: 1 1 120px;
    padding: 8px;
    font-size: 14px;
  }

  .consent-dialog {
    padding: 18px;
  }

  .consent-dialog .consent-actions {
    flex-direction: column;
  }

  .consent-dialog .consent-actions button {
    flex: auto;
  }

  footer.footer {
    padding: 22px 12px 18px;
    gap: 18px;
  }

  footer.footer .footer-left {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%;
    gap: 4px;
    padding: 8px;
  }

  footer.footer .footer-left :is(a,button) {
    min-height: 44px;
    padding: 9px 6px;
    font-size: 13px;
  }

  footer.footer .footer-right {
    font-size: 11px;
  }
}

/* Adaptation : (max-width:600px) */

@media (max-width:600px) {
  .topic-guides {
    margin: 18px 8px;
  }

  .topic-guides .topic-guide {
    gap: 12px;
    padding: 14px;
  }

  .topic-guide>img {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .topic-guide strong {
    font-size: 15px;
  }
}

/* Adaptation : (prefers-reduced-motion:reduce) */

@media (prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
