/* moctel.com — feuille de style du site public.
   Couleurs tirées du logo (#3771c8, #162d50). Une seule famille : Archivo, axe de largeur pour les titres. */

@font-face {
	font-family: "Archivo";
	src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	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;
}
@font-face {
	font-family: "Archivo";
	src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ink: #162d50;
	--ink-2: #34445e;
	--graphite: #56627a;
	--signal: #3771c8;      /* logo; traits, grands éléments */
	--signal-text: #2c5fae; /* liens et boutons sur fond clair (contraste AA) */
	--signal-light: #8db3ee; /* sur fond foncé */
	--paper: #ffffff;
	--tint: #eef3fa;
	--line: #cfd9e7;
	--danger: #b3261e;
	--warn: #8a5300;
	--warn-line: #d9a03a;
	--field-line: #a9b6ca;

	--font: "Archivo", "Liberation Sans", Arial, sans-serif;
	--wide: 118%;
	--wrap: 72rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}
@media (min-width: 60em) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; height: auto; }
a { color: var(--signal-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-stretch: var(--wide); line-height: 1.08; letter-spacing: -.015em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 780; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; font-stretch: 108%; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2em; line-height: 1.5; color: var(--ink-2); max-width: 36em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 10; }
.skip:focus { left: 0; }

/* Boutons */
.btn {
	display: inline-block;
	padding: .8em 1.4em;
	border: 2px solid var(--signal-text);
	border-radius: var(--radius);
	background: var(--signal-text);
	color: #fff;
	font: inherit;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 2rem; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__in { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: block; margin-right: auto; padding: .5rem 0; }
.brand img { display: block; width: 140px; height: auto; }
@media (max-width: 56em) { .brand img { width: 120px; } }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 560; font-size: .95rem; }
.site-nav ul a { display: block; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--signal); }
.site-nav__phone { font-stretch: var(--wide); font-weight: 700; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 56em) {
	.nav-toggle {
		display: block; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink);
		background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45em .9em; cursor: pointer;
	}
	.site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 0 0 1.25rem; }
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; width: 100%; }
	.site-nav ul a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
	.site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--signal-text); }
}
/* Sans JavaScript, le menu reste visible. */
@media (max-width: 56em) { html:not(.js) .site-nav { display: flex; } html:not(.js) .nav-toggle { display: none; } }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--tint); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 + p { margin-top: 1rem; }

/* Accueil : bandeau principal */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60em) { .hero__grid { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 1.5rem; }

/* Le schéma : une ligne, de votre entreprise vers chaque canal. */
.routing { width: 100%; max-width: 34rem; justify-self: center; }
.routing text { font-family: var(--font); fill: var(--ink); }
.routing .lbl { font-size: 17px; font-weight: 640; font-stretch: var(--wide); }
.routing .lbl--src { font-size: 14px; font-weight: 560; fill: var(--graphite); font-stretch: 100%; }
.routing .trace { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }
.routing .trace--trunk { stroke: var(--ink); stroke-width: 4; }
.routing .node { fill: var(--signal); }
.routing .hub { fill: var(--ink); }
.routing .hub-txt { fill: #fff; font-size: 13px; font-weight: 700; font-stretch: var(--wide); }

@media (prefers-reduced-motion: no-preference) {
	.routing .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace .7s cubic-bezier(.5, 0, .2, 1) forwards; }
	.routing .trace--trunk { animation-duration: .6s; animation-delay: .2s; }
	.routing .branch .trace { animation-delay: calc(.75s + var(--i) * .09s); }
	.routing .branch .node, .routing .branch text { opacity: 0; animation: appear .35s ease-out forwards; animation-delay: calc(1.25s + var(--i) * .09s); }
	@keyframes trace { to { stroke-dashoffset: 0; } }
	@keyframes appear { to { opacity: 1; } }
}

/* Les deux offres */
.offers { display: grid; gap: 3rem; }
@media (min-width: 52em) {
	.offers { grid-template-columns: 1fr 1fr; gap: 0; }
	.offer + .offer { border-left: 1px solid var(--line); padding-left: clamp(2rem, 4vw, 3.5rem); }
	.offer:first-child { padding-right: clamp(2rem, 4vw, 3.5rem); }
}
.offer h2 { margin-bottom: 1rem; }
.offer > p { color: var(--ink-2); }

.ticks, .prose .ticks { list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 1rem; height: 2px; background: var(--signal); }

/* Pourquoi MocTel */
.facts { display: grid; gap: 2rem; margin: 0; }
@media (min-width: 52em) { .facts { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.facts dt { font-stretch: var(--wide); font-weight: 720; font-size: 1.3rem; line-height: 1.2; padding-top: 1rem; border-top: 3px solid var(--ink); }
.facts dd { margin: .6rem 0 0; color: var(--ink-2); }

/* Pages intérieures */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 1.25rem; }
.prose { max-width: 42rem; }
/* Sur une page sans colonne latérale : aligné à gauche avec le titre, largeur de lecture conservée. */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 42rem; }
.prose h2 { margin: 2.5em 0 .6em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose code { font-size: .9em; background: var(--tint); padding: .1em .35em; border-radius: 3px; }

.split { display: grid; gap: 3rem; }
@media (min-width: 60em) { .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 5rem; } }
.aside h2 { font-size: 1.25rem; margin-bottom: .75rem; }

/* Étapes : contenu réellement séquentiel */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 2rem; }
@media (min-width: 52em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { counter-increment: step; }
.steps li::before {
	content: counter(step); display: block; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem;
	border: 2px solid var(--signal); border-radius: 50%; text-align: center; line-height: 2.1rem;
	font-weight: 700; color: var(--signal-text);
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--ink-2); margin: 0; }

/* Liste de canaux (développement) */
.channels { display: grid; gap: 0 3rem; margin: 0; }
@media (min-width: 52em) { .channels { grid-template-columns: 1fr 1fr; } }
.channels div { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.channels dt { font-weight: 700; font-stretch: var(--wide); font-size: 1.15rem; }
.channels dd { margin: .35rem 0 0; color: var(--ink-2); }

/* Coordonnées */
.contact-list { margin: 0 0 2rem; }
.contact-list div { padding: .8rem 0; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .9rem; color: var(--graphite); }
.contact-list dd { margin: .1rem 0 0; font-weight: 640; font-size: 1.1rem; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.big-number { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 780; font-stretch: var(--wide); letter-spacing: -.02em; line-height: 1.1; }
.big-number a { color: var(--ink); text-decoration: none; }

/* Bandeau d'appel à l'action + formulaire */
.cta { background: var(--ink); color: #dbe5f3; }
.cta h2 { color: #fff; }
.cta a { color: var(--signal-light); }
.cta .lead { color: #dbe5f3; margin-top: 1.25rem; }
.cta__grid { display: grid; gap: 3rem; }
@media (min-width: 60em) { .cta__grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }

/* Formulaire de contact */
.form-panel { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.cta .form-panel { border-color: transparent; }
.cta .form-panel a { color: var(--signal-text); }
.cta .form-panel h2 { color: var(--ink); }
.form-panel__title { font-size: 1.35rem; margin-bottom: .35rem; }
.form-panel__intro { color: var(--graphite); font-size: .95rem; margin-bottom: 1.5rem; }

.form { display: grid; gap: 1.35rem; }
.form .row { display: grid; gap: 1.35rem; }
@media (min-width: 40em) { .form .row { grid-template-columns: 1fr 1fr; } }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; }

.field label, .group-label { display: block; font-weight: 640; font-size: .95rem; margin-bottom: .4rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--graphite); }
.group-hint { display: block; font-size: .875rem; color: var(--graphite); margin: -.15rem 0 .75rem; }
.field input, .field textarea {
	display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
	border: 1px solid var(--field-line); border-radius: 8px; padding: .75em .9em; min-height: 3rem;
	transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8592a8; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(55, 113, 200, .25); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field.is-warning input { border-color: var(--warn-line); }
.field.is-valid input { border-color: #3c8a5a; }

.msg { display: none; position: relative; padding-left: 1.6rem; margin: .45rem 0 0; font-size: .875rem; line-height: 1.4; }
.msg::before { content: "!"; position: absolute; left: 0; top: .05rem; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; font-size: .75rem; font-weight: 800; color: #fff; }
.msg.is-error { display: block; color: var(--danger); }
.msg.is-error::before { background: var(--danger); }
.msg.is-warning { display: block; color: var(--warn); }
.msg.is-warning::before { background: var(--warn-line); }
.msg button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label { display: flex; align-items: center; gap: .55rem; margin: 0; font-weight: 520; font-size: .95rem; padding: .6em 1em; border: 1px solid var(--field-line); border-radius: 999px; cursor: pointer; background: #fff; }
.choices label:hover { border-color: var(--ink-2); }
.choices input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--signal-text); }
.choices label:has(input:checked) { border-color: var(--signal); background: #eef3fa; box-shadow: inset 0 0 0 1px var(--signal); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form-foot .btn { min-width: 12rem; }
.form-foot p { margin: 0; font-size: .85rem; color: var(--graphite); max-width: 22rem; }
@media (max-width: 40em) { .form-foot .btn { width: 100%; } }

.form-errors { border: 1px solid var(--danger); border-left-width: 4px; border-radius: 8px; background: #fdf3f2; color: var(--ink); padding: .9rem 1.1rem; }
.form-errors p { margin: 0; font-weight: 640; }
.form-errors ul { margin: .4rem 0 0; padding-left: 1.2em; }
.form-errors a { color: var(--danger); }
.form-sent { border-left: 4px solid var(--signal); border-radius: 8px; background: #eef3fa; color: var(--ink); padding: 1.25rem 1.4rem; }
.form-sent h3 { margin-bottom: .4rem; }
.form-sent p { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tel-digits { font-weight: 400; white-space: nowrap; }

/* Téléchargements MocTel Vox */
.downloads { display: grid; gap: 1.25rem; margin: 2rem 0; }
.download { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.download.is-mine { border-color: var(--signal); box-shadow: inset 4px 0 0 var(--signal); }
.download h2 { font-size: 1.4rem; margin: 0 0 .25rem; }
.download .meta { color: var(--graphite); font-size: .95rem; margin-bottom: 1rem; }
.download ol { margin: 1.25rem 0 0; padding-left: 1.3em; }
.download li { margin-bottom: .4em; }
.download .soon { color: var(--graphite); font-style: italic; margin: 0; }
.download .sha { color: var(--graphite); font-size: .8rem; word-break: break-all; margin: 1rem 0 0; }
.download code { font-size: .9em; background: var(--tint); padding: .1em .35em; border-radius: 3px; }

/* Documents légaux */
.doc-list, .prose .doc-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.doc-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 1px solid var(--line); }
.doc-list .doc-title { font-weight: 680; font-size: 1.1rem; }
.doc-list .doc-meta { display: block; color: var(--graphite); font-size: .95rem; margin-top: .2rem; }
.note { font-size: .95rem; color: var(--graphite); }

/* Pied de page */
.site-footer { background: var(--ink); color: #c0cde0; font-size: .95rem; padding-top: 3.5rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: .95rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0; color: #fff; margin-bottom: .6rem; }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 52em) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__logo { display: block; margin-bottom: 1rem; }
.site-footer__grid p { max-width: 24em; margin: 0; line-height: 1.8; }
.site-footer__legal { border-top: 1px solid #2c4670; padding-block: 1.5rem 2rem; font-size: .85rem; color: #a3b3cb; }
.site-footer__legal p { max-width: 60em; margin-bottom: .6em; }
.site-footer__legal a { color: #dbe5f3; }
