    :root {
      --wood-950: #120b06;
      --wood-900: #1d120a;
      --wood-800: #2b1a0f;
      --wood-700: #3a2415;
      --wood-600: #4c2f1c;
      --gold-500: #c69234;
      --gold-400: #d9aa4f;
      --cream-100: #f7efd9;
      --cream-200: #ead9b2;
      --text: #f6efe2;
      --muted: #cdbf9f;
      --line: rgba(217, 170, 79, 0.28);
      --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 20% 0%, rgba(198, 146, 52, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, var(--wood-950), var(--wood-900));
      background-size: auto, 10px 10px, auto;
    }
	
	main {
    position: relative;
}

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    .container {
      width: min(1180px, calc(100% - 40px));
      margin-inline: auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      backdrop-filter: blur(16px);
      background: rgba(18, 11, 6, 0.9);
      border-bottom: 1px solid var(--line);
    }

    .header-inner {
      min-height: 86px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-logo {
  width: 128px;
  height: auto;
  flex: none;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #f8f2e8;
}

.brand-name span {
  color: var(--gold-400);
}

.brand-name small {
  font-size: 0.38em;
  margin-left: 4px;
}

.brand-baseline {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream-200);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-baseline::before,
.brand-baseline::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold-400);
  opacity: 0.9;
}
.user-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  color: var(--cream-100);
}

.user-avatar svg {
  width: 22px;
  height: 22px;
}

.user-avatar.connected-no-avatar {
  color: var(--gold-400);
  border-color: var(--gold-400);
  background: rgba(217, 170, 79, 0.12);
}

.v3_avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--gold-500);
}
@media (max-width: 620px) {

  .brand-logo {
    width: 82px;
  }

  .brand-name {
    font-size: 2.3rem;
  }

  .brand-baseline {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    gap: 8px;
  }

  .brand-baseline::before,
  .brand-baseline::after {
    width: 18px;
  }
}
    .nav {
      display: flex;
      gap: 24px;
      align-items: center;
      color: var(--cream-100);
      font-size: 0.86rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .nav a {
      opacity: 0.86;
    }

    .nav a:hover,
    .nav a.active {
      color: var(--gold-400);
      opacity: 1;
    }

    .hero {
      min-height: 490px;
      display: grid;
      align-items: end;
      border-bottom: 1px solid var(--line);
      background:
        linear-gradient(90deg, rgba(18, 11, 6, 0.9) 0%, rgba(18, 11, 6, 0.46) 48%, rgba(18, 11, 6, 0.15) 100%),
        url("../assets/hero-hifi.png");
      background-size: cover;
      background-position: center;
    }

    .hero-content {
      padding: 65px 0 45px;
      max-width: 760px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: var(--gold-400);
      font-weight: 800;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-size: 0.84rem;
    }

    .eyebrow::before {
      content: "";
      width: 54px;
      height: 1px;
      background: currentColor;
    }

    h1 {
      margin: 22px 0 18px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(3.2rem, 8vw, 5rem);
      line-height: 0.92;
      text-shadow: 0 8px 34px rgba(0,0,0,.6);
    }

    .hero p {
      max-width: 640px;
      color: var(--cream-100);
      font-size: clamp(1.05rem, 2vw, 1.35rem);
      line-height: 1.7;
    }

    .main-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.4fr;
      gap: 0;
      border-bottom: 1px solid var(--line);
    }

    .panel {
      padding: 52px 44px;
      border-right: 1px solid var(--line);
      background: rgba(0,0,0,.13);
    }

    .panel:last-child {
      border-right: 0;
    }

    .section-kicker {
      display: flex;
      align-items: center;
      gap: 14px;
      color: var(--gold-400);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .section-kicker .icon {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border: 1px solid var(--gold-500);
      border-radius: 10px;
      font-size: 1.25rem;
    }

    .section-subtitle {
      margin: 0 0 32px 52px;
      color: var(--cream-200);
      font-size: 0.95rem;
    }

    .blog-list {
      display: grid;
      gap: 24px;
    }

    .blog-card {
      display: grid;
      grid-template-columns: 130px 1fr;
      gap: 20px;
      align-items: center;
    }

    .blog-card img {
      height: 96px;
      width: 130px;
      object-fit: cover;
      border-radius: 10px;
      border: 1px solid rgba(217,170,79,.32);
    }

    .tag {
      color: var(--gold-400);
      font-size: 0.72rem;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .blog-card h3 {
      margin: 8px 0 4px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1.2rem;
      line-height: 1.25;
    }

    .date {
      color: var(--muted);
      font-size: 0.84rem;
    }

    .read-more {
      display: inline-block;
      margin-top: 8px;
      color: var(--gold-400);
      font-size: 0.9rem;
      font-weight: 700;
    }

    .button-outline {
      margin-top: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 50px;
      border: 1px solid var(--gold-500);
      border-radius: 8px;
      color: var(--cream-100);
      font-weight: 800;
    }

    .about h2 {
      margin: 28px 0 22px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2rem, 4vw, 3.1rem);
      line-height: 1.05;
      letter-spacing: -0.04em;
    }

    .about p {
      max-width: 740px;
      color: var(--cream-100);
      line-height: 1.75;
      font-size: 1.03rem;
    }

    .about strong {
      color: var(--gold-400);
    }

    .benefits {
      margin-top: 44px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 22px;
      text-align: center;
    }

    .benefit-icon {
      color: var(--gold-400);
      font-size: 2rem;
      margin-bottom: 12px;
    }

    .benefits p {
      margin: 0;
      color: var(--cream-100);
      font-size: 0.88rem;
      line-height: 1.5;
    }

    .search-section {
      padding: 54px 0 62px;
    }

    .search-box {
      padding: 38px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(0,0,0,.16)),
        rgba(43,26,15,.68);
      box-shadow: var(--shadow);
    }

    .search-title {
      display: flex;
      align-items: center;
      gap: 22px;
      margin-bottom: 26px;
    }

    .search-icon {
      width: 70px;
      height: 70px;
      display: grid;
      place-items: center;
      border: 2px solid var(--gold-500);
      border-radius: 999px;
      color: var(--gold-400);
      font-size: 2rem;
      flex: none;
    }

    .search-title h2 {
      margin: 0;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(2rem, 5vw, 3rem);
      letter-spacing: -0.04em;
    }

    .search-title p {
      margin: 8px 0 0;
      color: var(--gold-400);
    }

    .search-form {
      display: grid;
      grid-template-columns: 1fr 190px;
      gap: 22px;
    }

    .search-input-wrap {
      position: relative;
    }

    .search-input {
      width: 100%;
      min-height: 66px;
      border: 2px solid var(--gold-500);
      border-radius: 9px;
      padding: 0 54px 0 24px;
      font-size: 1.05rem;
      color: #1d120a;
      background: #fffaf0;
      outline: none;
    }

    .search-input::placeholder {
      color: #7d6d56;
    }

    .search-input-wrap::after {
      content: "⌄";
      position: absolute;
      right: 22px;
      top: 50%;
      transform: translateY(-54%);
      color: #1d120a;
      font-size: 1.6rem;
      pointer-events: none;
    }

    .search-button {
      min-height: 66px;
      border: 0;
      border-radius: 9px;
      background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
      color: #1d120a;
      font-weight: 900;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 10px 30px rgba(198,146,52,.22);
    }

    .search-help {
      margin-top: 16px;
      color: var(--cream-200);
      font-size: 0.94rem;
    }

    .search-help strong {
      color: var(--gold-400);
    }

    .footer-features {
      padding: 0 0 58px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
    }

    .footer-feature {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 22px 28px;
      border-right: 1px solid var(--line);
      color: var(--cream-100);
    }

    .footer-feature:last-child {
      border-right: 0;
    }

    .footer-feature .icon {
      color: var(--gold-400);
      font-size: 2rem;
    }

    @media (max-width: 960px) {
      .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
      }

      .nav {
        flex-wrap: wrap;
        gap: 14px 20px;
      }

      .hero {
        min-height: 417px;
      }

      .main-grid,
      .search-form,
      .benefits,
      .footer-features {
        grid-template-columns: 1fr;
      }

      .panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .footer-feature {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }
    }

    @media (max-width: 620px) {
      .container {
        width: min(100% - 28px, 1180px);
      }

      .brand-mark {
        width: 56px;
      }

      .brand-name {
        font-size: 2rem;
      }

      .brand-baseline {
        font-size: 0.62rem;
      }

      .hero-content {
        padding: 25px 0 45px;
      }

      .panel,
      .search-box {
        padding: 30px 22px;
      }

      .blog-card {
        grid-template-columns: 1fr;
      }

      .blog-card img {
        width: 100%;
        height: 180px;
      }

      .search-title {
        align-items: flex-start;
        flex-direction: column;
      }
    }
	
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name small {
  font-size: 0.45em;
  margin-left: 2px;
}

@media (max-width: 620px) {
  .brand-logo {
    width: 64px;
  }
}	

.retro-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.12),
      rgba(0,0,0,.28)
    );

  padding: 34px 0;
}

.retro-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.retro-mascot {
  width: 84px;
  height: auto;

  opacity: 0.92;

  transition: transform .25s ease;
}

.retro-mascot:hover {
  transform: rotate(-4deg) scale(1.04);
}

.retro-footer-text {
  color: var(--cream-100);
}

.retro-footer-text p {
  margin: 0;
  line-height: 1.6;
}

.retro-footer-text strong {
  color: var(--gold-400);
}

.retro-footer-text a {
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 700;
}

.retro-footer-text a:hover {
  text-decoration: underline;
}

.retro-subline {
  margin-top: 4px !important;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {

  .retro-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .retro-mascot {
    width: 72px;
  }
}
.autocomplete-results {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 500px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    color: #222;              /* ← TEXTE BIEN VISIBLE */
    background: #fff;
}

.autocomplete-item.active {
    background: #e6e6e6;
}
.autocomplete-item:hover {
    background: transparent;
}

.autocomplete-highlight {
    font-weight: bold;
    color: #000;              /* ← MATCH BIEN VISIBLE */
}.autocomplete-item:hover {
    background: #f5f5f5;
}

.autocomplete-keyboard .autocomplete-item:hover {
    background: transparent;
}
.autocomplete-results:empty {
    border: none;
    box-shadow: none;
}
.device-content{
	background-color:#FFFCF6;
  border-radius: 14px;
}
dd {
    color: #333;
}

.valeur-suffixe {
    margin-left: 4px;
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
}
.admin_modif{
	font-weight:bold;
	color:#F00;
	border:#F00 thin solid;
	border-radius:15px;
	padding:5px;


}
.admin{
	color:red;
}



/* =========================================================
   Page appareil.php
   ========================================================= */
.device-intro {
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(198,146,52,.16), transparent 34%),
    linear-gradient(180deg, rgba(43,26,15,.72), rgba(18,11,6,.25));
}

.device-hero-content {
  padding: 0 0 34px;
  max-width: 900px;
}

.device-hero-content h1 {
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 2.8rem);
  line-height: .92;
  text-shadow: 0 8px 34px rgba(0,0,0,.6);
}

.device-hero-content p {
  max-width: 720px;
  color: var(--cream-100);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.device-photo-wrap {
  display: flex;
  justify-content: center;
}

.device-main-photo {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  box-shadow: var(--shadow);
}



.device-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding: 54px 0;
}

.spec-grid {
  display: grid;
  gap: 24px;
}

.side-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(43,26,15,.72);
  box-shadow: var(--shadow);
}

.spec-block{
	padding: 0px 30px 0px;
  color:#333;
}


.side-card h3 {
  margin-top: 0;
  color: var(--gold-400);
  font-family: Georgia, "Times New Roman", serif;
}


.spec-block h2{
  margin-top: 0;
  color: black;
  font-family: Georgia, "Times New Roman", serif;
}

dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3px 18px;
}

dt {
  color: black;
}

dd {
  margin: 0;
  color: black;
}

.device-sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.mini-search {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mini-search input {
  width: 0;
  opacity: 0;
  min-height: 48px;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  padding: 0;
  transition: .25s ease;
}

.mini-search:hover input,
.mini-search:focus-within input {
  width: 240px;
  opacity: 1;
  padding: 0 18px;
}

.mini-search-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--gold-500);
  background: rgba(0,0,0,.25);
  color: var(--gold-400);
  font-size: 1.4rem;
}

.side-card a {
  color: var(--gold-400);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .device-layout {
    grid-template-columns: 1fr;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .mini-search {
    justify-content: stretch;
  }

  .mini-search input {
    width: 100%;
    opacity: 1;
    padding: 0 18px;
  }
}
.zoomable {
  cursor: zoom-in;
  transition: transform .25s ease;
}

.zoomable:hover {
  transform: scale(1.01);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(0,0,0,.92);

  opacity: 0;
  visibility: hidden;

  transition: .25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: none;
  max-height: none;

  width: auto;
  height: auto;

  box-shadow: 0 30px 80px rgba(0,0,0,.6);

  cursor: zoom-out;
}
.retro-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.12),
      rgba(0,0,0,.28)
    );

  padding: 34px 0;
}

.retro-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.retro-mascot {
  width: 84px;
  height: auto;

  opacity: 0.92;

  transition: transform .25s ease;
}

.retro-mascot:hover {
  transform: rotate(-4deg) scale(1.04);
}

.retro-footer-text {
  color: var(--cream-100);
}

.retro-footer-text p {
  margin: 0;
  line-height: 1.6;
}

.retro-footer-text strong {
  color: var(--gold-400);
}

.retro-footer-text a {
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 700;
}

.retro-footer-text a:hover {
  text-decoration: underline;
}

.retro-subline {
  margin-top: 4px !important;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {

  .retro-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .retro-mascot {
    width: 72px;
  }
}
.device-content{
	background-color:#FFFCF6;
  border-radius: 14px;
}
dd {
    color: #333;
}



/* =========================================================
   APPAREIL_FORM.PHP
   Styles issus de l'ancien bloc <style> de appareil_form.php
========================================================= */

.form-intro {
  padding: 70px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(198,146,52,.16), transparent 34%),
    linear-gradient(180deg, rgba(43,26,15,.72), rgba(18,11,6,.25));
}

.form-intro p {
  max-width: 720px;
  color: var(--cream-100);
  font-size: 1.12rem;
  line-height: 1.7;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  padding: 54px 0;
}

.form-card {
  background: #fffaf0;
  color: #2b1a0f;
  border-radius: 16px;
  border: 1px solid rgba(217,170,79,.35);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-block {
  padding: 30px;
  border-bottom: 1px solid rgba(76,47,28,.18);
}

.category-block:last-child {
  border-bottom: 0;
}

.category-title {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  color: #1d120a;
}

.form-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: center;
  padding: 11px 0;
}

.form-row label:first-child {
  font-weight: 700;
  color: #3a2415;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(76,47,28,.28);
  border-radius: 12px;
  background: #fff;
  color: #1d120a;
  padding: 6px 14px;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(198,146,52,.16);
}

input[type="number"] {
  width: 40%;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d8cab2;
  position: relative;
  transition: .2s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.18);
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 23px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.toggle input:checked + .toggle-slider {
  background: var(--gold-500);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(17px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 30px 32px;
  background: rgba(234,217,178,.35);
}

.btn {
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  background: var(--gold-500);
  color: #120b06;
  font: inherit;
}

.btn.secondary {
  background: transparent;
  color: #3a2415;
}

.side-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(43,26,15,.72);
  box-shadow: var(--shadow);
}

.side-card h3 {
  margin-top: 0;
  color: var(--gold-400);
  font-family: Georgia, "Times New Roman", serif;
}

.side-card p {
  color: var(--cream-100);
  line-height: 1.6;
}

.notice {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(217,170,79,.45);
  background: rgba(217,170,79,.16);
  color: var(--cream-100);
}

.notice.error {
  border-color: rgba(255,100,100,.5);
  background: rgba(255,70,70,.13);
}

.coche-groupe .coche-option,
.coche-groupe .coche-option:first-child {
  font-weight: normal !important;
}

.coche-option {
  margin-right: 15px;
}

.option-groupe {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.option-groupe label.option-option {
  font-weight: normal !important;
}

.toggle-nullable label {
  font-weight: normal !important;
}

.categories-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  margin-left: 28px;
}

.btn-categorie {
  padding: 6px 12px;
  border: 1px solid #aaa;
  background: #eee;
  cursor: pointer;
  border-radius: 8px;
  color: #222;
}

.btn-categorie.active {
  background: #333;
  color: #fff;
}

.btn-plus-toggle {
  background: none;
  border: none;
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 6px;
}

.btn-plus-toggle:hover {
  color: #003366;
}

.hidden {
  display: none;
}

.drapeau {
  width: 18px;
  height: auto;
  vertical-align: middle;
  border: 1px solid #000;
  box-sizing: border-box;
}

.input-avec-prefix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prefix-dynamique {
  min-width: 24px;
  font-weight: bold;
}

.label-suffixe {
  color: #666;
  font-weight: normal;
  font-size: 0.9em;
}

@media (max-width: 980px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .category-block {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .actions {
    padding: 22px 18px;
  }

  .btn {
    width: 100%;
  }
}
.device-gallery {
    display: flex;
    gap: 14px;
    align-items: stretch;
    padding: 10px;
}

.device-gallery > a {
    flex: 1;
}

.main-photo {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 14px;
    cursor: zoom-in;
}

.photo-thumbs-vertical {
    width: 110px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-thumbs-vertical a {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.18);
    background: #f6efe2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-thumbs-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-more {
    font-weight: bold;
    color: #1d120a;
    text-align: center;
    padding: 8px;
    background: rgba(217,170,79,.35);
}
.hidden-gallery-item {
    display: none;
}

.photo-thumbs-vertical a.hidden-gallery-item {
    display: none !important;
}

.thumb-more.active-thumb {
    border: 2px solid var(--gold-500);
    box-shadow: 0 0 0 3px rgba(198,146,52,.25);
}
.photo-thumbs-vertical a.active-thumb {
    border: 3px solid red !important;
}
.texte-multiligne {
    white-space: pre-line;
}
.search-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-button-secondary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #d49a2a;
    color: #d49a2a;
}

.search-home {
    background: #c7b08b;
    border: 2px solid #d49a2a;
    border-radius: 24px;
    padding: 46px;
    margin: 50px auto;
    max-width: 1180px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
    color: #251507;
}

.search-home-header {
    text-align: center;
    margin-bottom: 38px;
}

.search-home-icon {
    font-size: 64px;
    color: #d49a2a;
    margin-bottom: 10px;
}

.search-home-title {
    color: #251507;
    font-size: 2.4rem;
    margin: 0;
}

.search-option {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 28px;
    align-items: center;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(212,154,42,0.35);
    border-radius: 16px;
    padding: 28px 34px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.search-option-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #fffaf0;
    border: 1px solid rgba(212,154,42,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.search-option h3 {
    margin: 0 0 10px 0;
    color: #251507;
    font-size: 1.8rem;
}

.search-option p {
    margin: 0 0 20px 0;
    color: #3a2615;
}

.search-assisted-form {
    display: flex;
    gap: 16px;
}

.search-assisted-form .search-input {
    flex: 1;
    padding: 15px 18px;
    border-radius: 8px;
    border: 1px solid #d49a2a;
    background: #fff;
    font-size: 1rem;
}

.search-assisted-form button,
.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d49a2a;
    color: #120900;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.search-assisted-form button:hover,
.search-button:hover {
    background: #e3ad3d;
    box-shadow: 0 0 18px rgba(212,154,42,0.35);
}

.search-help {
    margin-top: 14px;
    color: #8a5b12;
    font-size: 0.95rem;
}

.search-separator {
    text-align: center;
    color: black;
    margin: 26px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.search-separator span::before,
.search-separator span::after {
    content: "";
    display: inline-block;
    width: 45px;
    height: 1px;
    background: black;
    vertical-align: middle;
    margin: 0 14px;
}

@media (max-width: 760px) {
    .search-home {
        padding: 28px 18px;
    }

    .search-option {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .search-option-icon {
        margin: 0 auto;
    }

    .search-assisted-form {
        flex-direction: column;
    }
}
.search-assisted-form {
    position: relative;
}
.device-title-row {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-bottom: 26px;
}

.home-inline-button {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(45,20,0,0.78);

    border: 1px solid rgba(212,154,42,0.38);

    color: #d49a2a;

    font-size: 20px;

    text-decoration: none;

    box-shadow:
        0 0 18px rgba(0,0,0,0.35),
        inset 0 0 10px rgba(255,190,80,0.06);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.home-inline-button:hover {
    transform: scale(1.06);

    border-color: rgba(255,210,120,0.7);

    box-shadow:
        0 0 22px rgba(212,154,42,0.18);
}
.home-inline-button {
    flex-shrink: 0;
}
.resultat_titre{
	color:#FFC;
}
.listes-page {
    margin-top: 40px;
}

.alpha-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 30px;
}

.alpha-tabs a {
    min-width: 36px;
    padding: 9px 12px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(212,154,42,0.35);
    color: #d49a2a;
    text-decoration: none;
    background: rgba(45,20,0,0.55);
}

.alpha-tabs a.active,
.alpha-tabs a:hover {
    background: #d49a2a;
    color: #120900;
}

.listes-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
}

.listes-card {
    background: #fffaf0;
    border: 1px solid rgba(212,154,42,0.45);
    border-radius: 18px;
    padding: 26px;
    color: #251507;
}

.listes-card h2 {
    margin-top: 0;
    color: #251507;
}

.brand-list,
.model-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-item,
.model-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #251507;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(212,154,42,0.18);
}

.brand-item:hover,
.model-item:hover {
    background: #f1dfbd;
}

.brand-item em {
    color: #8a5b12;
    font-style: normal;
}

@media (max-width: 850px) {
    .listes-layout {
        grid-template-columns: 1fr;
    }
}
.device-nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.form-row-groupe .groupe-inputs {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.groupe-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.groupe-input-label {
    font-size: 0.9rem;
    color: #6a4a24;
}

.groupe-input input {
    width: 90px;
}