/* ==========================================================================
   Basile — site vitrine
   Charte reprise du front staff (cp-frontend-staff/src/plugins/vuetify.ts) :
   crème #FFF8E1, vert sauge #A1C96C, terracotta #E65100, taupe #8D7B68,
   police Fredoka, border-radius 14px.
   ========================================================================== */

/* --------------------------------------------------------- 0. Police
   Auto-hébergée pour que rien ne soit servi depuis un autre domaine.
   Fichiers extraits de https://fonts.google.com/specimen/Fredoka (v17,
   variable, axe wght 400–600 — la seule plage utilisée sur cette page).
   Voir le README, section « Mettre à jour la police ». */

@font-face {
	font-family: "Fredoka";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/fredoka-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Fredoka";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/fredoka-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------- 1. Tokens */

:root {
	--cream: #fff8e1;
	--surface: #fffbef;
	--surface-2: #fdf4dd;
	--primary: #a1c96c;
	--primary-strong: #7fae45;
	--on-primary: #2e3a16;
	--accent: #e65100;
	--accent-soft: #fbe3d2;
	--ink: #2a2419;
	--ink-soft: #6b5d4b;
	--muted: #8d7b68;
	--border: #e6dcc2;
	--border-strong: #d3c5a4;
	--shadow: 0 1px 2px rgba(74, 60, 36, .06), 0 8px 24px -12px rgba(74, 60, 36, .18);
	--shadow-lg: 0 2px 4px rgba(74, 60, 36, .07), 0 24px 48px -20px rgba(74, 60, 36, .28);

	--radius: 14px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--container: 1140px;
	--section-y: clamp(3.5rem, 7vw, 6rem);

	--font: "Fredoka", "Trebuchet MS", Verdana, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--cream: #1a1612;
		--surface: #292420;
		--surface-2: #221d19;
		--primary: #a1c96c;
		--primary-strong: #b6da86;
		--on-primary: #1a2410;
		--accent: #ff9800;
		--accent-soft: #3a2a14;
		--ink: #fff8e1;
		--ink-soft: #d9cdb6;
		--muted: #a89a86;
		--border: #3d352c;
		--border-strong: #4f463a;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .7);
	}
}

:root[data-theme="dark"] {
	--cream: #1a1612;
	--surface: #292420;
	--surface-2: #221d19;
	--primary: #a1c96c;
	--primary-strong: #b6da86;
	--on-primary: #1a2410;
	--accent: #ff9800;
	--accent-soft: #3a2a14;
	--ink: #fff8e1;
	--ink-soft: #d9cdb6;
	--muted: #a89a86;
	--border: #3d352c;
	--border-strong: #4f463a;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .7);
}

/* --------------------------------------------------------- 2. Base */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
	-webkit-text-size-adjust: 100%;
	color-scheme: light dark;
}

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

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img, svg { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; }

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

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 200;
	padding: .7rem 1.1rem;
	background: var(--surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	font-weight: 500;
	text-decoration: none;
	transition: top .15s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}

/* --------------------------------------------------------- 3. Boutons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .8rem 1.4rem;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: box-shadow .18s ease, background-color .18s ease;
}

.btn--primary {
	background: var(--primary);
	color: var(--on-primary);
	box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--primary-strong); }

.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.1rem; }
.btn--sm { padding: .55rem 1rem; font-size: .95rem; }

/* --------------------------------------------------------- 4. En-tête */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--cream) 82%, transparent);
	backdrop-filter: blur(10px) saturate(180%);
	-webkit-backdrop-filter: blur(10px) saturate(180%);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck {
	border-bottom-color: var(--border);
	box-shadow: 0 4px 20px -12px rgba(74, 60, 36, .4);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: 72px;
	padding-block: .6rem;
}

/* Identité du site + slogan (Krug : dire qui on est et ce qu'on fait) */
.brand {
	display: flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	flex-shrink: 0;
}
.brand__logo { width: 26px; color: var(--primary-strong); }
.brand__name {
	font-size: 1.45rem;
	font-weight: 600;
	letter-spacing: -.02em;
}
.brand__tagline {
	display: none;
	margin: 0 0 0 .2rem;
	padding-left: .8rem;
	border-left: 1px solid var(--border-strong);
	color: var(--ink-soft);
	font-size: .875rem;
	line-height: 1.25;
	max-width: 15rem;
}
@media (min-width: 1080px) { .brand__tagline { display: block; } }

.site-nav { margin-left: auto; }
.site-nav__list {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
}
.site-nav__link {
	display: block;
	padding: .5rem .6rem;
	border-radius: var(--radius-pill);
	color: var(--ink-soft);
	font-size: .975rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, color .15s;
}
.site-nav__link:hover { background: var(--surface); color: var(--ink); }
/* « Vous êtes ici » */
.site-nav__link[aria-current="true"] {
	background: var(--surface);
	color: var(--ink);
	font-weight: 500;
	box-shadow: inset 0 -2px 0 var(--primary);
}

.header-actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: .5rem;
	margin-left: auto;
}
.site-nav + .header-actions { margin-left: .75rem; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	color: var(--ink-soft);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* Trois modes, une icône chacun : le mode choisi pilote l'icône, pas le
   rendu clair/sombre résolu (le mode « auto » garde son icône propre,
   qu'il retombe sur clair ou sombre selon le système). */
.theme-toggle .icon-moon,
.theme-toggle .icon-auto { display: none; }
:root[data-theme-mode="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme-mode="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme-mode="auto"] .theme-toggle .icon-sun { display: none; }
:root[data-theme-mode="auto"] .theme-toggle .icon-auto { display: block; }

.nav-toggle { display: inline-flex; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

@media (max-width: 899px) {
	.site-nav {
		position: fixed;
		inset: 72px 0 auto;
		margin: 0;
		padding: .5rem 1.25rem 1.25rem;
		background: var(--cream);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-lg);
		display: none;
	}
	.site-nav[data-open="true"] { display: block; }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__link { padding: .85rem .6rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
	.header-actions .btn--header { display: none; }
}

/* --------------------------------------------------------- 5. Sections */

.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--border); }

.section__head { max-width: 44rem; margin-bottom: 2.75rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead {
	color: var(--ink-soft);
	font-size: 1.1rem;
	margin-bottom: 0;
}

.eyebrow {
	display: inline-block;
	margin-bottom: .9rem;
	padding: .25rem .75rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	color: var(--muted);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* --------------------------------------------------------- 6. Hero */

.hero {
	position: relative;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y);
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: -35% 45% auto -20%;
	height: 70vmax;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 34%, transparent), transparent);
	opacity: .55;
	pointer-events: none;
	z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}
@media (min-width: 960px) {
	.hero__grid { grid-template-columns: 1.05fr .95fr; }
}

.hero__title { margin-bottom: 1rem; }
.hero__title em {
	font-style: normal;
	color: var(--accent);
}

/* Le « blurb » de Krug : ce que c'est, en une phrase */
.hero__blurb {
	max-width: 34rem;
	font-size: 1.2rem;
	color: var(--ink-soft);
	margin-bottom: 1.75rem;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1rem;
}

.hero__note {
	display: flex;
	gap: .5rem;
	max-width: 32rem;
	color: var(--muted);
	font-size: .9rem;
	line-height: 1.5;
}
.hero__note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .18rem; }

.hero__figure {
	position: relative;
	margin: 0;
	padding-bottom: 3rem;
}
.hero__figure .shot--desktop { box-shadow: var(--shadow-lg); }
.hero__figure .shot--phone {
	position: absolute;
	right: -.5rem;
	bottom: 0;
	width: 30%;
	max-width: 168px;
	box-shadow: var(--shadow-lg);
}
@media (max-width: 599px) {
	.hero__figure { padding-bottom: 0; }
	.hero__figure .shot--phone { display: none; }
}

/* Bandeau de preuve rapide */
.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.75rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	list-style: none;
	color: var(--ink-soft);
	font-size: .95rem;
}
.hero__facts li { display: flex; align-items: center; gap: .45rem; }
.hero__facts svg { width: 17px; height: 17px; color: var(--primary-strong); }

/* --------------------------------------------------------- 7. Captures
   Les SVG dessinent déjà leur propre cadre (fond, coins arrondis, bordure) :
   la carte CSS n'ajoute qu'une ombre, sinon les deux cadres se chevauchent
   sans jamais tomber sur le même rayon ni la même couleur (coins "dédoublés"). */

.shot {
	display: block;
	box-shadow: var(--shadow);
}

/* Une image par thème, comme l'icône soleil/lune : celle qui ne correspond
   pas au thème actif est simplement masquée, jamais les deux à la fois. */
.shot--dark { display: none; }
:root[data-theme="dark"] .shot--light { display: none; }
:root[data-theme="dark"] .shot--dark { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .shot--light { display: none; }
	:root:not([data-theme="light"]) .shot--dark { display: block; }
}

figure.figure { margin: 0; }
.figure__caption {
	margin-top: 1rem;
	color: var(--ink-soft);
	font-size: .9rem;
	font-weight: 500;
	text-align: center;
}

/* --------------------------------------------------------- 8. Étapes */

.steps {
	display: grid;
	gap: 1.25rem;
	list-style: none;
	counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
	position: relative;
	padding: 1.6rem 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.step::before {
	counter-increment: step;
	content: counter(step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 1rem;
	background: var(--primary);
	color: var(--on-primary);
	border-radius: var(--radius-pill);
	font-size: 1.15rem;
	font-weight: 600;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .985rem; }

/* --------------------------------------------------------- 9. Duo texte / capture */

.duo {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}
@media (min-width: 900px) {
	.duo { grid-template-columns: 1fr 1fr; }
	.duo--flip .duo__media { order: -1; }
}
.duo + .duo { margin-top: clamp(3rem, 6vw, 5rem); }

.duo__body h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.duo__body > p { color: var(--ink-soft); }

.duo__media--phone { display: flex; flex-direction: column; align-items: center; }
.duo__media--phone .shot { max-width: 320px; }

.checklist {
	list-style: none;
	margin-top: 1.25rem;
	display: grid;
	gap: .7rem;
}
.checklist li {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: .65rem;
	align-items: start;
	font-size: 1rem;
}
.checklist svg {
	width: 22px;
	height: 22px;
	margin-top: .15rem;
	color: var(--primary-strong);
}
.checklist strong { font-weight: 600; }
.checklist span { color: var(--ink-soft); }

/* --------------------------------------------------------- 10. Grille de fonctionnalités */

.features {
	display: grid;
	gap: 1.1rem;
	list-style: none;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
	padding: 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color .18s, transform .18s, box-shadow .18s;
}
.feature:hover {
	border-color: var(--border-strong);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}
.feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: .9rem;
	background: color-mix(in srgb, var(--primary) 22%, transparent);
	border-radius: var(--radius-sm);
	color: var(--primary-strong);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* --------------------------------------------------------- 10 bis. Galerie */

.gallery {
	display: grid;
	gap: 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	list-style: none;
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------- 11. Tarifs */

.pricing {
	display: grid;
	gap: 1.25rem;
	list-style: none;
	align-items: stretch;
}
@media (min-width: 820px) { .pricing { grid-template-columns: repeat(3, 1fr); } }

.plan {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.plan--featured {
	border-color: var(--primary);
	box-shadow: var(--shadow);
}
.plan__badge {
	align-self: flex-start;
	margin-bottom: .75rem;
	padding: .2rem .7rem;
	background: var(--primary);
	color: var(--on-primary);
	border-radius: var(--radius-pill);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.plan h3 { margin-bottom: .25rem; }
.plan__pitch { color: var(--muted); font-size: .95rem; }
.plan__price {
	display: flex;
	align-items: baseline;
	gap: .4rem;
	margin: 1.1rem 0 1.25rem;
	font-size: 2.1rem;
	font-weight: 600;
	line-height: 1;
}
.plan__price small { color: var(--muted); font-size: .95rem; font-weight: 400; }
.plan__features {
	list-style: none;
	display: grid;
	gap: .55rem;
	margin-bottom: 1.5rem;
	font-size: .96rem;
	color: var(--ink-soft);
}
.plan__features li { display: grid; grid-template-columns: 20px 1fr; gap: .55rem; }
.plan__features svg { width: 20px; height: 20px; margin-top: .15rem; color: var(--primary-strong); }
.plan .btn { margin-top: auto; }

.notice {
	display: flex;
	gap: .7rem;
	max-width: 46rem;
	margin: 0 auto 2.25rem;
	padding: .9rem 1.1rem;
	background: var(--accent-soft);
	border: 1px dashed var(--accent);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: .95rem;
	text-align: left;
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .2rem; color: var(--accent); }

/* --------------------------------------------------------- 12. FAQ */

.faq { max-width: 46rem; margin-inline: auto; }

.faq__item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: .75rem;
	overflow: hidden;
}
.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.25rem;
	font-size: 1.05rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__item summary:hover { background: var(--surface-2); }
.faq__answer {
	padding: 0 1.25rem 1.15rem;
	color: var(--ink-soft);
	font-size: 1rem;
}

/* --------------------------------------------------------- 13. CTA final */

.cta-band {
	padding: clamp(2.5rem, 5vw, 3.5rem);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-align: center;
	box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { max-width: 34rem; margin-inline: auto; color: var(--ink-soft); }
.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
	margin-top: 1.75rem;
}

/* --------------------------------------------------------- 14. Pied de page */

.site-footer {
	padding-block: 3rem 2rem;
	border-top: 1px solid var(--border);
	background: var(--surface-2);
	font-size: .95rem;
}
.site-footer__grid {
	display: grid;
	gap: 2rem;
	margin-bottom: 2.25rem;
}
@media (min-width: 760px) {
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.site-footer__about { max-width: 26rem; color: var(--ink-soft); }
.site-footer h2 {
	margin-bottom: .8rem;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	justify-content: space-between;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: .875rem;
}
