/* =====================================================================
   Finitions (19/11/2026) — chargé tout en dernier.
   Règles reprises de trois skills de design repérés dans le post de BenjaminUIX
   (« 10 skills that kill AI slop ») :
   - Make Interfaces Feel Better (J. Krehel) : rayons concentriques, ombres plutôt que bordures
     pour l'élévation, chiffres tabulaires, text-wrap, pression à 0.96, zones tactiles 44 px,
     contour léger des images, jamais « transition: all ».
   - Emil Kowalski (design engineering) : courbes ease-out fortes, < 300 ms, pas d'animation
     sur les gestes fréquents, survol réservé aux appareils qui survolent, mouvement réduit respecté.
   - Frontend Design (Anthropic) : retirer les tics « générés » — étiquettes en capitales espacées,
     flèches « → » collées aux liens, méta reliées par « · », cartes toutes identiques.
   ===================================================================== */

:root {
	--ease-out: cubic-bezier(.23, 1, .32, 1);
	--ease-in-out: cubic-bezier(.77, 0, .175, 1);
	--ombre-carte: 0 0 0 1px rgba(21, 18, 14, .07), 0 1px 2px rgba(21, 18, 14, .05), 0 4px 12px -4px rgba(21, 18, 14, .06);
	--ombre-carte-haute: 0 0 0 1px rgba(167, 125, 46, .35), 0 2px 4px rgba(21, 18, 14, .05), 0 14px 28px -12px rgba(21, 18, 14, .2);
}

/* ---- Typographie ---- */
h1, h2, h3, .appli-hero__titre, .appli-h2, .appli-h3, .page__titre, .hero-h1, .appli-tuile strong { text-wrap: balance; }
p, li, dd, .appli-tuile small { text-wrap: pretty; }
.accueil-prix__montant, .appli-liste em, .esp-chiffre, .esp-montant, .esp-histo__txt strong,
.tab-prix, .prix, [class*="prix"] strong, [class*="montant"], .tarif__prix { font-variant-numeric: tabular-nums; }

/* Étiquettes : plus de capitales espacées, une casse de phrase lisible. */
.maillage__titre, .verifiez__fiche dt, .dmd__groupe, .menu-mobile__titre, .encadre__sous,
.plainte__fiche dt, .esp-encaisse__champ, .sec-tag, .champ__libelle {
	text-transform: none; letter-spacing: 0;
}
.maillage__titre { font-size: 15px; }
.pied__titre { text-transform: none !important; letter-spacing: 0 !important; font-size: 14.5px !important; }

/* ---- Surfaces ---- */
/* Tuiles : l'élévation vient de l'ombre, plus d'une bordure grise.
   Rayon concentrique : picto 10 px + marge 14 px = tuile 24 px. */
.appli-tuile {
	border: 0; border-radius: 24px; box-shadow: var(--ombre-carte);
	grid-template-rows: auto auto auto; align-items: start; row-gap: 2px;
	transition-property: transform, box-shadow; transition-duration: .16s, .2s; transition-timing-function: var(--ease-out);
}
.appli-tuile__picto { grid-row: span 3; border-radius: 10px; }
.appli-tuile strong { padding-top: 1px; }
.appli-tuile small { color: var(--text2, #6b6255); font-size: 13.5px; line-height: 1.4; }
.appli-tuile__meta {
	grid-column: 2; justify-self: start; margin-top: 6px; padding: 3px 9px; border-radius: 8px;
	background: rgba(212, 173, 85, .16); color: var(--or-3); font-size: 12.5px; font-weight: 600;
	font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
	.appli-tuile:hover { transform: none; box-shadow: var(--ombre-carte-haute); }
}
.appli-carte { border: 0; box-shadow: var(--ombre-carte); border-radius: 24px; }
.appli-pastilles a { border: 0; box-shadow: var(--ombre-carte); min-height: 44px; }
@media (hover: hover) { .appli-pastilles a:hover { box-shadow: var(--ombre-carte-haute); } }

/* Images : un contour noir à 10 % pour un bord net sur fond clair. */
.page-figure img, .article img, .entry-content img, .blog__item img {
	outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px;
}

/* ---- Liens ---- */
/* « Tous les tarifs » : soulignement or au lieu d'une flèche, zone tactile de 44 px. */
.accueil-lien {
	display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0;
	text-decoration: underline; text-decoration-color: var(--or-2); text-decoration-thickness: 2px; text-underline-offset: 6px;
	transition: text-decoration-color .15s ease;
}
@media (hover: hover) { .accueil-lien:hover { text-decoration-color: var(--titre); } }
.appli-guides li a { align-items: center; min-height: 44px; }
.appli-guides li a::after {
	content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px;
	border-top: 2px solid var(--or-3); border-right: 2px solid var(--or-3); transform: rotate(45deg);
}

/* ---- Pression et mouvement ---- */
.btn-sos, .btn-or, .appli-tuile, .entree__choix, .dmd-carte, .dmd-ligne, .dmd-suite, .dmd-action, .appli-pastilles a {
	-webkit-tap-highlight-color: transparent;
}
.btn-sos, .btn-or { transition-property: transform, box-shadow, filter; transition-duration: .16s; transition-timing-function: var(--ease-out); }
.btn-sos:active, .btn-or:active, .appli-tuile:active, .entree__choix:active, .appli-pastilles a:active,
.dmd-carte:active, .dmd-ligne:active, .dmd-suite:active, .dmd-action:active, .dmd-radar:active { transform: scale(.96); }
@media (hover: hover) { .btn-sos:hover, .btn-or:hover { transform: none; filter: brightness(1.06); } }

/* Focus clavier visible partout, à la couleur de la marque. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--or-2); outline-offset: 3px; border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.btn-sos::after { display: none; }
}

/* =====================================================================
   Passe Uizze + Impeccable (19/11/2026)
   Contrat : 1 accent = l'or (dégradé or = choix de marque demandé par Wanis) ;
   rouge = urgence, vert = disponible (couleurs d'état, pas des accents).
   Arrondis : 8 (petits repères) · 12 (pictos, choix, champs) · 16 (boutons, encarts) · 24 (cartes) · pilule (pastilles).
   ===================================================================== */
.entree, .verifiez, .appli-carte, .appli-astuce, .appli-tuile { border-radius: 24px; }
.appli-tuile { padding: 12px; column-gap: 14px; }               /* 12 + 12 = 24, concentrique */
.appli-tuile__picto, .entree__picto, .entree__choix, .entree__onglets button, .entree__onglets [role="tab"] { border-radius: 12px; }
.entree__onglets, .verifiez__fiche div, .appli-prix, .btn-sos, .btn-or { border-radius: 16px; }
.btn-sos::after { border-radius: 20px; }                          /* halo : 16 + 4 d'écart */
.appli-etapes b { border-radius: 8px; }

/* Pas de texte en dégradé : l'emphase vient du poids. */
.maillage__titre { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--or-3); filter: none; font-weight: 600; }

/* Le bouton « Je suis bloqué » s'écrit pareil partout (plus de capitales). */
.btn-primary[data-bloque], .gros-bouton[data-bloque], .barre__btn--urgence { text-transform: none; letter-spacing: 0; font-weight: 700; }

/* Sans sur-titre, le titre prend sa place sous le fil d'Ariane. */
.appli-hero__titre { margin-top: 18px; }

/* Éléments du navigateur aux couleurs de la marque. */
::selection { background: rgba(212, 173, 85, .35); color: var(--titre, #15120e); }
input, textarea { caret-color: var(--or-3); }
input[type="checkbox"], input[type="radio"], progress { accent-color: var(--or-3); }
html { scrollbar-color: rgba(167, 125, 46, .55) transparent; }
.burger { border-radius: 12px; }
.assur__sceau { border-radius: 16px; }
.plainte { border-radius: 24px; }
.appli-liste em { border-radius: 8px; }

/* =====================================================================
   Aplats (19/11/2026) — UI UX Pro Max (« flat, no gradients/shadows » pour un artisan),
   taste-skill (service : aplats, pas de dégradé), Impeccable (pas de halo décoratif).
   Les jetons de dégradé restent valides mais deviennent des couleurs pleines.
   ===================================================================== */
:root {
	--degrade-or: linear-gradient(#d4ad55, #d4ad55);
	--degrade-rouge: linear-gradient(#d23a1f, #d23a1f);
	--degrade-btn: linear-gradient(#15120e, #15120e);
	--degrade-nuit: linear-gradient(#15120e, #15120e);
	--ombre-or: none;
	--ombre-rouge: none;
}
.appli-hero::before { display: none; }
.btn-sos::after { display: none; }
.appli-tuile__picto, .entree__onglets button[aria-selected="true"] { box-shadow: none !important; }
.appli-coches li::before { background: #d4ad55; }

/* Lissage des polices à la racine (Make Interfaces Feel Better), plus seulement sur body. */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
