/* ============================================================================
   Vitrine de démonstration Jersoft — la page d’accueil
   ----------------------------------------------------------------------------
   C’est un portfolio : la première impression fait une partie du travail de
   vente. On montre les sites AVANT de parler, on parle après.

   Parti pris : fond sombre et chaud pour la galerie, section commerciale en
   clair. Les vignettes des sites, majoritairement claires, ressortent sur le
   sombre — c’est le principe d’une cimaise de galerie.

   Aucune dépendance : polices du système, pas une requête vers l’extérieur.
   ========================================================================= */

/* ------------------------------------------------------------------ jetons */

:root {
	color-scheme: dark;

	/* Sombre chaud — pas un gris bleuté, la charte Jersoft est chaude. */
	--nuit:        #14110d;
	--nuit-haute:  #1b1712;
	--nuit-carte:  #201b15;
	--trait:       #332b22;
	--trait-vif:   #4a3d30;

	/* Clair, pour la partie commerciale. */
	--creme:       #faf7f2;
	--creme-fonce: #f0e9de;
	--encre:       #1f1b16;
	--encre-douce: #6a625a;
	--trait-clair: #e2d9cc;
	--blanc:       #fffdfa;

	--sable:       #f6f1e8;
	--sable-doux:  #b3a696;
	--sable-faible:#8b8072;

	--cuivre:      #d98a4a;
	--cuivre-vif:  #eda361;
	--cuivre-sourd:#b4642a;

	--police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--titre: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

	--wrap: 1240px;
	--section-y: clamp(3.5rem, 7vw, 7rem);
	--rayon: 16px;
	--ombre: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .55);
	--ombre-haute: 0 2px 4px rgb(0 0 0 / .3), 0 28px 60px -20px rgb(0 0 0 / .7);
}

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

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

body {
	margin: 0;
	background: var(--nuit);
	color: var(--sable);
	font-family: var(--police);
	font-size: 1.02rem;
	line-height: 1.65;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgb(217 138 74 / .2);
	overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; text-wrap: balance; }

h1 {
	font-family: var(--titre);
	font-weight: 400;
	font-size: clamp(2.1rem, 4.9vw, 3.9rem);
	letter-spacing: -.02em;
}
h2 {
	font-family: var(--titre);
	font-weight: 400;
	font-size: clamp(1.8rem, 3.8vw, 2.9rem);
	letter-spacing: -.015em;
}
h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--etroit { width: min(100% - 2.5rem, 900px); margin-inline: auto; }

[id] { scroll-margin-top: 5.5rem; }
/* L’en-tête et la barre de filtres sont collants : sans cette marge, une carte
   atteinte au clavier se retrouverait cachée dessous. */
:is(a, button, select, input, textarea) { scroll-margin-top: 7rem; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--cuivre); color: #1a1208; padding: .8rem 1.3rem;
	text-decoration: none; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
	outline: 2px solid var(--cuivre-vif);
	outline-offset: 3px;
	border-radius: 4px;
}

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

/* ------------------------------------------------------------------ boutons */

.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	text-decoration: none; font-size: .95rem; font-weight: 700;
	padding: .9rem 1.7rem;
	border: 1px solid transparent; border-radius: 999px;
	cursor: pointer; font-family: inherit;
	transition: background-color .18s ease, color .18s ease,
	            border-color .18s ease, transform .18s ease;
}
.btn--plein {
	background: var(--cuivre); color: #170f06; border-color: var(--cuivre);
}
.btn--plein:hover { background: var(--cuivre-vif); border-color: var(--cuivre-vif); transform: translateY(-1px); }
.btn--trait { background: transparent; color: var(--sable); border-color: var(--trait-vif); }
.btn--trait:hover { border-color: var(--cuivre); color: var(--cuivre-vif); }
.btn--clair { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.btn--clair:hover { background: var(--cuivre-sourd); border-color: var(--cuivre-sourd); transform: translateY(-1px); }
.btn--clair-trait { background: transparent; color: var(--encre); border-color: var(--trait-clair); }
.btn--clair-trait:hover { border-color: var(--cuivre-sourd); color: var(--cuivre-sourd); }

/* Un bouton d'en-tete : meme dessin, moins de hauteur. La cible tactile reste
   au-dessus de 44 px grace au « min-height ». */
.btn--petit { padding: .5rem .95rem; font-size: .86rem; min-height: 44px; }

/* ------------------------------------------------------------------- entête */
/* L'identite est celle de JERSOFT, pas d'une sous-marque : le nom en grand,
   « Démonstrations de sites » en dessous, et un retour explicite vers le site
   principal, et un seul appel a l'action. Aucun numero de telephone : le
   contact passe par le formulaire de jersoft.fr (decision du 10/09/2026). */

.tete {
	position: sticky; top: 0; z-index: 40;
	background: color-mix(in srgb, var(--nuit) 92%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--trait);
}
.tete__inner {
	display: flex; align-items: center; gap: 1rem;
	min-height: 4rem;
}

.marque {
	display: flex; align-items: center; gap: .6rem;
	text-decoration: none; color: var(--sable); margin-right: auto;
}
.marque__point {
	width: .62rem; height: .62rem; border-radius: 50%;
	background: var(--cuivre); flex: none;
}
.marque__dire { display: block; line-height: 1.15; }
.marque__nom {
	display: block; font-weight: 800; font-size: 1.05rem;
	letter-spacing: .04em; text-transform: uppercase;
}
.marque__sous {
	display: block; font-size: .74rem; color: var(--sable-faible);
	letter-spacing: .02em;
}

/* Pas de « display » ici : l'etat replie est celui de « details », et un
   display d'auteur pose a la racine passerait devant, laissant le menu
   ouvert en permanence sur telephone. Chaque largeur declare le sien. */
.tete__nav { font-size: .93rem; }
.tete__nav a { text-decoration: none; color: var(--sable-doux); }
.tete__nav a:hover { color: var(--cuivre-vif); }
.tete__retour { color: var(--sable-faible) !important; font-size: .88rem; }
.tete__retour:hover { color: var(--cuivre-vif) !important; }

.tete__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

/* Le menu repliable. Sur grand ecran le bouton disparait et la navigation
   s'affiche en ligne : c'est le meme balisage dans les deux cas, et il
   fonctionne sans JavaScript — « details » est natif.

   Deux mecaniques a neutraliser pour l'afficher en ligne, parce que les
   navigateurs n'ont pas tous la meme : les anciens posent « display: none »
   sur les enfants d'un « details » ferme — un « display » d'auteur suffit a
   passer devant ; Chrome 131 et suivants passent par « ::details-content »
   avec « content-visibility: hidden », que seul le pseudo-element peut
   rouvrir. On ecrit les deux. */
.menu { position: relative; }

@media (min-width: 1041px) {
	.menu { display: contents; }
	.menu::details-content { content-visibility: visible; display: contents; block-size: auto; }
	.tete__nav { display: flex; align-items: center; gap: 1.4rem; }
}
.menu__bouton {
	display: none; align-items: center; gap: .5rem;
	min-height: 44px; padding: .4rem .7rem;
	border: 1px solid var(--trait-vif); border-radius: 10px;
	color: var(--sable-doux); font-size: .9rem; cursor: pointer;
	list-style: none;
}
.menu__bouton::-webkit-details-marker { display: none; }
.menu__bouton:hover { border-color: var(--cuivre); color: var(--cuivre-vif); }
.menu__barres { position: relative; width: 16px; height: 2px; background: currentColor; }
.menu__barres::before, .menu__barres::after {
	content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
}
.menu__barres::before { top: -5px; }
.menu__barres::after { top: 5px; }

@media (max-width: 1040px) {
	.menu__bouton { display: inline-flex; }
	/* L'etat est lu sur l'attribut « open » plutot que laisse au navigateur :
	   les mecaniques de repli de « details » different d'une version a
	   l'autre, celle-ci est la meme partout. */
	.menu:not([open]) .tete__nav { display: none; }
	/* Le panneau se cale sur l'ENTETE, pas sur le bouton : ancre au bouton,
	   il partait vers la gauche depuis un point flottant et sortait de
	   l'ecran sur les petits telephones. « position: static » rend le bouton
	   transparent au positionnement, et l'entete — deja « sticky », donc
	   positionne — devient le repere. La marge laterale reprend celle de la
	   grille, le panneau s'aligne ainsi sur le contenu. */
	.menu { position: static; }
	.menu[open] .tete__nav {
		position: absolute; z-index: 5;
		top: calc(100% + .6rem);
		right: max(1.25rem, calc((100% - var(--wrap)) / 2));
		max-width: calc(100% - 2.5rem);
		display: flex; flex-direction: column; align-items: stretch; gap: 0;
		min-width: min(15rem, calc(100% - 2.5rem)); padding: .4rem;
		background: var(--nuit-carte);
		border: 1px solid var(--trait-vif); border-radius: 14px;
		box-shadow: var(--ombre-haute);
	}
	.tete__nav a {
		padding: .7rem .8rem; border-radius: 8px;
		display: flex; align-items: center; min-height: 44px;
	}
	.tete__nav a:hover { background: var(--nuit-haute); }
	.tete__retour { border-top: 1px solid var(--trait); margin-top: .3rem; padding-top: .8rem !important; }
}
@media (max-width: 560px) {
	.marque__sous { display: none; }
	.marque__nom { font-size: .98rem; }
	.menu__mot { display: none; }
	.btn--petit { padding: .5rem .8rem; }
}
/* Les petits Android et l'iPhone SE : 320 px de large, moins la barre de
   defilement. L'appel a l'action debordait de sept pixels. */
@media (max-width: 400px) {
	.tete__inner { gap: .4rem; }
	.btn--petit { padding: .5rem .62rem; font-size: .82rem; }
}

/* ---------------------------------------------------------------- ouverture */

.ouverture {
	position: relative; overflow: hidden;
	padding-block: clamp(2.2rem, 5vw, 4.2rem) clamp(2rem, 4vw, 3.4rem);
}
/* Une lueur cuivre très basse — donne de la profondeur sans rien coûter. */
.ouverture::before {
	content: ""; position: absolute; inset: -30% 20% auto -10%;
	height: 60vh; pointer-events: none;
	background: radial-gradient(50% 50% at 30% 40%, rgb(217 138 74 / .16), transparent 70%);
}
.ouverture > * { position: relative; }

.oeil {
	display: inline-flex; align-items: center; gap: .55rem;
	margin: 0 0 1.4rem; font-size: .74rem; font-weight: 800;
	letter-spacing: .18em; text-transform: uppercase; color: var(--cuivre);
}
.oeil::before {
	content: ""; width: 1.8rem; height: 1px; background: var(--cuivre); opacity: .7;
}

.ouverture__grille {
	display: grid; align-items: center;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
}
.ouverture__titre { max-width: 16ch; margin-bottom: 1rem; }
.ouverture__titre em { font-style: italic; color: var(--cuivre-vif); }
.ouverture__texte {
	max-width: 60ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem);
	color: var(--sable-doux); margin-bottom: 2rem;
}
.ouverture__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 2.4rem; }

/* Trois vraies captures en cascade : le savoir-faire, avant la première phrase
   de la galerie. Décoratif — d’où aria-hidden dans le HTML. */
.pile { position: relative; aspect-ratio: 5 / 4.4; }
.pile__vue {
	position: absolute; width: 74%; height: auto;
	border-radius: 12px; border: 1px solid var(--trait-vif);
	box-shadow: var(--ombre-haute);
	object-fit: cover; object-position: top center;
}
.pile__vue:nth-child(1) { top: 0; right: 0; transform: rotate(2.2deg); }
.pile__vue:nth-child(2) { top: 22%; left: 0; z-index: 2; transform: rotate(-2.6deg); }
.pile__vue:nth-child(3) { top: 46%; right: 4%; z-index: 3; transform: rotate(1.4deg); }

/* La ligne de preuves : une seule phrase, lue d'un coup. Les nombres sont
   calcules par le generateur — jamais ecrits ici. */
.preuves {
	margin: 2rem 0 0; padding-top: 1.2rem;
	border-top: 1px solid var(--trait);
	font-size: .96rem; color: var(--sable-doux);
	line-height: 1.9;
}
.preuves b { color: var(--sable); font-weight: 700; }
.preuves span { color: var(--trait-vif); margin-inline: .35rem; }

/* ------------------------------------------------------------ barre métiers */
/* Collee sous l'entete. Sur telephone les puces defilent horizontalement sur
   UNE ligne : trois rangees de gros boutons repoussaient la galerie hors de
   l'ecran, et c'est la galerie qu'on est venu voir. */

.filtres {
	position: sticky; top: 4rem; z-index: 30;
	background: color-mix(in srgb, var(--nuit) 94%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--trait);
}
.filtres__inner {
	display: flex; align-items: center; gap: .9rem;
	padding-block: .7rem;
}
.filtres__titre {
	margin: 0; flex: none;
	font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--sable-faible);
}
.filtres__puces {
	display: flex; gap: .5rem; overflow-x: auto; overscroll-behavior-x: contain;
	scrollbar-width: none; padding-block: .2rem;
}
.filtres__puces::-webkit-scrollbar { height: 0; }

.puce {
	display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
	min-height: 44px; padding: .45rem .9rem;
	background: transparent; color: var(--sable-doux);
	border: 1px solid var(--trait-vif); border-radius: 999px;
	font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.puce:hover { border-color: var(--cuivre); color: var(--cuivre-vif); }
.puce__compte {
	font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums;
	color: var(--sable-faible);
	background: var(--nuit-carte); border-radius: 999px;
	padding: .1rem .45rem;
}
/* L'etat actif ne tient pas qu'a la couleur : le fond change aussi, et
   « aria-pressed » le dit a un lecteur d'ecran. */
.puce[aria-pressed="true"] {
	background: var(--cuivre); border-color: var(--cuivre); color: #170f06;
}
.puce[aria-pressed="true"] .puce__compte { background: rgb(0 0 0 / .18); color: #170f06; }

/* ---------------------------------------------------------------- la galerie */

.galerie { padding-block: var(--section-y) 0; }
.galerie h2 { margin-bottom: .6rem; }
.galerie__intro { max-width: 62ch; color: var(--sable-doux); margin-bottom: 0; }

.metier {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
	content-visibility: auto;
	contain-intrinsic-size: auto 900px;
}
.metier[hidden] { display: none; }
.metier__tete {
	border-bottom: 1px solid var(--trait); padding-bottom: 1rem; margin-bottom: 2rem;
}
/* Le titre et le compte sur une ligne, l’accroche en dessous. On ne compte
   PAS sur « flex-basis: 100% » pour la faire passer à la ligne : une
   max-width sur un élément flex borne aussi le calcul du retour à la ligne,
   et l’accroche remontait se serrer contre le compte. */
.metier__titre {
	margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem;
}
.metier__compte {
	font-family: var(--police); font-size: .82rem; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase; color: var(--sable-faible);
}
.metier__accroche {
	max-width: 72ch; margin: .6rem 0 0;
	color: var(--sable-doux); font-size: .98rem;
}

.sites {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

/* --------------------------------------------------------------- une carte */

.carte { display: flex; }
.carte__lien {
	display: flex; flex-direction: column; width: 100%;
	text-decoration: none; color: inherit;
	background: var(--nuit-carte);
	border: 1px solid var(--trait);
	border-radius: var(--rayon);
	overflow: hidden;
	box-shadow: var(--ombre);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.carte__lien:hover { border-color: var(--trait-vif); transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.carte__lien:focus-visible { outline-offset: 4px; }

.carte__vue {
	display: block; position: relative;
	aspect-ratio: 4 / 3; overflow: hidden;
	background: var(--nuit-haute);
	border-bottom: 1px solid var(--trait);
}
.carte__vue img {
	width: 100%; height: 100%; object-fit: cover; object-position: top center;
	transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}
.carte__lien:hover .carte__vue img { transform: scale(1.035); }

.carte__vide {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: linear-gradient(150deg, #2a2118, var(--nuit-haute));
	color: var(--cuivre); font-family: var(--titre); font-size: 3.4rem;
}

/* L'appel a l'action est ECRIT dans la carte, jamais revele au survol : sur un
   telephone il n'y a pas de survol, et une action qu'on ne voit pas n'existe
   pas. C'est aussi ce qui rend la carte comprehensible au clavier. */

.carte__corps { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.carte__nom {
	display: block; font-size: 1.18rem; font-weight: 700;
	letter-spacing: -.01em; margin-bottom: .35rem;
}
.carte__pitch {
	display: block; font-size: .92rem; color: var(--sable-doux);
	margin-bottom: 1rem; overflow-wrap: break-word;
}
.carte__tags {
	display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto;
}
.carte__tags span {
	font-size: .72rem; font-weight: 600; letter-spacing: .02em;
	color: var(--sable-faible);
	border: 1px solid var(--trait); border-radius: 999px;
	padding: .18rem .6rem;
}
.carte__pied {
	display: flex; align-items: center; justify-content: space-between;
	gap: .8rem; margin-top: 1rem; padding-top: .8rem;
	border-top: 1px solid var(--trait);
}
.carte__pages { font-size: .8rem; color: var(--sable-faible); }
.carte__voir {
	display: inline-flex; align-items: center; gap: .35rem;
	font-size: .88rem; font-weight: 700; color: var(--cuivre);
}
.carte__lien:hover .carte__voir { color: var(--cuivre-vif); }
.carte__voir span { transition: transform .18s ease; }
.carte__lien:hover .carte__voir span { transform: translateX(3px); }

/* Le repere du retour : la carte qu'on vient de quitter, remise sous les yeux
   quelques secondes. Un cadre, pas seulement une couleur. */
.carte--repere .carte__lien {
	border-color: var(--cuivre);
	box-shadow: var(--ombre-haute), 0 0 0 2px color-mix(in srgb, var(--cuivre) 45%, transparent);
}

/* ------------------------------------------------------- le bloc sur mesure */
/* UN SEUL bloc, apres toute la galerie. Il etait repete apres chaque metier :
   cinq fois le meme texte, et le visiteur finissait par ne plus le lire. C'est
   la charniere entre le showroom et la partie commerciale. */

.mesure {
	padding-block: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid var(--trait);
}
.mesure__inner {
	display: grid; gap: 1.6rem 2.5rem; align-items: center;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, auto);
	background: linear-gradient(105deg, #2d1f11, var(--nuit-carte) 62%);
	border: 1px dashed color-mix(in srgb, var(--cuivre) 42%, transparent);
	border-radius: var(--rayon);
	padding: clamp(1.5rem, 3.5vw, 2.6rem);
}
.mesure h2 { margin-bottom: .6rem; }
.mesure__texte { margin: 0; color: var(--sable-doux); max-width: 62ch; }
.mesure__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }

@media (max-width: 860px) {
	.mesure__inner { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- la reprise */
/* Le bloc qui parle a l'entreprise deja equipee. Il vient JUSTE apres la
   galerie : on vient de voir des sites, la question suivante est « et le mien,
   qu'est-ce qu'il devient ». Meme grille que les etapes, quatre reponses aux
   quatre craintes reelles — domaine, e-mails, referencement, coupure. */

.reprise {
	padding-block: var(--section-y);
	border-top: 1px solid var(--trait);
	background:
		radial-gradient(50% 60% at 15% 0%, rgb(217 138 74 / .09), transparent 70%),
		var(--nuit-haute);
}
.reprise__liste {
	list-style: none; margin: 2.5rem 0 0; padding: 0;
	display: grid; gap: 1.4rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.reprise__liste li { border-top: 2px solid var(--cuivre); padding-top: .9rem; }
.reprise__liste h3 { margin-bottom: .35rem; }
.reprise__liste p { margin: 0; font-size: .95rem; color: var(--sable-doux); }
.reprise__note {
	margin: 2rem 0 0; padding-top: 1.4rem;
	border-top: 1px solid var(--trait);
	font-size: 1.02rem; color: var(--sable-doux); max-width: 60ch;
}
.reprise__note strong { color: var(--cuivre-vif); }

/* ----------------------------------------------------------------- méthode */

.methode { padding-block: var(--section-y); border-top: 1px solid var(--trait); }
.etapes {
	list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: etape;
	display: grid; gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.etapes li { counter-increment: etape; }
.etapes li::before {
	content: counter(etape, decimal-leading-zero);
	display: block; font-family: var(--titre); font-size: 2rem; line-height: 1;
	color: var(--cuivre); margin-bottom: .8rem;
	font-variant-numeric: tabular-nums;
}
.etapes h3 { margin-bottom: .4rem; }
.etapes p { color: var(--sable-doux); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------------- offre */

.offre {
	background: var(--creme); color: var(--encre);
	padding-block: var(--section-y);
}
.offre h2, .offre h3 { color: var(--encre); }
.offre__accroche {
	margin: -.2em 0 1rem; font-family: var(--titre); font-style: italic;
	font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--cuivre-sourd);
}
.offre__intro { max-width: 66ch; font-size: 1.06rem; margin-bottom: 2.4rem; color: var(--encre-douce); }
.offre__intro strong { color: var(--encre); }

.formules {
	display: grid; gap: 1.3rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	align-items: start;
}
.formule {
	position: relative; background: var(--blanc);
	border: 1px solid var(--trait-clair); border-radius: var(--rayon);
	padding: 1.7rem 1.6rem;
}
.formule--phare {
	border-color: var(--cuivre-sourd); border-width: 2px; padding-top: 2.2rem;
	box-shadow: 0 20px 50px -30px rgb(31 27 22 / .5);
}
.formule__ruban {
	position: absolute; top: -.78rem; left: 1.4rem; margin: 0;
	background: var(--cuivre-sourd); color: #fff;
	font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	padding: .28rem .85rem; border-radius: 999px;
}
.formule__nom { margin: 0 0 .15rem; font-size: 1.28rem; }
.formule__prix {
	margin: 0 0 .2rem; font-family: var(--titre); font-weight: 400;
	font-size: 2.9rem; line-height: 1; letter-spacing: -.02em;
	color: var(--cuivre-sourd); font-variant-numeric: tabular-nums;
}
.formule__prix span { font-family: var(--police); font-size: .82rem; font-weight: 600; color: var(--encre-douce); letter-spacing: 0; }
.formule__quoi { margin: .5rem 0 1.1rem; font-size: .92rem; color: var(--encre-douce); }
.formule ul { list-style: none; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--trait-clair); }
.formule li { position: relative; padding-left: 1.35rem; margin-bottom: .45rem; font-size: .94rem; }
.formule li::before { content: "\2713"; position: absolute; left: 0; color: var(--cuivre-sourd); font-weight: 800; }


/* Ce que comprennent les formules tient en une phrase : le detail vit sur
   jersoft.fr et dans les CGV. Deux textes a tenir a jour valent moins qu'un. */
.offre__compris {
	margin: 1.6rem 0 0; max-width: 66ch;
	font-size: .98rem; color: var(--encre-douce);
}
/* La mention de franchise en base est obligatoire dès qu'un tarif est
   annoncé. Discrète mais lisible : c'est une information, pas une note de bas
   de page à cacher. */
.offre__tva { display: block; margin-top: .5rem; color: var(--sable-faible); font-size: .92em; }

.offre__lien { margin: .9rem 0 0; font-size: .98rem; font-weight: 600; }
.offre__lien a { color: var(--cuivre-sourd); }
.offre__lien a:hover { color: var(--encre); }

.documents__liste { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2.6rem 0 0; }
.doc {
	display: flex; align-items: center; gap: .9rem; text-decoration: none;
	background: var(--blanc); border: 1px solid var(--trait-clair); border-radius: 12px;
	padding: .95rem 1.35rem;
	transition: border-color .18s ease, transform .18s ease;
}
.doc:hover { border-color: var(--cuivre-sourd); transform: translateY(-1px); }
.doc__signe { color: var(--cuivre-sourd); font-size: 1.3rem; line-height: 1; }
.doc__nom { display: block; font-weight: 700; font-size: .96rem; }
.doc__info { display: block; font-size: .82rem; color: var(--encre-douce); }

/* ------------------------------------------------------------------- appel */

.appel { padding-block: var(--section-y); border-top: 1px solid var(--trait); }
.appel__inner {
	display: grid; gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	align-items: center;
}
.appel h2 { margin-bottom: .5rem; }
.appel p { color: var(--sable-doux); max-width: 52ch; }
.appel__qui {
	margin: 1.1rem 0 0; font-size: .9rem; color: var(--sable-faible);
}
.appel__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* -------------------------------------------------------------- pied de page */
/* Aligne sur celui de jersoft.fr : l'identite complete a gauche, les pages
   legales a droite. Elles vivent sur le site principal — les recopier ici
   aurait donne deux versions d'un texte contractuel. */

.pied {
	border-top: 1px solid var(--trait);
	padding-block: 2.5rem; font-size: .88rem; color: var(--sable-faible);
	padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}
.pied__grille {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem 2.5rem;
}
.pied p { margin: 0 0 .35rem; max-width: 70ch; }
.pied__marque {
	font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	color: var(--sable); font-size: .95rem;
}
.pied__liens { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: flex-start; }
.pied__liens a { display: inline-flex; align-items: center; min-height: 32px; }
.pied a { color: var(--cuivre); }
.pied a:hover { color: var(--cuivre-vif); }
.pied__avis {
	margin-top: 1.8rem; padding-top: 1.2rem;
	border-top: 1px solid var(--trait);
}

/* --------------------------------------------------------------- apparitions */

.js .reveler { opacity: 0; transform: translateY(18px); }
.js .reveler.vu {
	opacity: 1; transform: none;
	transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveler, .js .reveler.vu { opacity: 1; transform: none; transition: none; }
	.carte__lien:hover { transform: none; }
	.carte__lien:hover .carte__vue img { transform: none; }
	.btn:hover, .doc:hover { transform: none; }
	.carte__ouvrir { transition: none; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
	.ouverture__grille { grid-template-columns: 1fr; }
	.pile { display: none; }
}

@media (max-width: 620px) {
	.tete__inner { min-height: 3.6rem; gap: .5rem; }
	.filtres { top: 3.6rem; }
	[id] { scroll-margin-top: 5.4rem; }
	.filtres__titre { display: none; }
	.preuves { line-height: 2; }
	.mesure__actions .btn { flex: 1 1 100%; justify-content: center; }
}
