/* O'Phonie — feuille de style du site
   Charte v3 : fond blanc cassé (60 %), anthracite (30 %), vert O'Phonie (10 %), rouge signal pour les promotions seulement.
   Une colonne fluide de 1120 px au plus ; mode nuit selon l'appareil ou le choix du visiteur. */

@font-face { font-family: 'Syne'; font-weight: 700; font-display: swap; src: url('polices/syne-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-weight: 800; font-display: swap; src: url('polices/syne-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('polices/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('polices/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('polices/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --fond: #F3F3EF; --encre: #111111; --carte: #FAFAF8; --trait: #E2E2DD; --gris: #555555;
  --vert: #00B74F; --rouge: #FF3D3D; --orange: #FF7A00;
  --inverse: #111111; --sur-inverse: #F3F3EF; --pied: #111111; --sur-pied: #F3F3EF; --decor: #C4C4BC;
  --lune: block; --soleil: none;
  --titre: 'Syne', 'Trebuchet MS', sans-serif;
  --texte: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --fond: #111111; --encre: #FAFAF8; --carte: #1a1a1a; --trait: #2a2a2a; --gris: #999999;
  --inverse: #FAFAF8; --sur-inverse: #111111; --pied: #1a1a1a; --sur-pied: #FAFAF8; --decor: #444444;
  --lune: none; --soleil: block; color-scheme: dark; } }
:root[data-theme="dark"] {
  --fond: #111111; --encre: #FAFAF8; --carte: #1a1a1a; --trait: #2a2a2a; --gris: #999999;
  --inverse: #FAFAF8; --sur-inverse: #111111; --pied: #1a1a1a; --sur-pied: #FAFAF8; --decor: #444444;
  --lune: none; --soleil: block; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--texte); font-size: 17px; line-height: 1.6; }
img, video { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--titre); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.07; letter-spacing: -1.2px; }
h2 { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.5px; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; }
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; background: var(--inverse); color: var(--sur-inverse); border-radius: 8px; }
.evitement:focus { left: 16px; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.a-completer { background: #FFE9A8; color: #111111; padding: 0 4px; border-radius: 4px; }

/* Cadre, décor et bandeau */
.site { position: relative; isolation: isolate; overflow: hidden; background: var(--fond); }
.decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: var(--decor); }
.decor svg { position: absolute; top: -40px; animation: chute linear infinite; }
@keyframes chute { from { top: -40px } to { top: 100% } }
.bandeau { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; background: var(--inverse); color: var(--sur-inverse); font-weight: 700; font-size: 0.95rem; text-align: center; line-height: 1.35; }
.bandeau.promo { background: var(--rouge); color: #111111; }
.colonne { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* En-tête */
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; }
/* Logo officiel (charte v3) : « O'Phonie » en Syne 800, approche -3 px pour 148 px, le O toujours en vert */
.logo { font-family: var(--titre); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.034em; line-height: 1; text-decoration: none; background: var(--fond); padding: 6px 8px; margin: -6px -8px; border-radius: 8px; }
.logo span { color: var(--vert); display: inline-block; }
.entete .logo:hover span { animation: logo-saut 0.6s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes logo-saut { 0%, 100% { transform: translateY(0) } 35% { transform: translateY(-9px) } 60% { transform: translateY(0) } 78% { transform: translateY(-3px) } }
.menu { display: flex; flex-wrap: wrap; gap: 0 24px; font-weight: 600; font-size: 1rem; }
.menu a { text-decoration: none; min-height: 44px; display: flex; align-items: center; background: var(--fond); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.outils { display: flex; align-items: center; gap: 6px; }
.numero { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; text-decoration: none; background: var(--fond); min-height: 44px; display: inline-flex; align-items: center; }
.icone { width: 44px; height: 44px; display: grid; place-items: center; background: var(--fond); color: var(--encre); border: 0; border-radius: 10px; cursor: pointer; padding: 0; }
#theme .lune { display: var(--lune); } #theme .soleil { display: var(--soleil); }
#theme.sort svg { animation: icone-sort 0.2s ease-in forwards; }
#theme.entre svg { animation: icone-entre 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes icone-sort { to { transform: scale(0) rotate(90deg); opacity: 0 } }
@keyframes icone-entre { from { transform: scale(0) rotate(-90deg); opacity: 0 } to { transform: scale(1) rotate(0deg); opacity: 1 } }
.ouvrir-menu { display: none; }
@media (max-width: 980px) {
  .ouvrir-menu { display: grid; }
  .menu { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; border-top: 1px solid var(--trait); }
  .menu.ouvert { display: flex; }
  .menu a { border-bottom: 1px solid var(--trait); }
  .numero { display: none; }
}

/* Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 26px; border-radius: 12px; border: 2px solid transparent; font-family: var(--titre); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; flex: 1 1 auto; }
.appeler { background: var(--vert); color: #111111; flex-basis: 100%; overflow: hidden; }
.appeler svg { flex: none; width: 0; margin-right: 0; opacity: 0; transform: translateY(34px); transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.2s, width 0.25s, margin-right 0.25s; }
.appeler:hover svg, .appeler:focus-visible svg { width: 20px; margin-right: 10px; opacity: 1; transform: translateY(0); }
.devis { background: var(--inverse); color: var(--sur-inverse); position: relative; overflow: hidden; }
/* Devis : le bouton se soulève, la feuille glisse en se redressant, ses lignes s'écrivent,
   puis une pastille verte valide d'une coche et lance une onde */
.devis { transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s; }
.devis:hover, .devis:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.55); }
.devis:active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 0.08s; }
.devis svg { flex: none; overflow: visible; width: 0; margin-right: 0; opacity: 0; transform: translateX(-18px) rotate(-16deg) scale(0.8); transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.2s, width 0.3s cubic-bezier(0.3, 1.2, 0.5, 1), margin-right 0.3s; }
.devis:hover svg, .devis:focus-visible svg { width: 26px; margin-right: 10px; opacity: 1; transform: none; }
.devis .ligne, .devis .coche { stroke-dasharray: 1; stroke-dashoffset: 1; }
.devis:hover .l1, .devis:focus-visible .l1 { animation: ecrire 0.22s 0.28s ease-out forwards; }
.devis:hover .l2, .devis:focus-visible .l2 { animation: ecrire 0.18s 0.48s ease-out forwards; }
.devis:hover .coche, .devis:focus-visible .coche { animation: ecrire 0.25s 0.82s ease-out forwards; }
.devis .onde { fill: none; stroke: var(--vert); stroke-width: 1.6; opacity: 0; transform-origin: 19.5px 17.5px; transform-box: view-box; }
.devis:hover .onde, .devis:focus-visible .onde { animation: onde 0.7s 0.8s ease-out; }
@keyframes ecrire { to { stroke-dashoffset: 0; } }
@keyframes onde { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(2.3); } }
.devis .pastille-ok { fill: var(--vert); stroke: none; transform: scale(0); transform-origin: 19.5px 17.5px; transform-box: view-box; }
.devis .coche { stroke: #111111; stroke-width: 2; }
.devis:hover .pastille-ok, .devis:focus-visible .pastille-ok { animation: pop 0.38s 0.62s cubic-bezier(0.3, 1.7, 0.5, 1) forwards; }
@keyframes pop { to { transform: scale(1); } }
.rendre { background: var(--fond); color: var(--encre); border-color: var(--encre); position: relative; isolation: isolate; overflow: hidden; }
.site.halloween .rendre { background: var(--orange); border-color: var(--orange); color: #111111; }
.rendre::after, .itineraires a::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-110%); }
.rendre.anime::after, .itineraires a.anime::after { animation: passage 0.9s ease-in-out; }
@keyframes passage { from { transform: translateX(-110%) } to { transform: translateX(110%) } }
.gmaps::after { background: linear-gradient(105deg, transparent 22%, #4285F4 22% 30%, transparent 30% 34%, #EA4335 34% 42%, transparent 42% 46%, #FBBC05 46% 54%, transparent 54% 58%, #34A853 58% 66%, transparent 66%); }
.waze::after { background: linear-gradient(105deg, transparent 26%, #33CCFF 26% 36%, transparent 36% 41%, #0099CC 41% 51%, transparent 51% 56%, #33CCFF 56% 66%, transparent 66%); }
.plans::after { background: linear-gradient(105deg, transparent 24%, #8E8E93 24% 41%, #FFFFFF 41% 47%, #8E8E93 47% 64%, transparent 64%); }

/* Accroche */
.accroche { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 56px; padding-block: 36px 72px; }
.accroche > div { flex: 1 1 420px; min-width: 0; }
.bloc { display: flex; flex-direction: column; gap: 22px; }
.titre-frappe { position: relative; }
.titre-frappe .gabarit { display: block; visibility: hidden; }
.titre-frappe .frappe { position: absolute; inset: 0 0 auto 0; }
/* Curseur du titre : dessiné juste après la dernière lettre et lié à elle (caractère « gluon »),
   sans prendre de place, pour qu'il ne passe jamais seul à la ligne */
.titre-frappe .curseur { display: none; }
#frappe::after { content: "\2060"; border-right: 0.08em solid var(--vert); margin-left: 0.06em; margin-right: -0.14em; animation: clignote 1s steps(1) infinite; }
.curseur { display: inline-block; width: 0.08em; height: 0.82em; margin-left: 0.1em; vertical-align: -0.06em; background: var(--vert); animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
.note { font-size: 0.9rem; color: var(--gris); }

/* Média du haut de page : photo, carrousel ou vidéo */
.media { position: relative; overflow: hidden; min-height: 300px; border-radius: 16px; background: var(--trait); }
.diapo { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--trait); color: var(--gris); text-align: center; font-size: 0.95rem; }
.diapo img, .diapo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo.vient-droite { animation: vient-droite 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.diapo.vient-gauche { animation: vient-gauche 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.diapo.part-gauche { animation: part-gauche 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.diapo.part-droite { animation: part-droite 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes vient-droite { from { transform: translateX(100%) } to { transform: translateX(0) } }
@keyframes vient-gauche { from { transform: translateX(-100%) } to { transform: translateX(0) } }
@keyframes part-gauche { to { transform: translateX(-100%) } }
@keyframes part-droite { to { transform: translateX(100%) } }
.media .commandes { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 2px; }
.media .fleche { width: 36px; height: 36px; display: grid; place-items: center; background: transparent; color: #FFFFFF; border: 0; border-radius: 999px; cursor: pointer; padding: 0; opacity: 0.7; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7)); }
.media .fleche:hover, .media .fleche:focus-visible { opacity: 1; }
.media .fleche svg { width: 13px; height: 13px; }
.media .points { display: flex; align-items: center; gap: 6px; }
.media .points span { width: 5px; height: 5px; border-radius: 50%; background: #FFFFFF; opacity: 0.22; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5)); }
.media .points span.actif { opacity: 0.55; }
.diapo .son { position: absolute; left: 6px; bottom: 4px; z-index: 2; display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity 0.25s; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7)); }
.media:hover .son, .diapo .son:focus-within { opacity: 0.85; }
@media (hover: none) { .diapo .son { opacity: 0.6; } }
.diapo .son button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 999px; color: #FFFFFF; cursor: pointer; }
.diapo .son button svg { width: 15px; height: 15px; }
.diapo .son input { width: 60px; height: 14px; accent-color: #FFFFFF; cursor: pointer; }

/* Sections */
.section { display: flex; flex-direction: column; gap: 18px; padding-block: 0 68px; }
.cartes { display: flex; flex-wrap: wrap; gap: 14px; }
.carte { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; text-decoration: none; }
.carte b { font-family: var(--titre); font-size: 1.2rem; }
.carte span { font-size: 0.95rem; color: var(--gris); }
a.carte:hover { border-color: var(--encre); }
.lien { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.avis { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-block: 0 68px; }
.avis strong { position: relative; isolation: isolate; display: inline-block; font-family: var(--titre); font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -1.5px; transition: color 0.25s; }
.avis strong:hover { color: #E0A100; }
.avis strong.saute { animation: saute 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes saute { 0% { transform: scale(1) } 45% { transform: scale(1.16) } 100% { transform: scale(1) } }
.eclat { position: absolute; left: 50%; top: 50%; z-index: -1; color: #F5B301; pointer-events: none; animation: lance-x 1.7s linear both; }
.eclat .arc { display: block; width: 100%; height: 100%; animation: lance-y 1.7s both; animation-delay: inherit; }
.eclat svg { display: block; width: 100%; height: 100%; animation: lance-taille 1.7s linear both; animation-delay: inherit; }
@keyframes lance-x { from { transform: translateX(0) } to { transform: translateX(var(--dx)) } }
@keyframes lance-y { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.45, 1) } 40% { transform: translateY(calc(var(--h) * -1)); animation-timing-function: cubic-bezier(0.55, 0, 1, 1) } 100% { transform: translateY(120px) } }
@keyframes lance-taille { 0% { transform: scale(0) rotate(0deg) } 12% { transform: scale(1) rotate(20deg) } 60% { transform: scale(0.85) rotate(110deg) } 100% { transform: scale(0) rotate(180deg) } }
.points-cles { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; list-style: none; font-weight: 600; }
.points-cles li { display: flex; align-items: center; gap: 8px; }
.points-cles li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex: none; }

/* Contenu des pages intérieures */
.fil { font-size: 0.9rem; color: var(--gris); padding-block: 8px 0; }
.fil a { color: var(--gris); }
.page-titre { padding-block: 28px 40px; display: flex; flex-direction: column; gap: 18px; max-width: 46rem; }
.texte { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; }
.texte ul, .texte ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.encadre { padding: 20px 22px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; max-width: 46rem; }
.tableau { width: 100%; max-width: 46rem; border-collapse: collapse; font-size: 0.98rem; }
.tableau th, .tableau td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau th { font-weight: 700; }
.defile { overflow-x: auto; }

/* Accès */
.acces { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-block: 0 76px; }
.acces > div { flex: 1 1 340px; min-width: 0; }
.adresse { display: flex; align-items: center; gap: 2px; }
.copier { flex: none; display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; background: transparent; color: var(--gris); border: 0; border-radius: 10px; font: 600 0.85rem var(--texte); cursor: pointer; }
.copier:hover, .copier.fait { color: var(--encre); }
.horaires { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 24px; font-size: 1rem; }
.horaires b { font-weight: 600; }
.itineraires { display: flex; flex-wrap: wrap; gap: 10px; }
.itineraires a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 18px; background: var(--fond); border: 1.5px solid var(--encre); border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; position: relative; isolation: isolate; overflow: hidden; }
.carte-lien { min-height: 260px; display: grid; place-items: center; gap: 10px; padding: 24px; background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; text-align: center; text-decoration: none; }

/* Formulaire de devis */
.formulaire { display: flex; flex-direction: column; gap: 16px; max-width: 34rem; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.formulaire input, .formulaire select, .formulaire textarea { min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--trait); border-radius: 10px; background: var(--carte); color: var(--encre); font: inherit; font-weight: 400; }
.formulaire textarea { min-height: 110px; resize: vertical; }
.formulaire .case { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.9rem; }
.formulaire .case input { min-height: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--vert); flex: none; }
.formulaire .duo { display: flex; flex-wrap: wrap; gap: 16px; }
.formulaire .duo label { flex: 1 1 200px; min-width: 0; }
.message-formulaire { padding: 12px 14px; border-left: 4px solid var(--vert); background: var(--carte); font-weight: 600; }
.message-formulaire.erreur { border-left-color: var(--rouge); }
.formulaire .photos { display: flex; flex-direction: column; gap: 6px; }
.formulaire input[type="file"] { padding: 8px; cursor: pointer; }
.formulaire input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--inverse); color: var(--sur-inverse); font: inherit; font-weight: 600; cursor: pointer; }
.formulaire #lien-photos { align-self: stretch; }

/* Pied de page */
.pied { background: var(--pied); color: var(--sur-pied); border-top: 1px solid var(--trait); }
.pied .colonne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-block: 36px 44px; }
.pied .logo { background: none; padding: 0; margin: 0; }
.pastilles { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.pastille { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.pastille.pleine { background: #F3F3EF; border-color: #F3F3EF; color: #111111; font-weight: 700; }
.pastille.pleine svg { flex: none; }
.pastille.pleine:hover svg, .pastille.pleine:focus-visible svg { fill: #00B74F; stroke: #00B74F; transform: rotate(144deg); }
.pastille.pleine.anime { animation: rebond 0.5s ease-out; }
.pastille.pleine.anime svg { animation: etoile 0.5s ease-out; fill: #00B74F; stroke: #00B74F; }
@keyframes rebond { 0% { transform: scale(1) } 30% { transform: scale(0.92) } 65% { transform: scale(1.08) } 100% { transform: scale(1) } }
@keyframes etoile { 0% { transform: rotate(0) scale(1) } 60% { transform: rotate(144deg) scale(1.5) } 100% { transform: rotate(144deg) scale(1) } }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 0.95rem; }
.legal a { min-height: 44px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .decor svg, .curseur, .rendre.anime::after, .itineraires a.anime::after, .pastille.pleine.anime, .pastille.pleine.anime svg, .entete .logo:hover span, .avis strong.saute, #theme svg { animation: none !important; }
  .curseur { opacity: 0; }
  #frappe::after { display: none; }
  .devis svg, .appeler svg { transition: none; }
  .devis .ligne, .devis .coche { animation: none !important; stroke-dashoffset: 0; }
  .devis .pastille-ok { animation: none !important; transform: scale(1); }
  .devis .onde { animation: none !important; }
  .devis, .devis:hover, .devis:focus-visible { transform: none; transition: none; }
}

/* Compléments */
ul.texte, ol.texte { margin: 0; padding-left: 1.3em; }
.note-pied { font-size: 0.9rem; opacity: 0.8; }
.pied a { color: inherit; }

/* Aide IMEI */
.aide-imei { border: 1px solid var(--trait); border-radius: 10px; background: var(--carte); }
.aide-imei summary { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.aide-imei summary::before { content: "?"; width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--inverse); color: var(--sur-inverse); font-size: 0.8rem; font-weight: 700; }
.aide-contenu { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 0.95rem; }
.aide-contenu ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.onglets { display: flex; gap: 6px; }
.onglets button { min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--trait); border-radius: 999px; background: transparent; color: var(--encre); font: 600 0.9rem var(--texte); cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--inverse); color: var(--sur-inverse); border-color: var(--inverse); }
.erreur-champ { color: var(--encre); font-size: 0.85rem; font-weight: 600; border-left: 4px solid var(--rouge); padding-left: 8px; }

/* Nos marques */
.marques { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.marque { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; transition: border-color 0.2s, transform 0.2s; }
.marque:hover { border-color: var(--encre); transform: translateY(-2px); }
.marque-logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; margin-bottom: 8px; }
.marque-nom { font-family: var(--titre); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.marque-gammes { font-size: 0.9rem; color: var(--gris); }
.marque .lien { font-size: 0.9rem; min-height: 40px; }
@media (max-width: 1100px) and (min-width: 981px) { .menu { gap: 0 16px; font-size: 0.95rem; } .numero { display: none; } }
@media (prefers-reduced-motion: reduce) { .marque { transition: none; } .marque:hover { transform: none; } }

/* Sous-menu Réparations */
.sous-menu { position: relative; display: flex; align-items: center; }
.sous-bouton { font: inherit; color: inherit; background: var(--fond); border: 0; padding: 0; min-height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sous-bouton svg { transition: transform .2s ease; }
.sous-menu.actif .sous-bouton { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.sous-liste { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: -12px; min-width: 220px; background: var(--fond); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); z-index: 20; display: none; }
.sous-liste a { padding: 0 12px; border-radius: 8px; }
.sous-liste a:hover, .sous-liste a:focus-visible { background: color-mix(in srgb, var(--vert) 14%, var(--fond)); }
.sous-menu:hover .sous-liste, .sous-menu:focus-within .sous-liste, .sous-menu.ouvert .sous-liste { display: block; }
.sous-menu:hover .sous-bouton svg, .sous-menu.ouvert .sous-bouton svg { transform: rotate(180deg); }
@media (max-width: 980px) {
  .sous-menu { flex-direction: column; align-items: stretch; }
  .sous-bouton { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--trait); }
  .sous-liste { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .sous-menu:hover .sous-liste, .sous-menu:focus-within .sous-liste { display: none; }
  .sous-menu.ouvert .sous-liste, .sous-menu.actif .sous-liste { display: block; }
  .sous-liste a { padding: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .sous-bouton svg { transition: none; } }

/* ---------- Aération (v2) ---------- */
body { line-height: 1.7; }
.entete { padding-block: 22px; }
.menu { gap: 0 32px; }
.accroche { gap: 48px 72px; padding-block: clamp(40px, 6vw, 72px) clamp(80px, 10vw, 128px); }
.bloc { gap: 28px; }
.section { gap: 28px; padding-block: 0 clamp(80px, 10vw, 128px); }
.cartes { gap: 20px; }
.carte { gap: 8px; padding: 28px 30px; }
.avis { padding-block: 0 clamp(80px, 10vw, 128px); }
.page-titre { padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); gap: 24px; }
.texte { gap: 20px; }
.texte h2 { margin-top: 28px; }
.texte h2:first-child { margin-top: 0; }
.texte ul, .texte ol { gap: 10px; }
.encadre { padding: 28px 30px; gap: 12px; }
.tableau th, .tableau td { padding: 14px 16px; }
.acces { gap: 40px 72px; padding-block: 0 clamp(88px, 11vw, 136px); }
.horaires { gap: 8px 28px; }
.itineraires { gap: 12px; }
.formulaire { gap: 24px; }
.formulaire .duo { gap: 24px; }
.marques { gap: 20px; }
.marque { gap: 8px; padding: 26px 28px; }
.boutons { gap: 14px; }
.pied .colonne { gap: 32px 64px; padding-block: 56px 64px; }
.legal { gap: 8px 28px; }
.fil { padding-block: 14px 0; }
@media (max-width: 1100px) and (min-width: 981px) { .menu { gap: 0 20px; } }
@media (max-width: 600px) {
  .carte, .marque, .encadre { padding: 22px 22px; }
  .accroche { gap: 36px; }
}


/* ---------- Pied compact ---------- */
.pied .colonne { gap: 18px 48px; padding-block: 32px 28px; align-items: flex-start; }
.pied .bloc { gap: 10px; }
.pied .bloc p { line-height: 1.5; }
.pied .logo { font-size: 1.5rem; }
.pastilles { gap: 8px; }
.pastille { min-height: 40px; padding: 6px 14px; font-size: 0.9rem; }
.pied .legal { width: 100%; gap: 4px 22px; font-size: 0.85rem; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.pied .legal a { min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 600px) {
  .pied .colonne { padding-block: 28px 22px; }
  }

/* ---------- Pied épuré ---------- */
.pied { border-top: 0; }
.pied .colonne { gap: 14px 48px; padding-block: 26px 20px; }
.pied .bloc { gap: 6px; }
.pied .bloc p { font-size: 0.88rem; line-height: 1.45; }
.pied .note-pied { font-size: 0.8rem; }
.pied a { text-decoration: none; }
.pied a:hover, .pied a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.pied .legal { border-top: 0; padding-top: 0; font-size: 0.78rem; gap: 2px 20px; opacity: 0.75; }
.pied .legal a { min-height: 28px; }
.pastille { min-height: 36px; padding: 4px 12px; font-size: 0.85rem; }
.pastille:not(.pleine) { border-color: currentColor; }
.pastille:not(.pleine):hover { text-decoration: none; }
@media (max-width: 600px) {
  .pied .colonne { padding-block: 22px 16px; }
  }
.pied .bloc p.note-pied { font-size: 0.8rem; opacity: 0.75; }
.insecable { white-space: nowrap; }

/* ---------- Page 404 : « 404 » qui tombent en fond, comme le décor de Noël ---------- */
.chute-404 { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; color: var(--decor); }
.chute-404 span { position: absolute; top: -80px; font-family: var(--titre); font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; animation: chute-mot linear infinite, balance 3.2s ease-in-out infinite alternate; }
@keyframes chute-mot { from { top: -80px; } to { top: 100%; } }
@keyframes balance { from { transform: rotate(-9deg) translateX(-8px); } to { transform: rotate(9deg) translateX(8px); } }
.chute-404 span:nth-child(1)  { left: 4%;  font-size: 2.2rem; animation-duration: 17s, 3.1s; animation-delay: -3s, 0s; }
.chute-404 span:nth-child(2)  { left: 13%; font-size: 1.1rem; animation-duration: 23s, 3.6s; animation-delay: -11s, -1s; }
.chute-404 span:nth-child(3)  { left: 22%; font-size: 3rem;   animation-duration: 15s, 2.8s; animation-delay: -7s, -2s; }
.chute-404 span:nth-child(4)  { left: 31%; font-size: 1.4rem; animation-duration: 21s, 3.4s; animation-delay: -15s, -.5s; }
.chute-404 span:nth-child(5)  { left: 40%; font-size: 1.3rem; animation-duration: 19s, 3s;   animation-delay: -2s, -1.5s; }
.chute-404 span:nth-child(6)  { left: 50%; font-size: 2.6rem; animation-duration: 16s, 3.8s; animation-delay: -9s, 0s; }
.chute-404 span:nth-child(7)  { left: 59%; font-size: 1.6rem; animation-duration: 24s, 2.9s; animation-delay: -18s, -2.5s; }
.chute-404 span:nth-child(8)  { left: 67%; font-size: 1.2rem; animation-duration: 20s, 3.3s; animation-delay: -5s, -1s; }
.chute-404 span:nth-child(9)  { left: 76%; font-size: 3.4rem; animation-duration: 14s, 3.7s; animation-delay: -12s, -3s; }
.chute-404 span:nth-child(10) { left: 84%; font-size: 1.5rem; animation-duration: 22s, 3s;   animation-delay: -1s, -.8s; }
.chute-404 span:nth-child(11) { left: 88%; font-size: 1.1rem; animation-duration: 18s, 3.5s; animation-delay: -14s, -2s; }
.chute-404 span:nth-child(12) { left: 94%; font-size: 2rem;   animation-duration: 25s, 2.7s; animation-delay: -8s, -1.2s; }
@media (max-width: 600px) { .chute-404 span:nth-child(3n) { display: none; } .chute-404 span:nth-child(9) { font-size: 2.4rem; } }
.erreur-404 { position: relative; }
.code-404 { font-family: var(--titre); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 0.9; letter-spacing: -0.05em; margin: 0; }
.code-404::first-letter { color: var(--vert); }
.code-404 { animation: secousse 4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes secousse { 0%, 82%, 100% { transform: none; } 85% { transform: rotate(-4deg); } 88% { transform: rotate(3deg); } 91% { transform: rotate(-2deg); } 94% { transform: rotate(1deg); } }
@media (prefers-reduced-motion: reduce) {
  .chute-404 span, .code-404 { animation: none !important; }
  .chute-404 span:nth-child(odd) { top: 18%; } .chute-404 span:nth-child(3n) { top: 52%; } .chute-404 span:nth-child(4n) { top: 80%; }
}

/* ---------- Nos marques : catégorie et bandeau déroulant ---------- */
.marque-type { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gris); }
.marques-defile { overflow: hidden; padding-block: 28px; margin-bottom: clamp(56px, 8vw, 96px); border-block: 1px solid var(--trait); background: var(--carte); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marques-piste { display: flex; width: max-content; animation: defile 32s linear infinite; }
.marques-groupe { display: flex; align-items: center; gap: clamp(40px, 6vw, 80px); margin: 0; padding: 0 clamp(20px, 3vw, 40px); list-style: none; }
.marques-groupe li { flex: none; display: flex; align-items: center; height: 48px; }
.marques-groupe img { height: 40px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter .25s, opacity .25s; }
.marques-groupe li:hover img { filter: none; opacity: 1; }
.marques-nom-defile { font-family: var(--titre); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.03em; white-space: nowrap; color: var(--encre); opacity: 0.8; }
@keyframes defile { to { transform: translateX(-50%); } }
.dispo h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.dispo { border-left: 4px solid var(--vert); }
@media (prefers-reduced-motion: reduce) {
  .marques-piste { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marques-groupe { flex-wrap: wrap; justify-content: center; row-gap: 16px; }
  .marques-groupe[aria-hidden="true"] { display: none; }
}
.marques-groupe li.avec-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
:root[data-theme="dark"] .marques-groupe img { filter: grayscale(1) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marques-groupe img { filter: grayscale(1) invert(1); } }
:root[data-theme="dark"] .marques-groupe li:hover img { filter: grayscale(1) invert(1); opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marques-groupe li:hover img { filter: grayscale(1) invert(1); opacity: 1; } }
/* Logos en silhouettes unies : même teinte pour toutes les marques, couleurs d'origine au survol (mode jour) */
.marques-groupe img { filter: brightness(0); opacity: 0.62; }
.marques-groupe li:hover img { filter: none; opacity: 1; }
:root[data-theme="dark"] .marques-groupe img, :root[data-theme="dark"] .marques-groupe li:hover img { filter: brightness(0) invert(1); opacity: 0.7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marques-groupe img, :root:not([data-theme="light"]) .marques-groupe li:hover img { filter: brightness(0) invert(1); opacity: 0.7; } }
/* Xiaomi : lettres blanches dans le carré, une silhouette pleine les effacerait */
.marques-groupe li[data-marque="xiaomi"] img { filter: grayscale(1) brightness(0.5) contrast(1.3); }
:root[data-theme="dark"] .marques-groupe li[data-marque="xiaomi"] img { filter: grayscale(1) brightness(1.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marques-groupe li[data-marque="xiaomi"] img { filter: grayscale(1) brightness(1.6); } }
.marques-groupe li[data-marque="xiaomi"]:hover img { filter: none; }

/* Bandeau : place des logos réservée (largeur et hauteur écrites dans la page), pas de rognage */
.marques-groupe li { height: 56px; }
.marques-groupe img, .marques-groupe li.avec-logo img { height: auto; max-height: 40px; max-width: 160px; width: auto; object-fit: contain; display: block; }
.marques-piste { will-change: transform; }
/* Cartes : logo à la place du nom */
.marque-logo-carte { display: flex; align-items: center; min-height: 40px; }
.marque-logo-carte img { display: block; height: auto; max-height: 34px; max-width: 150px; width: auto; }
:root[data-theme="dark"] .marque-logo-carte img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marque-logo-carte img { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .marque[data-marque="xiaomi"] .marque-logo-carte img { filter: grayscale(1) brightness(1.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marque[data-marque="xiaomi"] .marque-logo-carte img { filter: grayscale(1) brightness(1.6); } }



/* ---------- Page Vente : haut de page pleine largeur, page aérée, petite animation à plat ---------- */
.vente-accroche { max-width: none; gap: 30px; padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.vente-accroche > p { max-width: 46rem; }
.vente-accroche .boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vente-accroche .bouton { min-height: 64px; font-size: 1.05rem; }
@media (max-width: 640px) { .vente-accroche .boutons { grid-template-columns: 1fr; } }
.page-vente .section { gap: 36px; padding-block-end: clamp(96px, 12vw, 152px); }
.page-vente .cartes { gap: 24px; }
.page-vente .carte { gap: 10px; padding: 34px 32px; }

/* Petite animation après « Ce que vous trouvez en boutique » : téléphone → reconditionné → coque → chargeur → support */
.mini-anim { --va-corps: var(--encre); --va-bord: var(--encre); --va-module: #111111; --va-objectif: #2b2b2b; display: inline-block; width: 1.75em; height: 2.05em; margin-left: 0.4em; vertical-align: middle; }
.mini-anim .va-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mini-anim .va-ombre, .mini-anim .va-reflet { display: none; }
.va-corps, .va-guidon, .va-embout { fill: var(--va-corps); stroke: var(--va-bord); stroke-width: 2; }
.mini-anim .va-ecran { fill: var(--vert); }
.va-coque { fill: var(--vert); }
.va-capteur { fill: #111111; }
.va-module { fill: var(--va-module); }
.va-collier { fill: var(--gris); }
.va-objectif { fill: var(--va-objectif); stroke: #4a4a4a; stroke-width: 3; }
.va-broche { fill: var(--gris); }
.va-cable { fill: none; stroke: var(--va-corps); stroke-linecap: round; }
.va-badge { fill: var(--vert); stroke: var(--fond); stroke-width: 6; }
.va-coche { fill: none; stroke: #111111; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* Mention « prix indicatif TTC, main-d'œuvre comprise » à côté des prix */
.prix-mention { font-size: 0.8rem; font-weight: 400; color: var(--gris); letter-spacing: 0; }
.carte .prix-mention { display: block; margin-top: 2px; }
.prix { white-space: nowrap; }
/* Tableau des pannes : une carte par ligne sur téléphone, prix lisible sans faire défiler */
@media (max-width: 640px) {
  .tableau-prix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tableau-prix, .tableau-prix tbody, .tableau-prix tr, .tableau-prix td { display: block; width: 100%; }
  .tableau-prix tr { padding: 18px 0; border-bottom: 1px solid var(--trait); }
  .tableau-prix td { padding: 0; border: 0; }
  .tableau-prix td:nth-child(2) { font-weight: 700; margin-top: 6px; }
  .tableau-prix td:nth-child(3) { margin-top: 4px; font-weight: 600; }
}
.carte .prix { color: var(--encre); font-weight: 700; font-size: 1.15rem; }
.facultatif { font-weight: 400; color: var(--gris); }

/* ---------- Stock en ligne (page Vente) et pages des appareils (écrits par outils/catalogue/generer.mjs) ---------- */
.menu a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.stock-intro { max-width: 46rem; }
.filtres { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.filtres label { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.85rem; }
.filtres select { min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--trait); border-radius: 10px; background: var(--carte); color: var(--encre); font: inherit; font-weight: 400; font-size: 1rem; }
.stock-compte { font-weight: 600; color: var(--gris); }
.stock-vide { padding: 18px 20px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; max-width: 46rem; }

/* Carte d'un appareil : photo à gauche, informations à droite, deux boutons côte à côte dessous */
.grille-stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.appareil { min-width: 0; display: grid; grid-template-columns: minmax(110px, min(40%, 220px)) minmax(0, 1fr); grid-template-areas: "photo corps" "actions actions"; gap: 16px 20px; padding: 16px; background: var(--carte); border: 1px solid var(--trait); border-radius: 18px; }
.appareil-photo { grid-area: photo; position: relative; align-self: start; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--fond); overflow: hidden; }
.appareil-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s cubic-bezier(0.3, 1.2, 0.5, 1); }
.appareil-photo:hover img { transform: scale(1.04); }
.appareil-corps { grid-area: corps; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges:empty { display: none; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.45; background: var(--inverse); color: var(--sur-inverse); }
.badge-nouveau { background: var(--vert); color: #111111; }
.badge-avant { background: #DB2777; color: #FFFFFF; }
.badge-vendu { background: var(--gris); color: var(--fond); }
.badge-etat { background: var(--carte); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait); }
.appareil-titre { font-family: var(--titre); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.3px; overflow-wrap: anywhere; }
.appareil-etat { font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.appareil-infos { color: var(--gris); font-size: 0.95rem; line-height: 1.4; }
.appareil-prix { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-family: var(--texte); font-weight: 700; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.5px; font-variant-numeric: lining-nums tabular-nums; }
.appareil-prix .energie { align-self: center; }
.appareil-ttc { font-weight: 600; font-size: 0.85rem; letter-spacing: 0; color: var(--gris); }
.appareil-dispo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.appareil-dispo::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); flex: none; }
.appareil[data-statut="reserve"] .appareil-dispo::before { background: var(--orange); }
.appareil[data-statut="vendu"] .appareil-dispo::before { background: var(--gris); }
.appareil-actions { grid-area: actions; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carte-bouton { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 12px; border-radius: 12px; border: 2px solid transparent; font-family: var(--titre); font-weight: 700; font-size: 0.98rem; line-height: 1.2; text-align: center; text-decoration: none; transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.2s; }
.carte-details { background: var(--fond); color: var(--encre); border-color: var(--encre); }
.carte-details:hover { background: var(--inverse); color: var(--sur-inverse); }
.carte-reserver { background: var(--vert); color: #111111; }
.carte-reserver:hover, .carte-details:hover { transform: translateY(-2px); }
.carte-vendu { background: var(--trait); color: var(--gris); }
.est-vendu .appareil-photo img { opacity: 0.5; filter: grayscale(1); }
.est-vendu .appareil-titre, .est-vendu .appareil-prix { color: var(--gris); }
@media (max-width: 480px) {
  .appareil { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 16px; }
  .appareil-titre { font-size: 1.08rem; }
  .appareil-etat, .appareil-infos { font-size: 0.87rem; }
  .appareil-prix { font-size: 1.5rem; }
  .carte-bouton { min-height: 48px; padding: 6px 8px; font-size: 0.9rem; }
}

/* Classe d'efficacité énergétique (appareils neufs), couleurs de l'étiquette européenne */
.energie { display: inline-flex; align-items: center; height: 24px; padding: 0 16px 0 8px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); color: #FFFFFF; font-family: var(--texte); font-weight: 800; font-size: 0.95rem; line-height: 1; text-shadow: 0 0 2px rgba(0, 0, 0, 0.7); }
.energie-a { background: #00A54F; } .energie-b { background: #4CB848; } .energie-c { background: #BFD730; } .energie-d { background: #FFF200; }
.energie-e { background: #FDB913; } .energie-f { background: #F37021; } .energie-g { background: #ED1C24; }

/* États des appareils */
.etats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; }
.etats div { padding: 18px 20px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; }
.etats dt { font-family: var(--titre); font-weight: 700; line-height: 1.25; }
.etats dd { margin: 6px 0 0; color: var(--gris); font-size: 0.95rem; line-height: 1.5; }

/* Page d'un appareil (et fenêtre « Détails de l'appareil ») */
.fiche-appareil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 56px); align-items: start; padding-block: clamp(20px, 3vw, 40px) clamp(80px, 10vw, 128px); }
@media (max-width: 820px) { .fiche-appareil { grid-template-columns: minmax(0, 1fr); } }
.fiche-galerie { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fiche-photo { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; }
.fiche-vignettes { display: flex; flex-wrap: wrap; gap: 10px; }
.vignette { width: 80px; height: 80px; padding: 4px; border: 2px solid var(--trait); border-radius: 12px; background: var(--carte); cursor: pointer; }
.vignette[aria-pressed="true"] { border-color: var(--vert); }
.vignette img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.fiche-infos { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fiche-prix { font-family: var(--texte); font-weight: 700; font-size: clamp(2.1rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -1px; font-variant-numeric: lining-nums tabular-nums; }
.fiche-prix .note { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.fiche-energie a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.fiche-dispo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fiche-dispo::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); flex: none; }
.fiche-appareil[data-statut="reserve"] .fiche-dispo::before { background: var(--orange); }
.fiche-appareil[data-statut="vendu"] .fiche-dispo::before { background: var(--gris); }
.fiche-infos .boutons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.fiche-infos .boutons .bouton { min-height: 54px; padding: 10px 14px; font-size: 1rem; line-height: 1.2; text-align: center; }
.fiche-soustitre { margin-top: 8px; font-size: 1.3rem; }
.tableau-details { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; background: var(--carte); font-size: 0.97rem; }
.tableau-details th, .tableau-details td { padding: 11px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--trait); }
.tableau-details tr:first-child th, .tableau-details tr:first-child td { border-top: 0; }
.tableau-details th { width: 38%; font-weight: 600; color: var(--gris); }
.tableau-details td { font-weight: 600; overflow-wrap: anywhere; }
.tableau-details tr:nth-child(even) { background: var(--fond); }
.fiche-vendu { font-weight: 700; }
.fiche-retour { font-size: 0.95rem; }

/* Fenêtre « Détails de l'appareil » ouverte depuis la page Vente */
html.dialogue-ouvert { overflow: hidden; }
.fiche-dialogue { width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--fond); color: var(--encre); overflow: auto; overscroll-behavior: contain; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.55); }
.fiche-dialogue::backdrop { background: rgba(17, 17, 17, 0.62); }
.dialogue-tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px clamp(16px, 3vw, 32px); background: var(--fond); border-bottom: 1px solid var(--trait); }
.dialogue-tete a { font-weight: 600; font-size: 0.9rem; }
.fermer { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border: 1.5px solid var(--trait); border-radius: 50%; background: var(--carte); color: var(--encre); cursor: pointer; padding: 0; }
.fermer:hover { border-color: var(--encre); }
.fiche-dialogue .fiche-appareil { max-width: none; padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 32px) clamp(24px, 3vw, 32px); }
.fiche-dialogue .fiche-appareil h2:first-of-type { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -1px; line-height: 1.07; }
.fiche-dialogue .fiche-photo { max-height: 52vh; }
@media (max-width: 640px) {
  .fiche-dialogue { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}
/* « Nouveau » : petit saut et reflet au survol (du badge ou de la carte) */
.badge-nouveau { position: relative; overflow: hidden; }
.badge-nouveau::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 55%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.8), transparent); transform: skewX(-20deg); pointer-events: none; }
.badge-nouveau:hover, .appareil:hover .badge-nouveau, .fiche-infos .badge-nouveau:hover { animation: nouveau-saut 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.badge-nouveau:hover::after, .appareil:hover .badge-nouveau::after { animation: reflet 0.7s ease-out; }
@keyframes nouveau-saut { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(1.18) rotate(-6deg); } 65% { transform: scale(1.06) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes reflet { to { left: 130%; } }
/* « Réserver l'appareil » : le bouton se soulève, un reflet le traverse, une flèche apparaît */
.carte-reserver, .bouton-reserver { position: relative; overflow: hidden; transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s; }
.carte-reserver::before, .bouton-reserver::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: skewX(-20deg); pointer-events: none; }
.carte-reserver::after, .bouton-reserver::after { content: "→"; display: inline-block; width: 0; overflow: hidden; opacity: 0; transform: translateX(-8px); transition: width 0.25s, opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), margin 0.25s; }
.carte-reserver:hover, .bouton-reserver:hover, .carte-reserver:focus-visible, .bouton-reserver:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 183, 79, 0.9); }
.carte-reserver:hover::before, .bouton-reserver:hover::before { animation: balayage 0.7s ease-out; }
.carte-reserver:hover::after, .bouton-reserver:hover::after, .carte-reserver:focus-visible::after, .bouton-reserver:focus-visible::after { width: 1.1em; margin-left: 6px; opacity: 1; transform: translateX(0); }
@keyframes balayage { to { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .badge-nouveau:hover, .appareil:hover .badge-nouveau, .fiche-infos .badge-nouveau:hover, .badge-nouveau:hover::after, .appareil:hover .badge-nouveau::after,
  .carte-reserver:hover::before, .bouton-reserver:hover::before { animation: none; }
  .carte-reserver, .bouton-reserver, .carte-reserver::after, .bouton-reserver::after { transition: none; }
  .carte-reserver:hover, .bouton-reserver:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .carte-bouton, .appareil-photo img { transition: none; } .carte-reserver:hover, .carte-details:hover { transform: none; } .appareil-photo:hover img { transform: none; } }
.formulaire .bloc-imei { display: contents; }
@media (max-width: 640px) { .fiche-dialogue .fiche-photo { max-height: 36vh; } .fiche-dialogue .fiche-appareil { gap: 20px; } }
