:root {
  color-scheme: light dark;
  --fond: #f4f6f5;
  --surface: #ffffff;
  --texte: #14201d;
  --sec: #56635f;
  --trait: #dfe5e3;
  --accent: #0f766e;
  --accent-fort: #0b5e58;
  --accent-doux: #e2f3f0;
  --sur-accent: #ffffff;
  --ambre: #92400e;
  --ambre-doux: #fdf3e1;
  --vert: #15803d;
  --vert-doux: #e3f6e8;
  --rouge: #b42318;
  --rouge-doux: #fdecea;
  --bleu: #1d4ed8;
  --bleu-doux: #e6edfd;
  --violet: #6d28d9;
  --violet-doux: #efe8fd;
  --rayon: 14px;
  --ombre: 0 1px 2px rgb(16 24 22 / .05), 0 4px 16px rgb(16 24 22 / .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0d1312;
    --surface: #16201e;
    --texte: #e9f0ee;
    --sec: #a0aeaa;
    --trait: #283432;
    --accent: #4fd1c1;
    --accent-fort: #7fe3d6;
    --accent-doux: #12322e;
    --sur-accent: #04221f;
    --ambre: #f7c174;
    --ambre-doux: #3a2a12;
    --vert: #6ee29a;
    --vert-doux: #143322;
    --rouge: #ff9b92;
    --rouge-doux: #43201d;
    --bleu: #9bb8ff;
    --bleu-doux: #1c2a49;
    --violet: #c4a8ff;
    --violet-doux: #2c2149;
    --ombre: none;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.5;
  font-size: 1.0625rem;
}
a { color: var(--accent); text-underline-offset: 2px; }
svg { width: 1.2em; height: 1.2em; flex: none; }
small, .petit { font-size: .875rem; color: var(--sec); }
p.petit { margin-top: .9rem; }
h1 { font-size: clamp(1.6rem, 5vw, 2.15rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: .6rem; }
h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; margin-bottom: .8rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr--focus:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; z-index: 2000; background: var(--surface); padding: .5rem .8rem; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
  padding-top: env(safe-area-inset-top);
}
.entete__in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: 8px 16px; }
.marque { display: flex; align-items: center; gap: .55rem; font-size: 1.08rem; color: var(--texte); text-decoration: none; white-space: nowrap; }
.marque b { color: var(--accent); }
.marque__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--sur-accent); }
.marque__logo svg { width: 20px; height: 20px; }
.entete__nav { display: flex; align-items: center; gap: .9rem; }
.entete__lien { color: var(--texte); text-decoration: none; font-size: .95rem; font-weight: 550; }
.entete__lien:hover { color: var(--accent); }
.lien-bouton { background: none; border: 0; font: inherit; font-size: .95rem; font-weight: 550; cursor: pointer; }
@media (max-width: 560px) {
  .entete .bouton--petit { display: none; }
}

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.15rem;
  border-radius: 12px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--sur-accent);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.bouton:hover { background: var(--accent-fort); border-color: var(--accent-fort); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: .6; cursor: progress; }
.bouton--petit { min-height: 38px; padding: .35rem .85rem; font-size: .93rem; border-radius: 10px; }
.bouton--grand { min-height: 54px; padding: .8rem 1.4rem; font-size: 1.07rem; }
.bouton--plein { width: 100%; }
.bouton--clair { background: var(--surface); color: var(--accent); border-color: var(--trait); }
.bouton--clair:hover { background: var(--accent-doux); border-color: var(--accent); }
.bouton--danger { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton--danger:hover { background: var(--rouge); filter: brightness(.92); border-color: var(--rouge); }

/* Mise en page */
.page { max-width: 760px; margin: 0 auto; padding: 22px 16px 56px; }
.page--large { max-width: 1080px; }
.intro { font-size: 1.1rem; color: var(--sec); margin-bottom: 1.1rem; }
.bloc { margin-top: 2.6rem; }
.bloc__intro { color: var(--sec); margin: -.4rem 0 1rem; }
.bloc--encadre, .bloc--appel { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.3rem; box-shadow: var(--ombre); }
.bloc--appel { background: var(--accent-doux); border-color: transparent; }
.bloc--appel p { margin-bottom: 1rem; }
.annonces { max-width: 760px; margin: 14px auto 0; padding: 0 16px; }
.annonce { padding: .8rem 1rem; border-radius: 12px; background: var(--accent-doux); font-weight: 550; }
.annonce--error { background: var(--rouge-doux); color: var(--rouge); }

/* Une de l'accueil */
.une { background: linear-gradient(160deg, var(--accent-doux), var(--fond) 70%); border-bottom: 1px solid var(--trait); }
.une__in { max-width: 760px; margin: 0 auto; padding: 42px 16px 34px; }
.une h1 { font-size: clamp(2rem, 7vw, 2.9rem); max-width: 14ch; }
.une__chapo { font-size: 1.15rem; color: var(--sec); max-width: 58ch; margin-bottom: 1.4rem; }
.une__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.une__modes { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.4rem; color: var(--sec); font-size: .95rem; }
.une__modes li { display: flex; align-items: center; gap: .4rem; }
.une__modes svg { color: var(--accent); }
.pastille { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem .3rem .55rem; border-radius: 99px; background: var(--vert-doux); color: var(--vert); font-weight: 700; font-size: .92rem; margin-bottom: 1rem; }

/* Cartes des types de problème */
.types { list-style: none; display: grid; gap: .7rem; }
@media (min-width: 640px) { .types { grid-template-columns: 1fr 1fr; } }
.type {
  display: flex; align-items: center; gap: .9rem; height: 100%;
  padding: 1rem; border-radius: var(--rayon);
  background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre);
  color: var(--texte); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.type:hover { border-color: var(--accent); transform: translateY(-1px); }
.type__icone { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; flex: none; background: var(--accent-doux); color: var(--accent); }
.type__icone svg { width: 26px; height: 26px; }
.type__icone--fichiers { background: var(--bleu-doux); color: var(--bleu); }
.type__icone--lent { background: var(--ambre-doux); color: var(--ambre); }
.type__icone--virus { background: var(--rouge-doux); color: var(--rouge); }
.type__icone--linux { background: var(--vert-doux); color: var(--vert); }
.type__icone--materiel { background: var(--violet-doux); color: var(--violet); }
.type__texte { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.type__titre { font-weight: 700; }
.type__court { color: var(--sec); font-size: .93rem; line-height: 1.35; }
.type__fleche { color: var(--sec); }

/* Étapes */
.etapes { list-style: none; display: grid; gap: 1rem; }
.etapes li { display: flex; gap: .9rem; }
.etapes__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--accent); color: var(--sur-accent); font-weight: 750; }
.etapes p { color: var(--sec); }

.modes-info { list-style: none; display: grid; gap: .7rem; }
@media (min-width: 640px) { .modes-info { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.modes-info li { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem; }
.modes-info__icone { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-doux); color: var(--accent); margin-bottom: .5rem; }
.modes-info p { color: var(--sec); font-size: .95rem; }

/* Fil d'Ariane du formulaire */
.fil { display: flex; gap: .35rem; margin-bottom: 1.1rem; font-size: .85rem; overflow-x: auto; }
.fil__etape { padding: .25rem .7rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--trait); color: var(--sec); white-space: nowrap; text-decoration: none; }
.fil__etape--active { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); font-weight: 650; }
.note { display: flex; align-items: center; gap: .4rem; margin-top: 1.2rem; color: var(--vert); font-weight: 600; }

.titre-type { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.titre-type h1 { margin: 0; }
.titre-type--service { align-items: flex-start; }
.titre-type--service .type__icone { margin-top: .2rem; }
.petit-lien { font-size: .92rem; }

/* Encarts */
.encart { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; margin: 1rem 0; }
.encart svg { margin-top: .15rem; }
.encart--alerte { background: var(--ambre-doux); color: var(--ambre); }
.encart--alerte span { color: var(--texte); }
.encart--erreur { display: block; background: var(--rouge-doux); color: var(--rouge); font-weight: 600; }
.encart--ok { background: var(--vert-doux); color: var(--vert); }
.encart--ok span { color: var(--texte); }

/* Formulaire */
.formulaire { display: grid; gap: 1rem; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.15rem; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 1rem; }
.formulaire .carte + .carte { margin-top: 0; }
.carte__titre { font-size: 1.1rem; margin-bottom: .9rem; }
.champ { border: 0; margin-bottom: 1.15rem; min-width: 0; }
.champ:last-child { margin-bottom: 0; }
.champ__label { display: block; font-weight: 650; margin-bottom: .35rem; padding: 0; }
.champ__aide { color: var(--sec); font-size: .9rem; margin: -.15rem 0 .45rem; }
.champ__err { color: var(--rouge); font-size: .9rem; font-weight: 600; margin-top: .35rem; }
.champ--erreur input:not([type=radio]):not([type=checkbox]), .champ--erreur textarea, .champ--erreur .choix__option { border-color: var(--rouge); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], input[type=number], textarea, select {
  width: 100%; min-height: 48px; padding: .65rem .8rem;
  border: 1.5px solid var(--trait); border-radius: 10px;
  background: var(--fond); color: var(--texte); font: inherit;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); background: var(--surface); }
.deux-colonnes { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } .deux-colonnes .champ { margin-bottom: 1.15rem; } }

.choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix__option {
  position: relative; display: flex; align-items: center; gap: .5rem;
  min-height: 46px; padding: .55rem .9rem;
  border: 1.5px solid var(--trait); border-radius: 10px; background: var(--fond);
  cursor: pointer; font-size: .98rem; line-height: 1.3;
}
.choix--multi .choix__option { width: 100%; }
.choix__option:hover { border-color: var(--accent); }
.choix__option input, .case input, .mode input { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; flex: none; }
.choix__option:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); font-weight: 600; }
.choix__option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.modes { display: grid; gap: .6rem; margin-bottom: 1.1rem; }
.mode { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1.5px solid var(--trait); border-radius: 12px; background: var(--fond); cursor: pointer; }
.mode:hover { border-color: var(--accent); }
.mode:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); }
.mode__icone { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); color: var(--accent); flex: none; }
.mode__texte { display: flex; flex-direction: column; }
.mode__texte small { line-height: 1.35; }

.photo-zone { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 64px; padding: .8rem; border: 2px dashed var(--trait); border-radius: 12px; color: var(--accent); font-weight: 600; cursor: pointer; text-align: center; }
.photo-zone:hover { border-color: var(--accent); background: var(--accent-doux); }
.photo-zone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-zone:has(input:focus-visible) { outline: 3px solid var(--accent); }
.photo-zone__apercu { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

.case { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; background: var(--ambre-doux); cursor: pointer; font-weight: 550; }
.case input { margin-top: .2rem; }
.carte .case { background: none; padding: 0; font-weight: 500; }
.formulaire > .champ { margin-bottom: 0; }
.formulaire > p.petit { margin-top: -.4rem; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pages par service */
.liste-ok { list-style: none; display: grid; gap: .55rem; margin-bottom: 1rem; }
.liste-ok li { display: flex; gap: .6rem; align-items: flex-start; }
.liste-ok svg { color: var(--vert); margin-top: .2rem; }
.faq details { background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; margin-bottom: .55rem; }
.faq summary { padding: .9rem 1rem; font-weight: 650; cursor: pointer; list-style-position: inside; }
.faq details p { padding: 0 1rem 1rem; color: var(--sec); }
.liens-services { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.liens-services a { display: inline-block; padding: .45rem .85rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--trait); text-decoration: none; font-size: .95rem; }
.texte h2 { margin-top: 1.8rem; font-size: 1.15rem; }
.texte p { margin-bottom: .8rem; }

/* Suivi */
.merci { text-align: center; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.6rem 1.2rem; margin-bottom: 1.2rem; box-shadow: var(--ombre); }
.merci__icone { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--vert-doux); color: var(--vert); margin-bottom: .6rem; }
.merci__icone svg { width: 30px; height: 30px; }
.merci p { color: var(--sec); max-width: 52ch; margin: 0 auto .8rem; }
.merci__garder { color: var(--texte) !important; }
.suivi { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.2rem; box-shadow: var(--ombre); }
.suivi h2 { font-size: 1.1rem; margin-top: 1.6rem; }
.suivi__tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.suivi__surtitre { color: var(--sec); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 2.3rem; font-weight: 800; letter-spacing: .12em; line-height: 1.1; }
.code--petit { font-size: 1.4em; letter-spacing: .08em; color: var(--accent); }
.etiquette { display: inline-block; padding: .3rem .8rem; border-radius: 99px; font-weight: 700; font-size: .9rem; white-space: nowrap; background: var(--accent-doux); color: var(--accent); }
.etiquette--recue { background: var(--bleu-doux); color: var(--bleu); }
.etiquette--diagnostic, .etiquette--reparation { background: var(--violet-doux); color: var(--violet); }
.etiquette--devis { background: var(--ambre-doux); color: var(--ambre); }
.etiquette--prete, .etiquette--rendue { background: var(--vert-doux); color: var(--vert); }
.etiquette--refusee, .etiquette--annulee { background: var(--fond); color: var(--sec); }

.frise { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); margin: 1.4rem 0 .4rem; }
.frise li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .78rem; color: var(--sec); line-height: 1.2; }
.frise li::before { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 3px; background: var(--trait); z-index: 0; }
.frise li:first-child::before { display: none; }
.frise li.fait::before { background: var(--accent); }
.frise__point { position: relative; z-index: 1; width: 19px; height: 19px; border-radius: 50%; background: var(--surface); border: 3px solid var(--trait); margin-bottom: .4rem; }
.frise li.fait .frise__point { background: var(--accent); border-color: var(--accent); }
.frise li.actuelle .frise__point { box-shadow: 0 0 0 5px var(--accent-doux); }
.frise li.actuelle { color: var(--texte); font-weight: 700; }
@media (max-width: 460px) {
  .frise__libelle { font-size: .7rem; hyphens: auto; }
}

.devis { margin-top: 1.4rem; padding: 1.1rem; border-radius: 12px; background: var(--ambre-doux); }
.devis h2 { margin-top: 0; }
.devis__montant { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.devis__detail { margin: .5rem 0; }
.devis__actions { display: grid; gap: .6rem; margin-top: 1rem; }
@media (min-width: 520px) { .devis__actions { grid-template-columns: 2fr 1fr; } }
.devis-rappel { margin-top: 1rem; }

.historique { list-style: none; border-left: 2px solid var(--trait); margin-left: .4rem; padding-left: 1rem; display: grid; gap: .8rem; }
.historique li { position: relative; }
.historique li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.historique__tete time { color: var(--sec); font-size: .88rem; margin-left: .3rem; }
.historique__message { margin-top: .25rem; padding: .6rem .8rem; background: var(--fond); border-radius: 10px; }

.recap { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: .45rem 1rem; }
.recap dt { color: var(--sec); font-size: .93rem; }
.recap dd { overflow-wrap: anywhere; }
@media (max-width: 480px) { .recap { grid-template-columns: 1fr; gap: 0; } .recap dd { margin-bottom: .6rem; } }
.recap__photo { display: block; max-width: 100%; max-height: 340px; border-radius: 10px; margin-top: 1rem; border: 1px solid var(--trait); }
.annuler { margin-top: 1.6rem; }
.annuler summary { cursor: pointer; color: var(--sec); font-size: .95rem; }
.annuler p { margin: .6rem 0; }

/* Pied */
.pied { border-top: 1px solid var(--trait); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.pied__in { max-width: 1080px; margin: 0 auto; padding: 32px 16px; display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .pied__in { grid-template-columns: 1.3fr 1fr 1fr; } }
.pied__titre { font-weight: 750; margin-bottom: .4rem; }
.pied p { margin-bottom: .6rem; font-size: .95rem; }
.pied ul { list-style: none; display: grid; gap: .3rem; font-size: .95rem; }
.pied a { text-decoration: none; }

/* Atelier */
.atelier-tete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.atelier-tete h1 { margin: 0; display: flex; align-items: center; gap: .6rem; }
.atelier-compteurs { color: var(--sec); }
.atelier-filtres { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.atelier-filtres input[type=search] { flex: 1; min-width: 200px; }
.onglets-filtre { display: flex; background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 3px; }
.onglets-filtre a { padding: .45rem .85rem; border-radius: 8px; text-decoration: none; color: var(--sec); font-weight: 600; font-size: .93rem; }
.onglets-filtre a[aria-current] { background: var(--accent); color: var(--sur-accent); }
.atelier-liste { list-style: none; display: grid; gap: .5rem; }
.ligne { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; color: var(--texte); text-decoration: none; }
.ligne:hover { border-color: var(--accent); }
.ligne--nouvelle { border-left: 4px solid var(--bleu); }
.ligne__code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: .06em; color: var(--accent); font-size: 1.1rem; }
.ligne__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ligne__titre { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne__meta { color: var(--sec); font-size: .88rem; }
@media (max-width: 520px) { .ligne { flex-wrap: wrap; } .ligne .etiquette { order: 3; } }
.vide { color: var(--sec); padding: 2rem 0; text-align: center; }
.atelier-grille { display: grid; gap: 1rem; }
.atelier-grille > div { display: grid; gap: 1rem; align-content: start; }
.atelier-grille .carte + .carte { margin-top: 0; }
@media (min-width: 900px) { .atelier-grille { grid-template-columns: 1.1fr 1fr; } }
