/* ==========================================================================
   English with Nessy — Design system
   Palette: Ink & Amber · Type: Fraunces (display) + Inter (text)
   ========================================================================== */

:root {
	--bg: #FCFBF9;
	--surface: #FFFFFF;
	--panel: #F5F0E7;          /* warm sand panel */
	--ink: #1C2A3A;            /* deep navy — headings & text */
	--ink-soft: #5A6472;       /* muted body / captions */
	--line: #E7E3DB;           /* hairline borders */
	--amber: #D89A3E;          /* primary accent */
	--amber-deep: #B87E28;     /* accent hover / links on light */
	--navy-deep: #16222F;      /* dark sections & footer */
	--navy-soft: #24384B;

	--radius: 16px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--container: 1120px;
	--shadow: 0 1px 2px rgba(28,42,58,.04), 0 12px 32px -12px rgba(28,42,58,.14);
	--shadow-sm: 0 1px 2px rgba(28,42,58,.05), 0 6px 16px -10px rgba(28,42,58,.16);

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin: 0 0 .5em;
}
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.1em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.display {
	font-size: clamp(2.4rem, 5.2vw, 4rem);
	font-weight: 480;
	letter-spacing: -0.02em;
}
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); }
.eyebrow {
	font-family: var(--font-body);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--amber-deep);
	margin: 0 0 1rem;
	display: inline-flex;
	align-items: center;
	gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--amber); display: inline-block; }
.center .eyebrow { justify-content: center; }
.muted { color: var(--ink-soft); }
.serif-accent { font-family: var(--font-display); font-style: italic; color: var(--amber-deep); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55rem;
	font-family: var(--font-body); font-size: 1rem; font-weight: 600;
	line-height: 1; padding: 15px 26px; border-radius: var(--radius-pill);
	border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
	text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber); color: var(--navy-deep); box-shadow: 0 8px 20px -10px rgba(216,154,62,.9); }
.btn-primary:hover { background: var(--amber-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 4px; }
.btn-ghost:hover { color: var(--amber-deep); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-on-dark.btn-outline { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-on-dark.btn-outline:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(252,251,249,.82);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(252,251,249,.95); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
/* Logo lockup: script "English" + "with nessy" caps between dashes */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-script { font-family: "Great Vibes", cursive; font-weight: 400; font-size: 2.2rem; line-height: .78; color: var(--ink); }
.logo-sub {
	display: flex; align-items: center; gap: 7px; margin-top: 4px; padding-left: .32em;
	font-family: var(--font-body); text-transform: uppercase; letter-spacing: .32em;
	font-size: .56rem; font-weight: 600; color: var(--amber-deep);
}
.logo-dash { width: 15px; height: 1.5px; background: currentColor; display: block; }
.site-header.scrolled .logo-script { color: var(--ink); }
.brand-mark {
	width: 40px; height: 40px; border-radius: 11px; flex: none;
	display: grid; place-items: center;
	background: var(--navy-deep); color: var(--amber);
	font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
}
.brand-mark span { transform: translateY(1px); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
	font-family: var(--font-body); font-size: .96rem; font-weight: 500; color: var(--ink);
	padding: 9px 14px; border-radius: var(--radius-pill); transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { text-decoration: none; background: rgba(28,42,58,.05); }
.nav-links a.active { color: var(--amber-deep); }
.nav-links .btn { display: none; }   /* in-menu CTA: mobile only */
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
	background: var(--surface); cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(60% 55% at 82% 8%, rgba(216,154,62,.13), transparent 60%),
		radial-gradient(50% 50% at 0% 100%, rgba(28,42,58,.05), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .5rem; }

/* Floating illustration (transparent PNG/WebP with soft halo) */
.illus { position: relative; max-width: 500px; margin-inline: auto; }
.illus img { width: 100%; height: auto; display: block; }
.illus-badge {
	position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); white-space: nowrap;
	background: rgba(252,251,249,.94); backdrop-filter: blur(6px); border: 1px solid var(--line);
	border-radius: var(--radius-pill); padding: 8px 16px; box-shadow: var(--shadow-sm);
	font-size: .85rem; display: inline-flex; align-items: center; gap: 8px;
}
.illus-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #57a05a; flex: none; box-shadow: 0 0 0 4px rgba(87,160,90,.16); }
.illus-badge strong { font-weight: 600; }

/* Portrait / visual card */
.portrait {
	position: relative; border-radius: 24px; overflow: hidden; background: var(--panel);
	aspect-ratio: 4 / 5; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
	position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
	background: linear-gradient(160deg, var(--navy-deep), var(--navy-soft));
	color: #fff; padding: 24px;
}
.portrait-fallback .mono { font-family: var(--font-display); font-size: 3.4rem; color: var(--amber); line-height: 1; margin-bottom: .3em; }
.portrait-badge {
	position: absolute; left: 18px; bottom: 18px; right: 18px;
	background: rgba(252,251,249,.94); backdrop-filter: blur(6px);
	border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm);
	display: flex; align-items: center; gap: 12px; font-size: .9rem;
}
.portrait-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #57a05a; flex: none; box-shadow: 0 0 0 4px rgba(87,160,90,.16); }
.portrait-badge strong { font-family: var(--font-body); font-weight: 600; }

/* ---------- Generic sections ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.center .section-head { margin-inline: auto; }
.bg-panel { background: var(--panel); }
.bg-surface { background: var(--surface); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
	width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
	background: rgba(216,154,62,.14); color: var(--amber-deep); margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.check-list li p { margin: 0; }
.check-list .tick {
	width: 24px; height: 24px; border-radius: 50%; background: rgba(216,154,62,.16);
	display: grid; place-items: center; margin-top: 4px; flex: none;
}
.check-list .tick svg { width: 13px; height: 13px; color: var(--amber-deep); }
.check-list strong { display: block; }

/* Definition rows */
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.spec-list li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: 1px solid var(--line); }
.spec-list .key { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.spec-list .val { color: var(--ink-soft); }
.spec-list .val strong { color: var(--ink); font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
	position: relative; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column;
	box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: var(--amber); box-shadow: var(--shadow); }
.price-card.featured::before {
	content: "Le plus choisi"; position: absolute; top: -13px; left: 28px;
	background: var(--amber); color: var(--navy-deep); font-size: .72rem; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill);
}
.price-card .tier { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 2px; }
.price-card .hours { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); line-height: 1; }
.price-card .amount span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); }
.price-card .tagline { font-style: italic; color: var(--amber-deep); margin: 14px 0 8px; }
.price-card .desc { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.price-card .btn { margin-top: 22px; justify-content: center; }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; }
.step .num {
	font-family: var(--font-display); font-size: 1.05rem; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; background: var(--navy-deep); color: var(--amber); margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Quote / method banner ---------- */
.quote {
	background: var(--navy-deep); color: #fff; border-radius: 24px; padding: clamp(36px, 6vw, 64px);
	position: relative; overflow: hidden;
}
.quote::before { content: "\201C"; position: absolute; top: -.1em; left: .18em; font-family: var(--font-display); font-size: 12rem; color: rgba(216,154,62,.22); line-height: 1; }
.quote p { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; color: #fff; position: relative; margin: 0; }
.quote .cite { margin-top: 20px; font-family: var(--font-body); font-size: .95rem; color: rgba(255,255,255,.7); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .visual { border-radius: 22px; overflow: hidden; background: var(--panel); aspect-ratio: 5/4; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
	width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(216,154,62,.18); }
.options { display: grid; gap: 10px; }
.option {
	display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line);
	border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.option:hover { border-color: var(--amber); background: rgba(216,154,62,.05); }
.option input { accent-color: var(--amber-deep); width: 18px; height: 18px; flex: none; }
.option:has(input:checked) { border-color: var(--amber); background: rgba(216,154,62,.09); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
fieldset legend { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 14px; padding: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--navy-deep), var(--navy-soft)); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.78); max-width: 46ch; margin-inline: auto; }
.cta-band .btn-primary { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding-block: 64px 32px; margin-top: 8px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .logo-script { color: #fff; }
.site-footer .logo-sub { color: var(--amber); }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-about { max-width: 34ch; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero .portrait { max-width: 420px; margin-inline: auto; }
	.split { grid-template-columns: 1fr; }
	.grid-3, .pricing { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.nav-links {
		position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
		background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
		transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
	}
	.nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
	.nav-links a { padding: 12px 8px; font-size: 1.05rem; }
	.nav .nav-cta .btn { display: none; }
	.nav-links .btn { display: inline-flex; justify-content: center; margin-top: 8px; }
}
@media (max-width: 600px) {
	body { font-size: 17px; }
	.grid-2, .steps { grid-template-columns: 1fr; }
	.spec-list li { grid-template-columns: 1fr; gap: 4px; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero-actions .btn { width: 100%; justify-content: center; }
}
