@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin.woff2") format("woff2");
	font-weight: 500 800;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--cx-navy: #1b2557;
	--cx-navy-deep: #10173a;
	--cx-red: #d42b32;
	--cx-red-dark: #b3232a;
	--cx-green: #1f8f4e;
	--cx-green-ink: #14512e;
	--cx-green-soft: #e3f2e9;
	--cx-ink: #141826;
	--cx-text: #3a4058;
	--cx-muted: #5a6178;
	--cx-line: #e3e6ee;
	--cx-line-strong: #cdd2e0;
	--cx-soft: #f4f5f9;
	--cx-white: #fff;
	--cx-font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--cx-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--cx-radius: 8px;
	--cx-radius-lg: 12px;
	--cx-max: 1280px;
	--cx-gutter: clamp(16px, 4vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cx-white);
	color: var(--cx-ink);
	font-family: var(--cx-font-body);
	font-size: 16px;
	line-height: 1.6;
}

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

a { color: var(--cx-navy); text-underline-offset: 3px; }
a:hover { color: var(--cx-red); }

h1, h2, h3, h4 {
	font-family: var(--cx-font-head);
	color: var(--cx-navy);
	line-height: 1.15;
	margin: 0 0 .5em;
}

:focus-visible { outline: 3px solid var(--cx-red); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.cx-skip {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 1000;
	background: var(--cx-navy);
	color: var(--cx-white);
	padding: 10px 16px;
	border-radius: var(--cx-radius);
}
.cx-skip:focus { top: 16px; color: var(--cx-white); }

.cx-container {
	width: 100%;
	max-width: var(--cx-max);
	margin-inline: auto;
	padding-inline: var(--cx-gutter);
}
.cx-section { padding-block: clamp(40px, 6vw, 72px); }

.cx-icon { flex: none; }

/* Boutons */
.cx-btn, .button, button.button, input[type="submit"], .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1.5px solid transparent;
	border-radius: 6px;
	font-family: var(--cx-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.cx-btn--primary, .button.alt, .button.checkout, input[type="submit"], .wpcf7-submit, .single_add_to_cart_button {
	background: var(--cx-red);
	border-color: var(--cx-red);
	color: var(--cx-white);
}
.cx-btn--primary:hover, .button.alt:hover, input[type="submit"]:hover, .wpcf7-submit:hover, .single_add_to_cart_button:hover {
	background: var(--cx-red-dark);
	border-color: var(--cx-red-dark);
	color: var(--cx-white);
}
.cx-btn--outline, .button {
	background: var(--cx-white);
	border-color: var(--cx-navy);
	color: var(--cx-navy);
}
.cx-btn--outline:hover, .button:hover { background: var(--cx-navy); color: var(--cx-white); }
.cx-btn--wa { background: var(--cx-white); border-color: var(--cx-green); color: var(--cx-green-ink); }
.cx-btn--wa:hover { background: var(--cx-green); color: var(--cx-white); }
.cx-btn--block { display: flex; width: 100%; }
.cx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau du haut */
.cx-topbar { background: var(--cx-navy-deep); color: #d5daea; font-size: 14px; }
.cx-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-block: 9px;
}
.cx-topbar span, .cx-topbar a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.cx-topbar a:hover { color: var(--cx-white); }

/* En-tête */
.cx-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--cx-white);
	border-bottom: 1px solid var(--cx-line);
}
.admin-bar .cx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cx-header { top: 0; } }

.cx-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 76px;
}
.cx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.cx-brand__name { display: inline-flex; align-items: baseline; gap: 6px; }
.cx-brand__word, .cx-brand__accent { font-family: var(--cx-font-head); font-size: 24px; letter-spacing: .5px; }
.cx-brand__word { font-weight: 800; color: var(--cx-navy); }
.cx-brand__accent { font-weight: 500; color: var(--cx-red); }
.cx-brand__logo { height: 48px; width: auto; flex-shrink: 0; }
.cx-brand { flex-shrink: 0; }
@media (min-width: 1280px) {
	.cx-brand { gap: 8px; }
	.cx-brand__logo { height: 40px; }
	.cx-brand__word, .cx-brand__accent { font-size: 20px; letter-spacing: 0; }
}

.cx-nav { margin-left: auto; }
.cx-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.cx-nav__list a {
	display: block;
	padding: 8px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--cx-navy);
	text-decoration: none;
	white-space: nowrap;
}
@media (min-width: 1280px) {
	.cx-header__inner { gap: 16px; }
	.cx-nav__list { flex-wrap: nowrap; gap: 4px 16px; }
	.cx-nav__list a { font-size: 14px; }
}
.cx-nav__list .current-menu-item > a, .cx-nav__list .current_page_item > a, .cx-nav__list .current-menu-parent > a, .cx-nav__list .current-menu-ancestor > a, .cx-nav__list a:hover { color: var(--cx-red); }
.cx-nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.cx-nav__list .sub-menu { z-index: 20; }
.cx-nav__list .sub-menu a { white-space: nowrap; }
.cx-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 16px;
	position: absolute;
	min-width: 220px;
	background: var(--cx-white);
	border: 1px solid var(--cx-line);
	border-radius: var(--cx-radius);
	box-shadow: 0 10px 30px rgba(16, 23, 58, .12);
	display: none;
}
.cx-nav__list li { position: relative; }
.cx-nav__list li:hover > .sub-menu, .cx-nav__list li:focus-within > .sub-menu { display: block; }

.cx-header__actions { display: flex; align-items: center; gap: 12px; }
.cx-header__shop { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.cx-nav__shop { display: none; }
.cx-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	color: var(--cx-navy);
}
.cx-cart-count {
	position: absolute;
	top: 2px; right: 0;
	min-width: 20px; height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--cx-red);
	color: var(--cx-white);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}
.cx-cart-count.is-empty { display: none; }

.cx-menu-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	border: 0;
	background: none;
	color: var(--cx-navy);
	cursor: pointer;
}
.cx-menu-toggle__close { display: none; }

@media (max-width: 1279px) {
	.cx-header__inner { flex-wrap: wrap; gap: 8px 12px; }
	.cx-menu-toggle { display: inline-flex; order: 2; }
	.cx-header__actions { order: 3; }
	.cx-header__cta { display: none; }
	.cx-nav { order: 4; flex-basis: 100%; margin: 0; display: none; padding-bottom: 12px; }
	.cx-nav.is-open { display: block; }
	.cx-nav__list { flex-direction: column; gap: 0; }
	.cx-nav__list a { padding: 12px 0; border-bottom: 1px solid var(--cx-line); }
	.cx-nav__list .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.cx-menu-toggle[aria-expanded="true"] .cx-menu-toggle__open { display: none; }
	.cx-menu-toggle[aria-expanded="true"] .cx-menu-toggle__close { display: inline; }
	.cx-nav__shop { display: list-item; }
	.cx-nav__shop > a { color: var(--cx-red); font-weight: 600; }
	.cx-menu-toggle { order: 4; margin-left: 0; }
	.cx-header__actions { order: 3; margin-left: auto; gap: 8px; }
	.cx-nav { order: 5; }
}
@media (max-width: 480px) {
	.cx-header__inner { gap: 8px 6px; }
	.cx-brand { gap: 8px; }
	.cx-brand__logo { height: 38px; }
	.cx-brand__name { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.05; }
	.cx-brand__word, .cx-brand__accent { font-size: 16px; letter-spacing: .3px; }
	.cx-header__shop { min-height: 36px; padding: 6px 12px; font-size: 14px; }
	.cx-cart, .cx-menu-toggle { width: 40px; }
	.cx-header__actions { gap: 4px; }
}
@media (max-width: 340px) {
	.cx-brand { gap: 6px; }
	.cx-brand__logo { height: 32px; }
	.cx-brand__word, .cx-brand__accent { font-size: 14px; }
	.cx-header__shop { padding: 6px 9px; font-size: 13px; }
	.cx-cart, .cx-menu-toggle { width: 36px; }
}

/* Contenu */
.cx-page-head { margin-bottom: 32px; }
.cx-page-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.cx-prose { max-width: 820px; color: var(--cx-text); font-size: 17px; }
.cx-prose h2 { font-size: 28px; margin-top: 1.6em; }
.cx-prose h3 { font-size: 22px; margin-top: 1.4em; }
.cx-prose img { border-radius: var(--cx-radius); }
.cx-prose__cover { margin: 24px 0 32px; }

.cx-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.cx-card { border: 1px solid var(--cx-line); border-radius: var(--cx-radius-lg); overflow: hidden; background: var(--cx-white); }
.cx-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cx-card__body { padding: 20px 22px 24px; }
.cx-card__title { font-size: 20px; margin-bottom: 6px; }
.cx-card__title a { text-decoration: none; }
.cx-card__meta { margin: 0 0 10px; color: var(--cx-muted); font-size: 14px; }

.cx-notice { padding: 16px 18px; border-radius: var(--cx-radius); background: #fff6e5; color: #6b4a00; border: 1px solid #f0d9a8; }

.cx-steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: cxstep; display: grid; gap: 14px; }
.cx-steps li { counter-increment: cxstep; display: flex; align-items: center; gap: 14px; color: var(--cx-navy); }
.cx-steps li::before {
	content: counter(cxstep, decimal-leading-zero);
	font-family: var(--cx-font-head);
	font-weight: 800;
	font-size: 20px;
	color: var(--cx-red);
	min-width: 32px;
}

/* Formulaires */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input[type="url"], select, textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--cx-line-strong);
	border-radius: 6px;
	background: var(--cx-white);
	color: var(--cx-ink);
	font: inherit;
}
textarea { min-height: 120px; }
label { font-size: 14px; font-weight: 500; color: var(--cx-ink); }
.wpcf7-form p { margin: 0 0 16px; }
.wpcf7-form label { display: block; }
.wpcf7-form label > .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-not-valid-tip { font-size: 14px; color: var(--cx-red-dark); }

/* Pied de page */
.cx-footer { background: var(--cx-navy-deep); color: #c9cfe2; font-size: 15px; }
.cx-footer a { color: #e6e9f2; text-decoration: none; }
.cx-footer a:hover { color: var(--cx-white); text-decoration: underline; }
.cx-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	padding-block: 56px 40px;
}
.cx-footer__brand { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--cx-font-head); font-weight: 800; font-size: 22px; color: var(--cx-white); }
/* Le bleu de l'emblème disparaît sur le fond marine : pastille blanche. */
.cx-footer__logo { display: inline-flex; padding: 6px 8px; background: var(--cx-white); border-radius: 8px; }
.cx-footer__logo img { height: 40px; width: auto; }
.cx-footer__title { margin: 0 0 12px; font-weight: 600; color: var(--cx-white); }
.cx-footer p { margin: 0 0 14px; }
.cx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cx-footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.cx-footer__social { display: flex !important; flex-wrap: wrap; gap: 16px !important; }
.cx-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: 14px; }
.cx-footer__bottom p { margin: 0; }

/* WhatsApp flottant */
.cx-wa-float {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 60;
	width: 58px; height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--cx-green);
	color: var(--cx-white);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.cx-wa-float:hover { color: var(--cx-white); background: #187a42; }

.cx-404 { text-align: center; }
.cx-404 .cx-actions { justify-content: center; }

/* Pages Elementor : pleine largeur, le contenu gère ses propres marges. */
.cx-elementor-page .cx-main { padding: 0; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

.cx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cx-chips span {
	padding: 8px 16px;
	border: 1px solid var(--cx-line-strong);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: var(--cx-navy);
	background: var(--cx-white);
}
.cx-static-badge .cx-badge { position: static; display: inline-block; }
.cx-form-dark .wpcf7-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.cx-form-dark .wpcf7-form > p:has(textarea), .cx-form-dark .wpcf7-form > p:has(input[type="file"]), .cx-form-dark .wpcf7-form > p:has(.wpcf7-submit), .cx-form-dark .wpcf7-response-output { grid-column: 1 / -1; }
.cx-form-dark .wpcf7-submit { width: 100%; }
@media (max-width: 640px) { .cx-form-dark .wpcf7-form { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}
