/* ==========================================================================
   ELGUA CREATION – thème one-page
   Couleurs et typographie reprises de la brochure : rouge vif, noir, béton clair.
   ========================================================================== */

/* Polices hébergées dans le thème (Roboto, licence SIL OFL) : rien n'est chargé depuis Google. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/roboto-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
	--red: #ff0000;
	--red-600: #d90000;
	--ink: #111111;
	--text: #2a2a2a;
	--muted: #5f5f5f;
	--concrete: #dcd5cf;
	--paper: #f5f3f0;
	--line: #e4e0dc;
	--dark: #0e0e0e;
	--white: #ffffff;
	--wa: #25d366;

	--font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--display: "Roboto Condensed", "Arial Narrow", "Roboto", sans-serif;

	--container: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 84px;
	--section-gap: clamp(56px, 8vw, 96px);
	--radius: 4px;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, .28);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-600); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

.screen-reader-text,
.hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	background: var(--ink); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-lg { width: 30px; height: 30px; }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: 15px 26px;
	font-family: var(--display); font-weight: 700; font-size: 1.02rem;
	letter-spacing: .02em; text-transform: uppercase;
	border: 2px solid transparent; border-radius: var(--radius);
	cursor: pointer; line-height: 1.1;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--ink); color: var(--white); }
.btn-outline-white { color: var(--white); border-color: rgba(255, 255, 255, .85); }
.btn-outline-white:hover { background: var(--white); color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: var(--header-h);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-top: 5px solid var(--red);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.site-header .logo-img { height: 62px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 26px; list-style: none; }
.nav-list a {
	position: relative; display: block; padding: 6px 0;
	font-family: var(--display); font-weight: 700; font-size: .98rem;
	letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
}
.nav-list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: var(--red); transform: scaleX(0); transform-origin: left;
	transition: transform .25s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
	display: none; background: none; border: 0; padding: 8px; margin-right: -8px;
	color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

@media (max-width: 960px) {
	:root { --header-h: 70px; }
	.site-header .logo-img { height: 50px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; left: 0; right: 0; top: var(--header-h);
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 24px;
		background: var(--white);
		box-shadow: 0 24px 30px -20px rgba(0, 0, 0, .35);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.nav-list a::after { display: none; }
	.nav-list a.is-active { color: var(--red-600); }
	.nav-cta { margin-top: 18px; }
}

/* ---------- Accueil ---------- */
.hero {
	position: relative;
	padding: calc(var(--header-h) + clamp(36px, 7vh, 80px)) 0 clamp(260px, 32vw, 430px);
	background: var(--concrete) var(--hero-bg) no-repeat center bottom / cover;
	display: flex; align-items: flex-start;
}
.hero-inner { position: relative; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--display); font-weight: 700; letter-spacing: .22em;
	text-transform: uppercase; font-size: .95rem; color: var(--ink);
	margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 38px; height: 4px; background: var(--red); }
.hero-title {
	max-width: 16em;
	font-size: clamp(2rem, 4.2vw, 3.3rem);
	letter-spacing: -.01em;
	text-transform: uppercase;
	margin-bottom: 20px;
}
.hero-text { max-width: 36em; font-size: clamp(1.02rem, 1.4vw, 1.17rem); color: #2f2c29; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; }
.hero-pills li {
	padding: 6px 14px;
	font-size: .88rem; font-weight: 500; color: var(--ink);
	background: rgba(255, 255, 255, .6);
	border-left: 3px solid var(--red);
}

@media (max-width: 720px) {
	.hero {
		min-height: 0;
		padding-bottom: 78vw;
		background-size: 175% auto;
		background-position: 4% 100%;
	}
	.hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Bandeau rouge des sections (signature de la brochure) ---------- */
.section { padding-bottom: var(--section-gap); }
.band { background: var(--red); padding: 18px 0; margin-bottom: clamp(40px, 6vw, 64px); }
.band-title {
	margin: 0; color: var(--white);
	font-size: clamp(1.65rem, 3.2vw, 2.5rem);
	letter-spacing: .01em;
}
.section-intro { max-width: 44em; font-size: 1.14rem; color: var(--muted); margin-bottom: 36px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink); line-height: 1.6; }
.mini-title {
	font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-600); margin-bottom: 8px;
}

/* ---------- Qui sommes-nous ---------- */
.about-grid {
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.mission { margin: 26px 0; padding-left: 20px; border-left: 4px solid var(--red); }
.mission p { margin: 0; }
.audience { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 500; color: var(--ink); }
.audience li { display: flex; align-items: center; gap: 8px; }
.audience .icon { color: var(--red); }

.about-media { position: relative; margin: 0 16px 16px 0; }
.about-media::before {
	content: ""; position: absolute; inset: 16px -16px -16px 16px; background: var(--red); z-index: -1;
}
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.about { position: relative; z-index: 0; padding-bottom: 0; }

.film-strip {
	height: clamp(64px, 9vw, 110px);
	margin-top: var(--section-gap);
	background: var(--concrete) var(--film) no-repeat center / cover;
}

.vision { background: var(--dark); color: var(--white); padding: clamp(56px, 8vw, 100px) 0; }
.vision-inner { position: relative; padding-left: calc(var(--gutter) + clamp(0px, 6vw, 90px)); }
.vision-inner::before {
	content: "\201C"; position: absolute; left: var(--gutter); top: -.28em;
	font-family: Georgia, serif; font-size: clamp(0px, 10vw, 150px); line-height: 1; color: var(--red);
}
.vision-label { font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.vision-text { margin: 0; }
.vision-text p {
	margin: 0; max-width: 22em;
	font-family: var(--display); font-weight: 700;
	font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.18; color: var(--white);
}

/* ---------- Services ---------- */
.services { padding-top: 0; }
.services .band { margin-top: 0; }
.service-index {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
	margin-bottom: clamp(48px, 7vw, 80px);
}
.service-index a {
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
	padding: 20px 18px; min-height: 100%;
	background: var(--paper); color: var(--ink);
	font-family: var(--display); font-weight: 700; line-height: 1.2; font-size: 1.02rem;
	border-bottom: 3px solid transparent;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.service-index a .icon { color: var(--red); transition: color .2s; }
.service-index a:hover { background: var(--ink); color: var(--white); border-color: var(--red); transform: translateY(-3px); }

.service-list { display: grid; gap: clamp(56px, 8vw, 96px); }
.service {
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
	scroll-margin-top: calc(var(--header-h) + 24px);
}
.service:nth-child(even) .service-media { order: 2; }
.service-media { position: relative; overflow: hidden; }
.service-media::after {
	content: ""; position: absolute; left: 0; top: 0; width: 34%; height: 6px; background: var(--red);
}
.service-media img {
	width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
	transition: transform .8s var(--ease);
}
.service:hover .service-media img { transform: scale(1.04); }
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service-num {
	font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.service-icon {
	display: inline-grid; place-items: center; width: 46px; height: 46px;
	background: var(--red); color: var(--white); border-radius: 50%;
}
.service-icon .icon { width: 24px; height: 24px; }
.service-title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: 18px; }
.service-items { list-style: none; margin-bottom: 24px; }
.service-items li {
	position: relative; padding: 11px 0 11px 26px;
	border-bottom: 1px solid var(--line); color: var(--text);
}
.service-items li::before {
	content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 10px; background: var(--red);
}
.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 3px;
}
.link-arrow:hover { color: var(--red-600); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

@media (max-width: 960px) {
	.service-index { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
	.about-grid,
	.service { grid-template-columns: 1fr; }
	.about-media { max-width: 420px; }
	.service:nth-child(even) .service-media { order: 0; }
	.service-index { grid-template-columns: 1fr 1fr; }
	.service-index a { flex-direction: row; align-items: center; padding: 14px; font-size: .95rem; }
	.service-index a .icon { width: 24px; height: 24px; }
	.service-num { font-size: 2.6rem; }
}

/* ---------- Réalisations ---------- */
.work-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card {
	position: relative; display: block; overflow: hidden; background: var(--dark); color: var(--white);
	aspect-ratio: 16 / 10;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.work-card:hover img { transform: scale(1.06); opacity: .8; }
.work-play {
	position: absolute; top: 50%; left: 50%; translate: -50% -50%;
	width: 64px; height: 64px; display: grid; place-items: center;
	background: var(--red); color: var(--white); border-radius: 50%;
	box-shadow: 0 0 0 8px rgba(255, 0, 0, .25);
	transition: transform .25s var(--ease);
}
.work-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.work-card:hover .work-play { transform: scale(1.1); }
.work-caption {
	position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .82));
	display: flex; flex-direction: column;
}
.work-cat { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #ff6b6b; font-weight: 700; }
.work-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .9); }
.lightbox-dialog { position: relative; width: min(1100px, 100%); }
.lightbox-frame { aspect-ratio: 16 / 9; background: #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close {
	position: absolute; right: 0; top: -52px; width: 44px; height: 44px;
	display: grid; place-items: center; background: var(--red); color: var(--white); border: 0; cursor: pointer;
}

/* ---------- Bandeau d'appel ---------- */
.cta { background: var(--red); color: var(--white); padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.cta-title { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 3rem); text-transform: uppercase; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 38em; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); padding-bottom: 0; }
.contact .band { background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; padding-bottom: var(--section-gap); }
.info-list { list-style: none; display: grid; gap: 20px; margin-top: 28px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list small {
	display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.info-list a { color: var(--ink); font-weight: 500; }
.info-list a:hover { color: var(--red-600); }
.info-icon {
	flex: none; width: 46px; height: 46px; display: grid; place-items: center;
	background: var(--white); color: var(--red); border: 1px solid var(--line);
}
.info-icon .icon { width: 22px; height: 22px; }

.contact-form-wrap { background: var(--white); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border-top: 6px solid var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 500; font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--red-600); }
.field input,
.field select,
.field textarea {
	width: 100%; padding: 13px 14px;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
	transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.notice { padding: 14px 16px; margin-bottom: 20px; font-weight: 500; border-left: 4px solid; }
.notice-success { background: #e9f8ef; border-color: #1a9d4c; color: #125c30; }
.notice-error { background: #fdecec; border-color: var(--red-600); color: #8a0000; }

.map { line-height: 0; }
.map iframe { width: 100%; height: clamp(300px, 40vw, 420px); border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .4s; }
.map iframe:hover { filter: none; }

@media (max-width: 860px) {
	.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.field-row { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: #b9b9b9; font-size: .96rem; }
.footer-grid {
	display: grid; grid-template-columns: 1.3fr .8fr 1.2fr 1.2fr; gap: 40px;
	padding-top: clamp(48px, 7vw, 72px); padding-bottom: 40px;
}
.site-footer .logo-img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-title { color: var(--white); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links,
.footer-contact { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #d6d6d6; }
.site-footer a:hover { color: var(--white); }
.footer-links a { position: relative; }
.footer-links a:hover { padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--red); margin-top: 4px; }
.socials { list-style: none; display: flex; gap: 8px; margin-top: 18px; }
.socials a {
	width: 40px; height: 40px; display: grid; place-items: center;
	border: 1px solid #333; color: var(--white); transition: background .2s, border-color .2s;
}
.socials a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom { border-top: 1px solid #262626; font-size: .86rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; }
.legal { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Boutons flottants ---------- */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	width: 58px; height: 58px; display: grid; place-items: center;
	background: var(--wa); color: var(--white); border-radius: 50%;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
	transition: transform .2s var(--ease);
}
.wa-float .icon { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); color: var(--white); }
.to-top {
	position: fixed; right: 27px; bottom: 90px; z-index: 89;
	width: 44px; height: 44px; display: grid; place-items: center;
	background: var(--ink); color: var(--white);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); color: var(--white); }

/* ---------- Pages internes ---------- */
.page-content { padding-top: calc(var(--header-h) + 56px); min-height: 60vh; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); padding-bottom: 14px; border-bottom: 5px solid var(--red); display: inline-block; }
.entry { margin-bottom: 40px; }
.entry-content a { text-decoration: underline; }

/* ---------- Apparition au défilement ---------- */
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

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