/* ==========================================================================
   Surfin'Web — thème sur mesure
   Palette « océan / sable / soleil » : bleu du logo, fond sable, surligneur jaune.
   ========================================================================== */

/* ---------- Police (hébergée localement) ---------- */
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url(../fonts/outfit-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;
}
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url(../fonts/outfit-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;
}

/* ---------- Variables ---------- */
:root {
	--white: #ffffff;
	--sand: #f6f1ea;          /* fond chaud */
	--sand-2: #efe7dc;
	--text: #161616;
	--muted: #6b6b6b;
	--line: #e6ddd1;
	--primary: #1a7cc4;       /* bleu du logo, lisible en blanc */
	--primary-dark: #13639e;
	--primary-tint: #e3f1fb;
	--sun: #fff172;           /* surligneur */
	--ok: #1a7f4b;
	--err: #b42318;

	--font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-s: 14px;
	--r-l: 32px;
	--wave: #3fb5e8;
	--shadow: 0 24px 48px -28px rgba(22, 22, 22, .28);
	--shadow-blue: 0 24px 48px -24px rgba(26, 124, 196, .45);
	--pill: 999px;
	--gutter: clamp(16px, 4vw, 40px);
	--maxw: 1280px;
	--section: clamp(64px, 8vw, 110px);
	--header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
p { margin: 0 0 1em; }
strong, b { font-weight: 500; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
mark { background: var(--sun); color: var(--text); padding: 0 .2em; font-weight: 500; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.breadcrumbs { margin-bottom: 20px; font-size: .92rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .breadcrumb_last { color: var(--text); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--text); color: #fff; padding: 8px 16px; border-radius: var(--pill); }
.skip-link:focus { top: 12px; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--sand { background: var(--sand); }
.accent { color: var(--primary); }
.lead { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.45; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Titres « petit mot + grand titre » ---------- */
.title { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.title__prefix {
	display: inline-block;
	margin-right: .15em;
	font-size: .5em;
	font-weight: 400;
	vertical-align: .55em;
	line-height: 1.2;
	background: linear-gradient(var(--sun), var(--sun)) left bottom / 100% 5px no-repeat;
	padding-bottom: 4px;
}
.section-head { max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .title { margin-bottom: 24px; }
.section-head p:not(.lead) { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: 52px;
	padding: 8px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--pill);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn:has(.btn__icon) { padding-right: 9px; }
.btn__icon {
	display: grid; place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--white);
	color: var(--text);
	transition: transform .25s;
}
.btn__icon .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 24px -10px rgba(26, 124, 196, .7); }
.btn--primary .btn__icon { color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); }
.btn--dark { background: var(--text); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn--light { background: var(--white); color: var(--text); }
.btn--light .btn__icon { background: var(--primary); color: var(--white); }
.btn--light:hover { color: var(--primary); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--sm { min-height: 44px; font-size: .98rem; }
.btn--sm .btn__icon { width: 28px; height: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn-row--center { justify-content: center; margin-top: 48px; }

.icon { width: 24px; height: 24px; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 3px 12px; border-radius: var(--pill); background: var(--primary-tint); color: var(--primary-dark); font-size: .85rem; font-weight: 400; }

/* ---------- En-tête : pilule flottante ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.site-header__inner {
	position: relative;
	display: flex; align-items: center; gap: 24px;
	max-width: calc(var(--maxw) - 2 * var(--gutter));
	height: 70px;
	padding: 0 8px 0 20px;
	border: 1px solid rgba(22, 22, 22, .07);
	border-radius: var(--pill);
	background: rgba(255, 255, 255, .72);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	pointer-events: auto;
	transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled .site-header__inner { background: rgba(255, 255, 255, .88); box-shadow: var(--shadow); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); margin-right: auto; }
.brand__logo { width: 34px; height: auto; }
.brand__name { display: flex; flex-direction: column; font-size: 1.45rem; font-weight: 700; line-height: .9; letter-spacing: .02em; text-transform: uppercase; }
.brand__name small { font-size: .55rem; font-weight: 500; letter-spacing: .08em; }

.nav__list { display: flex; gap: 2px; }
.nav__list a {
	display: block;
	padding: 8px 14px;
	border-radius: var(--pill);
	font-size: .92rem;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--text);
	transition: background-color .2s;
}
.nav__list a:hover { background: rgba(22, 22, 22, .05); }
.nav__list a.is-active { background: var(--sun); }
.header-cta { margin-left: 12px; min-height: 52px; }

.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--text); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
	position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--white);
	transition: transform .2s, background-color .2s;
}
.burger span { top: 21px; }
.burger span::before, .burger span::after { content: ""; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
	.site-header__inner { height: 62px; padding-right: 9px; }
	.burger { display: block; }
	.header-cta { display: none; }
	.nav {
		position: absolute; top: calc(100% + 10px); left: 0; right: 0;
		background: var(--white);
		border: 1px solid rgba(22, 22, 22, .07);
		border-radius: 24px;
		padding: 12px;
		box-shadow: var(--shadow);
		display: none;
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav__list a { padding: 12px 10px; font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero, .page-hero {
	position: relative;
	isolation: isolate;
	background:
		radial-gradient(55% 60% at 88% 8%, rgba(63, 181, 232, .28), transparent 70%),
		radial-gradient(40% 55% at 0% 100%, rgba(255, 241, 114, .45), transparent 70%),
		var(--sand);
	overflow: hidden;
}
.hero::before, .page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(rgba(22, 22, 22, .09) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}
.hero { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 28px; }
.hero__light { display: block; font-weight: 200; }
.hero__strong { display: block; font-weight: 500; }
.hero__typed {
	white-space: nowrap; min-height: 1.08em; padding-bottom: .08em;
	background: linear-gradient(90deg, var(--primary), var(--wave));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__typed::after { content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 4px; vertical-align: -.05em; background: var(--primary); opacity: .5; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__tagline { max-width: 560px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .01em; }
.hero__tagline mark { padding: 2px 6px; }
.hero__location { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; font-size: 1rem; color: var(--muted); }
.hero__location .icon { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.hero__location strong { color: var(--text); }

.hero__visual {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	grid-template-areas: "photo mock" "chips mock";
	gap: 20px;
	align-items: end;
}
.hero__card { margin: 0; border-radius: var(--r-l); background: var(--primary); overflow: hidden; box-shadow: var(--shadow); }
.hero__card--photo { transform: rotate(-1.5deg); }
.hero__card--mockup { transform: rotate(1.5deg); }
.hero__card--photo { grid-area: photo; aspect-ratio: 4 / 5; }
.hero__card--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__card--mockup { grid-area: mock; align-self: center; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 10px; background: linear-gradient(160deg, #3fb5e8, var(--primary)); }
.hero__card--mockup img { width: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); }
.hero__chips { grid-area: chips; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { margin: 0; padding: 10px 14px; border: 1.5px solid var(--primary); border-radius: var(--r-s); color: var(--primary); font-size: 1.1rem; line-height: 1.15; font-weight: 300; }
.chip strong { font-weight: 600; }
.chip span { display: block; }
.chip--filled { background: var(--primary); color: var(--white); }

.clients { padding-block: clamp(40px, 5vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.clients__label { margin: 0 0 22px; text-align: center; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.clients__marquee {
	display: flex; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients__list { display: flex; flex-shrink: 0; gap: 64px; padding-right: 64px; animation: clients 38s linear infinite; }
.clients__marquee:hover .clients__list { animation-play-state: paused; }
.clients__list a { white-space: nowrap; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; color: #b3aa9e; transition: color .2s; }
.clients__list a:hover { color: var(--primary); }
@keyframes clients { to { transform: translateX(-100%); } }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { max-width: 560px; }
}
@media (max-width: 480px) {
	.hero__chips { grid-template-columns: 1fr; }
	.chip { font-size: 1rem; }
}

/* ---------- Panneau présentation ---------- */
.panel { padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 72px); border-radius: var(--r-l); background: var(--sand); }
.panel > .title { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.panel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 5vw, 64px); font-size: 1.2rem; }
.panel__cols .lead { font-size: 1.3rem; }
.panel__cols .btn { margin-top: 8px; }
@media (max-width: 800px) { .panel__cols { grid-template-columns: 1fr; } }

/* ---------- Services (bento) ---------- */
.bento { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.tile {
	display: flex; flex-direction: column; align-items: flex-start;
	padding: clamp(28px, 3vw, 40px);
	border: 1px solid transparent;
	border-radius: var(--r-l);
	background: var(--sand);
	transition: transform .35s, box-shadow .35s, border-color .35s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(22, 22, 22, .06); }
.tile__top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 28px; }
.tile__num { font-size: .95rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile__icon, .feature__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--white); color: var(--primary); }
.tile__icon .icon { width: 26px; height: 26px; }
.tile__title { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.tile p { flex: 1; color: var(--muted); }
.tile .btn { margin-top: 12px; }
.tile--feature {
	grid-row: span 2;
	justify-content: flex-end;
	min-height: 460px;
	color: var(--white);
	background:
		radial-gradient(70% 60% at 100% 0%, rgba(63, 181, 232, .75), transparent 70%),
		linear-gradient(160deg, var(--primary), var(--primary-dark));
}
.tile--feature { position: relative; overflow: hidden; isolation: isolate; }
.tile__deco {
	position: absolute; z-index: -1; right: -12%; top: 6%;
	width: 62%; max-width: 360px;
	filter: brightness(0) invert(1);
	opacity: .13;
	transform: rotate(-8deg);
	transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .4s;
	pointer-events: none;
}
.tile--feature:hover .tile__deco { transform: rotate(0deg) scale(1.05); opacity: .18; }
.tile--feature .tile__top { margin-bottom: auto; padding-bottom: 40px; }
.tile--feature .tile__icon { background: rgba(255, 255, 255, .16); color: var(--white); }
.tile--feature .tile__num { color: rgba(255, 255, 255, .7); }
.tile--feature .tile__title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.tile--feature p { flex: 0; color: rgba(255, 255, 255, .85); max-width: 460px; }
.tile--feature:hover { box-shadow: var(--shadow-blue); }
@media (max-width: 860px) {
	.bento { grid-template-columns: 1fr; }
	.tile--feature { grid-row: auto; min-height: 0; }
}

/* ---------- Atouts ---------- */
.feature { padding: 28px; border: 1px solid rgba(22, 22, 22, .06); border-radius: var(--r-l); background: var(--white); transition: transform .35s, box-shadow .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { margin-bottom: 22px; background: linear-gradient(135deg, var(--primary-tint), #fffbd1); }
.feature h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- Cartes projets ---------- */
.card { display: flex; flex-direction: column; padding: 10px; border: 1px solid rgba(22, 22, 22, .06); border-radius: var(--r-l); background: var(--sand); color: var(--text); transition: transform .35s, box-shadow .35s; }
.card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--r-l) - 10px); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { position: absolute; top: 16px; left: 16px; padding: 4px 14px; border-radius: var(--pill); background: var(--sun); font-size: .9rem; font-weight: 500; }
.card__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2.4vw, 26px) clamp(14px, 2vw, 22px) 14px; flex: 1; }
.card__title { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.card__body p { margin: 0; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 500; color: var(--primary); }
.card__link .icon { width: 20px; transition: transform .2s; }
.card:hover .card__link .icon { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center;
	padding: clamp(28px, 5vw, 64px);
	border-radius: var(--r-l);
	background:
		radial-gradient(55% 70% at 100% 0%, rgba(63, 181, 232, .7), transparent 70%),
		linear-gradient(160deg, var(--primary), var(--primary-dark));
	color: var(--white);
	box-shadow: var(--shadow-blue);
}
.contact .title { margin-bottom: 20px; }
.contact .title__prefix { color: var(--white); }
.contact .lead mark { color: var(--text); }
.contact__mail { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.contact__mail:hover { color: var(--sun); border-color: var(--sun); }

.form { padding: clamp(24px, 3vw, 36px); border-radius: calc(var(--r-l) - 6px); background: var(--white); color: var(--text); }
/* Contact Form 7 */
/* Espacement indépendant du balisage généré par CF7 (paragraphes, <br>, espaces). */
.form--cf7 .wpcf7-form p { margin: 0; }
.form--cf7 .wpcf7-form br { display: none; }
.form--cf7 .hidden-fields-container { display: none; }
.form--cf7 label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: .98rem; font-weight: 400; }
.form--cf7 .row { margin-bottom: 14px; }
.form--cf7 .row label { margin-bottom: 0; }
.form--cf7 .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form--cf7 .wpcf7-form-control-wrap { display: block; }
.form--cf7 input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.form--cf7 textarea,
.form--cf7 select {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-s);
	background: var(--sand);
	font-weight: 400;
	transition: border-color .2s, background-color .2s;
}
.form--cf7 textarea { resize: vertical; height: 150px; min-height: 120px; }
.form--cf7 ::placeholder { color: #8a8378; opacity: 1; }
.form--cf7 input:focus, .form--cf7 textarea:focus, .form--cf7 select:focus { outline: none; border-color: var(--primary); background: var(--white); }
.form--cf7 .wpcf7-not-valid { border-color: var(--err) !important; }
.form--cf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: var(--err); font-size: .88rem; }
.form--cf7 .wpcf7-submit { margin-top: 4px; }
.form--cf7 .wpcf7-submit:disabled { opacity: .6; cursor: wait; }
.form--cf7 .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.form--cf7 .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 16px !important; border: 1.5px solid var(--line) !important; border-radius: var(--r-s); font-size: .98rem; }
.form--cf7 .wpcf7-form.sent .wpcf7-response-output { border-color: var(--ok) !important; background: #eaf7f0; color: var(--ok); }
.form--cf7 .wpcf7-form.invalid .wpcf7-response-output,
.form--cf7 .wpcf7-form.unaccepted .wpcf7-response-output,
.form--cf7 .wpcf7-form.failed .wpcf7-response-output,
.form--cf7 .wpcf7-form.aborted .wpcf7-response-output,
.form--cf7 .wpcf7-form.spam .wpcf7-response-output { border-color: var(--err) !important; background: #fdf0ef; color: var(--err); }
.form__legal { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.form__legal a { text-decoration: underline; }
.form__fallback { margin: 0; font-size: 1.1rem; }
@media (max-width: 520px) { .form--cf7 .row { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Pages internes ---------- */
.page-hero { padding-block: calc(var(--header-h) + clamp(32px, 5vw, 72px)) clamp(48px, 7vw, 96px); text-align: center; }
.page-hero .title { max-width: 900px; margin-inline: auto; }
.page-hero .lead { max-width: 680px; margin: 24px auto 0; color: var(--muted); }
.page-hero .btn-row { justify-content: center; }
.page-404 { min-height: 60vh; display: grid; align-items: center; }

.projects { display: grid; gap: 28px; }
.project {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
	padding: clamp(20px, 3vw, 36px);
	border-radius: var(--r-l);
	background: var(--sand);
}
.project:nth-child(even) .project__media { order: 2; }
.project__media { border-radius: calc(var(--r-l) - 8px); overflow: hidden; background: var(--white); }
.project__media img { width: 100%; height: auto; }
.project__title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: var(--primary); margin-bottom: 14px; }
.project__title a { color: inherit; }
.project__title a:hover { color: var(--primary-dark); }
.project__media { display: block; }
.project__body .btn-row { margin-top: 20px; }

/* Page d'un projet */
.page-hero--project .lead { max-width: 760px; }
.page-hero--project .title__main { color: var(--primary); }
.project-visual {
	margin: 0 0 clamp(40px, 5vw, 64px);
	padding: clamp(12px, 2vw, 24px);
	border-radius: var(--r-l);
	background: radial-gradient(70% 90% at 50% 0%, rgba(63, 181, 232, .18), transparent 70%), var(--sand);
	box-shadow: var(--shadow);
}
.project-visual img { width: 100%; height: auto; border-radius: calc(var(--r-l) - 12px); }
.project-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.project-detail__content { font-size: 1.2rem; }
.project-detail__content p:first-child { font-size: 1.35rem; color: var(--text); }
.project-facts { position: sticky; top: 110px; padding: 28px; border-radius: var(--r-l); background: var(--sand); }
.project-facts dl { margin: 0 0 24px; }
.project-facts dt { margin-top: 18px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.project-facts dt:first-child { margin-top: 0; }
.project-facts dd { margin: 6px 0 0; font-weight: 400; }
.project-facts dd a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
	.project-detail { grid-template-columns: 1fr; }
	.project-facts { position: static; }
}
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: clamp(16px, 3vw, 32px); }
.project-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-l); color: var(--text); transition: border-color .2s, transform .3s, box-shadow .3s; }
.project-nav__link span { font-size: .9rem; color: var(--muted); }
.project-nav__link strong { font-size: 1.3rem; font-weight: 500; color: var(--primary); }
.project-nav__link:hover { color: var(--text); border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow); }
.project-nav__link--next { text-align: right; }
@media (max-width: 560px) { .project-nav { grid-template-columns: 1fr; } .project-nav__link--next { text-align: left; } }
.project__body .tags { margin-bottom: 18px; }
.project__body .btn { margin-top: 8px; }
@media (max-width: 860px) {
	.project { grid-template-columns: 1fr; }
	.project:nth-child(even) .project__media { order: 0; }
}

.cta-band {
	display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
	padding: clamp(32px, 5vw, 64px);
	border-radius: var(--r-l);
	background:
		radial-gradient(55% 90% at 100% 0%, rgba(63, 181, 232, .7), transparent 70%),
		linear-gradient(160deg, var(--primary), var(--primary-dark));
	color: var(--white);
	box-shadow: var(--shadow-blue);
}
.cta-band .title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 10px; }
.cta-band .lead { margin: 0; }

/* Mentions légales */
.legal__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal__toc { position: sticky; top: 110px; padding: 24px; border-radius: var(--r-l); background: var(--sand); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--text); font-size: 1rem; }
.legal__toc a::before { content: counter(toc) "."; color: var(--primary); font-weight: 500; }
.legal__toc a:hover { color: var(--primary); }
@media (max-width: 860px) {
	.legal__grid { grid-template-columns: 1fr; }
	.legal__toc { position: static; }
}

.prose { max-width: 760px; }
.prose--wide { max-width: 860px; margin-inline: auto; }
.prose h2 { margin: 1.8em 0 .6em; font-size: 1.6rem; font-weight: 500; }
.prose h2:first-of-type { margin-top: 1.2em; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 1.3rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: 4px; }
.prose img { border-radius: var(--r-s); }

.post-list a { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.post-list a:hover { color: var(--primary); }
.post-list__date { min-width: 130px; color: var(--muted); }
.post-list__title { font-weight: 500; font-size: 1.25rem; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: calc(var(--section) * 0.4); background: var(--text); color: rgba(255, 255, 255, .75); padding-top: clamp(48px, 6vw, 80px); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brand p { max-width: 320px; margin-top: 20px; }
.brand--light { color: var(--white); }
.site-footer__title { margin-bottom: 14px; color: var(--white); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.site-footer__links { display: grid; gap: 8px; }
.site-footer__links a { color: rgba(255, 255, 255, .75); transition: color .2s; }
.site-footer__links a:hover { color: var(--sun); }
.site-footer__copy { margin: clamp(40px, 5vw, 64px) 0 0; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .95rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Apparition discrète (seulement si JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .35s; transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-in:hover { transition-delay: 0s; }
.js .tile.reveal.is-in:hover, .js .feature.reveal.is-in:hover, .js .card.reveal.is-in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.hero__typed::after { animation: none; }
	.clients__list { animation: none; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 0; flex-shrink: 1; }
	.clients__list[aria-hidden] { display: none; }
	.clients__marquee { justify-content: center; -webkit-mask-image: none; mask-image: none; }
}
