/* Styles du site public — reprend la charte de la page « en construction ».
   Couleurs du logo : bleu-vert foncé #04444d, turquoise #2da69f (décor uniquement : contraste
   insuffisant pour du texte sur blanc), jaune #ffd505 (sur fond foncé uniquement). */

:root {
  --dark: #04444d;
  --dark-2: #063a41;
  --teal: #2da69f;
  --yellow: #ffd505;
  --text: #1c2a2d;
  --muted: #4a5b5f;
  --line: #d5e7e5;
  --bg: #ffffff;
  --bg-soft: #eef7f6;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--dark);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--dark);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  border-radius: 8px;
}

/* Cible du lien « Aller au contenu » : reçoit le focus sans cadre (tabindex="-1"). */
main:focus {
  outline: none;
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Liens vers une ancre (#titre-demande…) : le titre n'est pas caché sous l'en-tête fixe. */
html {
  scroll-padding-top: 5rem;
}

/* Bandeau du mode maintenance (visible seulement de l'admin connecté). */
.maintenance-bar {
  margin: 0;
  padding: 0.6rem 16px;
  background: #b3261e;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.maintenance-bar p {
  margin: 0;
}

.maintenance-bar a {
  color: #fff;
}

/* Fermeture de l'atelier (étape A). */
.absence-bar {
  padding: 0.6rem 16px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  text-align: center;
}

.absence-bar p {
  margin: 0;
}

/* --- En-tête et menu --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
  background: var(--dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: 64px;
}

.brand {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.header-call,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.header-call {
  background: var(--yellow);
  color: var(--dark);
}

.header-call-text {
  display: none;
}

.menu-toggle {
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.main-nav {
  flex-basis: 100%;
}

/* Sans JavaScript, le menu reste visible ; main.js le replie sur téléphone. */
.js .main-nav[data-collapsed="true"] {
  display: none;
}

.main-nav ul {
  margin: 0;
  padding: 0 0 0.75rem;
  list-style: none;
}

.main-nav a {
  display: block;
  white-space: nowrap;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a[aria-current] {
  color: var(--yellow);
}

/* --- Bandeau d'accueil --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark) 55%, var(--dark-2) 100%);
}

/* Bande turquoise en diagonale, rappel du logo */
.hero::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -60%;
  width: 80%;
  height: 120%;
  background: var(--teal);
  opacity: 0.18;
  transform: rotate(-35deg);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero a {
  color: #fff;
}

.hero-small {
  padding: 2rem 0 2.25rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.8rem;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 700;
}

h1 {
  max-width: 24ch;
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 6vw, 3rem);
  line-height: 1.15;
}

.lead {
  max-width: 62ch;
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
}

.hero-small .lead {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.3rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary,
.hero .btn-primary,
.cta-band .btn-primary {
  background: var(--yellow);
  color: var(--dark);
}

.btn-primary:hover {
  background: #ffe04d;
}

.btn-ghost {
  border: 2px solid #fff;
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  border: 2px solid var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--bg-soft);
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

/* --- Fil d'Ariane --- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
}

/* --- Sections --- */

.section {
  padding-top: 3rem;
}

.section-soft {
  margin-top: 3rem;
  padding: 3rem 0;
  background: var(--bg-soft);
}

.section-soft + .section {
  padding-top: 3rem;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--dark);
}

h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--teal);
}

h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--dark);
}

.prose {
  max-width: 70ch;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

/* --- Cartes (familles d'appareils, atouts) --- */

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card h3 {
  margin-top: 0.75rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--dark);
}

.card-icon .icon {
  width: 28px;
  height: 28px;
}

/* Carte entièrement cliquable : le lien du titre couvre la carte. */
.card-link a {
  text-decoration: none;
}

.card-link a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card-link:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(4, 68, 77, 0.1);
}

.card-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--dark);
  font-weight: 700;
}

/* --- Étapes numérotées --- */

.steps {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  counter-increment: etape;
}

.steps li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--dark);
  color: var(--yellow);
  font-weight: 800;
}

.steps strong {
  color: var(--dark);
}

/* --- Listes à puces cochées --- */

.checklist {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li + li {
  margin-top: 0.4rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.columns {
  columns: 2 12rem;
  column-gap: 2rem;
}

/* --- Qui suis-je --- */

.about {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.about img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--teal);
}

.about p {
  margin: 0 0 1rem;
}

.workshop {
  margin: 2rem 0 0;
}

.workshop img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.workshop figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Tarifs --- */

.rates {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
}

.rates caption {
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: left;
}

.rates th {
  font-weight: 400;
}

.rates th,
.rates td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rates td.price {
  white-space: nowrap;
  text-align: right;
  font-weight: 800;
  color: var(--dark);
}

.rates .rate-note {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
}

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

/* --- Questions fréquentes --- */

.faq h2 {
  margin-top: 2.5rem;
}

.faq h3 {
  margin-top: 1.5rem;
}

.faq p {
  margin: 0 0 0.75rem;
  max-width: 70ch;
}

/* --- Coordonnées --- */

.infos {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.infos div {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
}

.infos dt {
  font-weight: 800;
  color: var(--dark);
}

.infos dd {
  margin: 0;
}

/* --- Bandeau d'appel à l'action --- */

.cta-band {
  margin-top: 3.5rem;
  padding: 2.5rem 0;
  color: #fff;
  background: var(--dark);
}

.cta-band h2 {
  color: #fff;
}

.cta-band h2::after {
  background: var(--yellow);
}

.cta-band p {
  max-width: 60ch;
}

/* Page terminée par le bandeau d'appel : pas d'espace blanc avant le pied de page. */
main:has(> .cta-band:last-child) + .site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Pages juridiques --- */

.legal-doc .section {
  padding-top: 2rem;
}

.legal-doc h2 {
  font-size: 1.3rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.plain-list {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.toc ol {
  columns: 2 18rem;
  column-gap: 2rem;
  padding-left: 0;
  list-style: none;
  font-size: 0.95rem;
}

.toc li {
  break-inside: avoid;
  padding: 0.15rem 0;
}

/* --- Estimation en ligne --- */

.estimate-disclaimer {
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fffbe0;
}

.estimate-step h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--dark);
  color: var(--yellow);
  font-size: 1rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--dark);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.choice .icon {
  width: 32px;
  height: 32px;
}

.choice:hover {
  border-color: var(--teal);
}

.choice.is-selected {
  border-color: var(--dark);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 2px var(--dark);
}

.estimate-form {
  max-width: 40rem;
}

.field {
  margin: 0 0 1rem;
}

.field label,
.estimate-form legend {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--dark);
  font-weight: 700;
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.required {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.estimate-form select,
.estimate-form input[type="text"],
.estimate-form input[type="tel"],
.estimate-form input[type="email"],
.estimate-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 2px solid #8aa3a6;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.estimate-form select:focus,
.estimate-form input:focus,
.estimate-form textarea:focus {
  border-color: var(--dark);
}

.estimate-form [aria-invalid="true"] {
  border-color: #b3261e;
}

.field-error,
.form-error {
  margin: 0.35rem 0 0;
  color: #b3261e;
  font-weight: 700;
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #b3261e;
  border-radius: 10px;
}

.estimate-form fieldset {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.repair-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.repair-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.repair-list input[type="checkbox"],
.field-check input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.15rem 0 0;
  accent-color: var(--dark);
}

.repair-list > li > label {
  font-weight: 600;
}

.repair-list input:disabled + label {
  color: var(--muted);
}

.grade-choice {
  grid-column: 2;
  margin: 0.5rem 0 0 !important;
  padding: 0.6rem 0.8rem !important;
  border-radius: 10px !important;
  background: var(--bg-soft);
}

/* Gammes affichées seulement quand la réparation est cochée (navigateurs récents). */
.repair-list > li:not(:has(input[type="checkbox"]:checked)) .grade-choice {
  display: none;
}

.grade-choice legend {
  font-size: 0.95rem;
}

.grade-choice label {
  display: block;
  padding: 0.2rem 0;
}

.estimate-result {
  max-width: 40rem;
  padding: 1.25rem;
  border: 2px solid var(--dark);
  border-radius: var(--radius);
}

.estimate-device {
  margin: 0 0 0.5rem;
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.estimate-result .rates {
  margin-bottom: 0.75rem;
}

.part-row th {
  padding-left: 1.25rem;
}

.on-quote {
  color: var(--muted);
  font-weight: 600;
}

.rates tfoot th,
.rates td.total {
  border-bottom: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.history .check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0;
  color: var(--text);
  font-weight: 400;
}

.history input[type="checkbox"],
.history input[type="radio"] {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--dark);
}

.field-row {
  display: grid;
  gap: 0 1rem;
}

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: start;
}

.field-check label {
  font-weight: 400;
  color: var(--text);
}

/* Aide ou erreur sous une case à cocher : alignée sur le texte, pas sur la case. */
.field-check > p {
  grid-column: 2;
  margin: 0;
}

.field-check .field-error {
  grid-column: 2;
}

/* --- Suivi de réparation (page /suivi/) --- */

.tracking-form {
  max-width: 36rem;
}

.tracking-device {
  color: var(--muted);
  font-weight: 600;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.tracking-steps li {
  padding: 0.5rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.tracking-steps li.is-done {
  border-color: var(--teal);
  background: var(--bg-soft);
  color: var(--dark);
}

.tracking-steps li.is-done::before {
  content: "✓ ";
  color: var(--teal);
}

.tracking-steps li.is-current {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.tracking-status p:last-child {
  margin-bottom: 0;
}

/* Devis accepté ou refusé en ligne (étape D). */
.quote-online {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
}

.quote-online h3 {
  margin-top: 0;
}

.quote-accept {
  margin-top: 1rem;
}

.quote-refuse {
  margin-top: 1.25rem;
}

.quote-refuse summary {
  color: var(--dark);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.quote-refuse form {
  margin-top: 0.75rem;
}

.tracking-history {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.tracking-history li {
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 3px solid var(--line);
}

.tracking-history p {
  margin: 0.25rem 0 0;
}

.tracking-date {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .tracking-steps {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Recherche dans l'annuaire des entreprises (estimation, fiche client de l'admin). */
.form-subtitle {
  margin: 0.5rem 0 0.5rem;
  color: var(--dark);
  font-weight: 800;
}

.company-results {
  margin: 0 0 1rem;
}

.choice-list {
  padding-left: 0;
  list-style: none;
}

.choice-list > li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.search-row {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
}

button.btn {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

button.btn-primary {
  border: 0;
}

button.btn-small {
  font-size: 0.95rem;
}

/* Champs réservés aux professionnels : masqués quand « particulier » est coché. */
.contact-form:has(#type-particulier:checked) .pro-only {
  display: none;
}

/* Champ piège anti-robots : invisible et hors de la navigation clavier. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.js .js-hidden {
  display: none;
}

.notice-success {
  border-left-color: var(--dark);
}

.notice-success h2::after {
  display: none;
}

/* --- Pied de page --- */

.site-footer {
  margin-top: 3.5rem;
  padding: 2.5rem 0 1rem;
  color: #fff;
  background: var(--dark-2);
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-grid p {
  margin: 0 0 0.5rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
}

.footer-title {
  color: var(--yellow);
  font-weight: 800;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  margin: 0;
}

/* --- Écrans plus larges --- */

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .infos {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 140px 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-call-text {
    display: inline;
  }

  .choice-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  }
}

/* Menu horizontal : seulement quand toute la barre tient sur une ligne. */
/* Menu complet : dès 1100 px dans l'admin (8 entrées), dès 960 px sur le site (5 entrées). */
@media (min-width: 1100px) {
  .header-bar {
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav,
  .js .main-nav[data-collapsed="true"] {
    display: block;
    flex-basis: auto;
    order: 1;
    margin-left: auto;
  }

  .brand {
    margin-right: 0;
  }

  .main-nav ul {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }

  .main-nav a {
    padding: 0.5rem 0.7rem;
    border-bottom: 0;
    border-radius: 8px;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .header-call {
    order: 2;
  }
}

@media (min-width: 960px) {
  body:not(.admin) .header-bar {
    flex-wrap: nowrap;
  }

  body:not(.admin) .menu-toggle {
    display: none;
  }

  body:not(.admin) .main-nav,
  .js body:not(.admin) .main-nav[data-collapsed="true"] {
    display: block;
    flex-basis: auto;
    order: 1;
    margin-left: auto;
  }

  body:not(.admin) .brand {
    margin-right: 0;
  }

  body:not(.admin) .main-nav ul {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }

  body:not(.admin) .main-nav a {
    padding: 0.5rem 0.7rem;
    border-bottom: 0;
    border-radius: 8px;
  }

  body:not(.admin) .main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  body:not(.admin) .header-call {
    order: 2;
  }
}

/* Partenaires : logo (tuile sombre 3:1) et ville sous le nom. */
.partner-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

.card-meta {
  margin: -0.25rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Conseils : articles --- */
.card-conseil {
  padding: 0 0 1.25rem;
  overflow: hidden;
}

.card-conseil h3,
.card-conseil p {
  padding: 0 1.25rem;
}

.card-image,
.article-illustration {
  display: block;
  width: 100%;
  height: auto;
}

.article-illustration {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.hero-article h1 {
  max-width: 34ch;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
}

.article-meta {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.article h2 {
  margin-top: 2.25rem;
}

.article > p:first-child {
  margin-top: 0;
}

.article-steps {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.article-steps li + li {
  margin-top: 0.6rem;
}

.article-steps li::marker {
  color: var(--dark);
  font-weight: 700;
}

/* Erreurs à éviter : croix rouge au lieu de la coche. */
.article-donts {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.article-donts li {
  position: relative;
  padding-left: 1.75rem;
}

.article-donts li + li {
  margin-top: 0.6rem;
}

.article-donts li::before,
.article-donts li::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.75em;
  width: 0.85rem;
  height: 3px;
  border-radius: 2px;
  background: #b3261e;
  transform: rotate(45deg);
}

.article-donts li::after {
  transform: rotate(-45deg);
}

.article kbd {
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 0.9em;
  white-space: nowrap;
}

.article-help {
  margin-top: 2.5rem;
}

.article-help h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
