:root {
    --bg-sidebar: #08090a;
    --bg-main: #0d0f12;
    --text-color: #ffffff;
    --icon-color: #8e918f;
    --icon-hover-bg: rgba(255, 255, 255, 0.08);
    --icon-hover-color: #e3e3e3;
    --btn-border: #ffffff;
    --btn-shadow: rgba(88, 101, 242, 0.4);
    --btn-shadow-hover: rgba(88, 101, 242, 0.6);
    --indicator-bg: rgba(255, 255, 255, 0.3);
    --bg-page: #0d0f12;
    --card-bg: #111315;

    --ink: #111315;
    --muted: #686d73;
    --surface: #f2f2f2;
    --white: #ffffff;
    --line: rgba(17, 19, 21, 0.12);

    --safe: #10b981;
    --warning: #f59e0b;
    --orange: #ff7a00;
    --danger: #ef4444;

    --radius-pill: 9999px;
    --radius-card: 24px;
    --sidebar-width: 48px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-sidebar: #f0f2f5;
    --bg-main: #ffffff;
    --text-color: #1a1a1a;
    --icon-color: #65676b;
    --icon-hover-bg: rgba(0, 0, 0, 0.06);
    --icon-hover-color: #050505;
    --btn-border: #1a1a1a;
    --btn-shadow: rgba(88, 101, 242, 0.25);
    --btn-shadow-hover: rgba(88, 101, 242, 0.45);
    --indicator-bg: rgba(0, 0, 0, 0.3);
    --bg-page: #ffffff;
    --card-bg: #ffffff;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    min-height: 100vh;
}

body {
    background: var(--surface);
    color: var(--ink);
    font-family: 'Outfit', 'Manrope', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: row;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }
.rich-footer {
  width: 100%;
  align-self: stretch;
}
/* --- SIDEBAR DE 404.HTML --- */
.sidebar-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  display: flex;
}

   
.sidebar {
  width: 48px;
  height: 100vh;
  background-color: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  user-select: none;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  z-index: 2;
}

.drawer {
  position: absolute;
  top: 0;
  left: 48px;
  width: 240px;
  height: 100vh;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--icon-hover-bg);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease, 
              visibility 0.3s ease;
  z-index: 1;
}

.drawer.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.nomdusite-drawer {
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 24px;
  height: 32px;
  line-height: 32px;
  margin-bottom: 14px;
  padding: 0;
  color: var(--text-color);
  white-space: nowrap;
}

.titredumenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.titredumenu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 1px;
  border-radius: 10px;
  color: var(--text-color);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.titredumenu li a:hover {
  background-color: var(--icon-hover-bg);
  color: var(--icon-hover-color);
}

.titredumenu li.drawer-separator {
  height: 1px;
  background-color: var(--icon-hover-bg);
  margin: 8px 4px;
}

.deuxiemeliste {
  margin-top: auto;
  list-style: none;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deuxiemeliste li a {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-color);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(2px);
}

.top-section, .bottom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover, .icon-btn.active {
  background-color: var(--icon-hover-bg);
  color: var(--icon-hover-color);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  pointer-events: none;
}

.icon-btn img, .avatar {
  pointer-events: none;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.separateur {
  height: 1px;
  width: 25px;
  background-color: var(--icon-hover-bg);
  margin: 8px 4px;
}

/* MODALE PARAMÈTRES */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-modal.open {
  opacity: 1;
  visibility: visible;
}

.settings-content {
  position: relative;
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--text-color);
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.settings-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--ink);
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-group label {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
  #deuxtitrelogo {
      font-family: 'Outfit', sans-serif;
      font-weight: 400;
      font-size: 27px;
      line-height: normal;
      padding: 16px 20px;
      color: var(--text-color);
      margin: 0;
      white-space: nowrap;
    }
.settings-group input[type="text"] {
  background: var(--bg-main);
  border: 1px solid var(--line);
  color: var(--text-color);
  padding: 12px 16px;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}

.settings-group button {
  background: var(--bg-main);
  border: 1px solid var(--line);
  color: var(--text-color);
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.settings-group button:hover {
  background: var(--icon-hover-bg);
}

/* WRAPPER GLOBAL POUR LE CONTENU PRINCIPAL ET LE FOOTER */
.main-wrapper {
  margin-left: 48px;
  width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ZONE CONTENU (BUREAU PAR DÉFAUT) */
.page-layout {
    min-height: 82vh;
    padding-top: 2rem;
    padding-right: 2rem;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: justify-content 0.5s ease, padding 0.5s ease;
    flex: 1;
}

.page-layout.has-searched {
    justify-content: flex-start;
    padding-top: 3rem;
}

/* TOP HEADER */
.top-header {
    margin-bottom: 2rem;
    max-height: 100px;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
}

.page-layout.has-searched .top-header {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 0; /* Au lieu de 15px */
}

.logo h1 {
    font-family: 'Pacifico', cursive;
    color: #10b981;
    font-weight: bold;
    line-height: 1;
}

/* MAIN DETECTOR */
.detector-main {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.detector-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* TOOLTIP BOUTON INFO */
.info-tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-circle-btn {
    width: 28px;
    height: 28px;
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.info-tooltip-content {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 280px;
    background-color: var(--ink);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    text-align: left;
    pointer-events: none;
}

.info-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--ink) transparent transparent transparent;
}

.info-tooltip-container:hover .info-tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* COMPTEUR DE RECHERCHES */
.search-counter {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 6px 16px;
    border-radius: 15px;
    border: 1px solid var(--line);
}

/* BARRE DE RECHERCHE GLOBALE */
.search-row {
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 50;
}

/* SELECTEUR EN PILULE */
.select-pill-wrapper {
    position: relative;
    z-index: 90;
    background: var(--white);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-pill);
    height: 54px;
    min-width: 140px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(17, 19, 21, 0.04);
}

.select-trigger {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

.select-arrow { transition: transform 0.2s ease; display: flex; }
.select-pill-wrapper.open .select-arrow { transform: rotate(180deg); }

.select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--ink);
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(17, 19, 21, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 999;
}

.select-pill-wrapper.open .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.option-item {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-item:not(.disabled):hover { background: var(--surface); }
.option-item.active { background: rgba(17, 19, 21, 0.08); }

.option-item.disabled {
    color: #a0a5ab;
    cursor: not-allowed;
    background: transparent;
}

.option-item.disabled svg {
    width: 14px;
    height: 14px;
    color: #a0a5ab;
}

/* INPUT URL */
.input-url-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 54px;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-pill);
    padding-left: 22px;
    padding-right: 7px;
    box-shadow: 0 2px 8px rgba(17, 19, 21, 0.04);
}

.input-url-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
}

.input-url-wrapper input::placeholder { color: var(--muted); }

.btn-search {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    display: grid;
    place-items: center;
    transition: transform 0.2s ease;
}

.btn-search:hover:not(:disabled) { transform: scale(1.05); }
.btn-search:disabled { opacity: 0.5; cursor: not-allowed; }

/* LOADER & ERROR */
.loader-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 2rem 0;
}

.loader-wrapper.active { display: flex; }

.dots-loader { display: flex; gap: 8px; }
.dots-loader span {
    width: 14px;
    height: 14px;
    background: var(--ink);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dots-loader span:nth-child(1) { animation-delay: -0.32s; }
.dots-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.3); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.loader-text { color: var(--muted); font-size: 0.9rem; font-weight: 700; }

.error-box {
    display: none;
    width: 100%;
    max-width: 720px;
    background: var(--white);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    padding: 18px 20px;
    color: var(--danger);
    font-weight: 700;
}

.error-box.visible { display: block; }

/* RESULTS & SCORE */
.results-container {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.results-container.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.gauge { position: relative; width: 180px; height: 180px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: rgba(17, 19, 21, 0.08); stroke-width: 8; }
.gauge-fill {
    fill: none;
    stroke: var(--safe);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.score-number {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 3.3rem;
    font-weight: 800;
}

.score-label { margin-top: 12px; font-size: 1.2rem; font-weight: 800; }
.scanned-url {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.85rem;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* RAPPORT GRID */
.report { width: 100%; max-width: 760px; }
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.report-title { font-size: 1.1rem; font-weight: 800; }
.json-btn {
    border: none;
    background: rgba(17, 19, 21, 0.06);
    border-radius: var(--radius-pill);
    padding: 8px 13px;
    font-size: 0.8rem;
    font-weight: 700;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.report-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 35px rgba(17, 19, 21, 0.04);
}

.report-card h3 { font-size: 0.95rem; margin-bottom: 12px; }

.signal {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-top: 7px;
    background: var(--surface);
    border-radius: 12px;
    font-size: 0.82rem;
}

.signal-positive { border-left: 3px solid var(--safe); }
.signal-negative { border-left: 3px solid var(--danger); }

.metric {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
}

.metric:last-child { border-bottom: none; }
.metric span:first-child { color: var(--muted); }
.metric span:last-child { font-weight: 800; }

/* JSON PANEL */
.json-panel {
    display: none;
    margin-top: 12px;
    background: var(--ink);
    color: #eee;
    border-radius: 18px;
    padding: 18px;
    overflow: auto;
    max-height: 500px;
}

.json-panel.visible { display: block; }
.json-panel pre { white-space: pre-wrap; word-break: break-word; font-size: 0.75rem; font-family: monospace; }

/* FOOTER DE 404.HTML */
.inbrand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.imgbrand {
  margin: 0;
  height: 36px;
  width: auto;
}

#deuxtitrelogo {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 27px;
  line-height: normal;
  padding: 16px 20px;
  color: var(--text-color);
  margin: 0;
  white-space: nowrap;
}

.rich-footer { 
  background: var(--bg-page); 
  color: var(--ink); 
  padding: 90px 10vw 40px 14vw; 
  border-top: 1px solid var(--line); 
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  align-items: end; /* Aligne les colonnes proprement en bas */
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  justify-items: center;
}

.footer-brand p { 
  color: var(--muted); 
  font-size: 14px; 
  margin-top: 18px; 
  line-height: 1.65; 
  max-width: 320px; 
}

.footer-col h4 { 
  font-size: 12px; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.15em; 
  margin: 0 0 22px; 
  color: var(--ink); 
}

.footer-col ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 14px; 
}

.footer-col a { 
  color: var(--muted); 
  font-size: 14px; 
  transition: color .2s; 
}

.footer-col a:hover { 
  color: var(--ink); 
}

.footer-bottom { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding-top: 35px; 
  color: var(--muted); 
  font-size: 13px; 
}

.footer-socials { 
  display: flex; 
  gap: 14px; 
}

@media screen and (max-width: 950px) {
  .footer-grid { 
    grid-template-columns: 1fr; 
    justify-items: start; 
    gap: 30px; 
  }
  .footer-bottom { 
    flex-direction: column; 
    gap: 20px; 
    text-align: center; 
  }
}


@media (max-width: 768px) {
    /* Sécurité anti-débordement horizontal */
    html, body {
        overflow-x: hidden;
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .page-layout {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 5rem;
        padding-bottom: 90px;
    }

    /* Bouton d'aide "?" en haut à droite */
    .info-tooltip-container {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        left: auto !important;
        z-index: 150;
    }
    .info-tooltip-content {
        bottom: auto;
        top: calc(100% + 12px);
        left: auto;
        right: 0;
        transform: translateY(-6px);
        width: min(250px, 68vw);
    }
    .info-tooltip-container:hover .info-tooltip-content {
        transform: translateY(0);
    }
    .info-tooltip-content::after {
        top: auto;
        bottom: 100%;
        left: auto;
        right: 10px;
        transform: none;
        border-color: transparent transparent var(--ink) transparent;
    }

    /* Logo et Titre */
    .top-header { margin-bottom: 1.5rem; }
    /* Le logo est carré (256x256) et .top-header est limité à 100px de haut : on le garde entier */
    .logo img { width: 84px; height: 84px; max-width: 100%; object-fit: contain; }
    .detector-title {
        font-size: clamp(24px, 8vw, 32px);
        gap: 8px;
        margin-bottom: 1.25rem;
        width: 100%;
        flex-wrap: wrap;
    }

    /* BARRE DE RECHERCHE MOBILE */
    .search-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        max-width: 100% !important;
        display: flex !important;
    }

    .select-pill-wrapper {
        width: 100% !important;
        height: 54px !important;
        min-width: unset !important;
    }

    .input-url-wrapper {
        width: 100% !important;
        height: 54px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        background: var(--white) !important;
        border: 1.5px solid var(--ink) !important;
        border-radius: var(--radius-pill) !important;
        padding-left: 20px !important;
        padding-right: 6px !important;
        box-shadow: 0 2px 8px rgba(17, 19, 21, 0.04) !important;
        flex: unset !important;
    }

    .input-url-wrapper input {
        position: static !important;
        flex: 1 !important;
        height: 100% !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        padding-right: 45px !important;
        width: calc(100% - 45px) !important;
    }

    .input-url-wrapper .btn-search {
        position: absolute !important;
        right: 6px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--ink) !important;
        color: var(--white) !important;
        border: none !important;
    }

    .input-url-wrapper .btn-search svg {
        width: 18px !important;
        height: 18px !important;
    }
    .report-grid {
        grid-template-columns: 1fr;
    }
    /* Footer mobile */
    .rich-footer { padding: 40px 1.25rem 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 30px; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* La sidebar passe en barre du bas à 860px (comme l'accueil) */
@media (max-width: 860px) {
  .main-wrapper { margin-left: 0; width: 100%; }
}

/* ===== Quota, appels à l'inscription, contenu SEO ===== */
.quota-cta { width: 100%; max-width: 720px; margin: -0.5rem 0 1.5rem; padding: 22px 26px; border-radius: 22px; background: var(--white); border: 1.5px solid var(--ink); text-align: center; }
.quota-cta[hidden], .result-cta[hidden], .quota-cta [hidden] { display: none !important; }
.quota-cta strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.quota-cta p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: 14px; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 9999px; background: #111315; color: #fff; font-weight: 700; font-size: .95rem; transition: transform .2s, box-shadow .2s; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.link-cta { display: inline-block; margin-left: 14px; color: var(--muted); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.result-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 18px 0; padding: 18px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.result-cta strong { display: block; margin-bottom: 2px; }
.result-cta span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.result-cta > div { flex: 1 1 260px; }
.seo-content { width: 100%; max-width: 980px; margin: 0 auto; padding: 56px clamp(18px, 4vw, 40px) 40px; }
.seo-content h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px; }
.seo-content > p { color: var(--muted); line-height: 1.7; max-width: 70ch; margin-bottom: 28px; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 44px; }
.seo-grid article { padding: 20px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.seo-grid h3 { font-size: 1.02rem; margin-bottom: 6px; }
.seo-grid p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.seo-faq { margin: 18px 0 26px; }
.seo-faq details { border-top: 1px solid var(--line); padding: 16px 2px; }
.seo-faq details:last-child { border-bottom: 1px solid var(--line); }
.seo-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.seo-faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.seo-faq details[open] summary::after { content: '–'; }
.seo-faq details p { color: var(--muted); line-height: 1.65; margin-top: 10px; max-width: 70ch; }
.seo-links { color: var(--muted); }
.seo-links a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
@media (max-width: 760px) { .link-cta { display: block; margin: 12px 0 0; } }
