/* Physalis Design : colonne gauche fixe (logo, accroche, plan) et contenu qui défile à droite.
   Polices auto-hébergées dans fonts/ (aucune requête vers Google). */
@font-face { font-family: "Syne"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/syne-variable.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/figtree-variable.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/figtree-italic-variable.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dm-mono-400.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-500.woff2) format("woff2"); }

:root {
	--brume: #e3ebef;      /* colonne gauche */
	--brume-2: #d3dfe5;
	--grisé: #f1f4f6;      /* fond d'une réalisation sur deux */
	--blanc: #fbfcfc;      /* colonne droite */
	--encre: #13243a;
	--gris: #4f5f70;
	--trait: #13243a1f;
	--orange: #f07919;     /* orange du logo, en aplat seulement */
	--orange-texte: #b4520a;
	--peche: #fdefe3;
	--titre: "Syne", "Trebuchet MS", sans-serif;
	--texte: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "DM Mono", ui-monospace, "Consolas", monospace;
	--gauche: clamp(22em, 36vw, 31em);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--blanc);
	color: var(--encre);
	font: 400 1.0625em/1.6 var(--texte);
	overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 0.15em solid var(--orange); outline-offset: 0.2em; border-radius: 0.3em; }

.mono { font-family: var(--mono); font-size: 0.8em; letter-spacing: 0.04em; }

/* Colonne gauche */
.cote {
	background: var(--brume);
	padding: 2.2em 2.5em;
	display: flex;
	flex-direction: column;
	gap: 2em;
}
.cote h1 { margin: 0; line-height: 0; }
.cote h1 img { width: 5.2em; height: auto; }
.accroche-titre {
	margin: 0 0 0.7em;
	font-family: var(--titre);
	font-weight: 700;
	font-size: clamp(1.9em, 2.7vw, 2.55em);
	font-size: clamp(1.7em, min(2.6vw, 4.3vh), 2.55em);
	line-height: 1.08;
	letter-spacing: -0.02em;
}
.accroche-titre em {
	font-style: normal;
	background: linear-gradient(transparent 62%, #f079195e 62%);
}
.accroche-suite { margin: 0; color: var(--gris); font-size: 1.02em; max-width: 30em; }

.plan { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--trait); }
.plan a {
	display: flex;
	align-items: baseline;
	gap: 1em;
	padding: 0.65em 0;
	border-bottom: 1px solid var(--trait);
	text-decoration: none;
	color: var(--gris);
	font-weight: 500;
	transition: color .2s, padding .2s;
}
.plan a span { color: #9a4608; } /* orange-texte assombri : contraste 4,5 sur la brume */
.plan a:hover, .plan a[aria-current="true"] { color: var(--encre); padding-left: 0.5em; }
.plan a[aria-current="true"]::after { content: ""; margin-left: auto; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--orange); align-self: center; }

.bouton {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.85em 1.6em;
	border: 0;
	border-radius: 3em;
	background: var(--orange);
	color: var(--encre);
	font: 700 1em/1 var(--texte);
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}
.bouton:hover { transform: translateY(-0.1em); box-shadow: 0 0.5em 1.2em -0.5em #f07919aa; }
.bouton::after { content: "→"; }
.cote-bas { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.cote-bas .mono { color: var(--gris); }

/* Colonne droite */
.defile { padding: 0 1.1em; }
/* Chaque section s'ouvre sur un filet foncé : sépare nettement les sections */
.bloc { padding: 4em 0 1em; }
.bloc-tete { display: flex; align-items: baseline; gap: 1em; margin-bottom: 1.6em; padding-top: 1em; border-top: 0.19em solid var(--encre); }
.bloc-tete .mono { color: var(--orange-texte); }
.bloc h2 {
	margin: 0;
	font-family: var(--titre);
	font-weight: 700;
	font-size: clamp(1.7em, 3vw, 2.4em);
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.intro { margin: 0 0 1.8em; font-size: 1.2em; max-width: 34em; color: var(--gris); }
.intro strong { color: var(--encre); }

/* Outils : onglets + fenêtre */
.onglets { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0 0 1.2em; padding: 0; list-style: none; }
.onglets button {
	padding: 0.55em 1.1em;
	border: 1px solid var(--trait);
	border-radius: 3em;
	background: transparent;
	color: var(--gris);
	font: 500 0.95em/1.2 var(--texte);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.onglets button:hover { border-color: var(--encre); color: var(--encre); }
.onglets button[aria-selected="true"] { background: var(--brume); border-color: var(--brume); color: var(--encre); font-weight: 700; }
.fenetre {
	border-radius: 0.9em;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--trait);
	box-shadow: 0 1.5em 3em -1.8em #13243a55;
}
.fenetre-barre { display: flex; align-items: center; gap: 0.4em; padding: 0.65em 0.9em; background: var(--brume); }
.fenetre-barre i { width: 0.65em; height: 0.65em; border-radius: 50%; background: #13243a2e; }
.fenetre-barre .mono { margin-left: 0.6em; color: var(--gris); }
.vitre { display: grid; }
.vitre > picture { grid-area: 1 / 1; display: block; transition: opacity .45s; }
.vitre > picture[hidden] { display: block; opacity: 0; visibility: hidden; }
.vitre img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* Lien vers la démonstration fonctionnelle, sous la fenêtre */
.essayer { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8em 1.2em; margin: 1.4em 0 0; }
.essayer .mono { color: var(--gris); }
/* Bouton du corps en encre : l'orange reste à « Nous écrire » (colonne gauche) */
.essayer .bouton { background: var(--encre); color: #fff; }
.essayer .bouton:hover { box-shadow: 0 0.5em 1.2em -0.5em #13243a88; }
/* Téléphone : la fenêtre devient un téléphone et montre la version téléphone de l'outil */
@media (max-width: 40em) {
	.fenetre { width: min(100%, 21em); margin: 0 auto; padding: 0.55em; border-radius: 2.6em; background: #fff; }
	.fenetre-barre { display: none; }
	.vitre { border-radius: 2.1em; overflow: hidden; border: 1px solid var(--trait); }
	.vitre img { aspect-ratio: 390 / 844; object-position: top; }
	.onglets { justify-content: center; }
	.essayer { flex-direction: column; text-align: center; }
}

/* Réalisations */
.client {
	display: grid;
	gap: 1.2em 2em;
	padding: 1.6em 1.1em;
	border-radius: 1em;
}
.client + .client { margin-top: 1em; }
.client:nth-of-type(even) { background: var(--grisé); }
.client-capture { border-radius: 0.7em; overflow: hidden; border: 1px solid var(--trait); display: block; transition: transform .3s; }
.client-capture:hover { transform: scale(1.015); }
.client-capture img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.client-tete { display: flex; align-items: center; gap: 0.9em; margin-bottom: 0.8em; }
.client-logo {
	display: grid;
	place-items: center;
	width: 3em;
	height: 3em;
	flex: none;
	border-radius: 0.6em;
	background: #fff;
	border: 1px solid var(--trait);
}
.client-logo img { width: 2.2em; height: 2.2em; object-fit: contain; }
/* Logo blanc (prévu sur fond foncé) rendu en encre */
.client-logo-act img { filter: brightness(0); }
.client h3 { margin: 0; font-family: var(--titre); font-weight: 700; font-size: 1.35em; line-height: 1.1; }
.client-lien { color: var(--orange-texte); text-decoration: none; }
.client-lien:hover { text-decoration: underline; }
.client p { margin: 0; color: var(--gris); }

/* Témoignage */
.temoin {
	max-width: 48em;
	position: relative;
	margin: 0;
	padding: 1.8em 1.4em 1.6em;
	border-left: 0.35em solid var(--orange);
	border-radius: 1em;
	background: var(--peche);
}
.temoin blockquote { margin: 0; }
.temoin blockquote p { margin: 0 0 1em; }
.temoin blockquote p:first-child { font-family: var(--titre); font-weight: 600; font-size: 1.22em; line-height: 1.35; letter-spacing: -0.01em; }
.temoin figcaption { display: flex; align-items: center; gap: 0.9em; margin-top: 1.4em; padding-top: 1.2em; border-top: 1px solid #b4520a33; }
.temoin figcaption strong { display: block; }
.temoin figcaption span span { color: var(--gris); font-size: 0.92em; }

/* Contact */
#contact-form { max-width: 44em; }
.contact-rangee { display: grid; gap: 0 1em; }
.champ { display: block; margin-bottom: 1.1em; }
.champ span { display: block; margin-bottom: 0.35em; font-weight: 600; font-size: 0.92em; }
.champ input, .champ textarea {
	width: 100%;
	padding: 0.8em 0.95em;
	border: 1px solid transparent;
	border-radius: 0.6em;
	background: var(--brume);
	color: var(--encre);
	font: 400 1em/1.4 var(--texte);
}
.champ textarea { resize: vertical; min-height: 8em; }
.champ input:focus, .champ textarea:focus { outline: 0; border-color: var(--encre); background: #fff; }
.contact-note { margin: 1.3em 0 0; font-size: 0.88em; color: var(--gris); max-width: 36em; }

/* Pied de page */
.pied { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.6em 1.4em; margin-top: 4em; padding: 1.6em 0 3em; border-top: 1px solid var(--trait); color: var(--gris); }
.pied span { margin-right: auto; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--encre); text-decoration: underline; }

/* Téléphone : la colonne gauche devient un en-tête, le plan se replie en pastilles */
@media (max-width: 63.99em) {
	.cote { padding: 1.4em 1.1em 2em; gap: 1.5em; }
	.cote h1 img { width: 4.2em; }
	.plan { display: flex; flex-wrap: wrap; gap: 0.4em; border: 0; }
	.plan a { padding: 0.4em 0.85em; border: 1px solid var(--trait); border-radius: 3em; font-size: 0.9em; }
	.plan a:hover { padding-left: 0.85em; }
	.plan a[aria-current="true"]::after { display: none; }
	.plan a span { display: none; }
}

/* Tablette et plus : deux colonnes dans les blocs */
@media (min-width: 40em) {
	.defile { padding: 0 2.5em; }
	.contact-rangee { grid-template-columns: 1fr 1fr; }
	.temoin { padding: 2.8em 2.6em 2em; }
}

/* Ordinateur : colonne gauche fixe */
@media (min-width: 64em) {
	.cote {
		position: fixed;
		inset: 0 auto 0 0;
		width: var(--gauche);
		overflow-y: auto;
		padding: 2em 2.6em 2.2em;
		gap: 1.4em;
		justify-content: space-between;
	}
	.cote h1 img { width: clamp(3.6em, 9vh, 5.2em); }
	.plan a { padding: min(0.65em, 1.1vh) 0; }
	.defile { margin-left: var(--gauche); padding: 0 4em; max-width: calc(var(--gauche) + 68em); }
	.defile > * { max-width: 60em; }
	.bloc { padding: 6em 0 1em; }
	.bloc:first-child { padding-top: 2.4em; }
	.client { padding: 2.2em 2em; }
	.client { grid-template-columns: 1.15fr 1fr; align-items: start; }
	.client:nth-of-type(even) .client-capture { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* Formulaire : piège à robots, état de l'envoi (assets/contact.js) */
.contact-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-bas { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.bouton:disabled { opacity: .6; cursor: wait; transform: none; }
.contact-etat { margin: 0; font-weight: 700; }
.contact-etat.ok { color: #2f6a2f; }
.contact-etat.erreur { color: #b3261e; }
.contact-note a, .pied-temoins { color: inherit; }

/* 05. Outils gratuits : champ du bilan, quatre outils en vitrine, lien vers /outils/ */
.bilan-accueil { max-width: 44em; padding: 1.4em; border-radius: 1.1em; background: var(--brume); }
.bilan-accueil label { display: block; margin-bottom: 0.5em; font-weight: 700; }
.bilan-accueil-rangee { display: flex; gap: 0.6em; flex-wrap: wrap; }
.bilan-accueil input {
	flex: 1 1 14em;
	min-width: 0;
	padding: 0.85em 1em;
	border: 1px solid transparent;
	border-radius: 0.7em;
	background: #fff;
	color: var(--encre);
	font: 500 1.1em/1.3 var(--mono);
}
.bilan-accueil input:focus { outline: 0; border-color: var(--encre); }
.bilan-accueil .bouton { flex: 0 0 auto; }
.outils-vedettes { display: grid; gap: 0.8em; grid-template-columns: 1fr 1fr; max-width: 44em; margin: 1.4em 0 0; padding: 0; list-style: none; }
.outils-vedettes a {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	height: 100%;
	padding: 1em 1.1em;
	border: 1px solid var(--trait);
	border-radius: 0.9em;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color .2s, transform .2s;
}
.outils-vedettes a:hover { border-color: var(--encre); transform: translateY(-0.1em); }
.outils-vedettes .mono { font-weight: 400; color: var(--orange-texte); }
.outils-tous { margin: 1.3em 0 0; }
.outils-tous a { font-weight: 700; color: var(--orange-texte); text-underline-offset: 0.2em; }
.outils-tous a:hover { color: var(--encre); }
@media (max-width: 40em) {
	.bilan-accueil { padding: 1.1em; }
	.bilan-accueil .bouton { width: 100%; justify-content: center; }
	.outils-vedettes { grid-template-columns: 1fr; }
}

/* Bouton « Témoins » du pied de page */
.pied-temoins { padding: 0; border: 0; background: none; font: inherit; text-decoration: none; cursor: pointer; }
.pied-temoins:hover { color: var(--encre); text-decoration: underline; }
.pied-temoins[hidden] { display: none; }

/* Fenêtre de consentement (assets/temoins.js) : carte flottante en bas à droite, hors de la colonne fixe */
.temoins {
	position: fixed;
	right: 1.5em;
	bottom: 1.5em;
	z-index: 20;
	width: min(24em, calc(100% - 2em));
	padding: 1.4em 1.4em 1.25em;
	border-radius: 1em;
	background: #fff;
	color: var(--encre);
	box-shadow: 0 0 0 1px var(--trait), 0 1.5em 3em -1em #13243a59;
	font-size: 0.9375em;
	animation: temoins-entree .45s cubic-bezier(.2, .8, .2, 1);
}
.temoins[hidden] { display: none; }
@keyframes temoins-entree {
	from { opacity: 0; transform: translateY(1.5em); }
	to { opacity: 1; transform: none; }
}
.temoins-tete { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.8em; }
.temoins-tete img { width: 2.25em; height: 2.25em; border-radius: 0.5em; }
.temoins-titre { margin: 0; font-family: var(--titre); font-weight: 700; font-size: 1.25em; line-height: 1.1; }
.temoins-texte { margin: 0 0 1.1em; line-height: 1.5; color: var(--gris); }
.temoins-texte a { color: var(--orange-texte); text-underline-offset: 0.2em; }
.temoins-texte code { font-family: var(--mono); font-size: 0.9em; padding: 0.05em 0.3em; border-radius: 0.3em; background: var(--brume); color: var(--encre); }
.temoins-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.temoins-actions button {
	padding: 0.7em 1em;
	border-radius: 3em;
	font: 700 1em/1.2 var(--texte);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
/* Refuser aussi visible qu'Accepter (Loi 25) */
.temoins-refuser { background: #fff; color: var(--encre); border: 1px solid var(--encre); }
.temoins-refuser:hover { background: var(--brume); }
.temoins-accepter { background: var(--orange); color: var(--encre); border: 1px solid var(--orange); }
.temoins-accepter:hover { background: #f58f3d; }
@media (max-width: 36em) {
	.temoins { left: 0.75em; right: 0.75em; bottom: 0.75em; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.temoins { animation: none; }
}

/* Page de texte (politique de confidentialité) : bandeau brume en haut, texte sur blanc */
.entete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 1.2em max(1.1em, calc((100% - 44em) / 2));
	background: var(--brume);
}
.entete-accueil { display: block; line-height: 0; }
.entete-logo { width: 4.2em; height: auto; }
.surtitre { margin: 0 0 0.6em; font-family: var(--mono); font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-texte); }
.texte {
	max-width: 44em;
	margin: 0 auto;
	padding: 3em 1.1em 4em;
	line-height: 1.65;
}
.texte h1 {
	margin: 0;
	font-family: var(--titre);
	font-weight: 700;
	font-size: clamp(2em, 5vw, 3em);
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.texte-date { margin: 0.6em 0 2em; font-size: 0.9em; color: var(--gris); }
.texte-chapeau { font-size: 1.2em; color: var(--gris); }
.texte h2 {
	margin: 2.2em 0 0.6em;
	padding-top: 1.2em;
	border-top: 1px solid var(--trait);
	font-family: var(--titre);
	font-size: 1.3em;
	line-height: 1.2;
}
.texte a { color: var(--orange-texte); text-underline-offset: 0.2em; }
.texte a:hover { color: var(--encre); }
.texte ul { padding-left: 1.2em; }
.texte li { margin-bottom: 0.4em; }
.texte code { font-family: var(--mono); font-size: 0.9em; padding: 0.05em 0.3em; border-radius: 0.3em; background: var(--brume); }
.texte-tableau { width: 100%; margin: 0.5em 0 1em; border-collapse: collapse; font-size: 0.95em; }
.texte-tableau th, .texte-tableau td { padding: 0.7em 0.8em 0.7em 0; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.texte-tableau th { font-family: var(--mono); font-size: 0.75em; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.page-texte .pied { max-width: 44em; margin: 0 auto; padding-left: 1.1em; padding-right: 1.1em; border-top: 1px solid var(--trait); }
/* Téléphone : le tableau devient une liste de fiches */
@media (max-width: 40em) {
	.texte-tableau thead { display: none; }
	.texte-tableau tr { display: block; padding: 0.8em 0; border-bottom: 1px solid var(--trait); }
	.texte-tableau td { display: block; padding: 0.15em 0; border: 0; }
}
